How to prevent jumping when cuffed
#1

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.
Reply


Messages In This Thread
How to prevent jumping when cuffed - by MP2 - 16.03.2012, 16:07
Re: How to prevent jumping when cuffed - by Kyle - 16.03.2012, 16:08
Re: How to prevent jumping when cuffed - by Infamous - 16.03.2012, 16:13
Re: How to prevent jumping when cuffed - by WackoX - 16.03.2012, 16:26
Re: How to prevent jumping when cuffed - by dydjyz - 16.03.2012, 17:02
Re: How to prevent jumping when cuffed - by IstuntmanI - 16.03.2012, 17:30
Re: How to prevent jumping when cuffed - by rbN. - 16.03.2012, 17:41
Re: How to prevent jumping when cuffed - by Frank Biohazard - 16.03.2012, 18:42
Re: How to prevent jumping when cuffed - by [DOG]irinel1996 - 16.03.2012, 18:45
Re: How to prevent jumping when cuffed - by T0pAz - 16.03.2012, 18:48

Forum Jump:


Users browsing this thread: 2 Guest(s)