Quite easy actually, however there's a couple of things.
Do you want music to play once someone connects, stops when someone spawns, but starts again if someone types /trance or /hardstyle etc..?
pawn Код:
new bool:Manual[MAX_PLAYERS];
Add a simple variable to the music commands then, like Manual[playerid] = true;
and at OnPlayerSpawn add
pawn Код:
if(Manual[playerid] == false) {
StopAudioStreamForPlayer(playerid);
}
don't forget to set the value to false at OnPlayerDisconnect and OnPlayerConnect,
Kind regards,
Mike Peterson