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
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
--------------------------------------
-- Show --
--------------------------------------
function show(id)
	Privileges(id)
	ServerName()
end
function mtime(id)
	advertisment()
end
--------------------------------------
-- Privileges --
--------------------------------------
function Privileges(id)
usgnid = player(id,"usgn")
privi = "Player"
	for _, u in ipairs(admins) do
	 if player(id,"usgn") == u then
		usgnid = player(id,"usgn")
		privi = "Administrators"
		color[id] = ©255000000
		end
	end
	for _, u in ipairs(moderators) do
	 if player(id,"usgn") == u then
		usgnid = player(id,"usgn")
		privi = "Moderators"
		color[id] = ©255000000
		end
	end
	for _, u in ipairs(members) do
	 if player(id,"usgn") == u then
		usgnid = player(id,"usgn")
		privi = "Members"
		color[id] = ©255000000
		end
	end
	for _, u in ipairs(vip) do
	 if player(id,"usgn") == u then
		usgnid = player(id,"usgn")
		privi = "V.i.p"
		color[id] = ©255000000
		end
	end
	parse('hudtxt2 '..id..' 10 "©000255000Your Usgn is: '..usgnid..'" 480 150')
	parse('hudtxt2 '..id..' 11 "©000255000Privilege: '..color[id]..''..privi..'" 480 165')
end
--------------------------------------
-- ServerName --
--------------------------------------
function ServerName()
	parse('hudtxt 12 "©255255255'..game("sv_name")..'" 255 20')
	parse('hudtxt 13 "©255255255'..site..'" 245 35')
end
--------------------------------------
-- Time --
--------------------------------------
function realtime(id)
msg2(id,os.date("©255255255Time: %I:%M %p"))
msg2(id,os.date("©255255255Date: %A, %d %b %Y"))
msg2(id,"©255255255(Dedicated Server Time)")
end
--------------------------------------
-- Ads --
--------------------------------------
function advertisment()
msg("©255100000This is "..game("sv_name").." Server")
msg("©255100000Powered By: PBS Inc.")
msg("©255100000"..site)
end
--------------------------------------
-- ServerAction --
--------------------------------------
function help_button(id,action)
	if action == 1 then
		for _, u in ipairs(admins) do
			if player(id, 'usgn') == u then
				AdminMenu(id)
			end
		end
		
		for _, u in ipairs(moderators) do
			if player(id, 'usgn') == u then
				ModeratorHelp(id)
			end
		end
		for _, u in ipairs(vip) do
			if player(id, 'usgn') == u then
				VIPHelp(id)
			end
		end
	end
end
--------------------------------------
-- AdminMenu --
--------------------------------------
function AdminMenu(id)
	menu(id,"Admin Menu,Server Settings,Bot Menu,Commands")
