Forum
CS2D Scripts When player spawn, hes gets any weapon.When player spawn, hes gets any weapon.
4 replies 1
function hhspawn (id)
wpmenu(id)
end
function wpmenu(id)
menu(id,"Wp Menu,Laser,RPG")
end
addhook("menu","hhmenu")
function hhmenu(id,title,button)
if title=="Wp Menu" then
if button==1 then
parse("equip "..id.." 45")
elseif button==2 then
parse("equip "..id.." x")
end
end
end
(i dont know whats the rpg's id change x to rpg's id) and i dont test it
And, i need when player drop weapon, it destroy. Help
1
2
3
4
2
3
4
addhook("drop","destroy.drop") function destroy.drop() 	return 2 end
sys/lua/samples
There you have around 10 scripts DC has maden.
Don't make that script.
1