diff --git a/scripts/server/developer.js b/scripts/server/developer.js index 4fc7b72b..20c72031 100644 --- a/scripts/server/developer.js +++ b/scripts/server/developer.js @@ -483,4 +483,33 @@ function createAccountDataForNewServer(serverId) { } } +// =========================================================================== + +function streamAudioURLToAllPlayersCommand(command, params, client) { + if(areParamsEmpty(params)) { + messagePlayerSyntax(client, getCommandSyntaxText(command)); + return false; + } + + let splitParams = params.split(" "); + let url = splitParams[0]; + let volume = splitParams[1]; + + playRadioStreamForPlayer(null, url, false, volume); + //https://www.dropbox.com/s/xw4m0y0guyzrwkk/lets-get-ready-to-rumble.ogg?dl=0 +} + +// =========================================================================== + +function streamEventStartToAllPlayersCommand(command, params, client) { + if(areParamsEmpty(params)) { + messagePlayerSyntax(client, getCommandSyntaxText(command)); + return false; + } + + let volume = toInteger(params); + + playRadioStreamForPlayer(null, "https://dl.dropboxusercontent.com/s/xw4m0y0guyzrwkk/lets-get-ready-to-rumble.ogg", false, volume); +} + // =========================================================================== \ No newline at end of file