KOSTENLOSE REGISTRIERUNG - FREE REGISTER
  • Willkommen, Gast!
  • Montag, 19. August 2019, 21:25:42
Position: Home » Grand Theft Auto: San Andreas » Multiplayer » Hilfe! Mein Script hat zu viele fehler

Willkommen im GTAvision.com Forum

Du bist noch nicht bei uns angemeldet. Wenn das dein erster Besuch bei uns ist, so kannst du die wichtigsten Funktionen des Boards in der FAQ nachlesen. Um Beiträge zu schreiben oder neue Themen zu erstellen musst du in fast jedem Forum registriert und eingeloggt sein. Dies gilt nicht bei den Newskommentaren, dort können auch Gäste etwas schreiben ohne sich vorher registrieren zu müssen. Damit du Beiträge lesen kannst, musst du dir erst ein Forum aussuchen welches dich interessiert, z.B. GTA V - Allgemeines, dann klickst du auf ein Thema das dich interessiert z.B. "Allgemeine GTA V Plauderecke" und schon kannst du die Beiträge lesen. Um im genannten Thema zu antworten, musst du dich allerdings vorher eingeloggt haben. Viel Spaß in unserem Forum, wünscht das gesamte GTAvision.com Team.

Follow @GTAvision
Grand Theft Auto: San Andreas
Thema: Hilfe! Mein Script hat zu viele fehler [Seite 1 ]  

Kein neuer Beitrag 26.06.2011, 15:27
Beitrag #1   

111111
Ladendieb
* * * O O O O O O O O
Kein Bild vorhanden
Registrierung: 26.06.2011, 12:40
Beiträge: 2

Hallo,

Mein Script hat zu viele fehler und ich weis nicht wie ich die behebe

hat vieleicht einer teamviewer und kann sich mein problem anschauen?
bin schon am verzweifeln!

mein script sieht momentan so aus! (man siehts im teamviewer besser)

mfg

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
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
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
#include <a_samp>
#include <dini>

#define DIALOG_REGISTER 1
#defind DIALOG_LOGIN 2



main()
{
   print("\n----------------------------------");
   print(" Willkommen auf Alloha-life");
   print("----------------------------------\n");
}



public OnGameModeInit()
{
   SetGameModeText("German-reallife");
    AddPlayerClass(0,2024.7450,1007.2876,10.8203,270.9767,0,0,0,0,0,0); // position;
    AddPlayerClass(1,2024.7450,1007.2876,10.8203,270.9767,0,0,0,0,0,0); // position
    
    
    AddStaticVehicle(425,379.8012,2541.6873,17.1228,356.1902,43,0); // Hunter1
    AddStaticVehicle(425,369.8239,2540.7554,17.1268,5.4576,43,0); // Hunter2
    AddStaticVehicle(425,358.8137,2540.5564,17.2618,352.6211,43,0); // Hunter3
    AddStaticVehicle(520,430.9905,2520.7844,17.2138,87.4238,0,0); // Hydra1
    AddStaticVehicle(520,431.4461,2510.3320,17.2010,87.5057,0,0); // Hydra2
    AddStaticVehicle(520,432.3923,2499.9805,17.2131,86.1244,0,0); // Hydra3
    AddStaticVehicle(432,327.8251,2543.8948,16.8194,177.8775,43,0); // Panzer1
    AddStaticVehicle(432,320.3794,2543.2334,16.8381,176.6214,43,0); // Panzer2
    AddStaticVehicle(601,297.4035,2545.3906,16.5813,175.8056,1,1); // Wasserw.1
    AddStaticVehicle(601,293.2972,2545.6611,16.5859,174.4530,1,1); // Wasserw.2
    AddStaticVehicle(601,288.8875,2546.2861,16.5813,169.9791,1,1); // Wasserw.3
    AddStaticVehicle(601,284.4320,2547.0239,16.5858,168.1797,1,1); // Wasserw.4
    AddStaticVehicle(470,373.8164,2473.6943,16.4803,2.7072,43,0); // Armycar1
    AddStaticVehicle(470,369.8590,2473.6057,16.4815,3.0048,43,0); // Armycar2
    AddStaticVehicle(470,366.0648,2473.3013,16.4869,2.0007,43,0); // Armycar3
    AddStaticVehicle(470,362.4736,2473.2161,16.4870,0.4614,43,0); // Armycar4
    AddStaticVehicle(470,358.6522,2473.1638,16.5064,2.6512,43,0); // Armycar5
    AddStaticVehicle(470,355.3334,2472.7061,16.5079,2.9843,43,0); // Armycar6
    AddStaticVehicle(447,389.6452,2541.3816,16.5523,358.0350,75,2); // ArmySparrow
    AddStaticVehicle(433,422.5379,2439.0046,16.9404,357.4658,43,0); // ArmyTruck1
    AddStaticVehicle(433,416.1066,2439.4187,16.9432,356.7089,43,0); // ArmyTruck2
    AddStaticVehicle(433,401.2781,2439.4451,16.9383,0.0948,43,0); // ArmyTruck3
    AddStaticVehicle(433,396.5105,2438.9805,16.9399,1.8791,43,0); // ArmyTruck4
    AddStaticVehicle(528,423.1998,2461.4138,16.5620,90.9437,0,0); // Armysapd1
    AddStaticVehicle(528,423.1943,2465.2285,16.5600,89.1600,0,0); // Armysapd2
    AddStaticVehicle(528,422.9627,2468.8064,16.5460,91.3055,0,0); // Armysapd3
    return 1;
}

public OnGameModeExit()
{
   return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
   SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
   SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
   SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
   return 1;
}

public OnPlayerConnect(playerid)
{
ShowPlayerDialog(Playerid,DIALOG_REGISTER_DIALOG_STYLE_INPUT,"REGISTRIEREN","Gib bitte dein gewünschtes Passwort ein:","Register","Abbrechen");
   return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
   return 1;
}

public OnPlayerSpawn(playerid)
{
   return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
   return 1;
}

public OnVehicleSpawn(vehicleid)
{
   return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
   return 1;
}