end
--------------------------------------
-- Menu --
--------------------------------------
function usermenu(id,title,button)
	if title=="Admin Menu" then
		if button==1 then
			menu(id,"Server Settings - Page 1/2,Autoteambalance,FriendlyFire,Fog Of War,Infammo,AntiSpeeder,DeathDrop,DropGrenades,Next,Back")
		elseif button==2 then
			menu(id,"Bot Menu,Add Bot T,Add Bot CT,Remove Bot T,Remove Bot CT,Remove All Bots,Kill All Bots,Back")
		elseif button==3 then
			menu(id,"Command Menu 1/2,!giveaway,!hplist,!speed,!allequip,!goto,!quake,!encage,Back,Next")
		end
	end
	if title=="Server Settings - Page 1/2" then
		if button==1 then
			menu(id,"AutoteamBalance,On,Off,Back")
		elseif button==2 then
			menu(id,"FriendlyFire,On,Off,Back")
		elseif button==3 then
			menu(id,"Fog Of War,On,Off,Back")
		elseif button==4 then
			menu(id,"Infammo,On,Off,Back")
		elseif button==5 then
			menu(id,"AntiSpeeder,On,Off,Back")
		elseif button==6 then
			menu(id,"Deathdrop,On,Off,Back")
		elseif button==7 then
			menu(id,"DropGrenades,On,Off,Back")
		elseif button==8 then
			menu(id,"Server Settings - Page 2/2,Killinfo,Rebuy Grenades,Flood Protection,Change Map,Game Mode,Kevlar Protect,Idle Action,Radar,Back")
		elseif button==9 then
			menu(id,"Admin Menu,Server Settings,Bot Menu,Commands")
		end
	end
	
	if title=="AutoteamBalance" then
		if button==1 then
			parse('mp_autoteambalance 1')
			msg("Autoteambalance Enabled!@C")
		elseif button==2 then
			parse('mp_autoteambalance 0')
			msg("Autoteambalance Disabled!@C")
		elseif button==3 then
			menu(id,"Server Settings - Page 1/2,Autoteambalance,FriendlyFire,Fog Of War,Infammo,AntiSpeeder,DeathDrop,DropGrenades,Next,Back")
		end
	end
	
	if title=="FriendlyFire" then
		if button==1 then
			parse('sv_friendlyfire 1')
		elseif button==2 then
			parse('sv_friendlyfire 0')
		elseif button==3 then
			menu(id,"Server Settings - Page 1/2,Autoteambalance,FriendlyFire,Fog Of War,Infammo,AntiSpeeder,DeathDrop,DropGrenades,Next,Back")
		end
	end
	
	if title=="Fog Of War" then
		if button==1 then
			parse('sv_fow 1')
		elseif button==2 then
			parse('sv_fow 0')
		elseif button==3 then
			menu(id,"Server Settings - Page 1/2,Autoteambalance,FriendlyFire,Fog Of War,Infammo,AntiSpeeder,DeathDrop,DropGrenades,Next,Back")
		end
	end
	
	if title=="Infammo" then
		if button==1 then
			parse('mp_infammo 1')
		elseif button==2 then
			parse('mp_infammo 0')
		elseif button==3 then
			menu(id,"Server Settings - Page 1/2,Autoteambalance,FriendlyFire,Fog Of War,Infammo,AntiSpeeder,DeathDrop,DropGrenades,Next,Back")
		end
	end
	if title=="AntiSpeeder" then
		if button==1 then
			parse('mp_antispeeder 1')
			msg("AntiSpeeder Enabled!@C")
		elseif button==2 then
			parse('mp_antispeeder 0')
			msg("AntiSpeeder Disabled!@C")
		elseif button==3 then
			menu(id,"Server Settings - Page 1/2,Autoteambalance,FriendlyFire,Fog Of War,Infammo,AntiSpeeder,DeathDrop,DropGrenades,Next,Back")
		end
	end
	if title=="Deathdrop" then
		if button==1 then
			parse('mp_deathdrop 0')
			msg("DeathDrop Enabled!@C")
		elseif button==2 then
			parse('mp_deathdrop 4')
			msg("DeathDrop Disabled!@C")
		elseif button==3 then
			menu(id,"Server Settings - Page 1/2,Autoteambalance,FriendlyFire,Fog Of War,Infammo,AntiSpeeder,DeathDrop,DropGrenades,Next,Back")
		end
	end
	
	if title=="DropGrenades" then
		if button==1 then
			parse('mp_dropgrenades 1')
			msg("DropGrenades Enabled!@C")
		elseif button==2 then
			parse('mp_dropgrenades 0')
			msg("DropGrenades Disabled!@C")
		elseif button==3 then
			menu(id,"Server Settings - Page 1/2,Autoteambalance,FriendlyFire,Fog Of War,Infammo,AntiSpeeder,DeathDrop,DropGrenades,Next,Back")
		end
	end
	if title=="Server Settings - Page 2/2" then
		if button==1 then
			menu(id,"Killinfo,On,Off,Back")
		elseif button==2 then
			menu(id,"Rebuy Grenades,On,Off,Back")
		elseif button==3 then
			menu(id,"Flood Protection,On,Off,Back")
		elseif button==4 then
			menu(id,"Change Map - Page 1/4,"..maps[1]..","..maps[2]..","..maps[3]..","..maps[4]..","..maps[5]..","..maps[6]..","..maps[7]..","..maps[8]..",Next")
		elseif button==5 then
			menu(id,"Change Game Mode,Standart,Team DeathMatch,DeathMatch,Construction,Zombie,Back")
		elseif button==6 then
			menu(id,"Kevlar Protect,0,0.1,0.2,0.4,0.5,0.6,0.8,1,Back")
		elseif button==7 then
			menu(id,"Idle Action,Kick,Make Spectator,Slap,Kill,Show Message,Back")
		elseif button==8 then
			menu(id,"Radar,On,Off,Back")
		elseif button==9 then
			menu(id,"Server Settings - Page 1/2,Autoteambalance,FriendlyFire,Fog Of War,Infammo,AntiSpeeder,DeathDrop,DropGrenades,Next,Back")
		end
	end
	if title=="Killinfo" then
		if button==1 then
			parse('mp_killinfo 1')
				msg("Killinfo Enabled!@C")
		elseif button==2 then
			parse('mp_killinfo 0')
			msg("Killinfo Disabled!@C")
		elseif button==3 then
			menu(id,"Server Settings - Page 2/2,Killinfo,Rebuy Grenades,Flood Protection,Change Map,Game Mode,Kevlar Protect,Idle Action,Radar,Back")
		end
	end
	if title=="Rebuy Grenades" then
		if button==1 then
			parse('mp_grenaderebuy 1')
			msg("Grenade Rebuy Enabled!@C")
		elseif button==2 then
			parse('mp_grenaderebuy 0')
			msg("Grenade Rebuy Disabled!@C")
		elseif button==3 then
			menu(id,"Server Settings - Page 2/2,Killinfo,Rebuy Grenades,Flood Protection,Change Map,Game Mode,Kevlar Protect,Idle Action,Radar,Back")
		end
	end
	
	if title=="Flood Protection" then
		if button==1 then
			parse('mp_floodprot 1')
			msg("Flood Protection Enabled!@C")
		elseif button==2 then
			parse('mp_floodprot 0')
			msg("Flood Protection Disabled!@C")
		elseif button==3 then
			menu(id,"Server Settings - Page 2/2,Killinfo,Rebuy Grenades,Flood Protection,Change Map,Game Mode,Kevlar Protect,Idle Action,Radar,Back")
		end
	end
	
	if title=="Change Map - Page 1/4" then
		if button==1 then
			parse('changemap '..maps[1])
		elseif button==2 then
			parse('changemap '..maps[2])
		elseif button==3 then
			parse('changemap '..maps[3])
		elseif button==4 then
			parse('changemap '..maps[4])
		elseif button==5 then
			parse('changemap '..maps[5])
		elseif button==6 then
			parse('changemap '..maps[6])
		elseif button==7 then
			parse('changemap '..maps[7])
		elseif button==8 then
			parse('changemap '..maps[8])
		elseif button==9 then
			menu(id,"Change Map - Page 2/4,"..maps[9]..","..maps[10]..","..maps[11]..","..maps[12]..","..maps[13]..","..maps[14]..","..maps[15]..",Back,Next")
		end
	end
	if title=="Change Map - Page 2/4" then
		if button==1 then
			parse('changemap '..maps[9])
		elseif button==2 then
			parse('changemap '..maps[10])
		elseif button==3 then
			parse('changemap '..maps[11])
		elseif button==4 then
			parse('changemap '..maps[12])
		elseif button==5 then
			parse('changemap '..maps[13])
		elseif button==6 then
			parse('changemap '..maps[14])
		elseif button==7 then
			parse('changemap '..maps[15])
		elseif button==8 then
			menu(id,"Change Map - Page 1/4,"..maps[1]..","..maps[2]..","..maps[3]..","..maps[4]..","..maps[5]..","..maps[6]..","..maps[7]..","..maps[8]..",Back")
		elseif button==9 then
			menu(id,"Change Map - Page 3/4,"..maps[16]..","..maps[17]..","..maps[18]..","..maps[19]..","..maps[20]..","..maps[21]..","..maps[22]..",Back,Next")
		end
	end
	
	if title=="Change Map - Page 3/4" then
		if button==1 then
			parse('changemap '..maps[16])
		elseif button==2 then
			parse('changemap '..maps[17])
		elseif button==3 then
			parse('changemap '..maps[18])
		elseif button==4 then
			parse('changemap '..maps[19])
		elseif button==5 then
			parse('changemap '..maps[20])
		elseif button==6 then
			parse('changemap '..maps[21])
		elseif button==7 then
			parse('changemap '..maps[22])
		elseif button==8 then
			menu(id,"Change Map - Page 2/4,"..maps[9]..","..maps[10]..","..maps[11]..","..maps[12]..","..maps[13]..","..maps[14]..","..maps[15]..",Back,Next")
		elseif button==9 then
			menu(id,"Change Map - Page 4/4,"..maps[23]..","..maps[24]..","..maps[25]..","..maps[26]..","..maps[27]..","..maps[28]..","..maps[29]..","..maps[30]..",Back")
		end
	end
	
	if title=="Change Map - Page 4/4" then
		if button==1 then
			parse('changemap '..maps[23])
		elseif button==2 then
			parse('changemap '..maps[24])
		elseif button==3 then
			parse('changemap '..maps[25])
		elseif button==4 then
			parse('changemap '..maps[26])
		elseif button==5 then
			parse('changemap '..maps[27])
		elseif button==6 then
			parse('changemap '..maps[28])
		elseif button==7 then
			parse('changemap '..maps[29])
		elseif button==8 then
			parse('changemap '..maps[30])
		elseif button==9 then
			menu(id,"Change Map - Page 3/4,"..maps[16]..","..maps[17]..","..maps[18]..","..maps[19]..","..maps[20]..","..maps[21]..","..maps[22]..",Back,Next")
		end
	end
	
	if title=="Change Game Mode" then
		if button==1 then
			parse('sv_gamemode 0')
		elseif button==2 then
			parse('sv_gamemode 1')
		elseif button==3 then
			parse('sv_gamemode 2')
		elseif button==4 then
			parse('sv_gamemode 3')
		elseif button==5 then
			parse('sv_gamemode 4')
		elseif button==6 then
			menu(id,"Server Settings - Page 2/2,Killinfo,Rebuy Grenades,Flood Protection,Change Map,Game Mode,Kevlar Protect,Idle Action,Radar,Back")
		end
	end
	if title=="Kevlar Protect" then
		if button==1 then
			parse('mp_kevlar 0')
			msg("Kevlar Protect Disabled!@C")
		elseif button==2 then
			parse('mp_kevlar 0.1')
			msg("Kevlar Protect Changed To 0.1!@C")
		elseif button==3 then
			parse('mp_kevlar 0.2')
			msg("Kevlar Protect Changed To 0.2!@C")
		elseif button==4 then
			parse('mp_kevlar 0.4')
			msg("Kevlar Protect Changed To 0.4!@C")
		elseif button==5 then
			parse('mp_kevlar 0.5')
			msg("Kevlar Protect Changed To 0.5!@C")
		elseif button==6 then
			parse('mp_kevlar 0.6')
			msg("Kevlar Protect Changed To 0.6!@C")
		elseif button==7 then
			parse('mp_kevlar 0.8')
			msg("Kevlar Protect Changed To 0.8!@C")
		elseif button==8 then
			parse('mp_kevlar 1')
			msg("Kevlar Protect Changed To 1!@C")
		elseif button==9 then
			menu(id,"Server Settings - Page 2/2,Killinfo,Rebuy Grenades,Flood Protection,Change Map,Game Mode,Kevlar Protect,Idle Action,Radar,Back")
		end
	end
	if title=="Idle Action" then
		if button==1 then
			parse('mp_idleaction 0')
			msg("Idle Action Changed To Kick!@C")
		elseif button==2 then
			parse('mp_idleaction 1')
			msg("Idle Action Changed To Make Spectator!@C")
		elseif button==3 then
			parse('mp_idleaction 2')
			msg("Idle Action Changed To Slap!@C")
		elseif button==4 then
			parse('mp_idleaction 3')
			msg("Idle Action Changed To Kill!@C")
		elseif button==5 then
			parse('mp_idleaction 4')
			msg("Idle Action Changed To Show Message!@C")
		elseif button==6 then
			menu(id,"Server Settings - Page 2/2,Killinfo,Rebuy Grenades,Flood Protection,Change Map,Game Mode,Kevlar Protect,Idle Action,Radar,Back")
		end
	end
	if title=="Radar" then
		if button==1 then
			parse('mp_radar 1')
		elseif button==2 then
			parse('mp_radar 0')
		elseif button==3 then
			menu(id,"Server Settings - Page 2/2,Killinfo,Rebuy Grenades,Flood Protection,Change Map,Game Mode,Kevlar Protect,Idle Action,Radar,Back")
		end
	end
	
	if title=="Bot Menu" then
		if button==1 then
			parse('bot_add_t')
			menu(id,"Bot Menu,Add Bot T,Add Bot CT,Remove Bot T,Remove Bot CT,Remove All Bots,Kill All Bots,Back")
		elseif button==2 then
			parse('bot_add_ct')
			menu(id,"Bot Menu,Add Bot T,Add Bot CT,Remove Bot T,Remove Bot CT,Remove All Bots,Kill All Bots,Back")
		elseif button==3 then
			parse('bot_remove_t')
			menu(id,"Bot Menu,Add Bot T,Add Bot CT,Remove Bot T,Remove Bot CT,Remove All Bots,Kill All Bots,Back")
		elseif button==4 then
			parse('bot_remove_ct')
			menu(id,"Bot Menu,Add Bot T,Add Bot CT,Remove Bot T,Remove Bot CT,Remove All Bots,Kill All Bots,Back")
		elseif button==5 then
			parse('bot_remove_all')
			menu(id,"Bot Menu,Add Bot T,Add Bot CT,Remove Bot T,Remove Bot CT,Remove All Bots,Kill All Bots,Back")
		elseif button==6 then
			parse('bot_kill')
			menu(id,"Bot Menu,Add Bot T,Add Bot CT,Remove Bot T,Remove Bot CT,Remove All Bots,Kill All Bots,Back")
		elseif button==7 then
			menu(id,"Admin Menu,Server Settings,Bot Menu,Commands")
		end
	end
	if title=="Command Menu 1/2" then
		if button==1 then
			msg2(id,"©255255051!giveaway [ITEM] [MSG] -- Gives free items to all players")
			menu(id,"Command Menu 1/2,!giveaway,!hplist,!speed,!allequip,!goto,!quake,!encage,Back,Next")
		elseif button==2 then
			msg2(id,"©255255051!hplist -- Gives you the Health List of the players AOTS")
			menu(id,"Command Menu 1/2,!giveaway,!hplist,!speed,!allequip,!goto,!quake,!encage,Back,Next")
		elseif button==3 then
			msg2(id,"©255255051!speed [Value] -- Gives You a Speed with Value-XX")
			menu(id,"Command Menu 1/2,!giveaway,!hplist,!speed,!allequip,!goto,!quake,!encage,Back,Next")
		elseif button==4 then
			msg2(id,"©255255051!allequip -- Equip all possible weapons to you")
			menu(id,"Command Menu 1/2,!giveaway,!hplist,!speed,!allequip,!goto,!quake,!encage,Back,Next")
		elseif button==5 then
			msg2(id,"©255255051!goto [ID] -- Bring yourself to Player[ID]")
			menu(id,"Command Menu 1/2,!giveaway,!hplist,!speed,!allequip,!goto,!quake,!encage,Back,Next")
		elseif button==6 then
			msg2(id,"©255255051!quake [LENGTH] -- Make an Haiti earthquake!")
			menu(id,"Command Menu 1/2,!giveaway,!hplist,!speed,!allequip,!goto,!quake,!encage,Back,Next")
		elseif button==7 then
			msg2(id,"©255255051!encage -- Kill all Players inside the cage")
			menu(id,"Command Menu 1/2,!giveaway,!hplist,!speed,!allequip,!goto,!quake,!encage,Back,Next")
		elseif button==8 then
			menu(id,"Admin Menu,Server Settings,Bot Menu,Commands")
		elseif button==9 then
			menu(id,"Command Menu 2/2,!bring,!explode,!armor,!equip,!slap,!kick,!ban,Back")
		end
	end
	
	if title=="Command Menu 2/2" then
		if button==1 then
			msg2(id,"©255255051!bring [ID] -- Bring Player[ID] to you")
			menu(id,"Command Menu 2/2,!bring,!explode,!armor,!equip,!slap,!kick,!ban,Back")
		elseif button==2 then
			msg2(id,"©255255051!explode [DMG] -- Spawn explosion")
			menu(id,"Command Menu 2/2,!bring,!explode,!armor,!equip,!slap,!kick,!ban,Back")
		elseif button==3 then
			msg2(id,"©255255051!armor -- Equip a Heavy Armor")
			menu(id,"Command Menu 2/2,!bring,!explode,!armor,!equip,!slap,!kick,!ban,Back")
		elseif button==4 then
			msg2(id,"©255255051!equip [ID] -- Equip a Weapon")
			menu(id,"Command Menu 2/2,!bring,!explode,!armor,!equip,!slap,!kick,!ban,Back")
		elseif button==5 then
			msg2(id,"©255255051!slap [ID] -- Slap a Player")
			menu(id,"Command Menu 2/2,!bring,!explode,!armor,!equip,!slap,!kick,!ban,Back")
		elseif button==6 then
			msg2(id,"©255255051!kick [ID] -- Kick a Player")
			menu(id,"Command Menu 2/2,!bring,!explode,!armor,!equip,!slap,!kick,!ban,Back")
		elseif button==7 then
			msg2(id,"©255255051!ban [ID] -- Ban a Player")
			menu(id,"Command Menu 2/2,!bring,!explode,!armor,!equip,!slap,!kick,!ban,Back")
		elseif button==8 then
			menu(id,"Command Menu 1/2,!giveaway,!hplist,!speed,!allequip,!goto,!quake,!encage,Back,Next")
		end
	end
