pausers list little help
#1

Hello, i made this command just for admins to list all paused players, but for some reason, even if player pause, the list is empty.

pawn Код:
CMD:pausers(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 1)
    {
    new count = 1, name[24], string[200];
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        if(IsPaused[i] == 1)
        {
            GetPlayerName(i, name, sizeof(name));
            format(string, sizeof(string), "%s%s (%d\n", string, name,i);
            count ++;
        }
    }

    if(count != 1)
    {
        ShowPlayerDialog(playerid, 24, DIALOG_PAUSED, "Paused Players", string, "OK", "");
    }
    else ShowPlayerDialog(playerid, 24, DIALOG_PAUSED, "Paused Players", "No paused players.", "OK", "");
    }
    return 1;
}
On other "news"
pawn Код:
new IsPaused[MAX_PLAYERS];
When a player pause:

pawn Код:
IsPaused[playerid] =1;
Unpause:

pawn Код:
IsPaused[playerid] =0;
Reply


Messages In This Thread
pausers list little help - by Face9000 - 24.10.2012, 21:08
Re: pausers list little help - by ikkentim - 24.10.2012, 21:16
Re: pausers list little help - by ViniBorn - 24.10.2012, 21:19
Re: pausers list little help - by Face9000 - 25.10.2012, 19:00
Re: pausers list little help - by HyDrAtIc - 25.10.2012, 19:02
Re: pausers list little help - by Face9000 - 25.10.2012, 19:11
Re: pausers list little help - by Ryz - 23.09.2014, 16:08
Re: pausers list little help - by Rudy_ - 23.09.2014, 16:11
Re: pausers list little help - by XStormiest - 23.09.2014, 16:44

Forum Jump:


Users browsing this thread: 1 Guest(s)