SA-MP Forums Archive
IsPlayerInRangeOfPoint help!! - 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: IsPlayerInRangeOfPoint help!! (/showthread.php?tid=574462)



IsPlayerInRangeOfPoint help!! - kesarthakur - 17.05.2015

Can anyone please tell me the best ways to know IsPlayerInRangeOfPoint otherthan OnPlayerUpdate or Timer

if there is not other better way then how much interval will be good for timer?
Thanks in advance


Re: IsPlayerInRangeOfPoint help!! - Konstantinos - 17.05.2015

Dynamic areas by streamer plugin:

pawn Код:
CreateDynamicSphere(Float:x, Float:y, Float:z, Float:size, worldid = -1, interiorid = -1, playerid = -1);
When the players enter the area (OnPlayerEnterDynamicArea), do you code. It's just like the player is in range of x, y, z you set.


Re: IsPlayerInRangeOfPoint help!! - kesarthakur - 17.05.2015

is the range of the point and size of the sphere are equal??

or Do they differ in a large value?


Re: IsPlayerInRangeOfPoint help!! - Konstantinos - 17.05.2015

Yes, they are equal.


Re: IsPlayerInRangeOfPoint help!! - kesarthakur - 17.05.2015

Thanks man for your help

+Rep

and last question please
Is there any native to destroy created dynamic sphere?


Re: IsPlayerInRangeOfPoint help!! - Konstantinos - 17.05.2015

pawn Код:
DestroyDynamicArea(areaid);
Store the areaid that CreateDynamicSphere function will return to a global variable and then use it to destroy the dynamic area whenever you want.


Re: IsPlayerInRangeOfPoint help!! - kesarthakur - 17.05.2015

Thanks Man

really it helped me alot