admins online error?
#2

Код:
COMMAND:adminid(playerid, params[]) 
{ 
    new admineidsees, string[128]; 
    if(Logged[playerid] == true) 
    { 
        SendClientMessage(playerid, COLOR_CYAN, "_________| Administraatorid |_________"); 
        for(new i = 0; i <= GetMaxPlayers(); i++) 
        { 
            if(IsPlayerConnected(i)) 
            { 
                if(PlayerInfo[i][pAdmin] >= 1) 

                    { 
                        admineidsees++; 
                        if(aDuty[i] == false) 
                        { 
                            format(string, sizeof(string), "%s{FFFFFF}: %s [{FF0000}Ei ole tццl{FFFFFF}]",ARNKNM(i), RPName(i)); 
                            SendClientMessage(playerid, COLOR_RED, string); 
                        } 
                        else if(aDuty[i] == true) 
                        { 
                            format(string, sizeof(string), "%s{FFFFFF}: %s [{118A00}On tццl{FFFFFF}]",ARNKNM(i), RPName(i)); 
                            SendClientMessage(playerid, COLOR_RED, string); 
                        } 
                    } 
                } 
            } 
        } 
if(admineidsees == 0) 
        { 
            SendClientMessage(playerid, COLOR_WHITE, "Hetkel ei ole ьhtegi administraatorit sees"); 
        } 
        else if(admineidsees != 0) 
        { 
            format(string, sizeof(string), "Hetkel on sees %d administraatorit", admineidsees); 
            SendClientMessage(playerid, COLOR_WHITE, string); 
        } 
    } // erase this

    return 1; 
}
Reply


Messages In This Thread
admins online error? - by b0b - 01.08.2016, 17:35
Re: admins online error? - by F1N4L - 01.08.2016, 17:38
Re: admins online error? - by jlalt - 01.08.2016, 17:39
Re: admins online error? - by b0b - 01.08.2016, 17:42
Re: admins online error? - by F1N4L - 01.08.2016, 17:45
Re: admins online error? - by b0b - 01.08.2016, 18:07
Re: admins online error? - by J0sh... - 01.08.2016, 18:35

Forum Jump:


Users browsing this thread: 1 Guest(s)