/wanted list of persons with wanted [EDIT... problem solved]
#5

pawn Код:
#define color [your color code]

if(strcmp(cmd, /wanted, true) == 0)
{
    if(IsPlayerConnected(playerid))
    {
        SendClientMessage(playerid, color, "Current Wanted Suspects;");
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
              new wantedlvl = GetPLayerWantedLevel(i);
              if(wantedlvl > 0)
              {
                    new wantedguy[MAX_PLAYER_NAME];
                    new string[MAX_PLAYER_NAME;
                    GetPlayerName(i, wentedguy, sizeof(wantedguy));
                    format(string, sizeof(string), "Name: %s || Wanted Level: %d", wantedguy, wantedlvl
                    SendClientMessage(playerid, color, string);
               }
         }
        SendClientMessage(playerid, color, "___________________");
    }
    return 1;
}
This should perfectly workbut for every players. If you want it to work only for cops, just add it
Reply


Messages In This Thread
/wanted list of persons with wanted [EDIT... problem solved] - by jesse237 - 22.02.2009, 20:46
Re: /wanted list of persons with wanted - by Zack9764 - 22.02.2009, 20:49
Re: /wanted list of persons with wanted - by jesse237 - 22.02.2009, 21:22
Re: /wanted list of persons with wanted - by jesse237 - 22.02.2009, 21:57
Re: /wanted list of persons with wanted - by Coicatak - 23.02.2009, 08:21
Re: /wanted list of persons with wanted - by jesse237 - 23.02.2009, 13:14
Re: /wanted list of persons with wanted - by jesse237 - 23.02.2009, 13:30
Re: /wanted list of persons with wanted - by jesse237 - 23.02.2009, 14:49
Re: /wanted list of persons with wanted - by Coicatak - 24.02.2009, 10:19

Forum Jump:


Users browsing this thread: 1 Guest(s)