23.07.2018, 13:09
https://sampwiki.blast.hk/wiki/PlayAudioStreamForPlayer
Have it run on your onplayerconnect callback
Then use
https://sampwiki.blast.hk/wiki/StopAudioStreamForPlayer
for when the player spawns.
Have it run on your onplayerconnect callback
Код:
public OnPlayerConnect(playerid) { PlayAudioStreamForPlayer(playerid, "audiourl", 0, 0, 0, 50, 0); return 1; }
https://sampwiki.blast.hk/wiki/StopAudioStreamForPlayer
for when the player spawns.
Код:
public OnPlayerSpawn(playerid) { StopAudioStreamForPlayer(playerid); return 1; }