mah script do not work again
2 replies



24.06.12 10:16:05 am
hey guys i have another little problem in mah script
here
here
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
--------------------------
--INITIAL SETUP--
--------------------------
function initArray(m)
local array = {}
for i = 1, m do
array[i]=0
end
return array
end
parse("sv_maxplayers 10")
money=initArray(32,0)
adminList = {xxxxx}
addhook("say","allsay")
function allsay(id,txt)
msg("©255255255"..player(id,"name").." (Player): "..txt)
return 1
end
addhook("say","adminsay")
function adminsay(id,txt)
for _, usgn in ipairs(adminList) do
if player(id,'usgn') == usgn then
msg("©255255255"..player(id,"name").." (ADMIN): "..txt)
return 1
end
end
end
addhook("kill","_kill")
function _kill(id)
money[id] = money[id] + 500
_hud(id)
end
function _hud(id)
parse('hudtxt2 '..id..' 6 "©255128000Money: '..money[id]..'" 10 195')
end
addhook("join","_join")
function _join(id)
_hudremove(id)
end
function _hudremove(id)
parse('hudtxt2 '..id..' 6 "" 10 195')
end
addhook("say","_say")
function _say(p,txt)
for _, usgn in ipairs(adminList) do
if player(id,'usgn') == usgn then
-- -- -- -- -- -- -- Kill
if (txt=="!kill 1") then
parse("killplayer 1")
end
if (txt=="!kill 2") then
parse("killplayer 2")
end
if (txt=="!kill 3") then
parse("killplayer 3")
end
if (txt=="!kill 4") then
parse("killplayer 4")
end
if (txt=="!kill 5") then
parse("killplayer 5")
end
if (txt=="!kill 6") then
parse("killplayer 6")
end
if (txt=="!kill 7") then
parse("killplayer 7")
end
if (txt=="!kill 8") then
parse("killplayer 8")
end
if (txt=="!kill 9") then
parse("killplayer 9")
end
if (txt=="!kill 10") then
parse("killplayer 10")
end
-- -- -- -- -- -- -- Kick
if (txt=="!kick 1") then
parse("kick 1 Kick By Admin")
end
if (txt=="!kick 2") then
parse("kick 2 Kick By Admin")
end
if (txt=="!kick 3") then
parse("kick 3 Kick By Admin")
end
if (txt=="!kick 4") then
parse("kick 4 Kick By Admin")
end
if (txt=="!kick 5") then
parse("kick 5 Kick By Admin")
end
if (txt=="!kick 6") then
parse("kick 6 Kick By Admin")
end
if (txt=="!kick 7") then
parse("kick 7 Kick By Admin")
end
if (txt=="!kick 8") then
parse("kick 8 Kick By Admin")
end
if (txt=="!kick 9") then
parse("kick 9 Kick By Admin")
end
if (txt=="!kick 10") then
parse("kick 10 Kick By Admin")
end
end
end
end
addhook("say","_say")
function _say(id,txt)
if (txt=="!menu") or (txt=="!Menu") then
menu(id,"Menu,»1«,»2«,»3«,»Poop«")
parse("sv_msg2 "..id.." ©000255000 "..id.." use !Menu")
return
end
end
addhook("menu","test_men")
function test_men(id,title,button)
if title=="Menu" then
if button==1 then
parse("maket "..id.."")
money[id] = money[id] - 16000
_hud(id)
else
parse("sv_msg2 "..id.."not enough Money.")
end
elseif button==2 then
parse("makect "..id.."")
money[id] = money[id] - 16000
_hud(id)
else
parse("sv_msg2 "..id.."not enough Money.")
end
elseif button==3 then
parse("makespec "..id.."")
money[id] = money[id] - 16000
_hud(id)
else
parse("sv_msg2 "..id.."not enough Money.")
elseif button==4 then
parse("sv_msg2 "..id.."script made by CirtarTheEpic.")
end
addhook("kill","no_money")
function no_money(id)
parse("setmoney "..id.." "..(player(id,"money")-16000))
end
--INITIAL SETUP--
--------------------------
function initArray(m)
local array = {}
for i = 1, m do
array[i]=0
end
return array
end
parse("sv_maxplayers 10")
money=initArray(32,0)
adminList = {xxxxx}
addhook("say","allsay")
function allsay(id,txt)
msg("©255255255"..player(id,"name").." (Player): "..txt)
return 1
end
addhook("say","adminsay")
function adminsay(id,txt)
for _, usgn in ipairs(adminList) do
if player(id,'usgn') == usgn then
msg("©255255255"..player(id,"name").." (ADMIN): "..txt)
return 1
end
end
end
addhook("kill","_kill")
function _kill(id)
money[id] = money[id] + 500
_hud(id)
end
function _hud(id)
parse('hudtxt2 '..id..' 6 "©255128000Money: '..money[id]..'" 10 195')
end
addhook("join","_join")
function _join(id)
_hudremove(id)
end
function _hudremove(id)
parse('hudtxt2 '..id..' 6 "" 10 195')
end
addhook("say","_say")
function _say(p,txt)
for _, usgn in ipairs(adminList) do
if player(id,'usgn') == usgn then
-- -- -- -- -- -- -- Kill
if (txt=="!kill 1") then
parse("killplayer 1")
end
if (txt=="!kill 2") then
parse("killplayer 2")
end
if (txt=="!kill 3") then
parse("killplayer 3")
end
if (txt=="!kill 4") then
parse("killplayer 4")
end
if (txt=="!kill 5") then
parse("killplayer 5")
end
if (txt=="!kill 6") then
parse("killplayer 6")
end
if (txt=="!kill 7") then
parse("killplayer 7")
end
if (txt=="!kill 8") then
parse("killplayer 8")
end
if (txt=="!kill 9") then
parse("killplayer 9")
end
if (txt=="!kill 10") then
parse("killplayer 10")
end
-- -- -- -- -- -- -- Kick
if (txt=="!kick 1") then
parse("kick 1 Kick By Admin")
end
if (txt=="!kick 2") then
parse("kick 2 Kick By Admin")
end
if (txt=="!kick 3") then
parse("kick 3 Kick By Admin")
end
if (txt=="!kick 4") then
parse("kick 4 Kick By Admin")
end
if (txt=="!kick 5") then
parse("kick 5 Kick By Admin")
end
if (txt=="!kick 6") then
parse("kick 6 Kick By Admin")
end
if (txt=="!kick 7") then
parse("kick 7 Kick By Admin")
end
if (txt=="!kick 8") then
parse("kick 8 Kick By Admin")
end
if (txt=="!kick 9") then
parse("kick 9 Kick By Admin")
end
if (txt=="!kick 10") then
parse("kick 10 Kick By Admin")
end
end
end
end
addhook("say","_say")
function _say(id,txt)
if (txt=="!menu") or (txt=="!Menu") then
menu(id,"Menu,»1«,»2«,»3«,»Poop«")
parse("sv_msg2 "..id.." ©000255000 "..id.." use !Menu")
return
end
end
addhook("menu","test_men")
function test_men(id,title,button)
if title=="Menu" then
if button==1 then
parse("maket "..id.."")
money[id] = money[id] - 16000
_hud(id)
else
parse("sv_msg2 "..id.."not enough Money.")
end
elseif button==2 then
parse("makect "..id.."")
money[id] = money[id] - 16000
_hud(id)
else
parse("sv_msg2 "..id.."not enough Money.")
end
elseif button==3 then
parse("makespec "..id.."")
money[id] = money[id] - 16000
_hud(id)
else
parse("sv_msg2 "..id.."not enough Money.")
elseif button==4 then
parse("sv_msg2 "..id.."script made by CirtarTheEpic.")
end
addhook("kill","no_money")
function no_money(id)
parse("setmoney "..id.." "..(player(id,"money")-16000))
end
Old Names: Private Zanzetzu
mah script do not work again
I lol'd. Go back to your first thread and post it there. Don't create two threads just to get someone's attention.
I lol'd. Go back to your first thread and post it there. Don't create two threads just to get someone's attention.
Another Day Another Shitload Of Shit