end
--------------------------------------
-- CommandHook --
--------------------------------------
function command(id,txt)
	if txt:sub(0,1) == '!' then
		cmd=txt:sub(2)
		print('©255255255'..cmd..' executed by '..player(id,'name')..' IP: '..player(id,'ip'))
--------------------------------------
-- AdminCommands --
--------------------------------------
for _, u in ipairs(admins) do
if player(id, 'usgn') == u then
if cmd:sub(0,8) == 'teleport' then
teleport(id,cmd:sub(10,13),cmd:sub(15,18))
return 1
end
if cmd:sub(0,6) == 'encage' then
encage()
return 1
end
if cmd:sub(0,8) == 'giveaway' then
giveaway(cmd:sub(10,11),cmd:sub(13))
return 1
end
if cmd:sub(0,5) == 'speed' then
speed(id,cmd:sub(7))
return 1
end
if cmd:sub(0,5) == 'equip' then
equip(id,cmd:sub(7))
return 1
end
if cmd:sub(0,8) == 'allequip' then
allequip(id)
return 1
end
if cmd:sub(0,5) == 'armor' then
armor(id)
return 1
end
if cmd:sub(0,4) == 'slap' then
slap(cmd:sub(6))
return 1
end
if cmd:sub(0,3) == 'ban' then
ban(cmd:sub(5))
return 1
end
if cmd:sub(1,4) == 'kick' then
kick(cmd:sub(6))
return 1
end
if cmd:sub(0,6) == 'hplist' then
healthlist(id)
return 1
end
if cmd:sub(0,4) == 'goto' then
goto(id,cmd:sub(6))
return 1
end
if cmd:sub(0,5) == 'bring' then
bring(id,cmd:sub(7))
return 1
end
if cmd:sub(0,7) == 'explode' then
explode(id,cmd:sub(9))
return 1
end
if cmd:sub(0,5) == 'quake' then
quake(id,cmd:sub(7))
return 1
end
end
end
		
