engine key
#3

pawn Код:
#define PRESSED(%0) \
    (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0))) // on top
then,

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if (PRESSED(KEY_SUBMISSION))
    {
           // Your Code
           {
                // Your code
           }
       }
    }
    return 1;
}
Reply


Messages In This Thread
engine key - by Vizi - 21.02.2013, 15:58
Re: engine key - by DaRk_RaiN - 21.02.2013, 15:59
Re: engine key - by SilverKiller - 21.02.2013, 16:22
Re: engine key - by Vizi - 21.02.2013, 16:34
Re: engine key - by teomakedonija - 29.03.2013, 10:09

Forum Jump:


Users browsing this thread: 1 Guest(s)