Add force radio stream and demo derby sound cmds

This commit is contained in:
Vortrex
2021-10-02 16:47:50 -05:00
parent f338baf841
commit 34af1369ec

View File

@@ -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);
}
// ===========================================================================