/wanted command
#5

Quote:
Originally Posted by Steven82
How do i convert it.
pawn Код:
if (strcmp(cmdtext, "/wanted", true) ==0)
{
  new p = 0;
  SendClientMessage(playerid, 0x009DFFFF, "__________________| Wanted List |__________________");
  for(new i = 0; i < MAX_PLAYERS; i++)
  {
    if (IsPlayerConnected(i))
    {
      if(GetPlayerWantedLevel(i) >= 1)
      {
        new string[128], Name[MAX_PLAYER_NAME];
        GetPlayerName(i, Name, sizeof(Name));
        format(string, sizeof(string), "> %s (Wanted Level: %i)", Name, GetPlayerWantedLevel(i));
        SendClientMessage(playerid, 0xFFFFFFFF, string);
        p++;
      }
    }
  }
  if (p == 0) SendClientMessage(playerid, 0xFFFFFFFF, "There are no wanted criminals!");
  return 1;
}
Reply


Messages In This Thread
/wanted command - by Steven82 - 03.04.2010, 00:04
Re: /wanted command - by Ibanez - 03.04.2010, 00:28
Re: /wanted command - by Steven82 - 03.04.2010, 00:33
Re: /wanted command - by Ibanez - 03.04.2010, 00:34
Re: /wanted command - by sjvt - 03.04.2010, 00:34
Re: /wanted command - by sjvt - 03.04.2010, 00:38
Re: /wanted command - by Steven82 - 03.04.2010, 08:24
Re: /wanted command - by Ibanez - 03.04.2010, 11:04
Re: /wanted command - by Steven82 - 06.04.2010, 01:19

Forum Jump:


Users browsing this thread: 1 Guest(s)