Forum

> > CS2D > Scripts > i Wanna Fix my script
Forums overviewCS2D overview Scripts overviewLog in to reply

English i Wanna Fix my script

3 replies
To the start Previous 1 Next To the start

old i Wanna Fix my script

Cpt Price
BANNED Off Offline

Quote
hi again , i wanna fix that pls help me there are codes
i use it but dosent work :
Spoiler >
edited 1×, last 28.06.15 09:46:36 pm

old Re: i Wanna Fix my script

DC
Admin Off Offline

Quote
"It doesn't work" is no good information.

Please describe it this way:
• What do you expect/want to happen?
• What actually happens? Are there error messages in the console? If yes: show them!

old Re: i Wanna Fix my script

Joni And Friends
User Off Offline

Quote
Your code make me dizzy
Try this >

old Re: i Wanna Fix my script

Dousea
User Off Offline

Quote
I'm going to be nice here.
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
41
42
43
for _, hook in ipairs({"serveraction", "menu"}) do
	addhook(hook, hook .. "hook")
end

function serveractionhook(id, action)
	menu(id, "Player Menu,Weapons,Equip,Items,U.S.G.N.,Reset Score")
end

function menuhook(id, title, button)
	if (title == "Player Menu") then
		if (button == 1) then
			menu(id, "Weapons,USP,Glock,Five-SeveN,Deagle,XM1014,AK-47,M4A1,Machete,Chainsaw")
		elseif (button == 2) then
			menu(id, "Equip,Laser,Wrench")
		elseif (button == 3) then
			menu(id, "Items,Molotov,HE,Gut,Flashbang")
		elseif (button == 4) then
			msg2(id, "\169131053136U.S.G.N.: " .. player(id, "usgn"))
		elseif (button == 5) then
			parse("setscore " .. id .. " 0")
			parse("setdeaths " .. id .. " 0")
			msg2(id, "\169000128128Your score has been resetted!@C")
		end
	elseif (title == "Weapons") then
		local weapons = {1, 2, 6, 3, 11, 30, 32, 69, 85}
		
		if (button ~= 0) then
			parse("equip " .. id .. " " .. weapons[button])
		end
	elseif (title == "Equip") then
		local equip = {45, 74}
		
		if (button ~= 0) then
			parse("equip " .. id .. " " .. equip[button])
		end
	elseif (title == "Items") then
		local items = {73, 51, 86, 52}
		
		if (button ~= 0) then
			parse("equip " .. id .. " " .. equip[button])
		end
	end
end
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview