Posts: 359
Threads: 63
Joined: Jul 2010
Reputation:
0
That's fucking terrible practice, you should determine if they're outside and spawned and on one of those callbacks start a timer to check if his in the zone, I'd recommend using Incognitos Streamer include as it lets you define a dynamicarea instead of using isplayerinrangeofpoint and it gives you callbacks to use easily such as OnPlayerEnterDynamicArea/OnPlayerLeaveDynamicArea
Lets say I use that code, and I decide to add 3 more police stations to it, and some hospitals! shit lets add some stores and area51, lets add the naval base and maybe some other things! i'm now checking all those positions as high as over 30 times per second.