SA-MP Forums Archive
How to prevent jumping when 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)
+--- Thread: How to prevent jumping when cuffed (/showthread.php?tid=326168)



How to prevent jumping when cuffed - MP2 - 16.03.2012

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: How to prevent jumping when cuffed - Kyle - 16.03.2012

I love it d:


Re: How to prevent jumping when cuffed - Infamous - 16.03.2012

Good idea.


Re: How to prevent jumping when cuffed - WackoX - 16.03.2012

Really great! i'm going to use this in my server


Re: How to prevent jumping when cuffed - dydjyz - 16.03.2012

Awesome


Re: How to prevent jumping when cuffed - IstuntmanI - 16.03.2012

Awesome.

This should be added in 0.3e by default. O_O


Re: How to prevent jumping when cuffed - rbN. - 16.03.2012

DOLPHIN DIVE!!!!!!!!


Re: How to prevent jumping when cuffed - Frank Biohazard - 16.03.2012

Amazing


Re: How to prevent jumping when cuffed - [DOG]irinel1996 - 16.03.2012

LOL.
Really good job, amazing. 5/5 :O
+rep


Re: How to prevent jumping when cuffed - T0pAz - 16.03.2012

Nice one.