[Help]Command for a list
#1

How can i make list of criminals ( /criminals ) wich shows the criminals wich have WantedLevel[playerid] 1 or over <= ?

So if type /criminals it will show only the players wich have wanted level <=1
Reply
#2

What are you using? strcmd or zcmd?
Reply
#3

strcmp
Reply
#4

pawn Код:
for(new i;i<MAX_PLAYERS;i++)
    {
        if(WantedLevel[i] > 0)
        {
            GetPlayerName(i,pname,24);
            format(string,sizeof(string),"%s (%d)",pname,WantedLevel[i]);
        }
    }
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)