OnPlayerConnect Stram
#1

.....................
Reply
#2

Really no help :O?
Reply
#3

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
Reply
#4

.....................
Reply
#5

Show me your OnPlayerSpawn callback along with /hardstyle please.
Reply
#6

.....................
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)