ocmd:crimelist(playerid,params[])
{
if(!isPlayerBehoerde(playerid))return SendClientMessage(playerid,COLOR_RED,"Du bist in keiner Behörde!");
{
new
msg[128],
suche=0,
spieler[MAX_PLAYER_NAME],
Wanted
;
for (new i=0; i < MAX_PLAYERS; i++)
{
if(!IsPlayerConnected(i)) continue;
Wanted = GetPlayerWantedLevel(i);
GetPlayerName(i, spieler, MAX_PLAYER_NAME);
if (Wanted > 0)
{
format(msg, sizeof(msg), "NAME:%s: | Wanteds: %d \n",msg, spieler,Wanted);
suche++;
}
}
if(suche > 0)
{
ShowPlayerDialog(playerid,DIALOG_CRIMELIST,DIALOG_STYLE_MSGBOX,"Crimelist",msg,"Ok","Abbrechen");
}
else return SendClientMessage(playerid, COLOR_RED, "Zurzeit ist kein Spieler Wanted!");
}
return 1;
}
Crimelist befehl aber ich weiß net wie ich den grunde dahinter anzeigen lassen kan -.-