[B]tips max player into 0/10 and 10/10 Max[/B]
#2

I dont get you...

if you mean you want to limit access to 10 players for something.

Have a variable on top of the gamemode that will count the amount of players inside:
pawn Код:
new playersInsideEvac;
And then add 1 when some one make it to there:
pawn Код:
playersInsideEvac ++;
And then minus 1 when someone exits...
pawn Код:
playersInsideEvac --;
And then when the player is joining the evac, Do this:
pawn Код:
if(playersInsideEvac == 10) return SendClientMessage(playerid, -1, "There is 10 players inside already.");
Reply


Messages In This Thread
[B]tips max player into 0/10 and 10/10 Max[/B] - by Izaki - 17.04.2015, 17:59
Re: [B]tips max player into 0/10 and 10/10 Max[/B] - by Ahmad45123 - 17.04.2015, 18:07

Forum Jump:


Users browsing this thread: 2 Guest(s)