Detecting amount of players in a gangzone.
#1

So basically i don't want more than 1 person to enter a zone. How can i calculate the amount of players enter a zone, and if there are more than 1 then just not let them take over zone ?
Reply
#2

Do a for loop through the players and check each one if they are in the zone. Each time a player is found in the zone, add to a variable. Then, check if that variable is greater than one.
Reply
#3

Try using IsPlayerInRangeOfPoint in a loop with all players and such... That's what I'd do at least.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)