Disable climbing? - 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: Disable climbing? (
/showthread.php?tid=459674)
Disable climbing? -
RALL0 - 24.08.2013
Hey, how can I make it that the player can jump but not climb over fences and stuff?
Re: Disable climbing? -
park4bmx - 24.08.2013
Check if animation is plaed onplayerkeystate and just clean the animation
Re: Disable climbing? -
RALL0 - 24.08.2013
How do I know what animation is being played?
Re: Disable climbing? -
park4bmx - 24.08.2013
https://sampwiki.blast.hk/wiki/GetPlayerAnimationIndex
https://sampwiki.blast.hk/wiki/Animations
one of these maybe
Код:
PED
------------
CLIMB_idle
CLIMB_jump
CLIMB_jump2fall
CLIMB_jump_B
Re: Disable climbing? -
xXSPRITEXx - 24.08.2013
I have a way to fix this. It's not the most efficient way, but I would set the gravity to a little bit higher than normal. That way they can't even reach the tip of the building.
Код:
//Under on Gamemodeinit
SetGravity(0.012); // <-- Maybe a little less or a bit more. Your choice. :)
Remember. 0.008 is the default gravity level.