geting up from /sit 8
#2

pawn Код:
#define PRESSED(%0) \
    (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0))) //anywhere up in your script
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if (PRESSED(KEY_FIRE))//if he pressed (LMB)
    {
        //add your code here
        ClearAnimations(playerid);//Clear the animations
    }
    return 1;
}
Reply


Messages In This Thread
geting up from /sit 8 - by AIMigboboy - 28.07.2013, 17:30
Re: geting up from /sit 8 - by TH3_R3D™ - 28.07.2013, 17:50
Re: geting up from /sit 8 - by TH3_R3D™ - 28.07.2013, 18:46

Forum Jump:


Users browsing this thread: 1 Guest(s)