English Buy Menu and Countdown Script

6 replies
Goto Page
To the start Previous 1 Next To the start
03.03.12 04:33:02 am
Up
Spook MQ Hacker
BANNED
Offline Off
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
03.03.12 05:55:49 am
Up
PyKemis
User
Offline Off
Something like this?

Code:
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()
22.03.12 02:01:35 pm
Up
Spook MQ Hacker
BANNED
Offline Off
yes the Countdown works but how about the Buy menu it is for CT and T only i want T only NAO!
edited 1×, last 28.03.12 12:41:36 am
28.03.12 04:49:32 pm
Up
BcY
User
Offline Off
please fix it!
Kgb2d Community - Since 2012
27.07.12 05:37:24 am
Up
knight-
User
Offline Off
Is it still useful?Lold
just correct it below
Code:
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
28.07.12 07:35:33 pm
Up
RedizGaming
GAME BANNED
Offline Off
@user knight-: @user Spook MQ Hacker:
Code:
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
Never use HACKS/CHEATS , see my status. I used hack 2 times , 1 year ago... i get game banned for be a stupid guy
28.07.12 07:41:44 pm
Up
Suprise
BANNED
Offline Off
wow you just copied what ketamire has written already
To the start Previous 1 Next To the start