Quote:
Originally Posted by irinel1996
It's easy bro.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[]) { //--- if(strcmp(cmdtext, "/playmusicforall", true) == 0) { for(new i = 0; i < MAX_PLAYERS; i++) { PlayAudioStreamForPlayer(i, "http://somafm.com/tags.pls"); //Example. } return 1; } if(strcmp(cmdtext, "/stopmusicforall", true) == 0) { for(new i = 0; i < MAX_PLAYERS; i++) { StopAudioStreamForPlayer(i); //Example. } return 1; } //--- return 0; }
|
I'm probably wrong dude but shouldn't it check If(IsPlayerConnected(i))