Like this:
Code: Select all
private $roundsPoints = array('31', '27', '25', '23', '21', '19', '17', '15', '13', '11', '10', '9', '8', '7', '6', '5', '4', '3', '2', '1');
$this->connection->TriggerModeScriptEventArray('Rounds_SetPointsRepartition', $this->roundsPoints);
I've also made this small change to forceEndRound in chat_admin.php so it work in script mode
Code: Select all
function forceEndRound($fromLogin, $params)
{
$admin = $this->storage->getPlayerObject($fromLogin);
try {
if ($this->storage->gameInfos->gameMode == GameInfos::GAMEMODE_SCRIPT){
$this->connection->triggerModeScriptEvent('Rounds_ForceEndRound');
}else{
$this->connection->forceEndRound();
}
$this->exp_chatSendServerMessage('#admin_action#Admin#variable# %s #admin_action#forces the round to end.', null, array($admin->nickName));
} catch (Exception $e) {
$this->sendErrorChat($fromLogin, $e->getMessage());
}
}