I am using es 1.5.0.171 and 0.417a for DOD:S and have the bug that when players with weapons given to them spectate the weapon flies around specced players. I tried to make a script to disarm the dead but it carries over when you spawn and knocks out the weapons granted to the living. Should I make a loop? Here is the code so far and it works except the side effect I listed. I am not going to update my es or est so I ned help from the versions I listed not "update to the newest es and est" thanks
block load
{
}
event player_spawn
{
es_xset myvar 0
es est_IsAlive myvar event_var(userid)
if(event_var(es_userteam) > 1) then if(server_var(myvar) == 0) then es es_xdelayed 1.5 est_removeweapon event_var(userid) 1;es es_xdelayed 1.9 est_removeweapon event_var(userid) 2
}






United States
Logged

Germany