public OnPlayerText(playerid, text[])
{
   return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
if (strcmp("/Teleport", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid,528,422.9627,2468.8064,16.5460,91.3055,0,0);
SendClientMessage(playerid,0xFFFF00FF,"Du wurdest Teleportiert ;)");
return 1;
}
/*--------------------------------------------------------------------------------------------------------------------------
|                                                                                             |
-----------------------------------------------------------------------------------------------------------------------------
| Admin+ - FilterScript scripted by [RUKC]Ripper © 2007                                                      |
| THX to VWW-Team für die tolle Hilfe und den guten Scripts                                                   |
| Diese Script darf verändert werden aber die Funktionen müssen erhalten bleiben!!                                 |
| Falls das Script ohne Erlaubnis, entscheident geändert werden sollte, werde ich es nie wieder zum Download bereitstellen!!|
| THX to [NSG]Dörfler für Anti-Minigun-Hack!                                                                                |
-----------------------------------------------------------------------------------------------------------------------------
|                                                                                              |
---------------------------------------------------------------------------------------------------------------------------*/
#pragma tabsize 0
#include <a_samp>

#define farbe_orange 0xFF9900AA
#define farbe_rot 0xFF0000AA
#define farbe_gelb 0xFFFF00AA
#define farbe_blau 0x0000FFAA
#define COLOR_RED 0xAA3333AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_ORANGE 0xFF8C00AA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_DARKRED 0x660000AA
#define COLOR_LIGHTGREEN 0x40FF40FF
#include <Dini>
#include <dutils>
#include <DUDB>
#pragma unused ret_memcpy
#pragma tabsize 0
#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
#define ADMIN_SPEC_TYPE_NONE 0
#define ADMIN_SPEC_TYPE_PLAYER 1
#define ADMIN_SPEC_TYPE_VEHICLE 2
#define MIN_VEHI_ID      400
#define MAX_VEHI_ID      611
#define VEHI_DIS        5.0
new gSpectateID[MAX_PLAYERS];
new gSpectateType[MAX_PLAYERS];


forward Jail(jailid);
forward Unjail(jailid);
forward PingKick(playerid);
forward minigunupdate(playerid);

new Menu:AutoTuning;
new jailed[MAX_PLAYERS];
new freezed[MAX_PLAYERS];
new pingkick=1000;
new muted[MAX_PLAYERS];
new bool:IsServerLocked;
enum CURVEHICLE {
   bool:spawn,
   vmodel,
   vInt
};
new curPlayerVehM[MAX_PLAYERS]            = {MIN_VEHI_ID, ...};
new curPlayerVehI[MAX_PLAYERS]            = {-1, ...};
new curServerVehP[MAX_VEHICLES][CURVEHICLE];
new CarNames[212][32]={
"Landstalker", "Bravura", "Buffalo", "Linerunner", "Perrenial", "Sentinel","Dumper", "Firetruck", "Trashmaster", "Stretch", "Manana", "Infernus",
"Voodoo", "Pony", "Mule", "Cheetah", "Ambulance", "Leviathan", "Moonbeam", "Esperanto", "Taxi", "Washington", "Bobcat", "Whoopee", "BF Injection",
"Hunter", "Premier", "Enforcer", "Securicar", "Banshee", "Predator", "Bus",   "Rhino", "Barracks", "Hotknife", "Trailer", "Previon", "Coach", "Cabbie",
"Stallion", "Rumpo", "RC Bandit", "Romero", "Packer", "Monster", "Admiral","Squalo", "Seasparrow", "Pizzaboy", "Tram", "Trailer", "Turismo", "Speeder",
"Reefer", "Tropic", "Flatbed", "Yankee", "Caddy", "Solair", "Berkley's RC Van","Skimmer", "PCJ-600", "Faggio", "Freeway", "RC Baron", "RC Raider", "Glendale",
"Oceanic","Sanchez", "Sparrow", "Patriot", "Quad", "Coastguard", "Dinghy","Hermes", "Sabre", "Rustler", "ZR-350", "Walton", "Regina", "Comet", "BMX",
"Burrito", "Camper", "Marquis", "Baggage", "Dozer", "Maverick", "News Chopper","Rancher", "FBI Rancher", "Virgo", "Greenwood", "Jetmax", "Hotring", "Sandking",
"Blista Compact", "Police Maverick", "Boxvillde", "Benson", "Mesa", "RC Goblin","Hotring Racer A", "Hotring Racer B", "Bloodring Banger", "Rancher", "Super GT",
"Elegant", "Journey", "Bike", "Mountain Bike", "Beagle", "Cropduster", "Stunt",    "Tanker", "Roadtrain", "Nebula", "Majestic", "Buccaneer", "Shamal", "Hydra",
"FCR-900", "NRG-500", "HPV1000", "Cement Truck", "Tow Truck", "Fortune",   "Cadrona", "FBI Truck", "Willard", "Forklift", "Tractor", "Combine", "Feltzer",
"Remington", "Slamvan", "Blade", "Freight", "Streak", "Vortex", "Vincent", "Bullet", "Clover", "Sadler", "Firetruck", "Hustler", "Intruder", "Primo",
"Cargobob", "Tampa", "Sunrise", "Merit", "Utility", "Nevada", "Yosemite","Windsor", "Monster", "Monster", "Uranus", "Jester", "Sultan", "Stratium",
"Elegy", "Raindance", "RC Tiger", "Flash", "Tahoma", "Savanna", "Bandito","Freight Flat", "Streak Carriage", "Kart", "Mower", "Dune", "Sweeper",
"Broadway", "Tornado", "AT-400", "DFT-30", "Huntley", "Stafford", "BF-400",   "News Van", "Tug", "Trailer", "Emperor", "Wayfarer", "Euros", "Hotdog", "Club",
"Freight Box", "Trailer", "Andromada", "Dodo", "RC Cam", "Launch", "Police Car", "Police Car", "Police Car", "Police Ranger", "Picador", "S.W.A.T", "Alpha",
"Phoenix", "Glendale", "Sadler", "Luggage", "Luggage", "Stairs", "Boxville", "Tiller", "Utility Trailer"
};

GetVehicleModelIDFromName(vname[])
{
   for(new i = 0; i < 211; i++) {
      if (strfind(CarNames[i], vname, true) != -1) {
         return i + MIN_VEHI_ID;
      }
   }
   return -1;
}


GetXYInFrontOfPlayer(playerid, &Float:x, &Float:y, Float:distance)
{

   new Float:a;

   GetPlayerPos(playerid, x, y, a);
   GetPlayerFacingAngle(playerid, a);

   if (GetPlayerVehicleID(playerid)) {
       GetVehicleZAngle(GetPlayerVehicleID(playerid), a);
   }

   x += (distance * floatsin(-a, degrees));
   y += (distance * floatcos(-a, degrees));
}


public OnFilterScriptInit(){
print("\n------------------------------------------------------------");
print("Admin+ -- FilterScript by [RUKC]Ripper geladen!");
print("Tippe ingame /rconcmds um eine Liste der Befehle zu sehen!!");
print("------------------------------------------------------------\n");
SetTimer("PingKick",6000,1);
SetTimer("minigunupdate", 100, 1);
AutoTuning = CreateMenu("Tuning",2,200,100,150,100);
AddMenuItem(AutoTuning, 0, "Nitro");
AddMenuItem(AutoTuning, 0, "Hydraulik");
AddMenuItem(AutoTuning, 0, "Grove-Raeder");
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
   new x = 0;
   while(x!=MAX_PLAYERS) {
       if( IsPlayerConnected(x) &&   GetPlayerState(x) == PLAYER_STATE_SPECTATING &&
         gSpectateID[x] == playerid && gSpectateType[x] == ADMIN_SPEC_TYPE_PLAYER )
         {
             SetPlayerInterior(x,newinteriorid);
      }
      x++;
   }
}

public Jail(jailid)
{
SetPlayerInterior(jailid,10);
SetPlayerPos(jailid,223.2217,111.1841,999.0156);
jailed[jailid]=1;
}

public Unjail(jailid)
{
SetPlayerInterior(jailid,0);
SetPlayerPos(jailid,2287.1262,2429.4392,10.8203);
jailed[jailid]=0;
}

public OnPlayerSpawn(playerid)
{
    jailed[playerid]  = 0;
    freezed[playerid] = 0;
   return 1;
}



public OnPlayerCommandText(playerid, cmdtext[])
{
   if(jailed[playerid] == 1)
   {
   SendClientMessage(playerid, COLOR_RED, "Du kannst im Gefängniss keine Befehle nutzen!");
   return 1;
   }
   else if(freezed[playerid] == 1)
   {
   SendClientMessage(playerid, COLOR_RED, "Du kannst keine Befehle verwenden, während du gefreezed bist!!!");
   return 1;
   }


   dcmd(admins,6,cmdtext);
   dcmd(rconcmds,8,cmdtext);
   dcmd(announce,8,cmdtext);
   dcmd(say,3,cmdtext);
   dcmd(eject,5,cmdtext);
   dcmd(setname,7,cmdtext);
   dcmd(giveweapon,10,cmdtext);
   dcmd(giveallweapon,13,cmdtext);
   dcmd(givecash,8,cmdtext);
   dcmd(giveallcash,11,cmdtext);
   dcmd(resetcash,9,cmdtext);
   dcmd(resetallcash,12,cmdtext);
   dcmd(resetallweapons,15,cmdtext);
   dcmd(killplayer,10,cmdtext);
   dcmd(flip,4,cmdtext);
   dcmd(repair,6,cmdtext);
   dcmd(cargod,6,cmdtext);
   dcmd(god,3,cmdtext);
   dcmd(givehealth,10,cmdtext);
   dcmd(sethealth,9,cmdtext);
   dcmd(setarmour,9,cmdtext);
   dcmd(givearmour,10,cmdtext);
   dcmd(armourall,9,cmdtext);
   dcmd(healall,7,cmdtext);
   dcmd(kick,4,cmdtext);
   dcmd(ban,3,cmdtext);
   dcmd(godforall,9,cmdtext);
   dcmd(lockserver,10,cmdtext);
   dcmd(unlockserver,12,cmdtext);
   dcmd(aarea,5,cmdtext);
   dcmd(explode,7,cmdtext);
   dcmd(mute,4,cmdtext);
   dcmd(unmute,6,cmdtext);
   dcmd(remweapons,10,cmdtext);
   dcmd(setcash,7,cmdtext);
   dcmd(setallcash,10,cmdtext);
   dcmd(remcash,7,cmdtext);
   dcmd(remallcash,10,cmdtext);
   dcmd(unjail,6,cmdtext);
   dcmd(jail,4,cmdtext);
   dcmd(freeze,6,cmdtext);
   dcmd(unfreeze,8,cmdtext);
   dcmd(goto,4,cmdtext);
   dcmd(gethere,7,cmdtext);
   dcmd(admintune,9,cmdtext);
   dcmd(spec,4,cmdtext);
   dcmd(specoff,7,cmdtext);
   dcmd(v,1,cmdtext);
   return 0;
   }


   dcmd_admins(playerid,params[]) {
    #pragma unused params
   new Count,i,name[24],string[256];
   for(i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i) && IsPlayerAdmin(i)) Count++;
   if(!Count) return SendClientMessage(playerid,COLOR_GREEN,"Admins Online: Keiner");
   if(Count == 1) {
       for(i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i) && IsPlayerAdmin(i)) break;
       GetPlayerName(i,name,24); format(string,256,"Admins Online: %s",name);
       return SendClientMessage(playerid,COLOR_GREEN,string);
   }
      if(Count >= 1) {
       new bool:First = false;
       for(i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i) && IsPlayerAdmin(i)) {
           GetPlayerName(i,name,24);
         if(!First) { format(string,256,"Admins Online: %s,",name); First = true;}
           else format(string,256,"%s %s",string,name);
       }
       return SendClientMessage(playerid,COLOR_GREEN,string);
   }
   return 1;
}



   dcmd_rconcmds(playerid,params[]) {
   if(!IsPlayerAdmin(playerid)){ return 0;}
    #pragma unused params
   SendClientMessage(playerid,COLOR_YELLOW, "/goto, /gethere, /god, /cargod, /repair, /givecash, /kick und /ban, /mute und /unmute, /aarea)");
   SendClientMessage(playerid,COLOR_YELLOW, "/freeze /unfreeze, /rcon cmdlist, /remweapons, /setname /jail /unjail, /say, /flip, /announce, /giveweapon, /giveallweapon, /givecash");
   SendClientMessage(playerid,COLOR_YELLOW, "/giveallcash, /resetcash, /resetallcash, /resetallweapons, /givehealth, /sethealth, /givearmour, /setarmour, /healall, /armourall, /explode");
   SendClientMessage(playerid,COLOR_YELLOW, " /setcash, /setallcash, /remcash, /remallcash, /spec, /specoff, /admintune, /v <Vehicle-ID oder Vehicle-Name>");
   return 1;
}

   dcmd_announce(playerid,params[])
   {
    if(!IsPlayerAdmin(playerid)){ return 0;}
   new saystring[256];
   new sayname[256];
   GetPlayerName(playerid, sayname, sizeof(sayname));

   new tmp[256];
   new idx;

   tmp = strtok(params, idx);

   if(!strlen(tmp)) {
   SendClientMessage(playerid, COLOR_RED, "Du hast keinen Text eingegeben");
   return 1;
   }

   format(saystring, sizeof(saystring), "%s" , params);
   GameTextForAll(saystring,5000,3);

   return 1;
   }

   dcmd_say(playerid,params[]) {
   if(!IsPlayerAdmin(playerid)){ return 0;}
    if(!strlen(params)) return SendClientMessage(playerid,COLOR_RED,"Benutzung: /say <text>");
   new string[256],name[24]; GetPlayerName(playerid,name,24); format(string,256,"Admin %s: %s",name,params);
   return SendSayMessage(COLOR_ORANGE,string);
   }


   dcmd_eject(playerid,params[]) {
   if(!IsPlayerAdmin(playerid)){ return 0;}
    if(!strlen(params)) return SendClientMessage(playerid,COLOR_RED,"Benutzung: /eject <Spieler-ID/Name>");
   new id; id = strval(params);
   if(IsPlayerConnected(id) && id != INVALID_PLAYER_ID) {
    if(IsPlayerInAnyVehicle(id)) {
      new string[256],name[24],ActionName[24]; GetPlayerName(playerid,name,24); GetPlayerName(id,ActionName,24); RemovePlayerFromVehicle(id);
    if(id != playerid) {
   format(string,256,"Du wurdest von Administrator %s aus deiner Karre geschmissen!",name); SendClientMessage(id,COLOR_YELLOW,string);
   format(string,256,"Du hast %s aus seiner Karre geschmissen!",ActionName); return SendClientMessage(playerid,COLOR_YELLOW,string);
   } else return SendClientMessage(playerid,COLOR_YELLOW,"Du hast dich selber aus der Karre geschmissen^^");
   } else return SendClientMessage(playerid,COLOR_RED,"ERROR: Dieser Spieler muss erst in eine Karre!!");
   } else return SendClientMessage(playerid,COLOR_RED,"ERROR: Dieser spieler ist nicht vorhanden!!");
    }

   dcmd_setname(playerid,params[]) {
      if(!IsPlayerAdmin(playerid)){ return 0;}
       new tmp[256],tmp2[256],Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index);
          if(!strlen(tmp)||!strlen(tmp2)) return SendClientMessage(playerid,COLOR_RED,"Benutzung: /setname <Spieler-ID/Name> <neuer Name>");
         new id; id = strval(tmp);
      if(IsPlayerConnected(id) && id != INVALID_PLAYER_ID) {
         new string[256],name[24],ActionName[24]; GetPlayerName(playerid,name,24); GetPlayerName(id,ActionName,24);
         if(id != playerid) { format(string,256,"Administrator %s hat deinen Namen auf %s geändert.",name,tmp2); SendClientMessage(id,COLOR_YELLOW,string); format(string,256,"Du hast %s's Name auf %s geändert.",ActionName,tmp2); SendClientMessage(playerid,COLOR_YELLOW,string); }
         else { format(string,256,"Du hast deinen Namen auf %s geändert.",tmp2); SendClientMessage(playerid,COLOR_YELLOW,string); }
         OnPlayerConnect(id); return SetPlayerName(id,tmp2);
      } return SendClientMessage(playerid,COLOR_RED,"ERROR: Diesen Spieler gibt es nicht!");
}


   dcmd_giveweapon(playerid,params[]) {
   if(!IsPlayerAdmin(playerid)){ return 0;}
       new tmp[256], tmp2[256], tmp3[256], Index; tmp = strtok(params,Index),tmp2 = strtok(params,Index),tmp3 = strtok(params,Index);
       if(!strlen(tmp)||!strlen(tmp2)||!strlen(tmp3)||!(strval(tmp3) <= 0 || strval(tmp3) <= 10000)) return SendClientMessage(playerid,COLOR_RED,"Benutzung: /giveweapon <Spieler-ID> <Waffen-ID> <1-10000>");
      new id,id2; id = strval(tmp); id2 = strval(tmp2);
        if(IsPlayerConnected(id) && id != INVALID_PLAYER_ID) {
          if(id2==-1||id2==19||id2==20||id2==21||id2==0||id2==44||id2==45) return SendClientMessage(playerid,COLOR_RED,"ERROR: Diese Waffen-ID gibt es nicht!!");
      new string[256],name[24],ActionName[24],WeaponName[24]; GetPlayerName(playerid,name,24); GetPlayerName(id,ActionName,24); GetWeaponName(id2,WeaponName,24); if(id2 == 18) WeaponName = "Molotov";
        if(id != playerid) { format(string,256,"Administrator %s hat dir %d %s gegeben.",name,strval(tmp3),WeaponName); SendClientMessage(id,COLOR_YELLOW,string); format(string,256,"Du hast %s %d %s gegeben.",ActionName,strval(tmp3),WeaponName); SendClientMessage(playerid,COLOR_YELLOW,string); }
      else { format(string,256,"Du hast dir selbst %d %s gegeben.",strval(tmp3),WeaponName); SendClientMessage(playerid,COLOR_YELLOW,string); }
      return GivePlayerWeapon(id,id2,strval(tmp3));
       } else return SendClientMessage(playerid,COLOR_RED,"ERROR: Du kannst keinem Spieler, den es nicht gibt, Waffen geben!!");
}

   dcmd_giveallweapon(playerid,params[]) {
      if(!IsPlayerAdmin(playerid)){ return 0;}
       new tmp[256], tmp2[256], Index; tmp = strtok(params,Index); tmp2 = strtok(params,Index);
       if(!strlen(tmp)||!strlen(tmp2)||!(strval(tmp2) <= 0 || strval(tmp2) <= 10000)) return SendClientMessage(playerid,COLOR_RED,"Benutzung: /giveallweapon <Waffe-ID> <1-10000>");
      new id; id = strval(tmp);
      if(id == -1||id==19||id==20||id==21||id==0||id==44||id==45) return SendClientMessage(playerid,COLOR_RED,"ERROR: Diese Waffen-ID gibt es nicht!!");
      new string[256],name[24],WeaponName[24]; GetWeaponName(id,WeaponName,24); if(id == 18) WeaponName = "Molotov"; GetPlayerName(playerid,name,24); for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i)) GivePlayerWeapon(i,id,strval(tmp2));
      format(string,256,"Jeder hat %d %s von Administrator %s erhalten.",strval(tmp2),WeaponName,name); return SendClientMessageToAll(COLOR_YELLOW,string);
}

   dcmd_givecash(playerid,params[]) {
      if(!IsPlayerAdmin(playerid)){ return 0;}
       new tmp[256],tmp2[256],Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index);
       if(!strlen(tmp)||!strlen(tmp2)||!(strval(tmp2) >= 1 && strval(tmp2) <= 1000000)) return SendClientMessage(playerid,COLOR_RED,"Benutzung: /givecash <Spieler-ID> <1-1000000>");
         new id;  id = strval(tmp);
      if(IsPlayerConnected(id) && id != INVALID_PLAYER_ID) {
      new string[256],name[24],ActionName[24]; GetPlayerName(playerid,name,24); GetPlayerName(id,ActionName,24);
      if(id != playerid) { format(string,256,"Administrator %s hat dir $%d gegeben.",name,strval(tmp2)); SendClientMessage(id,COLOR_YELLOW,string); format(string,256,"Du hast %s $%d gegeben.",ActionName,strval(tmp2)); SendClientMessage(playerid,COLOR_YELLOW,string); }
      else { format(string,256,"Du hast dir selber $%d gegeben.",strval(tmp2)); SendClientMessage(playerid,COLOR_YELLOW,string); }
      return GivePlayerMoney(id,strval(tmp2));
      } return SendClientMessage(playerid,COLOR_RED,"ERROR: Diesen Spieler gibt es nicht!!");
}

   dcmd_giveallcash(playerid,params[]) {
      if(!IsPlayerAdmin(playerid)){ return 0;}
       if(!strlen(params)||!(strval(params)>=0&&strval(params)<=1000000)) return SendClientMessage(playerid,COLOR_RED,"Benutzung: /giveallcash <Betrag>");
      for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i)) GivePlayerMoney(i,strval(params));
      new string[256],name[24]; GetPlayerName(playerid,name,24); format(string,256,"Administrator %s hat jedem Spieler $%d gegeben.",name,strval(params)); return SendClientMessage(playerid,COLOR_YELLOW,string);
}

   dcmd_resetcash(playerid,params[]) {
      if(!IsPlayerAdmin(playerid)){ return 0;}
       if(!strlen(params)) return SendClientMessage(playerid,COLOR_RED,"Benutzung: /resetcash <Spieler-ID>");
         new id; id = strval(params);
      if(IsPlayerConnected(id) && id != INVALID_PLAYER_ID) {
      new string[256],name[24],ActionName[24]; GetPlayerName(playerid,name,24); GetPlayerName(id,ActionName,24);
      if(id != playerid) { format(string,256,"Administrator \"%s\" has reseted your cash.",name); SendClientMessage(id,COLOR_YELLOW,string); format(string,256,"Du hast das Geld von %s resetet.",ActionName); SendClientMessage(playerid,COLOR_YELLOW,string); }
      else SendClientMessage(playerid,COLOR_YELLOW,"You have reseted your cash.");
      return ResetPlayerMoney(id);
      } return SendClientMessage(playerid,COLOR_RED,"ERROR: Diesen Spieler gibt es nicht!!");
}

   dcmd_resetallcash(playerid,params[]) {
      if(!IsPlayerAdmin(playerid)){ return 0;}
   #pragma unused params
       for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i)) ResetPlayerMoney(i);
      new string[256],name[24]; GetPlayerName(playerid,name,24); format(string,256,"Administrator %s hat jedem Spieler, sein Geld genommen.",name); return SendClientMessage(playerid,COLOR_YELLOW,string);
}

   dcmd_setallcash(playerid,params[]) {
      if(!IsPlayerAdmin(playerid)){ return 0;}
       if(!strlen(params)||!(strval(params)>=0&&strval(params)<=100000000)) return SendClientMessage(playerid,COLOR_RED,"Benutzung: /setallcash <1-100000000\".");
      for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i)) { ResetPlayerMoney(i); GivePlayerMoney(i,strval(params)); }
      new string[256],name[24]; GetPlayerName(playerid,name,24); format(string,256,"Administrator %s hat das Geld von jedem Spieler auf $%d gesetzt.",name,strval(params)); return SendClientMessage(playerid,COLOR_YELLOW,string);
}

   dcmd_setcash(playerid,params[]) {
      if(!IsPlayerAdmin(playerid)){ return 0;}
       new tmp[256],tmp2[256],Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index);
       if(!strlen(tmp)||!strlen(tmp2)||!(strval(tmp2) >= 1 && strval(tmp2) <= 100000000)) return SendClientMessage(playerid,COLOR_RED,"Benutzunh: /setcash <Spieler-ID> <1-100000000>");
         new id; id = strval(tmp);
      if(IsPlayerConnected(id) && id != INVALID_PLAYER_ID) {
         new string[256],name[24],ActionName[24]; GetPlayerName(playerid,name,24); GetPlayerName(id,ActionName,24);
         if(id != playerid) { format(string,256,"Administrator %s hat deine Kohle auf $%d gesetzt.",name,strval(tmp2)); SendClientMessage(id,COLOR_YELLOW,string); format(string,256,"Du hast die Kohle von %s auf $%d gesetzt.",ActionName,strval(tmp2)); SendClientMessage(playerid,COLOR_YELLOW,string); }
         else { format(string,256,"Du hast deine Kohle auf $%d gesetzt.",strval(tmp2)); SendClientMessage(playerid,COLOR_YELLOW,string); }
         ResetPlayerMoney(id); return GivePlayerMoney(id,strval(tmp2));
      } return SendClientMessage(playerid,COLOR_RED,"ERROR: Diesen Spieler gibt es nicht!!");
}

   dcmd_remcash(playerid,params[]) {
      if(!IsPlayerAdmin(playerid)){ return 0;}
       new tmp[256],tmp2[256],Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index);
       if(!strlen(tmp)||!strlen(tmp2)||!(strval(tmp2) >= 1 && strval(tmp2) <= 1000000000)) return SendClientMessage(playerid,COLOR_RED,"Benutzung: /REMCASH <Spieler-ID> <1 - 1000000000>");
         new id; id = strval(tmp);
      if(IsPlayerConnected(id) && id != INVALID_PLAYER_ID) {
         new string[256],name[24],ActionName[24]; GetPlayerName(playerid,name,24); GetPlayerName(id,ActionName,24);
         if(id != playerid) { format(string,256,"Administrator %s hat jedem $%d weggenommen.",name,strval(tmp2)); SendClientMessage(id,COLOR_YELLOW,string); format(string,256,"Du hast $%d von %s's Kohle weggenommen.",strval(tmp2),ActionName); SendClientMessage(playerid,COLOR_YELLOW,string); }
         else { format(string,256,"Du hast $%d von deiner Kohle resetet.",strval(tmp2)); SendClientMessage(playerid,COLOR_YELLOW,string); }
         return GivePlayerMoney(id,-strval(tmp2));
      } return SendClientMessage(playerid,COLOR_RED,"ERROR: Diesen Spieler gibt es nicht!!");
}


   dcmd_remallcash(playerid,params[]) {
      if(!IsPlayerAdmin(playerid)){ return 0;}
       if(!strlen(params)||!(strval(params)>=0&&strval(params)<=1000000000)) return SendClientMessage(playerid,COLOR_RED,"Benutzung: /remallcash <1 - 1000000000>");
      for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i)) GivePlayerMoney(i,-strval(params));
      new string[256],name[24]; GetPlayerName(playerid,name,24); format(string,256,"Administrator %s hat jedem Spieler $%d weggenommen.",name,strval(params)); return SendClientMessage(playerid,COLOR_YELLOW,string);
}
   dcmd_resetallweapons(playerid,params[]) {
      if(!IsPlayerAdmin(playerid)){ return 0;}
   #pragma unused params
      new string[256],name[24]; GetPlayerName(playerid,name,24); for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i)) ResetPlayerWeapons(i);
      format(string,256,"Administrator %s hat alle Waffen resetet.",name); return SendClientMessageToAll(COLOR_YELLOW,string);
}

   dcmd_remweapons(playerid,params[]) {
      if(!IsPlayerAdmin(playerid)){ return 0;}
   new pid;
   new string[256],name[24];
   if(!strlen(params))
   {
   SendClientMessage(playerid, COLOR_RED, "Benutzung: /remweapons [playerid]");
   return 1;
   }
   pid = strval(params);
   if    (!(IsPlayerConnected(pid)))
   {
   SendClientMessage(playerid, COLOR_RED, "Diesen Spieler gibt es nicht!");
   return 1;
   }
   GetPlayerName(playerid,name,24);
   format(string,256,"Administrator %s hat alle Waffen resetet.",name);
   ResetPlayerWeapons(pid);
   return 1;
   }




    dcmd_killplayer(playerid,params[]) {
       if(!IsPlayerAdmin(playerid)){ return 0;}
       if(!strlen(params)) return SendClientMessage(playerid,COLOR_RED,"Benutzung: /killplayer <Spieler-ID>");
         new id; id = strval(params);
      if(IsPlayerConnected(id) && id != INVALID_PLAYER_ID && id != playerid) {
        new string[256],name[24],ActionName[24]; GetPlayerName(playerid,name,24); GetPlayerName(id,ActionName,24);
       format(string,256,"Du wurdes von Administrator %s umgebracht!",name); SendClientMessage(id,COLOR_YELLOW,string);
       format(string,256,"Du hast %s umgebracht",ActionName); SendClientMessage(playerid,COLOR_YELLOW,string); return SetPlayerHealth(id,0.0);
      } else return SendClientMessage(playerid,COLOR_RED,"ERROR: Diesen Spieler gibt es nicht oder du versuchst grade Selbstmord zu begehen!!");
}

   dcmd_flip(playerid,params[]) {
      if(!IsPlayerAdmin(playerid)){ return 0;}
      #pragma unused params
         if(IsPlayerInAnyVehicle(playerid)) {
      new Float:X,Float:Y,Float:Z,Float:Angle,name[24]; GetPlayerName(playerid,name,24); GetVehiclePos(GetPlayerVehicleID(playerid),X,Y,Z); GetVehicleZAngle(GetPlayerVehicleID(playerid),Angle);
      SetVehiclePos(GetPlayerVehicleID(playerid),X,Y,Z+2); SetVehicleZAngle(GetPlayerVehicleID(playerid),Angle);
      } else return SendClientMessage(playerid,COLOR_RED,"ERROR: Du musst ersmal in eine Karre^^");

      return 1;}

   dcmd_repair(playerid,params[]) {
      if(!IsPlayerAdmin(playerid)){ return 0;}
   #pragma unused params
       if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_RED,"ERROR: Du musst zuerst in eine Karre!");
      SetVehicleHealth(GetPlayerVehicleID(playerid),1000.0);
      return SendClientMessage(playerid,COLOR_YELLOW, "Du hast deine Karre erfolgreich repariert!");
}
   dcmd_cargod(playerid,params[]) {
      if(!IsPlayerAdmin(playerid)){ return 0;}
   #pragma unused params
       if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_RED,"ERROR: Du musst zuerst in eine Karre!");
      SetVehicleHealth(GetPlayerVehicleID(playerid),99999.0);
      return SendClientMessage(playerid,COLOR_YELLOW, "Deine Karre ist jetz unzerstörbar!");
}
   dcmd_god(playerid,params[]) {
      if(!IsPlayerAdmin(playerid)){ return 0;}
    #pragma unused params
      SetPlayerHealth(playerid,100000); return SendClientMessage(playerid,COLOR_YELLOW,"Du hast jetz GOD-MODE an!!"); }

   dcmd_givehealth(playerid,params[]) {
      if(!IsPlayerAdmin(playerid)){ return 0;}
       new tmp[256],tmp2[256],Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index);
       if(!strlen(tmp)||!strlen(tmp2)||!(strval(tmp2) >= 1 && strval(tmp2) <= 100)) return SendClientMessage(playerid,COLOR_RED,"Benutzung: /givehealth <Spieler-ID> <1-100>");
         new id; id = strval(tmp);
      if(IsPlayerConnected(id) && id != INVALID_PLAYER_ID) {
         new string[256],name[24],ActionName[24]; GetPlayerName(playerid,name,24); GetPlayerName(id,ActionName,24);
         if(id != playerid) { format(string,256,"Administrator %s hat dir %d Prozent Energie gegeben.",name,strval(tmp2)); SendClientMessage(id,COLOR_YELLOW,string); format(string,256,"Du hast %s, %d Prozent Energie gegeben.",ActionName,strval(tmp2)); SendClientMessage(playerid,COLOR_YELLOW,string); }
         else { format(string,256,"Du hast dir selber %d Prozent Energie gegeben.",strval(tmp2)); SendClientMessage(playerid,COLOR_YELLOW,string); }
         new Float:Health; GetPlayerHealth(id,Health); return SetPlayerHealth(id,Health+strval(tmp2));
      } return SendClientMessage(playerid,COLOR_RED,"ERROR: Diesen Spieler gibt es nicht!!");
}

   dcmd_sethealth(playerid,params[]) {
      if(!IsPlayerAdmin(playerid)){ return 0;}
       new tmp[256],tmp2[256],Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index);
       if(!strlen(tmp)||!strlen(tmp2)||!(strval(tmp2) >= 0 && strval(tmp2) <= 100)) return SendClientMessage(playerid,COLOR_RED,"Benutzung: /sethealth <playerid> <1-100>");
         new id; id = strval(tmp);
      if(IsPlayerConnected(id) && id != INVALID_PLAYER_ID) {
         new string[256],name[24],ActionName[24]; GetPlayerName(playerid,name,24); GetPlayerName(id,ActionName,24);
         if(id != playerid) { format(string,256,"Administrator %s hat deine Energie auf %d Prozent gesetzt.",name,strval(tmp2)); SendClientMessage(id,COLOR_YELLOW,string); format(string,256,"Du hast die Energie von %s auf %d Prozent gesetzt.",ActionName,strval(tmp2)); SendClientMessage(playerid,COLOR_YELLOW,string); }
         else { format(string,256,"Du hast deine Energie auf %d Prozent gesetzt.",strval(tmp2)); SendClientMessage(playerid,COLOR_YELLOW,string); }
         return SetPlayerHealth(id,strval(tmp2));
      } return SendClientMessage(playerid,COLOR_RED,"ERROR: Diesen Spieler gibt es nicht!!");
}

   dcmd_setarmour(playerid,params[]) {
      if(!IsPlayerAdmin(playerid)){ return 0;}
       new tmp[256],tmp2[256],Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index);
       if(!strlen(tmp)||!strlen(tmp2)||!(strval(tmp2) >= 1 && strval(tmp2) <= 100)) return SendClientMessage(playerid,COLOR_RED,"Benutzung. /setarmour <playerid> <1-100>");
         new id; id = strval(tmp);
      if(IsPlayerConnected(id) && id != INVALID_PLAYER_ID) {
         new string[256],name[24],ActionName[24]; GetPlayerName(playerid,name,24); GetPlayerName(id,ActionName,24);
         if(id != playerid) { format(string,256,"Administrator \"%s\" has set your armour to %d.",name,strval(tmp2)); SendClientMessage(id,COLOR_YELLOW,string); format(string,256,"Du hast die Weste von %s auf %d Prozent gesetzt.",ActionName,strval(tmp2)); SendClientMessage(playerid,COLOR_YELLOW,string); }
         else { format(string,256,"Du hast deine Weste auf %d Prozent gesetzt.",strval(tmp2)); SendClientMessage(playerid,COLOR_YELLOW,string); }
         return SetPlayerArmour(id,strval(tmp2));
      } return SendClientMessage(playerid,COLOR_RED,"ERROR: Diesen Spieler gibt es nicht!!");
}
   dcmd_givearmour(playerid,params[]) {
      if(!IsPlayerAdmin(playerid)){ return 0;}
       new tmp[256],tmp2[256],Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index);
       if(!strlen(tmp)||!strlen(tmp2)||!(strval(tmp2) >= 1 && strval(tmp2) <= 100)) return SendClientMessage(playerid,COLOR_RED,"Benutzung: /givearmour <playerid> <1-100>");
         new id; id = strval(tmp);
      if(IsPlayerConnected(id) && id != INVALID_PLAYER_ID) {
         new string[256],name[24],ActionName[24]; GetPlayerName(playerid,name,24); GetPlayerName(id,ActionName,24);
         if(id != playerid) { format(string,256,"Administrator \"%s\" has given you %d armour.",name,strval(tmp2)); SendClientMessage(id,COLOR_YELLOW,string); format(string,256,"Du hast die Weste von %s um %d Prozent verbessert.",ActionName,strval(tmp2)); SendClientMessage(playerid,COLOR_YELLOW,string); }
         else { format(string,256,"Du hast deine Weste um %d Prozent verbessert.",strval(tmp2)); SendClientMessage(playerid,COLOR_YELLOW,string); }
         new Float:Armour; GetPlayerArmour(id,Armour); return SetPlayerArmour(id,Armour+strval(tmp2));
      } return SendClientMessage(playerid,COLOR_RED,"ERROR: Diesen Spieler gibt es nicht!!");
}

   dcmd_armourall(playerid,params[]) {
      if(!IsPlayerAdmin(playerid)){ return 0;}
   #pragma unused params
       for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i)) SetPlayerArmour(i,100.0);
       new string[256],name[24]; GetPlayerName(playerid,name,24);
       format(string,256,"Jeder hat eine [neue] Weste von Administrator %s bekommen.",name); return SendClientMessageToAll(COLOR_YELLOW,string);
}

   dcmd_healall(playerid,params[]) {
      if(!IsPlayerAdmin(playerid)){ return 0;}
   #pragma unused params
       for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i)) SetPlayerHealth(i,100.0);
       new string[256],name[24]; GetPlayerName(playerid,name,24);
       format(string,256,"Jeder wurde von Administrator %s geheilt!",name); return SendClientMessageToAll(COLOR_YELLOW,string);
}


   dcmd_kick(playerid,params[]) {
      if(!IsPlayerAdmin(playerid)){ return 0;}
         if(!strlen(params)) return SendClientMessage(playerid,COLOR_RED,"Benutzung: /kick <Spieler-ID> [<Grund>]");
         new tmp[256],Index; tmp = strtok(params,Index);
         new id; id = strval(tmp);
      if(IsPlayerConnected(id) && id != INVALID_PLAYER_ID && id != playerid) {
          new string[256],name[24],ActionName[24]; GetPlayerName(playerid,name,24); GetPlayerName(id,ActionName,24);
          if(!strlen(params[strlen(tmp)+1])) format(string,256,"%s wurde von Administrator %s gekickt!",ActionName,name);
         else format(string,256,"%s wurde von Administrator %s gekickt! (Grund: %s)",ActionName,name,params[strlen(tmp)+1]);
         SendClientMessageToAll(COLOR_RED,string); return Kick(id);
      } else return SendClientMessage(playerid,COLOR_RED,"ERROR: Diesen Spieler gibt es nicht bzw du kannst dich nicht selber kicken!!");
}
   dcmd_ban(playerid,params[]) {
      if(!IsPlayerAdmin(playerid)){ return 0;}
         if(!strlen(params)) return SendClientMessage(playerid,COLOR_RED,"Benutzung: /ban <Spieler-ID> [<Grund>]");
         new tmp[256],Index; tmp = strtok(params,Index);
         new id; id = strval(tmp);
      if(IsPlayerConnected(id) && id != INVALID_PLAYER_ID && id != playerid) {
          new string[256],name[24],ActionName[24]; GetPlayerName(playerid,name,24); GetPlayerName(id,ActionName,24);
          if(!strlen(params[strlen(tmp)+1])) format(string,256,"%s wurde von Administrator %s gebannt!",ActionName,name);
         else format(string,256,"%s wurde von Administrator %s gebannt! (Grund: %s)",ActionName,name,params[strlen(tmp)+1]);
         SendClientMessageToAll(COLOR_RED,string); return Ban(id);
      } else return SendClientMessage(playerid,COLOR_RED,"ERROR: Diesen Spieler gibt es nicht bzw du kannst dich nicht selber bannen!!");
}

   dcmd_godforall(playerid,params[]) {
      if(!IsPlayerAdmin(playerid)){ return 0;}
   #pragma unused params
       for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i)) SetPlayerHealth(i,100000.0);
       new string[256],name[24]; GetPlayerName(playerid,name,24);
       format(string,256,"Jeder hat von Administrator %s GOD-MODE bekommen!",name); return SendClientMessageToAll(COLOR_YELLOW,string);
}

   dcmd_lockserver(playerid,params[])
{
   if(!IsPlayerAdmin(playerid)){ return 0;}
   #pragma unused params
   new string[MAX_STRING];
    IsServerLocked = true;
    format(string, sizeof(string), "Der Server wurde vom Administrator geschlossen!");
      SendClientMessageToAll(COLOR_RED,string);
      SendClientMessage(playerid,COLOR_GREEN, "Server geschlossen!");
    return 1;
}

   dcmd_unlockserver(playerid, params[])
{
   if(!IsPlayerAdmin(playerid)){ return 0;}
   #pragma unused params
   new string[MAX_STRING];
   IsServerLocked = false;
    format(string, sizeof(string), "Der Server ist wieder offen!!");
      SendClientMessageToAll(COLOR_GREEN,string);
      SendClientMessage(playerid,COLOR_GREEN, "Nun issa wieder offen^^");
   print(string);
    return 1;
}
   dcmd_aarea(playerid, params[])
{
   if(!IsPlayerAdmin(playerid)){ return 0;}
   #pragma unused params
   if(IsPlayerAdmin(playerid)){
   if (IsPlayerInAnyVehicle(playerid)) {
   SetVehiclePos(GetPlayerVehicleID(playerid),-825.2319,504.1446,1358.7611);
   SetPlayerInterior(playerid,1);

   SendClientMessage(playerid,COLOR_GREEN,"Du bist in der ADMIN-AREA!!!");}}
   if(!IsPlayerInAnyVehicle(playerid)){
   if(IsPlayerAdmin(playerid)){
   SetPlayerPos(playerid,-825.2319,504.1446,1358.7611);
   SetPlayerInterior(playerid,1);
   LinkVehicleToInterior(GetPlayerVehicleID(playerid),1);
   SendClientMessage(playerid,COLOR_GREEN,"Du bist in der ADMIN-AREA!!!");
   }}
   return 1;}




