Cars audio
#5

pawn Код:
#define HOLDING(%0) \
    ((newkeys & (%0)) == (%0))

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if (HOLDING(KEY_CTRL_BACK))
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            new Float:X, Float:Y, Float:Z;
            GetPlayerPos(playerid, X, Y, Z);
            PlayerPlaySound(playerid, 3038, X, Y, Z);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Cars audio - by cyberlord - 26.12.2014, 18:16
Re: Cars audio - by Clarck - 26.12.2014, 18:26
Re: Cars audio - by AlexSwezVotra - 26.12.2014, 18:28
Re: Cars audio - by cyberlord - 26.12.2014, 18:35
Re: Cars audio - by HY - 26.12.2014, 18:47
Re: Cars audio - by cyberlord - 26.12.2014, 18:49

Forum Jump:


Users browsing this thread: 3 Guest(s)