Command Help
#4

PHP код:
COMMAND:factions(playeridparams[]) 

new 
string[90], copcount 0fbicount 0corleonecount 0
for(new 
i=0;i<MAX_PLAYERS;i++) 

    if(
PlayerInfo[i][playerteam] == COPScopcount++; 

format(stringsizeof(string), "Los Santos Police Department:Members [%d/45]"copcount); 
SendClientMessage(playerid, -1string); 
for(new 
i=0;i<MAX_PLAYERS;i++) 

    if(
PlayerInfo[i][playerteam] == FBIfbicount++; 

format(stringsizeof(string), "FBI Online Members:[%d/45]",fbicount); 
SendClientMessage(playerid, -1string); 
for(new 
i=0;i<MAX_PLAYERS;i++) 

    if(
PlayerInfo[i][playerteam] == CORLEONEcorleonecount++; 

format(stringsizeof(string), "Corleone Online Members:[%d/45]",corleonecount); 
SendClientMessage(playerid, -1string); 
I hope this solves your problem.
Reply


Messages In This Thread
Command Help - by Diti1 - 03.12.2014, 12:26
Re: Command Help - by xCrazyMonkey - 03.12.2014, 12:31
Re: Command Help - by Diti1 - 03.12.2014, 12:40
Re: Command Help - by xCrazyMonkey - 03.12.2014, 13:08
Re: Command Help - by Diti1 - 03.12.2014, 14:11

Forum Jump:


Users browsing this thread: 1 Guest(s)