Limited players
#3

Basically you need to make a new variable per-gang. So for example:

pawn Код:
new gangMembers_Grove;
Each time someone joins the grove gang, do this:

pawn Код:
gangMembers_Grove++;
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:

pawn Код:
if(gangMembers_Grove == MAX_MEMBERS_PER_GROUP)
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).
Reply


Messages In This Thread
Limited players - by Vrag - 03.02.2013, 16:51
Re: Limited players - by Jstylezzz - 03.02.2013, 16:54
Re: Limited players - by Scenario - 03.02.2013, 16:55
Re: Limited players - by SKAzini - 03.02.2013, 16:55

Forum Jump:


Users browsing this thread: 1 Guest(s)