, i just wanted to ask if there's a way to auto equip GasMasks on spawn.Thanks for the help.
Admin/mod comment
Thread moved. /
GeoB99
Scripts
Auto equip on spawn
Auto equip on spawn
1

, i just wanted to ask if there's a way to auto equip GasMasks on spawn.
GeoB99
apex2d: addhook("spawn","spawn")
function spawn(id)
	parse("equip "..id.." 60")
end
Promaster: No. Stop. Bad boy. Read the documentation. Use the return instead to equip items on spawn.
spawn
apex2d: yes you are.addhook("spawn","Equip_")
function Equip_(id)
	return 60
end
apex2d: If you're suck at it, why you needed to post on this thread? Or are you also suck as can't even think you shouldn't have done this?
PersonNamedVictor: He's not talking to you. Notice how his message starts with @
apex2d
spawn hook.
Masea: I think DC or Simonas mentioned that
equip works for every item now in the current version or should work in the next version. addhook("spawn", "_spawn")
function _spawn(p)
	parse("spawnitem 56 "..player(p, "tilex").." "..player(p, "tiley"))
	local x, y = player(p, "tilex"), player(p, "tiley")
	parse("setpos "..p.." "..(player(p, "tilex") + 0.5) * 32 + 16 .." ".. (player(p, "tiley") + 0.5) * 32 + 16)
	parse("setpos "..p.." "..x * 32 + 16 .." ".. y * 32 + 16)
end
Talented Doge:
1
