Disable climbing?
#1

Hey, how can I make it that the player can jump but not climb over fences and stuff?
Reply
#2

Check if animation is plaed onplayerkeystate and just clean the animation
Reply
#3

How do I know what animation is being played?
Reply
#4

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
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)