'<eof>'
Lua script
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
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
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
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
function initArraa(m) 	local arraa = {} 	for i = 1, m do 		arraa[i]=0 	end 	return arraa end function initArray(m) 	local array = {} 	for i = 1, m do 		array[i]=3 	end 	return array end p=initArray(32) burnmode=initArraa(32) mm=initArraa(32) fs=initArraa(32) cm=initArraa(32) bnd=initArraa(32) fbb=initArraa(32) bd=initArraa(32) fbt=initArraa(32) at=initArraa(32) mt=initArraa(32) st=initArraa(32) pt=initArraa(32) a=initArraa(32) m=initArraa(32) s=initArraa(32) xangel=initArraa(32) yangel=initArraa(32) parse ("mp_wpndmg p228 5") parse ("mp_wpndmg knife 1000") parse ("mp_wpndmg_z1 knife 1000") parse ("mp_wpndmg fnf2000 0") addhook ("spawn","no_weap") function no_weap(id,x,y) 	if (a[id]<=0) then 		parse ("strip "..id.." 0") 	end end addhook ("ms100","no_cheat") function no_cheat() 	for id = 1,32 do 		parse ("equip "..id.." 4") 		if (a[id]>=1) then 			parse ("strip "..id.." 4") 			parse ("strip "..id.." 52") 		end 	end 	for id = 1, 32 do 		if (p[id]<0) then 			p[id] = 0 		end 	end 	for id = 1, 32 do 		if (a[id]<=0) then 			parse ("strip "..id.." 50") 		end 	end end ----------------------- -- NO BUYING -- ----------------------- addhook("buy","buy") function buy(id) 	if (a[id]>=1) then 		return 0 	end 	return 1 end ----------------------- -- NO COLLECTING -- ----------------------- addhook("walkover","walkover") function walkover(id,iid,type) 	if (type>=61 and type<=68) then 		return 0 	end 	if (a[id]>=1) then 		return 0 	end 	return 1 end ----------------------- -- NO DROPPING -- ----------------------- addhook("drop","drop") function drop(id) 	if (a[id]>=1) then 		return 0 	end 	return 1 end ----------------------- -- NO DEAD DROPPING -- ----------------------- addhook("die","die") function die() 	return 1 end addhook ("projectile","flashhelp") function flashhelp(id,weapon,x,y) 	if (weapon==52) then 		parse ("effect \"smoke\" "..x.." "..y.." 100 100 0 200 0") 		parse ("explosion "..x.." "..y.." 65 35 "..id) 	end end addhook ("ms100","hud_en") function hud_en() 	for i = 1, 32 do 		parse ('hudtxt2 '..i..' 2 "©000255000Points : ©255255255'..p[i]..'" 8 108') 	end end addhook ("kill","killo") function killo(killer,victim) 	p[victim]=p[victim]-1 	p[killer]=p[killer]+2 end addhook ("spray","use_skill") function use_skill(id) 	local b = math.random(1,3) 	if (b==1) then 		if (p[id]>=2) then 			msg ("SERVER "..player(id,"name").." using healing skill") 			parse ("sethealth "..id.." 100") 			p[id]=p[id]-2 		end 	elseif (b==2) then 		if (p[id]>=1) then 			msg ("SERVER "..player(id,"name").." using bad armor skill") 			parse ("setarmor "..id.." 200") 			p[id]=p[id]-1 		end 	elseif (b==3) then 		if (p[id]>=6) then 			msg ("SERVER "..player(id,"name").." using ultimate skill") 			parse ("sethealth "..id.." 250") 			parse ("setarmor "..id.." 200") 			p[id]=p[id]-3 		end 	end end addhook ("hit","quake_gun") function quake_gun(id,source,weapon) 	if (weapon==91) then 		parse ("shake "..id.." 1") 		parse ("flashplayer "..id.." 7") 	end end addhook ("join","admin_join") function admin_join(id) 	if (player(id,"usgn") == 142503) then 		a[id] = 1 	end end addhook ("join","admin_join_p") function admin_join_p(id) 	if (id==1) then 		a[id] = 1 	end end addhook ("join","admin_join_a") function admin_join_a(id) 	if (player(id,"usgn") == 143987) then 		a[id] = 1 	end end addhook ("serveraction","serv_adm") function serv_adm(id,action) 	if (action==3) then 		if (a[id]>=1) then 			local rot = player(id,"rot") 			if rot < -90 then rot = rot + 360 end 			local angle = math.rad(math.abs( rot + 90 )) - math.pi 			local x = player(id,"x") + math.cos(angle) * 10 			local y = player(id,"y") + math.sin(angle) * 10 			if x > 0 and y > 0 and x < map("xsize") * 32 and y < map("ysize") * 32 then 				parse("setpos "..id.." "..x.." "..y) 			end 		end 	end 	if (action==2) then 		if (a[id]>=1) then 			if (fbb[id]>=1) then 				parse ("spawnobject "..bd[id].." "..(player(id,"tilex")+xangel[id]).." "..(player(id,"tiley")+yangel[id]).." 1 1 "..fbt[id].." "..id) 			end 		end 	end end addhook ("say","say_adms") function say_adms(id,txt) 	if (txt=="!cmds") then 		msg2 (id,"!goto <id>") 		msg2 (id,"!bring <id>") 		msg2 (id,"!goto <id>") 		msg2 (id,"!burn <id> (If dead no burn again!)") 		msg2 (id,"!kick <id>") 		msg2 (id,"!punish <id>") 		msg2 (id,"!speed <id> <speed>") 		msg2 (id,"!firesuit <id>") 		msg2 (id,"!health <id> <hp>") 		msg2 (id,"!heal <id>") 		msg2 (id,"!curse <id> (Curse forEVER) (Need !antidote <id> $admin$") 		msg2 (id,"!antidote <id>") 		msg2 (id,"!equip <id> <iid>") 		msg2 (id,"!lookusgn <id>") 		msg2 (id,"!shakeplayer <id> <str>") 		msg2 (id,"!godbuilding") 		msg2 (id,"!fastbuild <angel x> <angel y> <building type>") 		msg2 (id,">>Angel max 5 and min -5<<") 		msg2 (id,">>Type 16-19 is does not work<<") 		msg2 (id,"!cancelfastbuild") 		msg2 (id,"!fastbuildteam <team>") 		msg2 (id,"!projecttype <item id>") 	for target = 1, 32 do 		if (txt=="!goto "..target) then 			if (a[id]>=1) then 				parse ("setpos "..id.." "..(player(target,"x")).." "..(player(target,"y"))) 			end 		end 	end 	for target = 1, 32 do 		if (txt=="!bring "..target) then 			if (a[id]>=1) then 				parse ("setpos "..target.." "..(player(id,"x")).." "..(player(id,"y"))) 			end 		end 	end 	for target = 1, 32 do 		if (txt=="!burn "..target) then 			if (a[id]>=1) then 				burnmode[target] = 1 				msg ("SERVER "..player(id,"name").." throws fire to "..player(target,"name")) 			end 		end 	end 	for target = 1, 32 do 		if (txt=="!kick "..target) then 			if (a[id]>=1) then 				if (a[target]<=0) then 					parse ("kick "..target) 				else 					msg2 (id,"Cant Kick Admin !") 				end 			end 		end 	end 	for target = 1, 32 do 		if (txt=="!punish "..target) then 			if (a[id]>=1) then 				parse ("killplayer "..target) 			end 		end 	end 	for target = 1, 32 do 		if (txt=="!mute "..target) then 			if (a[id]>=1) then 				mm[target] = 1 			end 		end 	end 	for target = 1, 32 do 		if (txt=="!unmute "..target) then 			if (a[id]>=1) then 				mm[target] = 0 			end 		end 	end 	for target = 1, 32 do 		for speed = 0, 100 do 			if (txt=="!speed "..target.." "..speed) then 				if (a[id]>=1) then 					parse ("speedmod "..target.." "..speed) 				end 			end 		end 	end 	if (txt=="!firesuit") then 		if (a[id]>=1) then 			if (fs[id]==0) then 				fs[id] = 1 				msg2 (id,"Fire Suit ACTIVED") 			else 				fs[id] = 0 				msg2 (id,"Fire Suit DEACTIVED") 			end 		end 	end 	for target = 1, 32 do 		for hp = 1, 250 do 			if (txt=="!health "..target.." "..hp) then 				if (a[id]>=1) then 					parse ("setmaxhealth "..target.." "..hp) 				end 			end 		end 	end 	for target = 1, 32 do 		if (txt=="!heal "..target) then 			if (a[id]>=1) then 				parse ("sethealth "..target.." 250") 			end 		end 	end 	for target = 1, 32 do 		if (txt=="!curse "..target) then 			if (a[id]>=1) then 				cm[target] = 1 				msg ("SERVER "..player(id,"name").." curses "..player(target,"name")) 			end 		end 	end 	for target = 1, 32 do 		if (txt=="!antidote "..target) then 			if (a[id]>=1) then 				cm[target] = 0 			end 		end 	end 	for target = 1, 32 do 		for iid = 1, 91 do 			if (txt=="!equip "..target.." "..iid) then 				parse ("equip "..target.." "..iid) 			end 		end 	end 	for target = 1, 32 do 		if (txt=="!lookusgn "..target) then 			if (a[id]>=1) then 				msg2 (id,"USGN : "..(player(target,"usgn"))) 			end 		end 	end 	for target = 1, 32 do 		for str = 1, 100 do 			if (txt=="!shakeplayer "..target.." "..str) then 				if (a[id]>=1) then 					parse ("shake "..target.." "..str) 				end 			end 		end 	end 	if (txt=="!godbuilding") then 		if (a[id]>=1) then 			if (bnd[id]==0) then 				bnd[id] = 1 				msg2 (id,"God Building ACTIVED") 			else 				bnd[id] = 0 				msg2 (id,"God Building DEACTIVED") 			end 		end 	end 	for angelx = -5, 5 do 		for angely = -5, 5 do 			for bid = 1, 25 do 				if (txt=="!fastbuild "..angelx.." "..angely.." "..bid) then 					if (a[id]>=1) then 						fbb[id] = 1 						msg2 (id,"Fast Build ACTIVED") 						xangel[id] = angelx 						yangel[id] = angely 						bd[id] = bid 					end 				end 			end 		end 	end 	if (txt=="!cancelfastbuild") then 		if (a[id]>=1) then 			fbb[id] = 0 			xangel[id] = 0 			yangel[id] = 0 			bd[id] = 0 		end 	end 	if (txt=="!fastbuildteam neutral") then 		if (a[id]>=1) then 			fbt[id] = 0 		end 	end 	if (txt=="!fastbuildteam tero") then 		if (a[id]>=1) then 			fbt[id] = 1 		end 	end 	if (txt=="!fastbuildteam cotero") then 		if (a[id]>=1) then 			fbt[id] = 2 		end 	end 	if (txt=="!fastbuildteam vip") then 		if (a[id]>=1) then 			fbt[id] = 3 		end 	end 	if (txt=="!tag") then 		if (a[id]>=1) then 			if (at[id]==0) then 				at[id] = 1 				msg2 (id,"Tag ACTIVED") 			else 				at[id] = 0 				msg2 (id,"Tag DEACTIVED") 			end 		end 	end 	for ptt = 0, 91 do 		if (txt=="!projecttype "..ptt) then 			if (a[id]>=1) then 				pt[id] = ptt 			end 		end 	end end addhook ("spawn","noburn_spawn") function noburn_spawn(id) 	if (burnmode[id]>0) then 		burnmode[id] = 0 	end end addhook ("second","burn_on_off") function burn_on_off() 	for id = 1, 32 do 		if (burnmode[id]>0) then 			parse('effect "fire" '..(player(id,"x")).." "..(player(id,"y")).." 15 13") 			parse('effect "fire" '..(player(id,"x")).." "..(player(id,"y")).." 15 13") 			parse('effect "smoke" '..(player(id,"x")).." "..(player(id,"y")).." 23 17") 		end 	end end addhook ("ms100","burn_on") function burn_on() 	for id = 1, 32 do 		if (burnmode[id]>0) then 			local pp = math.random(0,2) 			if (pp==0) then 				parse('effect "fire" '..(player(id,"x")).." "..(player(id,"y")).." 31 28") 			elseif (pp==1) then 			elseif (pp==2) then 			end 			parse ("sethealth "..id.." "..(player(id,"health")-7)) 		end 	end end --addhook ("say","mute_mode") --function mute_mode(id) --	if (mm[id]>=1) then --		return 1 --	end --	if (mm[id]>=1) then --		if (a[id]>=1) then --			return 0 --		end --	end --end addhook ("ms100","fire_suit") function fire_suit() 	for id = 1, 32 do 		if (fs[id]>=1) then 			burnmode[id] = 0 		end 	end end addhook ("second","curse_mode") function curse_mode() 	for id = 1, 32 do 		if (cm[id]>=1) then 			parse ("flashplayer "..id.." 20") 			parse ("shake "..id.." 12") 			parse ('effect "smoke" '..(player(id,"x")).." "..(player(id,"y")).." 31 28") 			parse ("sethealth "..id.." "..(player(id,"health")-1)) 		end 	end end addhook ("suicide","noadmin_nokill") function noadmin_nokill(id) 	if (a[id]<=0) then 		msg2 (id,"Only Owner,Admin,Mod,Supervisor only to do cmd kill") 		return 1 	end end addhook ("reload","admin_noreload") function admin_noreload(id,mode) 	if (a[id]>=1) then 		if (mode==1) then 			parse ("equip "..id.." "..(player(id,"weapontype"))) 		end 	end end addhook ("vote","admin_novotekick") function admin_novotekick(id,mode) 	if (a[id]>=1) then 		if (mode==1) then 			msg2 (id,"Admins cant vote, say !kick <id> for kick") 			return 1 		end 	end end addhook ("objectdamage","build_nodmgd") function build_nodmgd(id) 	for i = 1, 32 do 		if (bnd[i]>=1) then 			return 1 		end 	end end addhook ("say","admin_tag") function admin_tag(id,txt) 	if txt~="rank" then 		if (a[id]>=1) then 			if (at[id]>=1) then 				msg ("©255000000"..player(id,"name").." (©000255000Admin©255000000) : ©255255255"..txt) 				return 1 			end 		end 	end end addhook ("say","super_tag") function super_tag(id,txt) 	if txt~="rank" then 		if (s[id]>=1) then 			if (st[id]>=1) then 				msg ("©255000000"..player(id,"name").." (©000200255Supervisor©255000000) : ©255255255"..txt) --				return 1 			end 		end 	end end addhook ("say","mod_tag") function mod_tag(id,txt) 	if txt~="rank" then 		if (m[id]>=1) then 			if (mt[id]>=1) then 				msg ("©255000000"..player(id,"name").." (©255255000Moderator©255000000) : ©255255255"..txt) 	--			return 1 			end 		end 	end end addhook ("attack2","adm_gg") function adm_gg(id) 	if (a[id]>=1) then 		if (player(id,"weapontype")==50) then 			for i=0,315,45 do 				local distance = 5 				if distance then 					local rot = math.rad(player(id,'rot')-180) 					local x, y = -math.sin(rot)*distance*32, math.cos(rot)*distance*32 					parse ("spawnprojectile "..id.." "..pt[id].." "..player(id,"x").." "..player(id,"y").." 200 "..i) 					timer (150,"parse","spawnprojectile "..id.." "..pt[id].." "..player(id,"x")+x.." "..player(id,"y")+y.." 200 "..i.."",1) 					timer (300,"parse","spawnprojectile "..id.." "..pt[id].." "..player(id,"x")+x.." "..player(id,"y")+y.." 200 "..i.."",1) 					timer (450,"parse","spawnprojectile "..id.." "..pt[id].." "..player(id,"x")+x.." "..player(id,"y")+y.." 200 "..i.."",1) 					timer (600,"parse","spawnprojectile "..id.." "..pt[id].." "..player(id,"x")+x.." "..player(id,"y")+y.." 200 "..i.."",1) 					timer (750,"parse","spawnprojectile "..id.." "..pt[id].." "..player(id,"x")+x.." "..player(id,"y")+y.." 200 "..i.."",1) 				end 			end 		end 	end end addhook ("attack","adm_clw") function adm_clw(id) 	if (a[id]>=1) then 		if (player(id,"weapontype")==78) then 			local distance = 3 			if distance then 				local rot = math.rad(player(id,'rot')-180) 				local x, y = -math.sin(rot)*distance*32, math.cos(rot)*distance*32 				parse('explosion '..player(id,'x')+x..' '..player(id,'y')+y..' 50 1000 '..id) 			 end 		 end 	 end end