[HELP] --- /wanted
#3

or a better thing:
pawn Код:
if(!strcmp(cmdtext,"/wanted",true))
{
    new string[512], names[MAX_PLAYER_NAME];
    if(PlayerInfo[playerid][pCop] > 2)
    {
        format(string, sizeof(string), "Wanted People:\n");
        for(new i = 0; i < MAX_PLAYERS; i++)
        {
            if(GetPlayerWantedLevel(i) > 0)
            {
                GetPlayerName(i, names, sizeof(names));
                format(string, sizeof(string), "%s%s\n",string, names);
            }
        }
        ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_MSGBOX, "Wanted List", string, "OK", "");
    }
    return 1;
}
Reply


Messages In This Thread
[HELP] --- /wanted - by bijoyekuza - 19.03.2011, 19:33
Re: [HELP] --- /wanted - by Serbish - 19.03.2011, 19:52
Re: [HELP] --- /wanted - by xDeadlyBoy - 19.03.2011, 20:15

Forum Jump:


Users browsing this thread: 2 Guest(s)