i just need a script that disables the knife in each respawn
because i am using the classes script and i dont want knife to be added in the classes' iteams
can someone help me ?
thanks in advance ...
Scripts
no knife in each respawn
no knife in each respawn
1

parse("strip "..id.." 50")
addhook("spawn","OnSpawn")
OnSpawn = function(id)
	timer(100, "parse", "strip "..id.." 50")
end
Patron14 has written
D-D3ADxPro has written
spawnplayer in the same moment they die.addhook("serveraction","stripall")
function stripall(id,a)
	if (a==1) then
		local x,y = player(id,"x"), player(id,"y")
		
		stripknife = function(ply)
			if (ply==id) then
				parse("spawnplayer "..id.." "..x.." "..y)
				freehook("die","stripknife")
				stripknife = nil
			end
		end
		addhook("die","stripknife")
		parse("killplayer "..id)
	end
end
spawnplayer directly after
killplayer doesn't work, whereas this does for some reason. I'd really like for stripping the knife and leaving the player with no weapons to be legal.
1
