1
2
3
4
5
2
3
4
5
addhook("spawn","_spawn")
function _spawn(id)
	timer(1,"parse","strip "..id.." 50")
	return "69"
end
Scripts
Stripping knife when spawn
Stripping knife when spawn
1

addhook("spawn","_spawn")
function _spawn(id)
	timer(1,"parse","strip "..id.." 50")
	return "69"
end
BcY: Because bugs. The return work perfectly though, so you can still equip on spawn, just not the normal way.
Yates: Should be fixed then.
BcY: The return is the fix.
BcY: It's like that because the spawn process itself already equips the player with stuff. So if you want to equip the player with different stuff during spawn you have to tell it the spawn process. This works by using the return value.
Masea: Not sure about the issue. Might be because the player has the knife in the hands on spawn or something.
setweapon id 69 before doing the strip. If that alone doesn't work you could try if a higher delay for the timer makes any difference. addhook("spawn","_spawn")
function _spawn(id)
	timer(1,"parse","setweapon "..id.." 69")
	timer(2,"parse","strip "..id.." 50")
	return "69"
end
weap_class = {"34, 51, 74", "20, 51, 74", "11, 51, 74"}
function _spawn (id)
--blablabla
parse ("strip "..id.." 50")
--bla bla bla
return weap_class[aos.sel[id]]
end
end
Gaios: That's a bad suggestion! Read the documentation and what I wrote above. Return is the better option. It also performs better and is more reliable.
DC: But what's the problem if this work in the same way?
1
