SA-MP Forums Archive
Cars audio - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Cars audio (/showthread.php?tid=552815)



Cars audio - cyberlord - 26.12.2014

Hello i want to ask ware i can get horns audio for police and medic , i meen audio that plays when u press h and when u hold h


Re: Cars audio - Clarck - 26.12.2014

https://sampwiki.blast.hk/wiki/SoundID

https://sampwiki.blast.hk/wiki/PlayerPlaySound


Re: Cars audio - AlexSwezVotra - 26.12.2014

http://www.gtagarage.com/mods/index.php

If you're looking for a modification you've posted in the wrong section.


Re: Cars audio - cyberlord - 26.12.2014

no i am loking for saunds to play for specific cars not police ones when pressed or hold H key.
i have looked hare https://sampwiki.blast.hk/wiki/SoundID but all i can find is police radio


Re: Cars audio - HY - 26.12.2014

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;
}



Re: Cars audio - cyberlord - 26.12.2014

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"