Forum

> > CS2D > Scripts > Buy Menu and Countdown Script
Forums overviewCS2D overview Scripts overviewLog in to reply

English Buy Menu and Countdown Script

6 replies
To the start Previous 1 Next To the start

old Buy Menu and Countdown Script

Spook MQ Hacker
BANNED Off Offline

Quote
Hi Guys can you make me a Script named BUY MENU AND COUNTDOWN

here
More >


Please help me guys
And oh the CREDITS
belongs to YOU! please
help me

old Re: Buy Menu and Countdown Script

Apache uwu
User Off Offline

Quote
Something like this?

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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
addhook("serveraction","_serveraction")
addhook("menu","_menu")
addhook("startround","_startround")
addhook("endround","_endround")
addhook("second","_second")

parse("mp_autoteambalance 0")

function _serveraction(id,action)
	if action==1 then
		menu(id,"Buy Menu,Wrench|$10000,Macket|$16000")
	end
end

function _menu(id,title,button)
	if title=="Buy Menu" then
		if button==1 then
			if player(id,"money")>=10000 then
				parse("equip "..id.." 74")
				parse("setweapon "..id.." 74")
				parse("setmoney "..id.." "..player(id,"money")-10000)
				msg2(id,string.char(169).."000255500You have purchased the wrench.")
			else
				msg2(id,string.char(169).."255000000You do not have enough money to purchase the wrench.")
			end
		elseif button==2 then
			if player(id,"money")>=16000 then
				parse("equip "..id.." 69")
				parse("setweapon "..id.." 69")
				parse("setmoney "..id.." "..player(id,"money")-16000)
				msg2(id,string.char(169).."000255500You have purchased the macket.")
			else
				msg2(id,string.char(169).."255000000You do not have enough money to purchase the macket.")
			end
		end
	end
end

function _startround()
	count_down=10
end

function _second()
	if count_down~=nil then
		if count_down==-1 then
			t=player(0,"team2")[math.random(0,#player(0,"team2"))]
			msg(string.char(169).."255255255"..player(t,"name").." is the first ZOMBIE@C")
			parse("maket "..t)
			count_down=nil
		else
			msg(string.char(169).."255255255"..count_down.."@C")
			count_down=count_down-1
		end
	end
end

function _endround()
	for _,id in ipairs(player(0,"team1")) do
		parse("makect "..id)
	end
end

_startround()

old Re: Buy Menu and Countdown Script

knight-
User Off Offline

Quote
Is it still useful?Lold
just correct it below
1
2
3
4
5
6
7
function _serveraction(id,action)
     if action==1 then
          if player(id,"team")==2 then
          menu(id,"Buy Menu,Wrench|$10000,Machete|$16000")
          end
     end
end

old Re: Buy Menu and Countdown Script

RedizGaming
GAME BANNED Off Offline

Quote
@user knight-: @user Spook MQ Hacker:
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
addhook("serveraction","a")
function a(id,b)
	if b == 1 and player(id,"team")==1 then
		menu(id,"Buy Menu,machete,m4a1")
	elseif b == 2 and player(id,"team")==2 then
		menu(id,"Buy Menu Ct,machete,m4a1")
	end
end

addhook("startround","_startroun")
function _startround()
     count_down=10
end

addhook("second","_second")
function _second()
     if count_down~=nil then
          if count_down==-1 then
               t=player(0,"team2")[math.random(0,#player(0,"team2"))]
               msg(string.char(169).."255255255"..player(t,"name").." Is First Zombie Go No Die Ct!@C")
               parse("maket "..t)
               count_down=nil
          else
               msg(string.char(169).."255255255"..count_down.."@C")
               count_down=count_down-1
          end
     end
end

addhook("endround","_endround")
function _endround()
    if player(id,"team")==1 then
          parse("makect "..id)
     end
end

More Hooks = {menu}

√
flame
To the start Previous 1 Next To the start
Log in to reply Scripts overviewCS2D overviewForums overview