25.12.2015, 10:54
Hey,
I'm trying to play music in a interior of a base, its not really an interior because its selfmade ( so it has CreateObject ids)
This is the script":
It doesn't start at all when I enter the interior, but it doesn't show any errors.
I'm trying to play music in a interior of a base, its not really an interior because its selfmade ( so it has CreateObject ids)
This is the script":
PHP код:
public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
if(GetPlayerInterior(playerid) == baserino)
{
PlayAudioStreamForPlayer(playerid, "http://www.hot108.com/hot108.asx", 290.9362,1850.3567,994.2917,250.3646,0);
}
else
{
StopAudioStreamForPlayer(playerid);
}
return 1;
}