#1

hi .

how to add a Music in the game mode?

that: player joined the server >> play stream with url ..if player selected a character and spawned, the stream is going off

how to add??

sry for my bad english
Reply
#2

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

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

for when the player spawns.

Код:
public OnPlayerSpawn(playerid)
{
    StopAudioStreamForPlayer(playerid);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)