--------------------------------------
-- ModeratorCommands --
--------------------------------------
for _, u in ipairs(moderators) do
if player(id, 'usgn') == u then
if cmd:sub(0,8) == 'teleport' then
teleport(id,cmd:sub(10,13),cmd:sub(15,18))
return 1
end
if cmd:sub(0,5) == 'speed' then
speed(id,cmd:sub(7))
return 1
end
if cmd:sub(0,5) == 'equip' then
equip(id,cmd:sub(7))
return 1
end
if cmd:sub(1,4) == 'kick' then
kick(cmd:sub(6))
return 1
end
end
end
--------------------------------------
-- V.I.P Commands --
--------------------------------------
for _, u in ipairs(vip) do
if player(id, 'usgn') == u then
if cmd:sub(0,5) == 'equip' then
equip(id,cmd:sub(7))
return 1
end
end
end
--------------------------------------
-- Local Commands --
--------------------------------------		
		if cmd:sub(0,8) == 'time' then
			realtime(id)
return 1
end
	return 1
	end
end
--------------------------------------
-- Commands --
--------------------------------------
function ModeratorHelp(id)
	msg2(id,"©255255051!teleport [X] [Y] -- Teleports You To ..x.. ..y.. On The Map")
	msg2(id,"©255255051!speed [Value] -- Gives You a Speed with Value-XX")
	msg2(id,"©255255051!equip [ID] -- Equip a Weapon")
	msg2(id,"©255255051!kick [ID] -- Kick a Player")
