SA-MP Forums Archive
/Drag [ID] for police officers - 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: /Drag [ID] for police officers (/showthread.php?tid=360439)



/Drag [ID] for police officers - kristiansp5 - 17.07.2012

I am looking for a /Drag [ID] command for a Roleplay server for Police officers when they type /Drag [ID] whereever the police officer walks the player who was /drag gets teleported to the police officer whereever he walks and to stop dragging it would be /stopdrag [ID]

I am not sure if this is the right place to post this but hopefully someone can help me


Re: /Drag [ID] for police officers - RedJohn - 17.07.2012

Post it here!


Re: /Drag [ID] for police officers - Sandiel - 17.07.2012

I can't access my PAWNO at the moment but it's easy:
-Check if the user is a cop
-Get the cop's coords, check if the targetid is near him (IsPlayerInRangeOfPoint)
-SetTimer, GetPlayerPos, SetPlayerPos