Forum

> > CS2D > Scripts > i Wanna Fix my script
ForenübersichtCS2D-Übersicht Scripts-ÜbersichtEinloggen, um zu antworten

Englisch i Wanna Fix my script

3 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt i Wanna Fix my script

Cpt Price
BANNED Off Offline

Zitieren
hi again , i wanna fix that pls help me there are codes
i use it but dosent work :
Spoiler >
1× editiert, zuletzt 28.06.15 21:46:36

alt Re: i Wanna Fix my script

DC
Admin Off Offline

Zitieren
"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!

alt Re: i Wanna Fix my script

Joni And Friends
User Off Offline

Zitieren
Your code make me dizzy
Try this >

alt Re: i Wanna Fix my script

Dousea
User Off Offline

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