SA-MP Forums Archive
Detect if player is near object - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Detect if player is near object (/showthread.php?tid=224838)



Detect if player is near object - VoViNaToR - 12.02.2011

Is there any function to detect if player is at object, like example: IsPlayerAtObject....(Objectid); something like this ?


Re: Detect if player is near object - HyperZ - 12.02.2011

I think No, But you can use this:
https://sampwiki.blast.hk/wiki/Areacheck
http://forum.sa-mp.com/showthread.ph...ight=Areacheck


Re: Detect if player is near object - VoViNaToR - 12.02.2011

Ok thanks then i will make it like /dropobject it will save objects x y z and if player is at right cords he can pick it up.


Re: Detect if player is near object - HyperZ - 12.02.2011

Quote:
Originally Posted by VoViNaToR
Посмотреть сообщение
Ok thanks then i will make it like /dropobject it will save objects x y z and if player is at right cords he can pick it up.
1st Read This and This


Re: Detect if player is near object - VoViNaToR - 12.02.2011

Thanks it is very useful


Re: Detect if player is near object - Medal Of Honor team - 12.02.2011

I want that too. It's Like IsPlayerInRangeOfObject


Re: Detect if player is near object - HyperZ - 12.02.2011

Ohh, You can use This too With Object x y z cords, use it On OnPlayerUpdate callback.