/drag cmd - 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: /drag cmd (
/showthread.php?tid=172786)
/drag cmd -
[UG]Scripter - 31.08.2010
Ok.
Basically. I was going to make a /drag command which would entail;
A cop types /drag (ID)
The "Suspect" ( ID ) follows the cop where ever they go. No matter what.
If the cop wants to stop the suspect following them. They type /stopdrag and the player is frozen where they are.
Any Ideas?
Re: /drag cmd -
Grim_ - 31.08.2010
Use the GetXYBehindPlayer function to detect 3 meters or so away from the player, then you can use a timer to update and set their position again, in case the officer moved.
[This forum requires that you wait 120 seconds between posts. Please try again in 50 seconds.] - ...
Re: /drag cmd -
[UG]Scripter - 12.09.2010
Anymore help?