19.03.2011, 19:52
pawn Код:
if(strcmp(cmd,"/wanted",true) == 0)
{
new string[128], names[MAX_PLAYER_NAME];
if(PlayerInfo[playerid][pCop] > 2)
{
SendClientMessage(playerid, 0x8C0000FF, "List of wanted people:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(GetPlayerWantedLevel(i) > 0)
{
GetPlayerName(i, names, sizeof(names));
format(string, sizeof(string), "%s", names);
SendClientMessage(playerid, 0x8C0000FF, string);
}
}
}
return 1;
}