Cars audio
#6

Quote:
Originally Posted by HY
Посмотреть сообщение
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;
}
okay have checked id i thing this is id when u press h 2 times but if u press too times and then hold its gets different sound , another question how to stop playing sound if i use playerplaysound ?
and that id is not for sirens is just say "Police Car"
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)