dcmd_explode(playerid,params[]) {
   if(!IsPlayerAdmin(playerid)){ return 0;}
       if(!strlen(params)) return SendClientMessage(playerid,COLOR_RED,"Benutzung: /explode <Spieler-ID>");
         new id; id = strval(params);
      if(IsPlayerConnected(id) && id != INVALID_PLAYER_ID) {
           new string[256],name[24],ActionName[24],Float:X,Float:Y,Float:Z; GetPlayerName(playerid,name,24); GetPlayerName(id,ActionName,24);
         if(!IsPlayerInAnyVehicle(id)) GetPlayerPos(id,X,Y,Z); else GetVehiclePos(GetPlayerVehicleID(id),X,Y,Z); for(new i = 1; i <= 5; i++) CreateExplosion(X,Y,Z,10,0);
          if(id != playerid) {
            format(string,256,"Du wurdest von Administrator %s explodiert!",name); SendClientMessage(id,COLOR_YELLOW,string);
             format(string,256,"Du hast %s explodiert!",ActionName); return SendClientMessage(playerid,COLOR_YELLOW,string);
         } else return SendClientMessage(playerid,COLOR_YELLOW,"Du kannst dich nicht selbst explodieren!");
      } else return SendClientMessage(playerid,COLOR_RED,"ERROR: Diesen Spieler gibt es nicht!!");
}


