need cmd check leader offline
#1

hi guys.. i need cmd for check all leader factions. not only leaders online, but i just have cmd for checking leader factions online..
can help me?

note : sorry i bad english

PHP код:

CMD
:leaders(playeridparams[])
{
    if(
PlayerInfo[playerid][pAdmin] >= || PlayerInfo[playerid][pFactionModerator] == 1) {
        
SendClientMessageEx(playeridCOLOR_WHITE"Faction leaders online:");
            new    
string[128], sz_FacInfo[3][64];
            foreach(
Playeri) if(PlayerInfo[i][pLeader] >= 1) {
            
GetPlayerFactionInfo(isz_FacInfo[0], sz_FacInfo[1], sz_FacInfo[2]);
            
format(stringsizeof(string), "(%s) %s %s"sz_FacInfo[2], sz_FacInfo[0], GetPlayerNameEx(i));
            
SendClientMessageEx(playeridCOLOR_GRAD2string);
        }
    }
    return 
1;

Reply
#2

Loop through your database and check all the current leaders.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)