end
function VIPHelp(id)
	msg2(id,"©255255051!equip [ID] -- Equip a Weapon")
end
function teleport(id,loc1,loc2)
	parse('setpos '..id..' '..loc1..' '..loc2)
end
function speed(id,speed)
	parse('speedmod '..id..' '..speed)
end
function equip(id,wepid)
	parse('equip '..id..' '..wepid)
end
	
function allequip(id)
	weapons = {1, 2, 3, 4, 5, 6, 10, 11, 20, 21, 22, 23, 24, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 45, 46, 47, 48, 49, 51, 52, 53, 54, 69, 72, 73, 74, 75, 76, 77, 78, 83, 85, 86, 87, 88}
	for _, wepid in ipairs(weapons) do		
		parse('equip '..id..' '..wepid)
	end
end
	
function armor(id)
	parse('equip '..id..' 81')
end
function slap(id)
	if player(id,"exists") then
	parse('slap '..id)
	end
end
	
function ban(id)
	if player(id,"exists") then
	parse('banip '..player(id,'ip')..' 10')
	end
end
function kick(id)
	if player(id,"exists") then
	parse('kick '..id)
	end
end
function bringme(id,target)
		if target then
			if player(target,'exists') then
				if target == id then
					msg2(id,'You may not teleport to yourself!')
				end
			parse('setpos '..id..' '..player(target,'x')..' '..player(target,'y'))
			return 1
		end
	end
