Posts: 77
Threads: 18
Joined: May 2014
Reputation:
0
is there any way to detect if there is no player on the server have pGamemode=1
Playerid[playerid][ pGamemode ] == 1
?
i need help asap please !
Posts: 1,266
Threads: 6
Joined: Oct 2014
try:
PHP код:
CMD:gamemode(playerid,params[])
{
for(new i = 0; i < MAX_PLAYERS; i++) {
if(PlayerInfo[i][pGamemode] == 1) {
new pname[32],string[128];
GetPlayerName(i,pname,32);
SendClientMessage(playerid,-1,"Online Gamemode Members:");
format(string,sizeof(string)," %s ,pname");
SendClientMessage(playerid,-1,string);
} else SendClientMessage(playerid,-1,"There are no Gamemode Member Online.");
}
return 1;
}
Posts: 77
Threads: 18
Joined: May 2014
Reputation:
0
ik that but i need it to detect if there is no players in the gm to stops maps loading
if you know what i mean
Posts: 1,266
Threads: 6
Joined: Oct 2014
maybe
PHP код:
for(new i = 0; i < MAX_PLAYERS; i++) { if(!PlayerInfo[i][pGamemode]) return 0;
Posts: 77
Threads: 18
Joined: May 2014
Reputation:
0
I guess u didn't understand me
im my gamemode theres is pgamemode 0 wich is the lobby or selection of the gm and 1 is dm race so i want to make when there is no player with pgamemode 1 stop loading map progressformap false because without that the map loadimg and it shows for players in the lobby