SA-MP Forums Archive
Can someone make /drag CMD for me ? - 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: Can someone make /drag CMD for me ? (/showthread.php?tid=507773)



Can someone make /drag CMD for me ? - Jorda - 19.04.2014

Hello there, Can anyone of you make a /drag and /stopdrag cmd for LEO's ? and please tell me where to put it on script ,
THANKS


Re: Can someone make /drag CMD for me ? - Astralis - 19.04.2014

It's just a simple teleport command, I assume?

https://sampwiki.blast.hk/wiki/SetPlayerPos


Re: Can someone make /drag CMD for me ? - Dignity - 19.04.2014

Make it yourself. We're not your personal developers.

Use a timer to warp the player to the LEO's playerid every few seconds using the following functions:

https://sampwiki.blast.hk/wiki/GetPlayerPos
https://sampwiki.blast.hk/wiki/SetPlayerPos
https://sampwiki.blast.hk/wiki/SetTimer