now, this server in question is a stock server.
only maps dm123467 are playing, no mods in them at all
originally, i had put the weapons script after level waittillspawn
it worked great,
i have now tried execing the script seperately,
what i mean is i made a pk3 with all 6 maps in it, mainly for the scoreboard msg change. in each map i added
exec global/allweapons.scr
and in the pk3 file added the global folder with the script
once again it works great but is still restarting the server
so the question is there something wrong with this script?
or is it a server related problem??
here is the script in ?
Code: Select all
main:
while(your_learning)
{
for(local.i=1;local.i<=$player.size;local.i++)
{
if($player[local.i].done == NIL)
{
if($player[local.i].dmteam == axis)
{
$player[local.i] give models/weapons/kar98.tik
$player[local.i] give models/weapons/kar98sniper.tik
$player[local.i] give models/weapons/mp40.tik
$player[local.i] give models/weapons/mp44.tik
$player[local.i] give models/weapons/shotgun.tik
$player[local.i] give models/weapons/panzerschreck.tik
$player[local.i] thread do_death
}
else if($player[local.i].dmteam == allies)
{
$player[local.i] give models/weapons/springfield.tik
$player[local.i] give models/weapons/bar.tik
$player[local.i] give models/weapons/thompsonsmg.tik
$player[local.i] give models/weapons/m1_garand.tik
$player[local.i] give models/weapons/shotgun.tik
$player[local.i] give models/weapons/bazooka.tik
$player[local.i] thread do_death
}
}
}
wait 1
}
end
do_death:
local.ok = 1
while(local.ok)
{
if(self == NULL)
local.ok = 0
else
{
if!(isalive self || self.dmteam == spectator)
{
self.done = NIL
local.ok = 0
}
}
wait 1
}
end

