
Spoiler 

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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
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
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
-- Arrays function initArray(m) local array = {} for i = 1, m do array[i]=0 end return array end function Array(size,value) local array = {} for i = 1, size do array[i] = value end return array end godmode = initArray(32) teleport = initArray(32) colour = initArray(32) mute = initArray(32) fastbuild = initArray(32) lvl = Array(32,0) -- Tables GM = {57648} Moderator = {} Member = {} VIP = {} <<Array/Tables ______________________________________________ function zp_say(p,t) 	t = string.lower(t) 	if (t == zp_say_cmd[1]) then 		zp_main_menu(p) 	elseif (t == zp_say_cmd[2]) then 		zp_class_menu_id[p] = 0 		zp_menu_class(p) 	elseif (t == zp_say_cmd[3]) then 		zp_wpn_menu_id[p] = 0 		zp_menu_weapon(p) 	elseif (t == zp_say_cmd[4]) then 		zp_item_menu_id[p] = 0 		zp_hm_items_menu(p) 	elseif (t == zp_say_cmd[5]) then 		zp_item_menu_id[p] = 0 		zp_zm_items_menu(p) 	elseif (t == zp_say_cmd[6]) then 		zp_respawn(p) 	elseif (t == zp_say_cmd[7]) then 		zp_buy_aps(p) 	elseif (t == zp_say_cmd[8]) then 		zp_say_menu(p) 	elseif (string.sub(t, 1, 7) == zp_say_cmd[9]) then 		zp_say_give(p,t) 	elseif (string.sub(t, 1, 10) == zp_say_cmd[10]) then 		zp_say_whatstats(p,t) if mute[id]==1 then ---WHAT I ADDED START OF MY COMMANDS!!!-- msg2(id,"©200000000[Server]: You are muted, you cannot talk") return 1 end if text=="!text" then if lvl[id]>=3 then if colour[id] then colour[id]=false msg2(id,"©200200200<Colour OFF>") elseif not colour[id] then colour[id]=true msg2(id,"©200200200<Colour ON>") end else msg2(id,"©255000000You're not allowed to use this command.") end return 1 end if text:sub(1,2)=="!g" then if lvl[id]>=3 then parse("setpos "..id.." "..player(tonumber(text:sub(4)),"x").." "..player(tonumber(text:sub(4)),"y")) return 1 else msg2(id,"©255000000You're not allowed to use this command.") return 1 end end if text:sub(1,2)=="!b" and text:sub(3,4)~="an" then -- Dirty fix. Works non the less. if lvl[id]>=3 then parse("setpos "..tonumber(text:sub(4)).." "..player(id,"x").." "..player(id,"y")) return 1 else msg2(id,"©255000000You're not allowed to use this command.") return 1 end end if text:sub(1,5)=="!kick" then if lvl[id]>=2 then msg("©200000000[Server]: '"..player(id,"name").."' kicked '"..player(tonumber(text:sub(7)),"name").."'") parse("kick "..tonumber(text:sub(7))) return 1 else msg2(id,"©255000000You're not allowed to use this command.") return 1 end end if text:sub(1,4)=="!ban" then if lvl[id]>=4 then msg("©200000000[Server]: '"..player(id,"name").."' banned '"..player(tonumber(text:sub(6)),"name").."'") parse("banip "..tonumber(text:sub(6))) return 1 else msg2(id,"©255000000You're not allowed to use this command.") return 1 end end if text:sub(1,8)=="!tempban" then if lvl[id]>=4 then msg("©200000000[Server]: '"..player(id,"name").."' temporarily banned '"..player(tonumber(text:sub(10)),"name").."' for a day.") parse("banip "..tonumber(text:sub(10)).." 1440") return 1 else msg2(id,"©255000000You're not allowed to use this command.") return 1 end end if text:sub(1,7)=="!freeze" then if lvl[id]>=3 then msg("©200000000[Server]: '"..player(id,"name").."' froze '"..player(tonumber(text:sub(9)),"name").."'") parse("speedmod "..tonumber(text:sub(9)).." -100") return 1 else msg2(id,"©255000000You're not allowed to use this command.") return 1 end end if text:sub(1,5)=="!mute" then if lvl[id]>=4 then msg("©200000000[Server]: '"..player(id,"name").."' muted '"..player(tonumber(text:sub(7)),"name").."'") mute[tonumber(text:sub(7))]=1 return 1 else msg2(id,"©255000000You're not allowed to use this command.") return 1 end end if text:sub(1,7)=="!unmute" then if lvl[id]>=3 then if mute[id]==1 then mute[id]=0 msg("©255000000[Server]: '"..player(id,"name").."' unmuted '"..player(tonumber(text:sub(9)),"name").."'") return 1 else msg2(id,"©255000000You're not allowed to use this command.") return 1 end end end if text=="!fastbuild" then if lvl[id]>=3 then if fastbuild[id]==1 then fastbuild[id]=0 msg2(id,"©200200200<Fastbuild OFF>") elseif fastbuild[id]==0 then fastbuild[id]=1 msg2(id,"©200200200<Fastbuild ON>") end else msg2(id,"©255000000You're not allowed to use this command.") end return 1 end if text=="!reloadlua" then if lvl[id]>=4 then parse("changemap "..game("sv_map")) return 1 else msg2(id,"©255000000You're not allowed to use this command.") return 1 end end if text=="!n" then if lvl[id]>=4 then msg2(id,'{'..player(id,'tilex')*32+16 ..', '..player(id,'tiley')*32+16 ..'}') return 1 end end if text=="!o" then if lvl[id]>=4 then msg2(id,'{'..player(id,'tilex')..', '..player(id,'tiley')..'}') return 1 end end if text=="!p" then if lvl[id]>=4 then msg2(id,'{'..player(id,'x')..', '..player(id,'y')..'}') return 1 end end if text=="!restart" then if lvl[id]>=3 then parse("restartround") return 1 else msg2(id,"©255000000You're not allowed to use this command.") return 1 end end if text=="!kill" then if lvl[id]>=3 then parse("killplayer") return 1 else msg2(id,"©255000000You're not allowed to use this command.") return 1			 end end if text=="!help" then if lvl[id]>=1 then menu(id,"Commands Page@b,Bring Player (min level: Mod)|!b [id],Teleport/Go to player (min level: Mod)|!g [id],Kick a player (min level: Supporter)|!kick [id],Ban a player (min level: Supporter)|!ban [id],Disable tag/chat color (min level: Supporter)|!text,Tempban a player (min level: Supporter)|!tempban [id],Freeze a player (min level: Admin)|!freeze [id],Prison a player (min level: Mod)|!prison [id],For more commands|!more") return 1 end end if text=="!more" then if lvl[id]>=2 then menu(id,"More Commands@b,Mute a player (min level: Mod)|!mute [id],Unmute a player (min level: Mod)|!unmute [id],Enable Fast Build (min level: Super Admin)|!fastbuild,Broad with name (min level: Member)|[text]@C,Restart round (min level: Mod)|!restart,Return npc position (min level: Scripter/Mapper)|!n,Return tile position (min level: Scripter/Mapper)|!o,Return position (min level: Scripter/Mapper)|!p,Kill a player (min level: Super Admin)|!kill [id]") return 1 end end if colour[id] then if lvl[id]==5 then if player(id,"usgn")==57648 then msg("©016128112SuperNatural: "..text) return 1 end end msg("©255127000"..player(id,"name").." [GM]: "..text) return 1 elseif lvl[id]==4 then msg("©160160160"..player(id,"name").." [Moderator]: "..text) return 1 elseif lvl[id]==3 then msg("©255255255"..player(id,"name").." [Member]: "..text) return 1 elseif lvl[id]==2 then msg("©000144049"..player(id,"name").." [VIP]: "..text) return 1 end elseif not colour[id] then return 0 end -- Do not add any commands under this, then the people which have colour text will NOT be able to use them! end <<<<SAY FUNCTION _______________________________________________ function zp_join(p) 	zp_join_set(p) for _, usgn in ipairs(GM) do --WHAT I ADDED!!!!!!!!!!!!-- <<<< if player(id,'usgn') == usgn then lvl[id]=5 end end for _, usgn in ipairs(Moderator) do if player(id,'usgn') == usgn then lvl[id]=4 end end for _, usgn in ipairs(Member) do if player(id,'usgn') == usgn then lvl[id]=3 end end for _, usgn in ipairs(VIP) do if player(id,'usgn') == usgn then lvl[id]=2 end end end <<<<<<ZP_Join function ____________________________________________ function zp_leave(p) 	zp_player_reset(p) 	if (zp_nemesis_id == p) then 		parse('sv_restart') lvl[id]=0 --WHAT I ADDED!!!!!!-- 	end end <<ZP_leave function
Thanks in advance!
edited 6×, last 25.06.13 05:29:31 pm