Forum

> > CS2D > Scripts > Need Menu in spawn
Forums overviewCS2D overview Scripts overviewLog in to reply

English Need Menu in spawn

2 replies
To the start Previous 1 Next To the start

old Need Menu in spawn

BakTi-
User Off Offline

Quote
hi guys..

i need help
to make menu in the spawn

because every time I make sure lua error
pls help me

i started like this
1
2
addhook("spawn","csdm_spawnmenu")
function csdm_spawnmenu(id,title,button)

the menu is

1
menu(id,"CSDM Primary Weapon - Page 1/2,AK,M4A1,AUG,SG552,GALIL,FAMAS,SCOUT")

old Re: Need Menu in spawn

EngiN33R
Moderator Off Offline

Quote
The spawn hook's only parameter is id.

1
2
3
4
addhook("spawn","csdm_spawnmenu")
function csdm_spawnmenu(id)
	menu(id,"CSDM Primary Weapon - Page 1/2,AK,M4A1,AUG,SG552,GALIL,FAMAS,SCOUT")
end

old Re: Need Menu in spawn

BakTi-
User Off Offline

Quote
No work..
LUE ERROR: attempt to call a nil value
edited 1×, last 27.06.11 06:25:56 pm
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview