So for example...server boots with a variable "snipes" set to 0. With snipes set to zero regular weapons are available. I realize there is a way to set this globally, but I would like it to be available ONLY on certain maps. So for "snipes" == 1, only the sniper rifles would be enabled (I already know how to alter a map script so that certain weapons are given, in this case the sniper, and how to take any/all weapons away.) The key is I want to be able to change the variable in rcon, and then on the next map or after the current map is restarted, have it take effect right then.
in the cfg I have the default set as:
Code: Select all
set snipes "0"This is probably where my syntax is wrong
And then in each individual map script I have added:
Code: Select all
if (level.snipes == "1")
{
thread snipes_only //Removes all but snipers
}
This way, for the upcoming map if everyone wants snipes, rcon can alter the variable. And when they'd like to return to their regularly scheduled shooting...rcon can change the var back to 0.
Any suggestions? advice? corrections on syntax?