Forum

> > CS2D > Scripts > please heellpp my little script
Forums overviewCS2D overview Scripts overviewLog in to reply

English please heellpp my little script

2 replies
To the start Previous 1 Next To the start

old please heellpp my little script

dxvrxv
User Off Offline

Quote
when i chose the human class and chose soldier i didn't get any weapons nor did the other classes

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
addhook("serveraction","_serveraction")
function _serveraction(id,act)
	if act == 1 then
	menu(id,"Zombie Elite, Zombie Class, Human Class")
	end
end

addhook("menu","_menu")
function _menu(id,title,but)

	if (title=="Zombie Elite") then
	if(but==1) then
	menu(id,"Zombie Class, Nemesis, Zombie")
	end

	if(but==2) then
	menu(id,"Human Class, Police, Soldier")
	end

	if (title=="Zombie Class") then
	if(but==1) then
	parse ("equip "..id.." 86")
	end

	if(but==2) then
	parse ("equip "..id.." 86")
	end

	if (title=="Human Class") then
	if(but==1) then
	parse ("equip "..id.." 32")
	end

	if(but==2) then
	parse ("equip "..id.." 33")
	end
end
end
end
end

old Re: please heellpp my little script

Cebra
User Off Offline

Quote
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
-- untested
addhook("serveraction","_serveraction")
function _serveraction(id,act)
	if act == 1 then
		menu(id,"Zombie Elite, Zombie Class, Human Class")
	end
end

addhook("menu","_menu")
function _menu(id,title,but)
	if (title=="Zombie Elite") then
		if (but==1) then
			menu(id,"Zombie Class, Nemesis, Zombie")
		elseif (but==2) then
			menu(id,"Human Class, Police, Soldier")
		end
	elseif (title=="Zombie Class") then
		if(but==1) then
			parse ("equip "..id.." 86")
		elseif(but==2) then
			parse ("equip "..id.." 86")
		end
	elseif (title=="Human Class") then
		if(but==1) then
			parse ("equip "..id.." 32")
		elseif(but==2) then
			parse ("equip "..id.." 33")
		end
	end
end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview