/staff command repeats itself.
#2

You do not need that code "#pragma unused params".
Also you are using loops but you never used the loop, you instead used playerid (I replaced them with i).

Another note, The message you put inside the loop excluding the part of listing the admins, will spam the screen. (": : Admins : :, etc..")

PHP код:
command(staffplayeridparams[])
{
    new 
string[128];

    for(new 
0MAX_PLAYERSi++)
    {
        if(
IsPlayerConnected(i))
        {
            
SendClientMessage(playeridCOLOR_ORANGE". : : Administrators : : .");
            if(
PlayerInfo[i][pAdmin] >= 1)
            {
                
format(stringsizeof(string), "Name: %s{A9C4E4}: (Level %d) {%s}"RPName(i), PlayerInfo[i][pAdmin], GetAwayStatus(i));
                
SendClientMessage(playeridGREYstring);
            }
            
SendClientMessage(playeridCOLOR_ORANGE". : : Moderators : : .");
            if(
PlayerInfo[i][pModerator] >= 1)
            {
                
format(stringsizeof(string), "Name: %s{A9C4E4} {%s}"RPName(i), GetAwayStatus(i));
                
SendClientMessage(iGREYstring);
            }
            
SendClientMessage(playeridCOLOR_ORANGE". : : Helpers : : .");
            if(
PlayerInfo[i][pHelper] >= 1)
            {
                
format(stringsizeof(string), "Name: %s{A9C4E4} {%s}"RPName(i), GetAwayStatus(i));
                
SendClientMessage(playeridGREYstring);
            }
        }
    }

Reply


Messages In This Thread
/staff command repeats itself. - by OMonger - 24.10.2015, 10:31
Re: /staff command repeats itself. - by JaKe Elite - 24.10.2015, 10:38
Re: /staff command repeats itself. - by jlalt - 24.10.2015, 10:59
Re: /staff command repeats itself. - by OMonger - 24.10.2015, 11:47

Forum Jump:


Users browsing this thread: 1 Guest(s)