max players in team
#2

Ok, first create a global variable (on the GM/FS top [depends what your using] )

pawn Код:
new count = 0;

And on the command / class selection, which redirects player for the team, add (DEPENDS WHAT YOUR USING) :
pawn Код:
count++;

Also add the condition on the samewhere:
pawn Код:
if(count > 2) return GameTextForPlayer(playerid,"~r~There are already 2 people on this team",5000,5);
Reply


Messages In This Thread
max players in team - by gereter - 20.12.2010, 20:42
Re: max players in team - by blackwave - 20.12.2010, 20:47
Re: max players in team - by gereter - 20.12.2010, 20:53
Re: max players in team - by WillyP - 20.12.2010, 20:54
Re: max players in team - by gereter - 20.12.2010, 20:57
Re: max players in team - by WillyP - 20.12.2010, 21:00
Re: max players in team - by gereter - 20.12.2010, 21:03
Re: max players in team - by blackwave - 20.12.2010, 21:06
Re: max players in team - by WillyP - 20.12.2010, 21:07
Re: max players in team - by gereter - 20.12.2010, 21:08

Forum Jump:


Users browsing this thread: 1 Guest(s)