dcmd_mute(playerid,params[]) {
   if(!IsPlayerAdmin(playerid)){ return 0;}
new muteid;
new mutename[256];
new mutestring[256];
muteid = strval(params);
if(!strlen(params)) {
SendClientMessage(playerid, COLOR_WHITE, "Benutzung: /mute [Spieler-ID]");
return 1;
}

if(IsPlayerAdmin(playerid))
{
if(IsPlayerConnected(muteid))
{
muted[muteid] = 1;
GetPlayerName(muteid, mutename, sizeof(mutename));
format(mutestring, sizeof(mutestring), "%s wurde stummgeschaltet",mutename);
SendClientMessageToAll(COLOR_ORANGE, mutestring);
}
else
{
format(mutestring, sizeof(mutestring), "%d ist kein aktiver Spieler",muteid);
SendClientMessageToAll(COLOR_RED, mutestring);
}
}
return 1;
}

dcmd_unmute(playerid,params[]) {
   if(!IsPlayerAdmin(playerid)){ return 0;}
new muteid;
new mutename[256];
new mutestring[256];
muteid = strval(params);
if(!strlen(params)) {
SendClientMessage(playerid, COLOR_WHITE, "Benutzung: /unmute [Spieler-ID]");
return 1;
}

if(IsPlayerAdmin(playerid))
{
if(IsPlayerConnected(muteid))
{
muted[muteid] = 0;
GetPlayerName(muteid, mutename, sizeof(mutename));


format(mutestring, sizeof(mutestring), "%s ist nicht mehr stummgeschaltet",mutename);
SendClientMessageToAll(COLOR_ORANGE, mutestring);
}
else
{
format(mutestring, sizeof(mutestring), "%d ist kein aktiver Spieler",muteid);
SendClientMessageToAll(COLOR_RED, mutestring);
}
}
return 1;
}