end
function bring(id,target)
		if target then
			if player(target,'exists') then
				if target == id then
					msg2(id,'You may not teleport to yourself!')
				end
			parse('setpos '..target..' '..player(id,'x')..' '..player(id,'y'))
			return 1
		end
	end
end
function explode(id,dmg)
	if dmg then
		parse('explosion '..player(id,'x')..' '..player(id,'y')..' '..dmg..' '..dmg..' '..id)
		return 1
	end
end
function quake(id,length)
		if length then
			length = math.min(length*50,250)
			for _, id in ipairs(player(0,'table')) do
				parse('shake '..id..' '..length)
			end
		for i = 1, 6 do
			if math.random(0,1) == 1 then
				parse('sv_sound weapons/explode'..i..'.wav')
			end
		end
	end
end
function healthlist(id)
	for i=1,32 do
		if (player(i,"exists")) then
			hp=player(i,"health")
			if (hp>90) then
				msg2(id,"©000255000"..player(i,"name").." -> HP: "..hp)
			elseif (hp>60) then
				msg2(id,"©255255000"..player(i,"name").." -> HP: "..hp)
			elseif (hp>30) then
				msg2(id,"©255128000"..player(i,"name").." -> HP: "..hp)
			else
				msg2(id,"©255000000"..player(i,"name").." -> HP: "..hp)
			end
		end
	end
	return 2
