20.12.2010, 20:47
Ok, first create a global variable (on the GM/FS top [depends what your using] )
And on the command / class selection, which redirects player for the team, add (DEPENDS WHAT YOUR USING) :
Also add the condition on the samewhere:
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);