SA-MP Forums Archive
[Tutorial] [0.3e] Prevent players jumping while cuffed - 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: Tutorials (https://sampforum.blast.hk/forumdisplay.php?fid=70)
+---- Thread: [Tutorial] [0.3e] Prevent players jumping while cuffed (/showthread.php?tid=341868)



[0.3e] Prevent players jumping while cuffed - MP2 - 12.05.2012

I made this post in the 0.3e RC section. Posting it here so it doesn't get lost.




Was bored so I made a really quick script that makes a player fall over if they jump while cuffed. You know how players run away quickly by jumping? This will prevent that. It will also prevent them climbing onto/over objects, which you wouldn't exactly be able to do in real life if your arms are behind your back.

[ame]http://www.youtube.com/watch?v=8GPaMTDDprI[/ame]

Just shove this in OnPlayerKeyStateChange in any script running on the server (gamemode or filterscript):

pawn Код:
if(newkeys & KEY_JUMP && !(oldkeys & KEY_JUMP) && GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_CUFFED) ApplyAnimation(playerid, "GYMNASIUM", "gym_jog_falloff",4.1,0,1,1,0,0);
Kinda like the dolphin dive from Call of Duty: Black Ops.


Re: [0.3e] Prevent players jumping while cuffed - CoaPsyFactor - 12.05.2012

Great man, really great job


Re: [0.3e] Prevent players jumping while cuffed - ToiletDuck - 12.05.2012

Yea' Thanks alot man, i put this in our script this really helpful


Re: [0.3e] Prevent players jumping while cuffed - Indom - 12.05.2012

Nice dude!


Re: [0.3e] Prevent players jumping while cuffed - Verbal - 12.05.2012

Very nice .


Re: [0.3e] Prevent players jumping while cuffed - Guest9328472398472 - 13.05.2012

Nice! Thanks! Very Useful!


Re: [0.3e] Prevent players jumping while cuffed - zSuYaNw - 13.05.2012

Great idea!
good for RP severs...


Re: [0.3e] Prevent players jumping while cuffed - Huxley - 13.05.2012

Oh shit. Very nice!


Re: [0.3e] Prevent players jumping while cuffed - Jose14 - 03.06.2012

Hey do you have a skype or something where i can talk to you i need you to guide me because i did it but when i put /cuff then it cuffs the person the way it had it before


Re: [0.3e] Prevent players jumping while cuffed - EnforcerDon - 03.10.2014

Nice work, you even made me laugh, so I will rep++ you for this