dcmd_jail(playerid,params[]) {
   if(!IsPlayerAdmin(playerid)){ return 0;}
       if(!strlen(params)) return SendClientMessage(playerid,COLOR_RED,"Benutzung: /jail <Spieler-ID>");
         new id; id = strval(params);
      if(IsPlayerConnected(id) && id != INVALID_PLAYER_ID && id != playerid) {
             if(jailed[playerid] == 1){ return SendClientMessage(playerid,COLOR_RED,"ERROR: Dieser Spieler es schon gejailt!!");}
         new string[256],name[24],ActionName[24]; GetPlayerName(playerid,name,24); GetPlayerName(id,ActionName,24);
         format(string,256,"Administrator %s hat dich gejailt!",name); SendClientMessage(id,COLOR_RED,string); format(string,256,"Du hast %s gejailt!",ActionName); SendClientMessage(playerid,COLOR_YELLOW,string);
         jailed[id] = 1;
          } return 1;}



dcmd_unjail(playerid,params[]) {
   if(!IsPlayerAdmin(playerid)){ return 0;}
       if(!strlen(params)) return SendClientMessage(playerid,COLOR_RED,"Benutzung: /unjail <Spieler-ID>");
         new id; id = strval(params);
      if(IsPlayerConnected(id) && id != INVALID_PLAYER_ID && id != playerid) {
            if(jailed[playerid] == 1){ return SendClientMessage(playerid,COLOR_RED,"ERROR: Dieser Spieler ist garnicht gejailed!");}
         new string[256],name[24],ActionName[24]; GetPlayerName(playerid,name,24); GetPlayerName(id,ActionName,24);
         if(id != playerid) { format(string,256,"Administrator %s hat dich ungejailed!",name); SendClientMessage(id,COLOR_GREEN,string); format(string,256,"Du hast %s ungejailed",ActionName); SendClientMessage(playerid,COLOR_YELLOW,string); }
         jailed[id] = 0;
      } return 1;}


