I need cmd check leader fac offline
#1

hi bro, i need cmd for checking player leader factions is offline

PHP код:

CMD
:leaders(playerid, params[])
{
    if(
PlayerInfo[playerid][pAdmin] >= 3 || PlayerInfo[playerid][pFactionModerator] == 1) {
        
SendClientMessageEx(playerid, COLOR_WHITE, "Faction leaders online:");
            new    
string[128], sz_FacInfo[3][64];
            foreach(
Player, i) if(PlayerInfo[i][pLeader] >= 1) {
            
GetPlayerFactionInfo(i, sz_FacInfo[0], sz_FacInfo[1], sz_FacInfo[2]);
            
format(string, sizeof(string), "(%s) %s %s", sz_FacInfo[2], sz_FacInfo[0], GetPlayerNameEx(i));
            
SendClientMessageEx(playerid, COLOR_GRAD2, string);
        }
    }
    return 
1;
} 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)