Variable for whether the person is crouching
#1

Hello,

I wonder if there is a variable to detect if the person is crouching.
It'll be my varaible does not use an animation when you are crouching.

Thank you.
Reply
#2

Try looking at:

https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
Reply
#3

try SPECIAL_ACTION_DUCK in "GetPlayerSpecialAction" function
example:
pawn Код:
if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_DUCK) return SendClientMessage(playerid, 0xFF0000FF, "You can't use any animation while you're crouching.");
Reply
#4

Thanks Andi + rep
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)