SA-MP Forums Archive
URGENT Help Radio +1 REP - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: URGENT Help Radio +1 REP (/showthread.php?tid=489811)



URGENT Help Radio +1 REP - Mriss - 24.01.2014

I need help for a Radio system NO DIALOGS PLEASE
the system will be when someone does /radioall [Stream URL] It plays for everyone in server
and when they do radiostopalll it will stop the stream for everyone...
If they do /radio on [Url](optional) and someone else do it they hear the same strem. Please URGENT


Re: URGENT Help Radio +1 REP - M3HR4N - 24.01.2014

pawn Код:
CMD:radioall(playerid,params[])
  {
    new string[128],pname[128], url[128];
    GetPlayerName(playerid, pname, sizeof(pname));
    if(sscanf(params,"s[128]",url)) return SendClientMessage(playerid,grey, "Syntax: /radioall [stream]");
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
      PlayAudioStreamForPlayer(i,url);
    }
    format(string, sizeof(string), "Administrator %s has started the radio for all.",pname);
    SendClientMessageToAll(lightblue,string);

  return 1;
}