end
function encage()
	parse("sv_msg ©255000000ENCAGING ALL PLAYERS!!!@C")
	a=player(0,"table")
	for i=1,#a do
		if (player(a[i],"team")>0) then
			if (player(a[i],"health")>0) then
				x=player(a[i],"tilex")
				y=player(a[i],"tiley")
				parse ("spawnobject 3 "..(x-1).." "..(y-1))
				parse ("spawnobject 3 "..(x).." "..(y-1))
				parse ("spawnobject 3 "..(x+1).." "..(y-1))
				parse ("spawnobject 8 "..(x-1).." "..(y))
				parse ("spawnobject 8 "..(x+1).." "..(y))
				parse ("spawnobject 3 "..(x-1).." "..(y+1))
				parse ("spawnobject 3 "..(x).." "..(y+1))
				parse ("spawnobject 3 "..(x+1).." "..(y+1))
			end
		end
	end
	return 2
end
	
function giveaway(item,msg)
	parse("sv_msg ©255000000FREE "..msg.." !!!@C")
	a=player(0,"table")
	for i=1,#a do
		if (player(a[i],"team")>0) then
			if (player(a[i],"health")>0) then
				x=player(a[i],"tilex")
				y=player(a[i],"tiley")
				parse ("spawnitem "..item.." "..(x-1).." "..(y))
			end
		end
	end
	return 2
end