On Player Key State Change
#3

Not sure if this is what you were after?

pawn Код:
#define PRESSED(%0) \
    (((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(PRESSED( KEY_CTRL_BACK ))
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            SendClientMessage(playerid, 0xFFFFFFFF, "/service");
        }
    }
    return 1;
}
Reply


Messages In This Thread
On Player Key State Change - by Beljulji - 08.04.2013, 07:09
Re: On Player Key State Change - by Beljulji - 08.04.2013, 07:19
Re: On Player Key State Change - by Deal-or-die - 08.04.2013, 07:22
Re: On Player Key State Change - by Beljulji - 08.04.2013, 07:26
Re: On Player Key State Change - by Deal-or-die - 08.04.2013, 07:34
Re : On Player Key State Change - by dangerkiller - 23.11.2014, 21:24
Re: On Player Key State Change - by Abagail - 23.11.2014, 21:55

Forum Jump:


Users browsing this thread: 2 Guest(s)