Making a minigame
#2

Create a new variable, At the top:
new AirDM;

add to your /airdm command:
pawn Код:
AirDM ++;
if(AirDM == 5) return SendClientMessage(playerid,COLOR,"Sorry this minigame already has a max amount of people");
Change the '5' to the max ammount of people aloud to join it.

Then you will need to put a timer on it, and at the end of the timer, teleport the players back out of the minigame, and remember to set AirDM to 0
Reply


Messages In This Thread
Making a minigame - by [KSF]Badboy - 21.03.2011, 06:33
Re: Making a minigame - by PinkFloydLover - 21.03.2011, 06:55
Re: Making a minigame - by [KSF]Badboy - 21.03.2011, 07:13

Forum Jump:


Users browsing this thread: 1 Guest(s)