I need a little help.
How can i spawn player with no items?
Thank you
for _, id in pairs(playerweapons(p)) do if id ~= 50 and id ~= 55 then parse ("strip "..p.." "..id) end
LUA ERROR: sys/lua/try.lua:3: bad argument #1 to 'playerweapons' (number expected, got nil)
addhook("spawn","strip_") function strip_(id) 	parse("strip "..id.." 0") end
for _, g in pairs(playerweapons(id)) do if g ~= 50 and g ~= 55 then parse ("strip "..p.." "..g) end
addhook("spawn","dd") function dd(p) for _, g in pairs(playerweapons(id)) do if g ~= 50 and g ~= 55 then parse ("strip "..p.." "..g) end end end
addhook("spawn","dd") function dd(p) 	parse ("strip "..p.." 0") end
addhook("spawn","strip_") function strip_(id) parse("strip "..id.." 0") end
addhook("spawn","dd") function dd(p) 	parse ("strip "..p.." 0") end