dcmd_freeze(playerid,params[]) {
   if(!IsPlayerAdmin(playerid)){ return 0;}
       if(!strlen(params)) return SendClientMessage(playerid,COLOR_RED,"Benutzung: /freeze <Spieler-ID>");
         new id; id = strval(params);
      if(IsPlayerConnected(id) && id != INVALID_PLAYER_ID && id != playerid) {
          new string[256],name[24],ActionName[24]; GetPlayerName(playerid,name,24); GetPlayerName(id,ActionName,24);
          TogglePlayerControllable(id,false); freezed[id] = 1; format(string,256,"Admnistrator %s hat  %s gefreezed!!",name,ActionName); return SendClientMessageToAll(COLOR_RED,string);
      } else return SendClientMessage(playerid,COLOR_RED,"ERROR: Diesen Spieler gibt es nicht!!");
}
dcmd_unfreeze(playerid,params[]) {
   if(!IsPlayerAdmin(playerid)){ return 0;}
       if(!strlen(params)) return SendClientMessage(playerid,COLOR_RED,"Benutzung: /unfreeze <Spieler-ID>");
         new id; id = strval(params);
      if(IsPlayerConnected(id) && id != INVALID_PLAYER_ID) {
          new string[256],name[24],ActionName[24]; GetPlayerName(playerid,name,24); GetPlayerName(id,ActionName,24);
          TogglePlayerControllable(id,true); freezed[id] = 0; format(string,256,"Admnistrator %s hat %s ungefreezed!",name,ActionName);
         if(id != playerid) return SendClientMessageToAll(COLOR_GREEN, string);
      } else return SendClientMessage(playerid,COLOR_RED,"ERROR: Diesen Spieler gibt es nicht!!");
      return 1;}

dcmd_goto(playerid,params[]) {
   if(!IsPlayerAdmin(playerid)){ return 0;}
       if(!strlen(params)) return SendClientMessage(playerid,COLOR_RED,"Benutzung: /goto <Spieler-ID>");
        new id;
      id = strval(params);
      if(IsPlayerConnected(id) && id != INVALID_PLAYER_ID && id != playerid) {
         new string[256],PlayerName[24],ActionName[24],Float:X,Float:Y,Float:Z; GetPlayerName(playerid,PlayerName,24); GetPlayerName(id,ActionName,24);
         new Interior = GetPlayerInterior(id); SetPlayerInterior(playerid,Interior); SetPlayerVirtualWorld(playerid,GetPlayerVirtualWorld(id)); GetPlayerPos(id,X,Y,Z); if(IsPlayerInAnyVehicle(playerid)) { SetVehiclePos(GetPlayerVehicleID(playerid),X,Y+2,Z); LinkVehicleToInterior(GetPlayerVehicleID(playerid),Interior); } else SetPlayerPos(playerid,X,Y+2,Z);
         format(string,256,"Administrator %s hat sich zu dir teleportiert!",PlayerName); SendClientMessage(id,COLOR_YELLOW,string);
         format(string,256,"Du hast dich zu %s teleportiert.",ActionName); return SendClientMessage(playerid,COLOR_YELLOW,string);
        } else return SendClientMessage(playerid,COLOR_RED,"ERROR: Diesen Spieler gibt es nicht!!");
}
dcmd_gethere(playerid,params[]) {
   if(!IsPlayerAdmin(playerid)){ return 0;}
       if(!strlen(params)) return SendClientMessage(playerid,COLOR_RED,"Benutzung: /gethere <Spieler-ID>");
        new id;
      id = strval(params);
      if(IsPlayerConnected(id) && id != INVALID_PLAYER_ID && id != playerid) {
         new string[256],PlayerName[24],ActionName[24],Float:X,Float:Y,Float:Z; GetPlayerName(playerid,PlayerName,24); GetPlayerName(id,ActionName,24);
         new Interior = GetPlayerInterior(playerid); SetPlayerInterior(id,Interior); SetPlayerVirtualWorld(id,GetPlayerVirtualWorld(playerid)); GetPlayerPos(playerid,X,Y,Z); if(IsPlayerInAnyVehicle(id)) { SetVehiclePos(GetPlayerVehicleID(id),X,Y+2,Z); LinkVehicleToInterior(GetPlayerVehicleID(id),Interior); } else SetPlayerPos(id,X,Y+2,Z);
            format(string,256,"Du hast %s zu dir teleportiert",ActionName); SendClientMessage(playerid,COLOR_YELLOW,string);
         format(string,256,"Du wurdest von %s zu seiner Position teleportiert!",PlayerName); return SendClientMessage(id,COLOR_YELLOW,string);
        } else return SendClientMessage(playerid,COLOR_RED,"ERROR: Diesen Spieler gibt es nicht!!");
}

dcmd_admintune(playerid,params[]) {
if(!IsPlayerAdmin(playerid)){ return 0;}
#pragma unused params
ShowMenuForPlayer(AutoTuning,playerid);
TogglePlayerControllable(playerid, 0);
return 1;}




dcmd_spec(playerid,params[]) {
   if(!IsPlayerAdmin(playerid)){ return 0;}
new specplayerid;

      if(!strlen(params)) {
         SendClientMessage(playerid, COLOR_RED, "Benutzung: /spec <Spieler-ID>");
         return 1;
      }
      specplayerid = strval(params);

      if(!IsPlayerConnected(specplayerid)) {
          SendClientMessage(playerid, COLOR_RED, "ERROR: Diesen Spieler gibt es nicht!!");
         return 1;
      }

      TogglePlayerSpectating(playerid, 1);
      PlayerSpectatePlayer(playerid, specplayerid);
      SetPlayerInterior(playerid,GetPlayerInterior(specplayerid));
      gSpectateID[playerid] = specplayerid;
      gSpectateType[playerid] = ADMIN_SPEC_TYPE_PLAYER;

       return 1;
   }


dcmd_specoff(playerid,params[]) {
   if(!IsPlayerAdmin(playerid)){ return 0;}
#pragma unused params
      TogglePlayerSpectating(playerid, 0);
      gSpectateID[playerid] = INVALID_PLAYER_ID;
      gSpectateType[playerid] = ADMIN_SPEC_TYPE_NONE;
      return 1;
   }

