Better no-reload script:
1
2
3
4
5
6
2
3
4
5
6
addhook("attack","no_reloads") function no_reloads(p,m) 	if (m == 1) then 		parse('equip '..p..' '..player(p,"weapontype")) 	end end
addhook("attack","no_reloads") function no_reloads(p,m) 	if (m == 1) then 		parse('equip '..p..' '..player(p,"weapontype")) 	end end
addhook("serveraction","sa") function sa(id,action) if (action== 1) and (player(id,"team")==2) then <your script for a class menu> end end
--[[Transforms CS2D's bizarre rotation angle into the standard radian-based system that everyone loves <3]] function standardrad(angle) 	if (angle<-90) then 		angle = (angle + 360) 	end 	return math.rad(math.abs( angle + 90 ))-math.pi end addhook("attack","walkwalls") function walkwalls(id) 	local rot = player(id,"rot") 	local angle = standardrad(rot) 	local x = player(id,"x") + math.cos(angle)*60 	local y = player(id,"y") + math.sin(angle)*60 	parse("setpos "..id.." "..x.." "..y) end