![us](img/ulogosmall.gif)
And i want to the server info be saved too ..
So , any one help me ?
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
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
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
print('©255255000Hooks and Functions Initialising...') function initArray(m) local array = {} for i = 1, m do array[i]=0 end return array end color_admin=initArray(32) admincolor=initArray(32) admin_color_name=initArray(32) project_admin=initArray(32) adminproject=initArray(32) admin_project_name=initArray(32) admin_color_name[0]="White" admin_color_name[1]="Green" admin_color_name[2]="Brown" admin_color_name[3]="Purple" admin_color_name[4]="Blue" admin_color_name[5]="Red" admin_color_name[6]="Cyan" admin_color_name[7]="Lime" admincolor[0]="©255255255" ---- White admincolor[1]="©000555000" ---- Green admincolor[2]="©15075 0" ---- Brown admincolor[3]="©155000255" ---- Purple admincolor[4]="©30 144255" ---- Blue admincolor[5]="©255000000" ---- Red admincolor[6]="©000255255" ---- Cyan admincolor[7]="©000255111" ---- Lime admin_project_name[0]="Stachle" admin_project_name[1]="HE" admin_project_name[2]="RPG shot" admin_project_name[3]="Molotov" admin_project_name[4]="Gas grenade" adminproject[0]="89" ---- Stachle adminproject[1]="51" ---- HE adminproject[2]="47" ---- RPG shot adminproject[3]="73" ---- Molotov adminproject[4]="72" ---- Gas grenade Admins = {120840,107398,105111,62543} -- Every ID is Admin Mods = {133152} -- Every ID is Mod godMode= {} tagMode= {} fastMode= {} -- Admin join -- addhook("join","adminiuserjoin") function adminiuserjoin(id) godMode[id]=0 fastMode[id]=0 for _, usgn in ipairs(Admins) do if player(id,"usgn") == usgn then color_admin[id]=0 project_admin[id]=0 grabstate[id]=0 tagMode[id]=0 end end msg2(id,"©30 144255 Welcome on "..game("sv_name").." Server, "..player(id,"name").."!") end addhook("minute","_minute") function _minute() 	msg("This server is powered by") 	msg("[PK]Admin script V2") end -- Admin Say -- addhook("say","adminsay") function adminsay(id,txt) for _, usgn in ipairs(Admins) do if player(id,'usgn') == usgn and tagMode[id]==1 then msg(""..admincolor[color_admin[id]]..""..player(id,"name").." [Adm]: "..txt) return 1 else for _, usgn in ipairs(Admins) do if player(id,'usgn') == usgn and tagMode[id]==0 then msg(""..admincolor[color_admin[id]]..""..player(id,"name")..": "..txt) return 1 end end for _, usgn in ipairs(Mods) do if player(id,'usgn') == usgn then msg("©100000000"..player(id,"name").." [Mod]: "..txt) return 1 end end end end end -- Admin Punish -- addhook("say","commands") function commands(id,txt) for _, usgn in ipairs(Admins) do if player(id,'usgn') == usgn then if txt:lower():sub(1,5) == "!kick" then -- Kick tokick = txt:sub(7,8) toreason = txt:sub(9) parse("kick "..tokick.." "..toreason) elseif txt:lower():sub(1,7) == "!makect" then -- Counter-Terrorist tomake = txt:sub(8) parse("makect "..tomake) elseif txt:lower():sub(1,6) == "!maket" then -- Terrorist tomake = txt:sub(8) parse("maket "..tomake) elseif txt:lower():sub(1,5) == "!kill" then -- Kill tokill = txt:sub(6) parse("killplayer "..tokill) elseif txt:lower():sub(1,4) == "!ban" then -- Ban toban = txt:sub(5) parse("banusgn "..toban) parse("banip "..toban) elseif txt:lower():sub(1,6) == "!makes" then -- Spectator tospec = txt:sub(8) parse("makespec "..tospec) elseif txt == "!restart" then -- Restart parse("restartround 0") ---Bots--- elseif txt =="!bot_ct" then 	 parse("bot_add ct") elseif txt =="!bot_t" then 	 parse("bot_add t") elseif txt =="!bot_remove" then 	 parse("bot_remove_all") elseif txt =="!bot_remove_t" then 	 parse("bot_remove_t") elseif txt =="!bot_remove_ct" then 	 parse("bot_remove_ct") ---Fog of War--- elseif txt == "!fog_on" then parse("sv_fow 1") msg("©000255000Fog of War Enabled") elseif txt == "!fog_off" then parse("sv_fow 0") msg("©255000000Fog of War Disabled") ---Frienfly Fire--- elseif txt == "!ff_on" then parse("sv_friendlyfire 1") msg("©000255000Friendly Fire Enabled") elseif txt == "!ff_off" then parse("sv_friendlyfire 0") msg("©255000000Friendly Fire Disabled") ---USGN Only--- elseif txt == "!us_on" then parse("sv_usgnonly 1") msg("©000255000USGN only Enabled") elseif txt == "!us_off" then parse("sv_usgnonly 0") msg("©255000000USGN only Disabled") ---Help--- elseif txt == "!help" then msg2(id,"©255000000!maket [ID]") msg2(id,"©255000000!makect [ID]") msg2(id,"©255000000!makes [ID]") msg2(id,"©255000000!kill [ID]") msg2(id,"©255000000!kick [ID] [Reason]") msg2(id,"©255000000!ban [ID]") msg2(id,"©255000000!bot_t") msg2(id,"©255000000!bot_ct") msg2(id,"©255000000!bot_remove") msg2(id,"©255000000!bot_remove_t") msg2(id,"©255000000!bot_remove_ct") msg2(id,"©255000000!fog_on") msg2(id,"©255000000!fog_off") msg2(id,"©255000000!ff_on") msg2(id,"©255000000!ff_off") msg2(id,"©255000000!us_on") msg2(id,"©255000000!us_off") end end end end -- Serveraction for Admin&Mod -- addhook("serveraction","adminaction") function adminaction(id,b) if b == 1 then for _, usgn in ipairs(Admins) do if player(id,'usgn') == usgn then menu(id,"Admin Menu,Kill every Player|Everyone,Give energie ,Training Rounds Menu,Build Options,Restart Round|In 3 Seconds,Mapchange,Fog of war,Game mode,Admin menu 2") return 1 end end for _, usgn in ipairs(Mods) do if player(id,'usgn') == usgn then menu(id,"Mod Menu,Buy Menu,Game mode,Build Options,Hats,Training Rounds,Bot menu") return 1 end end end end addhook("serveraction","projectiles") function projectiles(id,b) if b == 3 then for _, usgn in ipairs(Admins) do if player(id,'usgn') == usgn then local rot = player(id, "rot"); local i; for i = 1, 1 do parse("spawnprojectile " .. id .. " "..adminproject[project_admin[id]].." " .. player(id, "x") .. " " .. player(id, "y") .. " 255 " .. (rot + math.random(-10, 10))); return 1 end end end end end -- Menu Settings -- addhook("menu","adminmenu") function adminmenu(id,t,b) if t=="Admin Menu" then if b==1 then msg("©255000000Everyone dies from the admin!@C") for _, pl in ipairs(player(0, "tableliving")) do parse("killplayer " .. pl) end elseif b==2 then menu(id,"Admin Energie,Give everyone +10 Energie,Give everyone +20 Energie,Give everyone +30 Energie, Give everyone +50 Energie, Give everyone +100 Energie,Set HP to 50, Set HP to 10") elseif b==3 then menu(id,"Training Rounds,M4A1 + AK-47 Round,Knife Round,M3 Round,FN F2000 Round,AWP + SCOUT Round,deadly Round,Mini Round,Laser Round,Portal & M4A1 & AK41 Round") elseif b==4 then menu(id,"Build Options,Turrets,Dispenser,Supply,Gate Field") elseif b==5 then parse("restartround 3") elseif b==6 then menu(id,"Map change,aim_M4A1_Deagle,aim_fr33kz,awp_grey,awp_mexico,de_dust,cs_italy,de_infernopod,de_dust3,de_cbble") elseif b==7 then menu(id,"Fog of war,ON,OFF") elseif b==8 then menu(id,"Game mode,Standard,Deathmatch,Team deathmatch,Constructions,Zombies") elseif b==9 then menu(id,"Admin menu 2,Friendly fire,Hats,Freeze time,Info,Start money,Infinite ammo,Bot menu,Admin menu,Admin menu 3") end elseif t == "Admin Energie" then if type(b) == "number" and b > 0 then if b > 5 then if b == 6 then for _, id in ipairs(player(0, "tableliving")) do parse("sethealth "..id.." 50") end elseif b==7 then for _, id in ipairs(player(0, "tableliving")) do parse("sethealth "..id.." 10") end end else local c = { 10, 20, 30, 50, 100 } for _, id in ipairs(player(0, "tableliving")) do msg2(id,"©255000000Your Energy increases by " .. c[b] .. "!") parse('setmaxhealth ' .. id .. ' ' .. player(id, "health") + c[b]) end end end elseif t=="Training Rounds" then if b==1 then for _, pl in ipairs(player(0, "tableliving")) do parse("strip "..pl) parse("equip "..pl.." 32") parse("equip "..pl.." 30") parse("equip "..pl.." 3") end msg("©255000000M4A1,AK-47 Round!@C") elseif b==2 then for _, pl in ipairs(player(0, "tableliving")) do parse("strip "..pl) parse("equip "..pl.." 50") end msg("©255000000Knife Round!@C") elseif b==3 then for _, pl in ipairs(player(0, "tableliving")) do parse("strip "..pl) parse("equip "..pl.." 10") parse("equip "..pl.." 3") parse("speedmod "..pl.." 5") end msg("©255000000M3 Round!@C") elseif b==4 then for _, pl in ipairs(player(0, "tableliving")) do parse("strip "..pl) parse("equip "..pl.." 91") parse("equip "..pl.." 3") parse("speedmod "..pl.." -5") end msg("©255000000FN F2000 Round!@C") elseif b==5 then for _, pl in ipairs(player(0, "tableliving")) do parse("strip "..pl) parse("equip "..pl.." 35") parse("equip "..pl.." 34") parse("equip "..pl.." 3") end msg("©255000000AWP + SCOUT Round!@C") elseif b==6 then for _, pl in ipairs(player(0, "tableliving")) do parse("strip "..pl) parse("equip "..pl.." 46") parse("equip "..pl.." 47") parse("equip "..pl.." 90") end msg("©255000000deadly Round!@C") elseif b==7 then for _, pl in ipairs(player(0, "tableliving")) do parse("strip "..pl) parse("equip "..pl.." 38") parse("equip "..pl.." 39") parse("equip "..pl.." 6") end msg("©255000000Mini Round!@C") elseif b==8 then for _, pl in ipairs(player(0, "tableliving")) do parse("strip "..pl) parse("equip "..pl.." 45") parse("equip "..pl.." 6") end msg("©255000000Laser Round!@C") elseif b==9 then for _, pl in ipairs(player(0, "tableliving")) do parse("strip "..pl) parse("equip "..pl.." 88") parse("equip "..pl.." 32") parse("equip "..pl.." 30") parse("equip "..pl.." 3") msg("©255000000Portal & M4A1 & AK41 Round!@C") end end elseif t=="Build Options" then if b==1 then menu(id,"Turrets,1 Turret,2 Turrets,5 Turrets,10 Turrets,15 Turrets,20 Turrets,30 Turrets,50 Turrets,Unlimit Turrets") elseif b==2 then menu(id,"Dispenser,1 Dispenser,2 Dispenser,5 Dispenser,10 Dispenser,15 Dispenser,20 Dispenser,30 Dispenser,50 Dispenser,Unlimit Dispenser") elseif b==3 then menu(id,"Supply,1 Supply,2 Supply,5 Supply,10 Supply,15 Supply,20 Supply,30 Supply,50 Supply,Unlimit Supply") elseif b==4 then menu(id,"GateField,1 Gate Field,2 Gate Field,5 Gate Field,10 Gate Field,15 Gate Field,20 Gate Field,30 Gate Field,50 Gate Field,Unlimit Gate Field") end elseif t=="Turrets" then if type(b) == "number" and b > 0 then local c = { 1, 2, 5, 10, 15, 20, 30, 50, 9999 } msg("©255000000You can build " .. c[b] .. " Turrets now!") parse('mp_building_limit "turret" ' .. c[b]) end elseif t=="Dispenser" then if type(b) == "number" and b > 0 then local c = { 1, 2, 5, 10, 15, 20, 30, 50, 9999 } msg("©255000000You can build " .. c[b] .. " Dispensers now!") parse('mp_building_limit "dispenser" ' .. c[b]) end elseif t=="Supply" then if type(b) == "number" and b > 0 then local c = { 1, 2, 5, 10, 15, 20, 30, 50, 9999 } msg("©255000000You can build " .. c[b] .. " Supplys now!") parse('mp_building_limit "supply" ' .. c[b]) end elseif t=="GateField" then if type(b) == "number" and b > 0 then local c = { 1, 2, 5, 10, 15, 20, 30, 50, 9999 } msg("©255000000You can build " .. c[b] .. " Gate Fields now!") parse('mp_building_limit "gate field" ' .. c[b]) end elseif t=="Map change" then if b==1 then parse("map aim_m4a1_deagle") elseif b==2 then parse("map aim_fr33kz") elseif b==3 then parse("map awp_grey") elseif b==4 then parse("map awp_mexico") elseif b==5 then parse("map de_dust") elseif b==6 then parse("map cs_italy") elseif b==7 then parse("map de_infernopod") elseif b==8 then parse("map de_dust3") elseif b==9 then parse("map de_cbble") end elseif t=="Fog of war" then if b==1 then parse("sv_fow 1") elseif b==2 then parse("sv_fow 2") end elseif t=="Game mode" then if b==1 then parse("sv_gamemode 0") elseif b==2 then parse("sv_gamemode 1") elseif b==3 then parse("sv_gamemode 2") elseif b==4 then parse("sv_gamemode 3") elseif b==5 then parse("sv_gamemode 4") end elseif t=="Admin menu 2" then if b==1 then menu(id,"Friendly fire,ON,OFF") elseif b==2 then menu(id,"Hats,Sonic,No Hat") elseif b==3 then menu(id,"Freeze time,No sec [0],3 Sec,5 Sec") elseif b==4 then msg2(id,"©999999999Server Name: "..game("sv_name")) msg2(id,"©999999999Script made by : Pirates killer") msg2(id,"©999999999Script version : 2") elseif b==5 then menu(id,"Start money,2000$,4500$,8000$,16000$") elseif b==6 then menu(id,"Infinite ammo,ON,OFF") elseif b==7 then menu(id,"Bot menu,Add CT,Add Tero,Remove all,Kill all bots,Remove Tero,Remove CT") elseif b==8 then menu(id,"Admin Menu,Kill every Player|Everyone,Give energie ,Training Rounds Menu,Build Options,Restart Round|In 3 Seconds,Mapchange,Fog of war,Game mode,Admin menu 2") elseif b==9 then menu(id,"Admin menu 3,God mode|"..godMode[id]..",Grab mode|"..grabstate[id]..",Tag|"..tagMode[id]..",Fast reload|"..fastMode[id]..",Admin color chat|"..admin_color_name[color_admin[id]]..",Admin project|"..admin_project_name[project_admin[id]]..",,Admin menu,Admin menu 2") end elseif t=="Friendly fire" then if b==1 then parse("sv_friendlyfire 1") elseif b==2 then parse("sv_friendlyfire 2") end elseif t=="Hats" then if b==1 then freeimage(id) id1=image("gfx/hc/attribs/sonic.png",1,1,200+id) imagealpha(id1,1.0) elseif b==2 then freeimage(id) imagealpha(id1,1.0) end elseif t=="Freeze time" then if b==1 then parse("mp_freezetime 0") elseif b==2 then parse("mp_freezetime 3") elseif b==3 then parse("mp_freezetime 5") end elseif t=="Start money" then if b==1 then parse("mp_startmoney 2000") elseif b==2 then parse("mp_startmoney 4500") elseif b==3 then parse("mp_startmoney 8000") elseif b==4 then parse("mp_startmoney 16000") end elseif t=="Bot menu" then if b==1 then parse("bot_add_ct") elseif b==2 then parse("bot_add_t") elseif b==3 then parse("bot_remove_all") elseif b==4 then parse("bot_kill") elseif b==5 then parse("bot_remove_t") elseif b==6 then parse("bot_remove_ct") end elseif t=="Infinite ammo" then if b==1 then parse("mp_infammo 1") elseif b==2 then parse("mp_infammo 0") end elseif t=="Admin menu 3" then if b==1 and godMode[id]==0 then msg2(id, '©84 000210God Mode Actived!') godMode[id]=1 elseif b==1 and godMode[id]==1 then msg2(id, '©84 000210God Mode De-Actived!') godMode[id]=0 elseif b==2 and grabstate[id]==0 then msg2(id, '©84 000210Grab Mode Actived!') grabstate[id]=1 elseif b==2 and grabstate[id]==1 then msg2(id, '©84 000210Grab Mode De-Actived!') grabstate[id]=0 elseif b==3 and tagMode[id]==0 then msg2(id,""..admincolor[color_admin[id]].."Tag is on") tagMode[id]=1 elseif b==3 and tagMode[id]==1 then msg2(id,""..admincolor[color_admin[id]].."Tag is off") tagMode[id]=0 elseif b==4 and fastMode[id]==0 then msg2(id,""..admincolor[color_admin[id]].."Fast reload is on") fastMode[id]=1 elseif b==4 and fastMode[id]==1 then msg2(id,""..admincolor[color_admin[id]].."Fast reload is off") fastMode[id]=0 elseif b==5 then menu(id,"Admin color chat,White,Green,Brown,Purple,Blue,Red,Cyan,Lime,Admin menu 3") elseif b==6 then menu(id,"Admin project,Stachle,HE,RPG shot,Molotov,Gas grenade,Admin menu 3") elseif b==8 then menu(id,"Admin Menu,Kill every Player|Everyone,Give energie ,Training Rounds Menu,Build Options,Restart Round|In 3 Seconds,Mapchange,Fog of war,Game mode,Admin menu 2") elseif b==9 then menu(id,"Admin menu 2,Friendly fire,Hats,Freeze time,Info,Start money,Infinite ammo,Bot menu,Admin menu,Admin menu 3") end elseif t=="Admin color chat" then if b==1 then color_admin[id]=0 msg2(id,""..admincolor[color_admin[id]].."Your color chat is "..admin_color_name[color_admin[id]].."") elseif b==2 then color_admin[id]=1 msg2(id,""..admincolor[color_admin[id]].."Your color chat is "..admin_color_name[color_admin[id]].."") elseif b==3 then color_admin[id]=2 msg2(id,""..admincolor[color_admin[id]].."Your color chat is "..admin_color_name[color_admin[id]].."") elseif b==4 then color_admin[id]=3 msg2(id,""..admincolor[color_admin[id]].."Your color chat is "..admin_color_name[color_admin[id]].."") elseif b==5 then color_admin[id]=4 msg2(id,""..admincolor[color_admin[id]].."Your color chat is "..admin_color_name[color_admin[id]].."") elseif b==6 then color_admin[id]=5 msg2(id,""..admincolor[color_admin[id]].."Your color chat is "..admin_color_name[color_admin[id]].."") elseif b==7 then color_admin[id]=6 msg2(id,""..admincolor[color_admin[id]].."Your color chat is "..admin_color_name[color_admin[id]].."") elseif b==8 then color_admin[id]=7 msg2(id,""..admincolor[color_admin[id]].."Your color chat is "..admin_color_name[color_admin[id]].."") elseif b==9 then menu(id,"Admin menu 3,God mode|"..godMode[id]..",Grab mode|"..grabstate[id]..",Tag|"..tagMode[id]..",Fast reload|"..fastMode[id]..",Admin color chat|"..admin_color_name[color_admin[id]]..",Admin project|"..admin_project_name[project_admin[id]]..",,Admin menu,Admin menu 2") end elseif t=="Admin project" then if b==1 then project_admin[id]=0 msg2(id,"©000255111Your project is "..admin_project_name[project_admin[id]].."") elseif b==2 then project_admin[id]=1 msg2(id,"©000255111Your project is "..admin_project_name[project_admin[id]].."") elseif b==3 then project_admin[id]=2 msg2(id,"©000255111Your project is "..admin_project_name[project_admin[id]].."") elseif b==4 then project_admin[id]=3 msg2(id,"©000255111Your project is "..admin_project_name[project_admin[id]].."") elseif b==5 then project_admin[id]=4 msg2(id,"©000255111Your project is "..admin_project_name[project_admin[id]].."") elseif b==9 then menu(id,"Admin menu 3,God mode|"..godMode[id]..",Grab mode|"..grabstate[id]..",Tag|"..tagMode[id]..",Fast reload|"..fastMode[id]..",Admin color chat|"..admin_color_name[color_admin[id]]..",Admin project|"..admin_project_name[project_admin[id]]..",,Admin menu,Admin menu 2") end -----MOD----- elseif t=="Mod Menu" then if b==1 then menu(id,"Buy Menu,Gas Grenade|3.000$,Shield|3.000$,Chainsaw|6.500$,Wrench|4.500$") elseif b==2 then menu(id,"Game mode,Standard,Deathmatch,Team deathmatch,Constructions,Zombies") elseif b==3 then menu(id,"Build Options,Turrets,Dispenser,Supply,Gate Field") elseif b==4 then menu(id,"Hats,Sonic,No Hat") elseif b==5 then menu(id,"Training Rounds,M4A1 + AK-47 Round,Knife Round,M3 Round,FN F2000 Round,AWP + SCOUT Round,deadly Round,Mini Round,Laser Round,Portal & M4A1 & AK41 Round") elseif b==6 then parse("bot") end elseif t=="Buy Menu" then local a, c = { 3000, 3000, 6500, 4500 }, { 72, 41, 85, 74 } if type(b) == "number" and b > 0 and b < 5 then if player(id, "money") >= a[b] then msg2(id,"©255000000You bought a " .. itemtype(c[b], "name") .. "!@C") parse("equip " .. id .. " " .. c[b]) parse("setmoney " .. id .. " " .. player(id, "money") - a[b]) end elseif t=="Game mode" then if b==1 then parse("sv_gamemode 0") elseif b==2 then parse("sv_gamemode 1") elseif b==3 then parse("sv_gamemode 2") elseif b==4 then parse("sv_gamemode 3") elseif b==5 then parse("sv_gamemode 4") end elseif t=="Build Options" then if b==1 then menu(id,"Turrets,1 Turret,2 Turrets,5 Turrets,10 Turrets,15 Turrets,20 Turrets,30 Turrets,50 Turrets,Unlimit Turrets") elseif b==2 then menu(id,"Dispenser,1 Dispenser,2 Dispenser,5 Dispenser,10 Dispenser,15 Dispenser,20 Dispenser,30 Dispenser,50 Dispenser,Unlimit Dispenser") elseif b==3 then menu(id,"Supply,1 Supply,2 Supply,5 Supply,10 Supply,15 Supply,20 Supply,30 Supply,50 Supply,Unlimit Supply") elseif b==4 then menu(id,"GateField,1 Gate Field,2 Gate Field,5 Gate Field,10 Gate Field,15 Gate Field,20 Gate Field,30 Gate Field,50 Gate Field,Unlimit Gate Field") end elseif t=="Turrets" then if type(b) == "number" and b > 0 then local c = { 1, 2, 5, 10, 15, 20, 30, 50, 9999 } msg("©255000000You can build " .. c[b] .. " Turrets now!") parse('mp_building_limit "turret" ' .. c[b]) end elseif t=="Dispenser" then if type(b) == "number" and b > 0 then local c = { 1, 2, 5, 10, 15, 20, 30, 50, 9999 } msg("©255000000You can build " .. c[b] .. " Dispensers now!") parse('mp_building_limit "dispenser" ' .. c[b]) end elseif t=="Supply" then if type(b) == "number" and b > 0 then local c = { 1, 2, 5, 10, 15, 20, 30, 50, 9999 } msg("©255000000You can build " .. c[b] .. " Supplys now!") parse('mp_building_limit "supply" ' .. c[b]) end elseif t=="GateField" then if type(b) == "number" and b > 0 then local c = { 1, 2, 5, 10, 15, 20, 30, 50, 9999 } msg("©255000000You can build " .. c[b] .. " Gate Fields now!") parse('mp_building_limit "gate field" ' .. c[b]) end elseif t=="Hats" then if b==1 then freeimage(id) id1=image("gfx/hc/attribs/sonic.png",1,1,200+id) imagealpha(id1,1.0) elseif b==2 then freeimage(id) imagealpha(id1,1.0) end elseif t=="Training Rounds" then if b==1 then for _, pl in ipairs(player(0, "tableliving")) do parse("strip "..pl) parse("equip "..pl.." 32") parse("equip "..pl.." 30") parse("equip "..pl.." 3") end msg("©255000000M4A1,AK-47 Round!@C") elseif b==2 then for _, pl in ipairs(player(0, "tableliving")) do parse("strip "..pl) parse("equip "..pl.." 50") end msg("©255000000Knife Round!@C") elseif b==3 then for _, pl in ipairs(player(0, "tableliving")) do parse("strip "..pl) parse("equip "..pl.." 10") parse("equip "..pl.." 3") parse("speedmod "..pl.." 5") end msg("©255000000M3 Round!@C") elseif b==4 then for _, pl in ipairs(player(0, "tableliving")) do parse("strip "..pl) parse("equip "..pl.." 91") parse("equip "..pl.." 3") parse("speedmod "..pl.." -5") end msg("©255000000FN F2000 Round!@C") elseif b==5 then for _, pl in ipairs(player(0, "tableliving")) do parse("strip "..pl) parse("equip "..pl.." 35") parse("equip "..pl.." 34") parse("equip "..pl.." 3") end msg("©255000000AWP + SCOUT Round!@C") elseif b==6 then for _, pl in ipairs(player(0, "tableliving")) do parse("strip "..pl) parse("equip "..pl.." 46") parse("equip "..pl.." 47") parse("equip "..pl.." 90") end msg("©255000000deadly Round!@C") elseif b==7 then for _, pl in ipairs(player(0, "tableliving")) do parse("strip "..pl) parse("equip "..pl.." 38") parse("equip "..pl.." 39") parse("equip "..pl.." 6") end msg("©255000000Mini Round!@C") elseif b==8 then for _, pl in ipairs(player(0, "tableliving")) do parse("strip "..pl) parse("equip "..pl.." 45") parse("equip "..pl.." 6") end msg("©255000000Laser Round!@C") elseif b==9 then for _, pl in ipairs(player(0, "tableliving")) do parse("strip "..pl) parse("equip "..pl.." 88") parse("equip "..pl.." 32") parse("equip "..pl.." 30") parse("equip "..pl.." 3") end msg("©255000000Portal & M4A1 & AK41 Round!@C") end end end end --Array function function array(m, d) 	local a = {} 	for id = 1, m do 		a[id] = d 	end 	return a end --arrays mousex = array(32, 0) mousey = array(32, 0) grabstate = array(32, 0) grabbedby = array(32, 0) grabbedvictim = array(32, 0) reason = array(32, 0) --hooks addhook('menu', 'menuCheck') addhook('attack', 'sendClientData') addhook('clientdata', 'getGrab') addhook('ms100', 'followMouse') addhook('die', 'dieUnGrab') --functions function funcsCheck(id, button) 	 if grabstate[id] == 0 then 		grabstate[id] = 1 		if grabstate[id] == 1 then 		grabstate[id] = 0 	end end end function sendClientData(id) 	if grabbedvictim[id] ~= 0 then 		parse('speedmod '.. grabbedvictim[id] ..' 0') 		grabbedby[grabbedvictim[id]] = 0 		grabbedvictim[id] = 0 	elseif grabbedvictim[id] == 0 and grabstate[id] == 1 then 		reason[id] = 1 		reqcld(id, 2) 	end end function getGrab(id, mode, data1, data2) 	if grabstate[id] == 1 and mode == 2 then 		if reason[id] == 1 then 			mousex[id] = math.floor(data1/32) 			mousey[id] = math.floor(data2/32) 			for p = 1, 32 do 				if player(p, 'tilex') == mousex[id] and player(p, 'tiley') == mousey[id] then 					if grabbedvictim[id] == 0 then 						if grabbedvictim[p] == 0 then 							grabbedvictim[id] = p 							grabbedby[p] = id 						else 							msg2('©255000000You cant grab him, he already grab someone!') 						end 					end 				end 			end 		end 		if reason[id] == 2 then 			if grabbedvictim[id] ~= id then 				mousex[id] = math.floor(data1/32) 				mousey[id] = math.floor(data2/32) 				parse('speedmod '.. grabbedvictim[id] ..' -100') 				parse('setpos '.. grabbedvictim[id] ..' '.. mousex[id] * 32 + 16 ..' '.. mousey[id] * 32 + 16) 			else 				msg2(id, '©84 000210You cant grab yourself!') 				grabbedby[grabbedvictim[id]] = 0 				grabbedvictim[id] = 0 			end 		end 	end end function followMouse() 	for id = 1, 32 do 		if grabbedby[id] ~= 0 then 			reason[grabbedby[id]] = 2 			reqcld(grabbedby[id], 2) 		end 	end end function dieUnGrab(victim, killer, weapon, x, y) 	if grabbedvictim[victim] ~= 0 then 		parse('speedmod '.. grabbedvictim[victim] ..' 0') 		grabbedvictim[victim] = 0 		grabbedby[grabbedvictim[victim]] = 0 	end 	if grabbedby[victim] ~= 0 then 		parse('speedmod '.. victim ..' 0') 		grabbedvictim[grabbedby[victim]] = 0 		grabbedby[victim] = 0 	end end -------------god mode -------------------- addhook("hit","_hit") function _hit(id) if godMode[id]==1 then return 1 end end --- Fast reload --- addhook("reload","fastreload") function fastreload(id,mode) wp = player(id,"weapontype") 	if fastMode[id]==1 then 		parse("equip "..id.." "..wp) 		parse("setweapon "..id.." "..wp) 	end end print('©255255255Hooks initialsing finished') print('©255255000Function initialising finished') print('©255255000Script loaded succesfully!')