Forum

> > CS2D > Scripts > When player spawn, hes gets any weapon.
Forums overviewCS2D overview Scripts overviewLog in to reply

English When player spawn, hes gets any weapon.

4 replies
To the start Previous 1 Next To the start

old When player spawn, hes gets any weapon.

Yashko
User Off Offline

Quote
When a player spawn, show menu with two items - Laser and RPG Launcher. If you choose first - the player gets a laser, the second - an RPG launcher. Help me for writing this script.

old Re: When player spawn, hes gets any weapon.

loldlold123
User Off Offline

Quote
addhook("spawn","hhspawn")
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
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview