03.02.2013, 16:55
Basically you need to make a new variable per-gang. So for example:
Each time someone joins the grove gang, do this:
That will increase the variable by one each time you do that code.
You will also want to run a check before performing the code above to see how many people are in the gang already. For example:
If that variable is true, you'll want to make the player select a new group. Otherwise, let them join the group and add to the variable (the thing posted above).
pawn Код:
new gangMembers_Grove;
pawn Код:
gangMembers_Grove++;
You will also want to run a check before performing the code above to see how many people are in the gang already. For example:
pawn Код:
if(gangMembers_Grove == MAX_MEMBERS_PER_GROUP)