05.04.2012, 17:11
pawn Код:
COMMAND:gplay(playerid,params[]){
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,COLOR_RED,"This command is only for admins!");
new URL[250];
if(sscanf(params,"s[250]",URL)) return SendClientMessage(playerid,COLOR_RED,"USAGE:/globalplay [URL]");
for(new i=0;i<MAX_PLAYERS;i++)
{
if(IsPlayerConnected(i)) continue;
PlayAudioStreamForPlayer(i,URL);
}
SendClientMessage(playerid,COLOR_RED,"You have played a song for all players!");
return 1;
}
-lsfmd