AFKLIST
#1

Hey im making afklist but i have some problems...player id 0 can see everyone which is AFK..others can see only one player that is afk
PHP код:
CMD:afklist(playerid,params[])
{
        new 
count 0,
                
string[128],
                    
pName[MAX_PLAYER_NAME];
        for(new 
0MAX_PLAYERSi++)
        {
             if (
IsPlayerConnected(i))
             {
                if(
PlayerIsAFK[i] == 1)
                {
                    
GetPlayerName(ipName,sizeof(pName));
                    
format(stringsizeof(string), "Player: {99EE22}%s, {992233}ID: {99DDDD}%d"pNamei);
                    
ShowPlayerDialog(playerid,837,DIALOG_STYLE_LIST,"AFK PLAYERS:",string,"OK","Cancel");
                    
count++;
                }
            }
        }
        if (
count == 0)
        {
            
SendClientMessage(playeridCOLOR_BLUE"No one AFK!");
        }
        return 
1;

Reply


Messages In This Thread
AFKLIST - by wumpyc - 22.10.2011, 11:49
Re: AFKLIST - by KoczkaHUN - 22.10.2011, 11:52
Re: AFKLIST - by wumpyc - 22.10.2011, 14:29
Re: AFKLIST - by Rafiko - 22.10.2011, 14:29

Forum Jump:


Users browsing this thread: 1 Guest(s)