/afklist bug
#8

pawn Код:
CMD:afklist(playerid)
{
    new count = 0,
        string[50];
    for(new i; i<MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i)
        {
            if(IsPlayerAFK[i]==1)
            {
                count++;
               
                format(string, 50, "- %s (%d) is AFK!", PlayerName(i), i);
                SendClientMessageToAll(-1, string);
            }
        }
    }
    if(count == 0)
    {
    SendClientMessage(playerid, -1, "No players AFK!");
    }
    else
    {
    format(string, 50, "There are %d players AFK.",count);
    SendClientMessage(playerid, -1, string);
    }
    return 1;
}
Made this in PAWN myself, check it out.
Reply


Messages In This Thread
/afklist bug - by ProPoint - 18.02.2013, 11:01
Re: /afklist bug - by RajatPawar - 18.02.2013, 11:06
Re: /afklist bug - by ]Rafaellos[ - 18.02.2013, 11:11
Re: /afklist bug - by Falcon. - 18.02.2013, 11:23
Re: /afklist bug - by ProPoint - 18.02.2013, 11:24
Re: /afklist bug - by ]Rafaellos[ - 18.02.2013, 11:27
Re: /afklist bug - by ProPoint - 18.02.2013, 11:39
Re: /afklist bug - by RajatPawar - 18.02.2013, 11:43
Re: /afklist bug - by Falcon. - 18.02.2013, 11:43
Re: /afklist bug - by Misiur - 18.02.2013, 11:46

Forum Jump:


Users browsing this thread: 1 Guest(s)