Posts: 646
Threads: 238
Joined: Jun 2014
Reputation:
0
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?
Posts: 383
Threads: 70
Joined: Feb 2016
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
Posts: 599
Threads: 48
Joined: May 2016
PHP код:
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
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