SA-MP Forums Archive
sound radio interior. - 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: sound radio interior. (/showthread.php?tid=627118)



sound radio interior. - SukMathcuck - 24.01.2017

Hello, I would like to know how I can put the sound of a radio of the game itself (GTA) in an interior that I created, because there is this sound in some interiors of the game, such as the Weapons Store, And etc... Who does not remember the song when buying clothes for the CJ?


Re: sound radio interior. - ThatFag - 24.01.2017

I think you can play a sound for player when he buys weapons or clothes

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

Код:
Use 
PlayerPlaySound - search on wiki samp
Srry cuz wroten with phone


Re: sound radio interior. - SukMathcuck - 24.01.2017

Not encontred.


Re: sound radio interior. - Yaa - 24.01.2017

PHP код:
public OnPlayerInteriorChange(playeridnewinterioridoldinteriorid)
{
    if(
newinteriorid == 4//check if he is in ammo nation 2 interior 
    
{
          
PlayStreamAudioForPlayer(playerid"link"); // just upload the song you want and put it on "link"
    
}
    return 
1;

Interior ids: http://weedarr.wikidot.com/interior

also you can replace new interior id by GetPlayerPos

EDIT:

it's not possible yet to got those songs

the song enabled atm: https://sampwiki.blast.hk/wiki/SoundID