SA-MP Forums Archive
Detecting if... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Detecting if... (/showthread.php?tid=472621)



Detecting if... - Tagathron - 29.10.2013

Is there any other way i could detect for example if player is near some point,or car,or whatever.
But not that it runs when a command is used,i mean always.
As using a loop or something on OnPlayerUpdate() would cause probably some lag,and not sure about timers neither,is there any other way to detect it?


Re: Detecting if... - -Prodigy- - 29.10.2013

You can either: Run IsPlayerInRangeOfPoint under a timer, or use the areas functions from the streamer plugin


Re: Detecting if... - Tagathron - 29.10.2013

This one,right? https://sampforum.blast.hk/showthread.php?tid=102865


Re: Detecting if... - Pottus - 29.10.2013

Use dynamic areas of course the only solution in my view