SA-MP Forums Archive
when player is near object stays open - 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: when player is near object stays open (/showthread.php?tid=204691)



when player is near object stays open - LegendNissanGTR - 30.12.2010

Hi,is it possible that when you stay near a object and its automaticly open then when you stay near it for very long it's stay's open? when his not there the object closes, if it's possible how can i make it whats the code?


Re: when player is near object stays open - LegendNissanGTR - 30.12.2010

Anyone,know?


Re: when player is near object stays open - _rAped - 30.12.2010

Quote:
Originally Posted by LegendNissanGTR
Посмотреть сообщение
Anyone,know?
IsPlayerInRangeOfPoint()


Re: when player is near object stays open - gr56 - 30.12.2010

Use timer, IsPlayerInRangeOfPoint and MoveObject


Re: when player is near object stays open - LegendNissanGTR - 30.12.2010

One more thing if i want to make like that so i do is IsPlayerInRangeOfPoint then timer but i want the object to rotate in animation? i dont know how make the animation only other's i know


Re: when player is near object stays open - _rAped - 30.12.2010

Quote:
Originally Posted by LegendNissanGTR
Посмотреть сообщение
One more thing if i want to make like that so i do is IsPlayerInRangeOfPoint then timer but i want the object to rotate in animation? i dont know how make the animation only other's i know
SetObjectRot()


Re: when player is near object stays open - LegendNissanGTR - 30.12.2010

Thank you.