dcmd_v(playerid,params[]) {
   if(!IsPlayerAdmin(playerid)){ return 0;}
   if (!strlen(params)) {
    SendClientMessage(playerid, COLOR_RED, "Benutzung: /v MODELID/NAME");
     return true;}
     new idx;
   idx = GetVehicleModelIDFromName(params[1]);
   if(idx == -1) {
   idx = strval(params);
   if (idx < MIN_VEHI_ID || idx > MAX_VEHI_ID) {
   SendClientMessage(playerid, COLOR_RED, "Fehler: Ungueltige(r) ModelID/VehicleName");
   return true;}}
   new Float:x, Float:y, Float:z, Float:a;
   GetPlayerPos(playerid, x, y, z);
   GetXYInFrontOfPlayer(playerid, x, y, VEHI_DIS);
   GetPlayerFacingAngle(playerid, a);
   curPlayerVehM[playerid] = idx;
   curPlayerVehI[playerid] = CreateVehicle(idx, x, y, z + 2.0, a + 90.0, -1, -1, 5000);
   LinkVehicleToInterior(curPlayerVehI[playerid], GetPlayerInterior(playerid));
    curServerVehP[curPlayerVehI[playerid]][spawn]    = true;
   curServerVehP[curPlayerVehI[playerid]][vmodel]   = idx;
   curServerVehP[curPlayerVehI[playerid]][vInt]    = GetPlayerInterior(playerid);
   format(params, 128, "Du hast eine/n \"%s\" gespawnt. (MODELID: %d, VEHICLEID: %d)", CarNames[idx - MIN_VEHI_ID], idx, curPlayerVehI[playerid]);
   SendClientMessage(playerid, COLOR_GREEN, params);
   if (!IsPlayerInAnyVehicle(playerid)) {
   PutPlayerInVehicle(playerid, curPlayerVehI[playerid], 0);}
   return 1;}

public OnPlayerText(playerid, text[])
{
if(muted[playerid] == 1)
{
SendClientMessage(playerid, COLOR_RED, "Du wurdest stummmgeschaltet und keiner kann dich hören");
return 0;
}

return 1;
}


public OnPlayerConnect(playerid)
{
   muted[playerid]   = 0;
    jailed[playerid]  = 0;
    freezed[playerid] = 0;
     if(IsServerLocked == true)
    {
    SendClientMessage(playerid, COLOR_RED,"Der Server ist gerade geschlossen!!");
    SendClientMessage(playerid, COLOR_RED,"Probier es später nochmal!");
    KickPlayer(playerid);
    }
    return 1;
}


   stock SendPlayerFormattedText(playerid, const str[], define)
   {
   new tmpbuf[256];
   format(tmpbuf, sizeof(tmpbuf), str, define);
   SendClientMessage(playerid,0xFFFF00AA, tmpbuf);
   }


SendAdminMessage(color, text[]) {
    for(new i = 0; i < MAX_PLAYERS; i ++) {
        if(IsPlayerConnected(i)) {
                if      (IsPlayerAdmin(i)) {
                SendClientMessage(i, color, text);
            }
        }
    }
}

SendSayMessage(color, string[]) {
    for(new i = 0; i < MAX_PLAYERS; i ++) {
        if(IsPlayerConnected(i)) {
                if      (IsPlayerAdmin(i)) {
                SendClientMessage(i, color, string);
            }
        }
    }
return 1;}


public OnPlayerPrivmsg(playerid, recieverid, text[])
{
   new string[256];
   if(muted[playerid] == 1){
   SendClientMessage(playerid,COLOR_RED, "Du kannst auch keine PM's schreiben während du gemuted bist!");
   Kick(playerid);
   new name[MAX_PLAYERS+1];
   GetPlayerName(playerid,name,30);
    format(string,256,"%s wurde automatisch gekickt, weil er gemuted war und eine PM schreiben wollte!",name);
   SendClientMessageToAll(COLOR_RED, string);
   return 0;}
   if(muted[playerid] == 1){
   return SendClientMessage(playerid,COLOR_RED,"Du kannst keine PM's schreiben während du gemuted bist!");}

    new player[MAX_PLAYER_NAME];
   new receiver[MAX_PLAYER_NAME];
   new tmpp[256];
   GetPlayerName(playerid, player, sizeof(player));
   GetPlayerName(recieverid, receiver, sizeof(receiver));
   format(tmpp, sizeof(tmpp), "PM von [%i]%s an [%i]%s: %s",playerid,player,recieverid,receiver,text);
   SendAdminMessage(COLOR_YELLOW,tmpp);
   PlayerPlaySound(playerid, 1083, 0.0, 0.0, 0.0);
   return 1;
}

public PingKick(playerid)
{
        for(new i=0; i<MAX_PLAYERS; i++)
        {
                new ping=GetPlayerPing(i);
                  new name[MAX_PLAYER_NAME+1];
                  new string[256];
                if(ping > pingkick)
                {
                        SendClientMessage(i, COLOR_RED, "Du wurdest wegen zu hohem Ping gekickt!!");
                        Kick(i);
                          GetPlayerName(i, name, 30);
                   format(string, 256, "%s wurde wegen zu hohem Ping gekickt (Max. - Ping: 500)!!", name);
                   SendClientMessageToAll(COLOR_RED, string);
                }
        }
        return 0;
}

stock KickPlayer(playerid)
{
    if (IsPlayerConnected(playerid))
   {
    TogglePlayerControllable(playerid, 0);
    Kick(playerid);
    }
   return 1;
}


public OnPlayerSelectedMenuRow(playerid, row)
{

new Menu:Current = GetPlayerMenu(playerid);
if (Current == AutoTuning)
      {
      switch(row) {

case 0:{
   TogglePlayerControllable(playerid,1);
   new carid;
   carid = GetPlayerVehicleID(playerid);
    new Car = GetPlayerVehicleID(playerid), Model = GetVehicleModel(Car);
     switch(Model) { case 448,461,462,463,468,471,509,510,521,522,523,581,586,472,473,493,595,484,430,453,452,446,454,548,425,417,487,497,563,447,469,488/*,592,577,511,512,593,520,553,476,519,460,513*/: return SendClientMessage(playerid,COLOR_RED,"ERROR: Du kannst in Bikes/Boote/Helis keinen Nitro einbauen!");}
   if(IsPlayerInAnyVehicle(playerid)){
   TogglePlayerControllable(playerid,1);
    AddVehicleComponent(carid,1010);
   SendClientMessage(playerid, COLOR_LIGHTGREEN, "Du hast dir Nitro eingebaut!");}
   if(!IsPlayerInAnyVehicle(playerid)){
   TogglePlayerControllable(playerid,1);
   SendClientMessage(playerid, COLOR_RED, "Du musst zuerst in eine Karre!");}
   return 1;}



case 1:{
   TogglePlayerControllable(playerid,1);
   new carid;
   carid = GetPlayerVehicleID(playerid);
    new Car = GetPlayerVehicleID(playerid), Model = GetVehicleModel(Car);
     switch(Model) { case 448,461,462,463,468,471,509,510,521,522,523,581,586,472,473,493,595,484,430,453,452,446,454,548,425,417,487,497,563,447,469,488/*,592,577,511,512,593,520,553,476,519,460,513*/: return SendClientMessage(playerid,COLOR_RED,"ERROR: Du kannst in Bikes/Boote/Helis keine Hydraulik einbauen!");}
   if(IsPlayerInAnyVehicle(playerid)){
   TogglePlayerControllable(playerid,1);
    AddVehicleComponent(carid,1087);
   SendClientMessage(playerid, COLOR_LIGHTGREEN, "Du hast dir Hydraulik eingebaut!");}
   if(!IsPlayerInAnyVehicle(playerid)){
   TogglePlayerControllable(playerid,1);
   SendClientMessage(playerid, COLOR_RED, "Du musst zuerst in eine Karre!");}
   return 1;}

case 2:{
   TogglePlayerControllable(playerid,1);
   new carid;
   carid = GetPlayerVehicleID(playerid);
    new Car = GetPlayerVehicleID(playerid), Model = GetVehicleModel(Car);
     switch(Model) { case 448,461,462,463,468,471,509,510,521,522,523,581,586,472,473,493,595,484,430,453,452,446,454,548,425,417,487,497,563,447,469,488/*,592,577,511,512,593,520,553,476,519,460,513*/: return SendClientMessage(playerid,COLOR_RED,"ERROR: Du kannst Bikes/Boote/Helis keine Grove-Räder machen!");}
   if(IsPlayerInAnyVehicle(playerid)){
   TogglePlayerControllable(playerid,1);
    AddVehicleComponent(carid,1081);
   SendClientMessage(playerid, COLOR_LIGHTGREEN, "Du hast dir Grove-Räder ausgewählt!");}
   if(!IsPlayerInAnyVehicle(playerid)){
   TogglePlayerControllable(playerid,1);
   SendClientMessage(playerid, COLOR_RED, "Du musst zuerst in eine Karre!");}
   return 1;}
   }
   }
return 0;
}



public OnPlayerExitedMenu(playerid)
{
new Menu:Current = GetPlayerMenu(playerid);
if( Current == AutoTuning){
TogglePlayerControllable(playerid,1);}

return 1;
}

public minigunupdate(playerid)
{
new string[256];
new sendername[256];
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerAdmin(i))
{
}
else{
new w7222;
new a7222;
GetPlayerWeaponData(i, 7, w7222, a7222);
if(w7222 == 38 && a7222 >= 1)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, sizeof(string), "%s wurde wegen Besitz einer Minigun gekickt!", sendername);
SendClientMessageToAll(COLOR_RED, string);
Kick(i);
}
}
}
}



public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
   return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
   return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
   return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
   return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
   return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
   return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
   return 1;
}

public OnRconCommand(cmd[])
{
   return 1;
}

public OnPlayerRequestSpawn(playerid)
{
   return 1;
}

public OnObjectMoved(objectid)
{
   return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
   return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
   return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
   return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
   return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
   return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
   return 1;
}

public OnPlayerExitedMenu(playerid)
{
   return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
   return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
   return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
   return 1;
}

