I?ve being working in a script that allows me to activate/desactivate the rockets via rcon in game for spearhead (in BT the dm flags are efficient).
Well, it works, but it takes the weapon from the guy who chose the bazoka and I would like to give him some other weapon like a smg and don?t know in what part of the script have I to put it.
The script is inspired in the Snake server path and here it is:
Code: Select all
main:
//***********************************************
// Ejecuci?n de inicio
//***********************************************
// Pollo control de bazokas Off / On
if (getcvar (pcb) == "1")
{
level waittill spawn
level.pcb_run = 0
if (level.pcb_run != 1)
{
level.pcb_run = 1
thread fuerabazoka
}
}
end
fuerabazoka:
// Code delay for stability
if (int(getcvar (ssp_standscandelay)) < 1) {
setcvar "ssp_standscandelay" "1"
}
local.scandelay = getcvar (ssp_standscandelay)
wait local.scandelay
//Desactivar armas
if (getcvar (pcb_bazoka) == "0" && $player != NULL)
{
$player take weapons/bazooka.tik
$player take weapons/panzerschreck.tik
}
goto fuerabazoka
end
Please help.
