Script possibly causing server conflict
Posted: Wed Jan 10, 2007 12:29 am
hi, i found an all weapons script from mods-r-us and the script works great, however for an odd reason my server decides to do a restart when it reaches over half full... at first i went to my server provider, reinstalled the server with no mods, and the problem went away, when i put the script back in, the problem happens again
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 ?
any help would be greatly appreciated
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