public OnPlayerUpdate(playerid)
{
   return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
   return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
   return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
   return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
   return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
   if(Dialogid==DIALOG_REGISTER)
   {
        if(Response==0)
      {
         SendClientMessage(Playerid,BLAU,"Du hast denn Vorgang abgebrochen!");
         KICK(Playerid);
         return 1;
        }
        if(Response==0)

         if(!strlen(Imputtext))
         {
                SendClientMessage(Playerid,BLAU,"Das Passwort war nicht lang genug!");
                ShowPlayerDialog(Playerid,DIALOG_REGISTER_DIALOG_STYLE_INPUT,"REGISTRIEREN","Gib bitte dein gewünschtes Passwort ein:","Register","Abbrechen");
                return 1;

            }
         else
         {
               Register(Playerid,Imputtext);
               return 1;
        }
   return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
   return 1;
}

Stock Register(Playerid,Key[])
{
   new Spielerdatei[64];
   new name[MAX_PLAYER_NAME];
   GetPlayerName(Playerid,(name),sizeof(name));
   formate(Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.txt",name);
   dini_Create(Spielerdatei);
   dini_Set(Spielerdatei,"Passwort",Key);
   SendClientMessage(Playerid,BLAU,"Sie haben sich erfolgreich Registriert!");
    return 1;
}


//Edit
Code-Tag gesetzt.

MfG
Rafioso
Dieser Beitrag wurde insgesamt 1 mal editiert. Das letzte Mal 07.07.2011, 20:11 von Rafioso.

Kein neuer Beitrag 26.06.2011, 15:29
Beitrag #2   

111111
Ladendieb
* * * O O O O O O O O
Kein Bild vorhanden
Registrierung: 26.06.2011, 12:40
Beiträge: 2

Das passte oben nicht mehr rein!

Das sind die fehler:


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
D:\Programe\Spiele\gamemodes\german-reallife.pwn(5) : error 031: unknown directive
D:\Programe\Spiele\gamemodes\german-reallife.pwn(69) : error 017: undefined symbol "Playerid"
D:\Programe\Spiele\gamemodes\german-reallife.pwn(70) : warning 217: loose indentation
D:\Programe\Spiele\gamemodes\german-reallife.pwn(106) : warning 202: number of arguments does not match definition
D:\Programe\Spiele\gamemodes\german-reallife.pwn(106) : warning 202: number of arguments does not match definition
D:\Programe\Spiele\gamemodes\german-reallife.pwn(106) : warning 202: number of arguments does not match definition
D:\Programe\Spiele\gamemodes\german-reallife.pwn(106) : warning 202: number of arguments does not match definition
D:\Programe\Spiele\pawno\include\DUDB.inc(34) : warning 209: function "OnPlayerCommandText" should return a value
D:\Programe\Spiele\gamemodes\german-reallife.pwn(241) : warning 209: function "OnPlayerInteriorChange" should return a value
D:\Programe\Spiele\gamemodes\german-reallife.pwn(258) : error 021: symbol already defined: "OnPlayerSpawn"
D:\Programe\Spiele\gamemodes\german-reallife.pwn(267) : error 021: symbol already defined: "OnPlayerCommandText"
D:\Programe\Spiele\gamemodes\german-reallife.pwn(966) : error 021: symbol already defined: "OnPlayerText"
D:\Programe\Spiele\gamemodes\german-reallife.pwn(978) : error 021: symbol already defined: "OnPlayerConnect"
D:\Programe\Spiele\gamemodes\german-reallife.pwn(1021) : warning 235: public function lacks forward declaration (symbol "OnPlayerPrivmsg")
D:\Programe\Spiele\gamemodes\german-reallife.pwn(1248) : error 021: symbol already defined: "OnPlayerSelectedMenuRow"
D:\Programe\Spiele\gamemodes\german-reallife.pwn(1253) : error 021: symbol already defined: "OnPlayerExitedMenu"
D:\Programe\Spiele\gamemodes\german-reallife.pwn(1258) : error 021: symbol already defined: "OnPlayerInteriorChange"
D:\Programe\Spiele\gamemodes\german-reallife.pwn(1299) : error 017: undefined symbol "Dialogid"
D:\Programe\Spiele\gamemodes\german-reallife.pwn(1301) : error 017: undefined symbol "Response"
D:\Programe\Spiele\gamemodes\german-reallife.pwn(1303) : error 017: undefined symbol "Playerid"
D:\Programe\Spiele\gamemodes\german-reallife.pwn(1304) : error 017: undefined symbol "KICK"
D:\Programe\Spiele\gamemodes\german-reallife.pwn(1307) : error 017: undefined symbol "Response"
D:\Programe\Spiele\gamemodes\german-reallife.pwn(1309) : error 017: undefined symbol "Imputtext"
D:\Programe\Spiele\gamemodes\german-reallife.pwn(1311) : error 017: undefined symbol "Playerid"
D:\Programe\Spiele\gamemodes\german-reallife.pwn(1312) : error 017: undefined symbol "Playerid"
D:\Programe\Spiele\gamemodes\german-reallife.pwn(1318) : error 017: undefined symbol "Register"
D:\Programe\Spiele\gamemodes\german-reallife.pwn(1324) : error 029: invalid expression, assumed zero
D:\Programe\Spiele\gamemodes\german-reallife.pwn(1324) : error 004: function "OnPlayerClickPlayer" is not implemented
D:\Programe\Spiele\gamemodes\german-reallife.pwn(1329) : warning 225: unreachable code
D:\Programe\Spiele\gamemodes\german-reallife.pwn(1329) : error 017: undefined symbol "Stock"
D:\Programe\Spiele\gamemodes\german-reallife.pwn(1329) : error 017: undefined symbol "Register"
D:\Programe\Spiele\gamemodes\german-reallife.pwn(1333) : error 017: undefined symbol "Playerid"
D:\Programe\Spiele\gamemodes\german-reallife.pwn(1334) : error 017: undefined symbol "formate"
D:\Programe\Spiele\gamemodes\german-reallife.pwn(1334) : warning 202: number of arguments does not match definition
D:\Programe\Spiele\gamemodes\german-reallife.pwn(1334) : warning 202: number of arguments does not match definition
D:\Programe\Spiele\gamemodes\german-reallife.pwn(1334) : warning 202: number of arguments does not match definition
D:\Programe\Spiele\gamemodes\german-reallife.pwn(1336) : error 017: undefined symbol "Key"
D:\Programe\Spiele\gamemodes\german-reallife.pwn(1337) : error 017: undefined symbol "Playerid"

Compilation aborted.Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


26 Errors.


//Edit
Code-Tag gesetzt.

MfG
Rafioso
Dieser Beitrag wurde insgesamt 1 mal editiert. Das letzte Mal 30.06.2011, 22:07 von Rafioso.

Kein neuer Beitrag 30.06.2011, 14:08
Beitrag #3   

Prinz Valium!
Capo
* * * * * * * * * * O
Registrierung: 18.04.2006, 11:26
User-Info: The Prince of GTA
Homepage: http://www.GTAvision.com
Lieblings-GTA: GTA IV
Wohnort: Dahoam^^
GFWL-Tag: GV Prinz Valium
Social Club: gvprinzvalium
Beiträge: 3903

Verschoben, hat nichts bei "GTA San Andreas: Allgemeines" zu suchen.


http://forum.gtavision.com/sonstiges/userbars/gtavision_userbar_admin_1.gif
http://img3.imagebanana.com/img/6ctlhlwa/pokerspieler.jpg

http://de.miniprofile.xfire.com/bg/sh/type/2/vwwprinzvalium.png

Kein neuer Beitrag 30.06.2011, 22:01
Beitrag #4   

Sh3LteR
Capo
* * * * * * * * * * O
Registrierung: 24.07.2007, 09:51
Lieblings-GTA: GTA: Vice City
Script Editor: Pawno
Wohnort: Austria/Nö/GD
Beiträge: 3211

so... ich weiß grad nicht ob ich das richtig sehe bin mit dem handy hier, aber hast du den admin
filterscript einfach in den gamemode reinkopiert? Ich würde dir raten einen neuen gamemode zu
machen und nicht so viel kopie &past zu machen. Aller anfang ist schwer :/

Kein neuer Beitrag 07.07.2011, 05:58
Beitrag #5   

N0rax
Kopfgeldjäger
* * * * * * * O O O O
Registrierung: 15.05.2010, 21:10
User-Info: Grand Theft AWESOME V
Homepage: http://youtube.com/C/Shisha...
Lieblings-GTA: GTA V
Script Editor: Pawno
PSN-ID: mike7363
Social Club: mike7363
Beiträge: 603

Du hast einmal die Include oben als verwendung danach nach den OnPlayerCommandText nochmal und dort
fehlt übrigends auch ein "return 0;}"

Druckansicht

n/a n/a 1     (Anzeige: 1 – 5; Insgesamt: 5) n/a n/a
Toggle Ähnliche Themen zu „Hilfe! Mein Script hat zu viele fehler“
  Antworten Aufrufe Themeneröffnung Letzter Beitrag
Keine neuen Beiträge, „heißes Thema“   Suche Scripter 0 2428 27.06.2019, 15:25
Von: Domse
27.06.2019, 15:25
Von: Domse
Zum letzten Beitrag
Keine neuen Beiträge, „heißes Thema“   Wichtiges Thema Scripter für SA:MP gesucht   Seiten 1 2 3 4  ...7 ] 94 134854 25.12.2007, 13:04
Von: GTA_FreakY
24.03.2019, 11:10
Von: Elite55
Zum letzten Beitrag
Keine neuen Beiträge, „heißes Thema“ Thema GTA SAmp Scripter Gesucht! 0 37025 23.07.2016, 12:20
Von: Namowarus
23.07.2016, 12:20
Von: Namowarus
Zum letzten Beitrag
Keine neuen Beiträge, „heißes Thema“   Brauche Hilfe 14 101920 01.03.2014, 21:24
Von: Denis_lenzo
28.09.2015, 22:05
Von: Rafioso
Zum letzten Beitrag
Keine neuen Beiträge, „heißes Thema“   Fehlermeldung: Profil kann nicht mit live verbunden werden wegen ... 7 16074 06.06.2015, 22:08
Von: Jonnix
12.06.2015, 00:33
Von: Rafioso
Zum letzten Beitrag
  • 0.023374 Sek., 16 DB-Zugriffe, 2.299 MiB
  • Powered by Boardsolution v1.45
GTAvision.com :: Forumregeln :: FAQ :: Impressum :: Kontakt :: RDRvision.com :: LANOIREvision.com :: MaxPayneVision.com
NetVisionWork.NET
.: © 2006-2014 by GTAvision.com :.

Rockstar GamesTake-Two Interactive Deutschland

Free Grand Theft Auto Downloads