Forum

> > CS2D > Scripts > When player spawn, hes gets any weapon.
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch When player spawn, hes gets any weapon.

4 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt When player spawn, hes gets any weapon.

Yashko
User Off Offline

Zitieren
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.

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

loldlold123
User Off Offline

Zitieren
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
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antworten Scripts-ÜbersichtCS2D-ÜbersichtForenübersicht