23.02.2009, 14:49
OK i got it to work 
thanks for the help!
good code is this: (it won't show players wantedlevel only if he's wanted or not)

thanks for the help!
good code is this: (it won't show players wantedlevel only if he's wanted or not)
Код:
//at the other #definings!
#define COLOR_WHITE 0xFFFFFFAA
// public OnPlayerCommandText(playerid, cmdtext[])
// {
if(strcmp("/wanted", cmdtext, true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_WHITE, "Current Wanted Suspects;");
for(new i = 0; i < MAX_PLAYERS; i++)
{
new plwl = GetPlayerWantedLevel(i);
if(plwl > 0)
{
new wantedguy[MAX_PLAYER_NAME];
new string[MAX_PLAYER_NAME];
GetPlayerName(i, wantedguy, sizeof(wantedguy));
format(string, sizeof(string), "Name: %s || Wanted Level: %d", wantedguy, plwl);
SendClientMessage(playerid, TEAM_CIVIL_COLOR, string);
}
}
SendClientMessage(playerid, COLOR_WHITE, "___________________");
}
return 1;
}
// return 0;
// }

