URGENT Help Radio +1 REP
#1

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

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;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)