21.08.2012, 21:42
pawn Код:
public OnPlayerConnect(playerid)
{
if (APlayerData[playerid][PlayerLevel] >= 5) //You must modify this line,change it to make it work with your admin system.
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
StopAudioStreamForPlayer(i);
PlayAudioStreamForPlayer(i, "Put here MP3 url link" );
}
}
}
return 1;
}
this will stop the music...and after start it...
and this is just a snippet...not an entire filterscirpt
sorry man but all can do this and more easy
suggestion:
use foreach( loop more faster)