#1

How to make key in my script to stop running anim?
like enter button/Lmb click.
Reply
#2

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

still didnt get it :/
Reply
#4

PHP код:
public OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    if (
PRESSED(KEY_FIRE))
    {
        
ClearAnimations(playerid);
    }
    return 
1;

Reply
#5

Код:
error 017: undefined symbol "PRESSED"
Reply
#6

PHP код:
#define PRESSED(%0) \
    
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0))) 
Put this at top of your script.
Reply
#7

Worked thanks +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)