Detecting if player in certain zone.
#1

Hi i was wondering if you can detect if player within cords X and Y of a zone?

Just do i can maybe allow weps in that box'd area, as soon as they step out of the zone, No weps for them.


this posible? if so can som1 wiki link it or explain.. cant seem to find
Reply
#2

The basic concept is to have a repeating timer, and use IsPlayerInRangeOfPoint for every player in the server. You will need to specify the central point of the area, and a range for it. In case it returns true, you can do all your stuff, in case it returns false, it means that they aren't in the area.
Reply
#3

Zamaroht, IsPlayerInRangeOfPoint is a circle and you cant find if they are within the X and Y cords or a zone unless you try multiple times to get it right. I think using the function IsPlayerInArea would be better, just have a look around for it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)