Help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help (
/showthread.php?tid=182621)
Help -
SkizzoTrick - 11.10.2010
How to put a function that don't allow over 4 members on a team?
I have cod5 GM and everybody join USA!
Re: Help -
Macluawn - 11.10.2010
use a variable.
if(variable >= 4) return ForceClassSelection
or something like that.
Re: Help -
SkizzoTrick - 11.10.2010
Ohh..i need to try that..thx!
Re: Help -
SkizzoTrick - 11.10.2010
but i need more details,i never used this before

sorry
Re: Help -
Austin - 11.10.2010
You'll need to do a loop to count how many are on a team when the callback is called for OnPlayerSpawn, or OnPlayerRequestClass.
Re: Help -
Mike_Peterson - 11.10.2010
Check your pm matey'