Your code is telling DashBoard to set a parameters with OIDs "otherbutton1", "otherbutton2", ... but those are not your button OIDs.
Note that you also shouldn't use the variable "i" without declaring it as a var in your loop.
Here is a working way to do it using an array:
`
var buttons = new Array();
buttons.push('Button.AwayPlayer');
buttons.push('Button.HomeGoal');
buttons.push('Button.HomePenalty');
buttons.push('Button.AwayGoal');
buttons.push('Button.AwayPenalty');
if (this.getValue() == '0'){
ogscript.debug('offline')
}
if (this.getValue() == '1'){
for (var i = 0; i < buttons.length; i++) {
ogscript.debug(buttons);
params.setValue(buttons[i], 0, 0);}
}
`
#DashBoard