Advertisement
Guest User

Untitled

a guest
Jun 17th, 2010
2,842
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 238.07 KB | None | 0 0
  1. /* ..:: Selfmade TeamDeathMatch Script by Hustler and Shukaz 2010 (c) ::..
  2.  ..:: San Francisco Mafia Wars v3.1 ::..
  3.  ..:: /credits :..*/
  4.  
  5. #include <a_samp>
  6. #include <core>
  7. #include <float>
  8. #include <dini>
  9. #include <JunkBuster>
  10. #pragma tabsize 0
  11.  
  12. #undef MAX_PLAYERS
  13. #define MAX_PLAYERS 50 //IMPORTANT: CHANGE THE NUMBERS OF THE MAX PLAYAS IF YOU HAVE MORE THAN 50 USERS IN SERVER!!
  14. // DEFINES =====================================================================
  15. #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
  16. #define COLOR_GREY 0xAFAFAFAA
  17. #define COLOR_GREEN 0x33AA33AA
  18. #define COLOR_RED 0xFF0000AA
  19. #define COLOR_BLUE 0x0000BBAA
  20. #define COLOR_LIGHTBLUE 0x33CCFFAA
  21. #define COLOR_DARKRED 0x660000AA
  22. #define COLOR_WHITE 0xFFFFFFAA
  23. #define COLOR_YELLOW 0xF1FE01FF
  24. #define COLOR_PURPLE 0x9E18E7FF
  25. #define COLOR_ORANGE 0xFF9900AA
  26. #define WeiЯ 0xFFFFFFAA
  27. #define Grau 0xAFAFAFAA
  28. #define Rot 0xAA3333AA
  29. #define aqua 0x01FCFFC8
  30. #define hellblau 0x3399FFFF
  31. #define indigo 0x4B00B0AA
  32. #define purple 0xC2A2DAAA
  33. #define blau 0x0033CCB0
  34. #define hellgrau 0xCCCCCCFF
  35. #define grau 0x999999FF
  36. #define dunkelgrau 0x666666FF
  37. #define hellgruen 0x33FF00FF
  38. #define gruen 0x00CC00C4
  39. #define olivgruen 0x669933FF
  40. #define dunkelgruen 0x339933FF
  41. #define hellrot 0xFF6347AA
  42. #define rot 0xAA3333AA
  43. #define dunkelrot 0x950000FF
  44. #define gelb 0xFFFF00AA
  45. #define pink 0xFF66FFAA
  46. #define weiss 0xFFFFFFAA
  47. #define orange 0xFF9900AA
  48. #define schwarz 0x000000FF
  49. #define yugoblau 0x0033FF98
  50. #define braun 0x663300C7
  51. #define SPAWNTIME 10
  52. #define Waffenmenu 11
  53. #define Fight 9
  54. #define Rules 6
  55. #define Credits 2
  56. #define RInfo 2
  57. #define DIALOG_LOGIN 3
  58. #define DIALOG_REG 4
  59. #define DIALOG_DM 5
  60.  
  61. #define TEAM_LCN 0
  62. #define TEAM_RUS 1
  63. #define TEAM_TRIADS 2
  64. #define TEAM_YUGO 3
  65. #define TEAM_GERMAN 4
  66. #define TEAM_CUBAN 5
  67. #define TEAM_GAMER 6
  68. // Minijob
  69. #define Checkpoint1 -1890.8228,-1698.6608,21.7500
  70. #define DeliverCheck -1372.3959,1491.3230,11.0391
  71. #define GamerCheck -2282.1028,2349.4348,5.0961
  72. new drugjob[MAX_PLAYERS];
  73. new DrugsStolen;
  74. // ROBSYSTEM
  75. #define robtime 5400000
  76. #define freezetime 60000
  77. new isAtRob[MAX_PLAYERS];
  78. new timer_x[MAX_PLAYERS];
  79. //GANGZONES---------------------------------------------------------------------
  80. new Zone1,Zone2,Zone3,Zone4,Zone5,Zone6,Zone7,Zone8,Zone9,Zone10,Zone11,Zone12,Zone13;
  81. new ZoneTimer1;
  82. new Zone1Atack,Zone2Atack,Zone3Atack,Zone4Atack,Zone5Atack,Zone6Atack,Zone7Atack;
  83. new Zone8Atack,Zone9Atack,Zone10Atack,Zone11Atack,Zone12Atack,Zone13Atack;
  84. new TakeOverTime;
  85. //------------------------------------------------------------------------------
  86. forward EnableAtack();
  87. forward DrugTimer();
  88. forward rangtimer();
  89. forward payday();
  90. forward AutoNaricht();
  91. forward Cheattimer();
  92. forward ZoneAtack();
  93. //Cars--------------------------------------------------------------------------
  94. forward IsItLcnCar(carid);
  95. forward IsItRusCar(carid);
  96. forward IsItTriadCar(carid);
  97. forward IsItYugoCar(carid);
  98. forward IsItGermanCar(carid);
  99. forward IsItCubanCar(carid);
  100. forward IsItGamerCar(carid);
  101. new LcnCar[13];
  102. new RusCar[13];
  103. new TriadCar[13];
  104. new YugoCar[16];
  105. new GermanCar[13];
  106. new CubanCar[13];
  107. new GamerCar[28];
  108. //Gates-------------------------------------------------------------------------
  109. forward zonecheck();
  110. new Lcngate;
  111. new Rusgate;
  112. new Triadgate;
  113. new Yugogate;
  114. new Germangate;
  115. new Cubangate;
  116. new Gamergate;
  117. // TELEPORTS TO SNIPER PLACE
  118. new lcnteleportpickup;
  119. new yugoteleportpickup;
  120. new russteleportpickup;
  121. new triadteleportpickup;
  122. new cubanteleportpickup;
  123. new germanteleportpickup;
  124. // TELEPORTS BACK TO BASE
  125. new lcnteleportpickup2;
  126. new russteleportpickup2;
  127. new triadteleportpickup2;
  128. new cubanteleportpickup2;
  129. new germanteleportpickup2;
  130. // SHOP PICKUPS
  131. new lcnwaffenpickup;
  132. new russenwaffenpickup;
  133. new triadenwaffenpickup;
  134. new yugowaffenpickup;
  135. new cubanwaffenpickup;
  136. new germanwaffenpickup;
  137. //-------------------
  138. new GamerInfo;
  139. //StreetFight-dm PIckups
  140. new GolfPick;
  141. new KnifePick;
  142. new BasiPick;
  143. new ShovelPick;
  144. new PoolPick;
  145. new AkPick;
  146. // Minijobs pickups
  147. new buydrugpick;
  148. new lcndeliver;
  149. // OTHER VARIABLES
  150. new teamkills[MAX_PLAYERS];
  151. new Gang[MAX_PLAYERS];
  152. new preise[] = {400,1000,800,1000,600,1000,900,400,12000,10000,500,250};
  153. new pIPWarns[MAX_PLAYERS];
  154. new KillSpree[MAX_PLAYERS];
  155. // ROBSYSTEM
  156. new rob = 0;
  157. forward robtimer();
  158. forward freezetimer(playerid);
  159. forward resetRob(playerid);
  160. // BOMB VARIABLES
  161. new PlayerHasBomb[MAX_PLAYERS];
  162. new BombenObject[MAX_PLAYERS];
  163. new IsBombPlanted[MAX_PLAYERS];
  164. //DM System
  165. new IsDm[MAX_PLAYERS];
  166. //Textderaws
  167. forward StatsTimer();
  168. new Text:RankTextdraw[MAX_PLAYERS];
  169. new Text:StatsTextdraw[MAX_PLAYERS];
  170. new Text:ForumTextdraw[MAX_PLAYERS];
  171. new Text:ZonesTextdraw[MAX_PLAYERS];
  172. //NoTimeDuel
  173. new PlayerduelWatching[MAX_PLAYERS];
  174. new InventationSent[MAX_PLAYERS];
  175. new Inventation[MAX_PLAYERS];
  176. new duelRoom1price;
  177. new duelRoom1;
  178. new duelRoom2price;
  179. new duelRoom2;
  180. new duelRoom3price;
  181. new duelRoom3;
  182. new duelRoom4price;
  183. new duelRoom4;
  184. new WeaponduelRoom1;
  185. new WeaponduelRoom2;
  186. new WeaponduelRoom3;
  187. new WeaponduelRoom4;
  188. new Induel[MAX_PLAYERS];
  189. new Inventationprice[MAX_PLAYERS];
  190. forward inventationremove(playerid);
  191. forward CountDown(playerid, seconds);
  192. //Zone
  193. new PlayerAtacker[MAX_PLAYERS];
  194. new EnableAtack1;
  195. new Enable;
  196. //RealTime
  197. new Text:txtTimeDisp;
  198. new hour, minute;
  199. new timestr[32];
  200. forward UpdateTime();
  201. //Enum
  202. enum spieler_daten
  203. {
  204.     rang,
  205.     alvl,
  206.     Deaths,
  207.     Kills,
  208.     eingeloggt,
  209.     gamer
  210. }
  211. new Spieler[MAX_PLAYERS][spieler_daten];
  212.  
  213.  
  214. main()
  215. {
  216.     print("\n|--------------------------------------------------|");
  217.     print("|            San Francisco Mafia Wars v2.1           |");
  218.     print("|                       by                         |");
  219.     print("|               Hustler & Shukaz (c)               |");
  220.     print("|--------------------------------------------------|\n");
  221. }
  222.  
  223.  
  224. public OnGameModeInit()
  225. {
  226.     //RealTime
  227.     txtTimeDisp = TextDrawCreate(605.0,25.0,"00:00");
  228.     TextDrawUseBox(txtTimeDisp, 0);
  229.     TextDrawFont(txtTimeDisp, 3);
  230.     TextDrawSetShadow(txtTimeDisp,0); // no shadow
  231.     TextDrawSetOutline(txtTimeDisp,2); // thickness 1
  232.     TextDrawBackgroundColor(txtTimeDisp,0x000000FF);
  233.     TextDrawColor(txtTimeDisp,0xFFFFFFFF);
  234.     TextDrawAlignment(txtTimeDisp,3);
  235.     TextDrawLetterSize(txtTimeDisp,0.5,1.5);
  236.     UpdateTime();
  237.     SetTimer("UpdateTime",1000 * 60,1);
  238. //------
  239.     EnableStuntBonusForAll(0); //Stunts OFF
  240.     DisableInteriorEnterExits();// Alle Interiors OFF
  241.     SetTimer("rangtimer",5000,1); // Rang checker
  242.     SetTimer("Cheattimer",5000,1); //
  243.     SetTimer("payday",1200000,1); // http://www.convertworld.com/de/zeit/Millisekunden.html
  244.     SetTimer("AutoNaricht",1400000,1); //
  245.     SetGameModeText("The Mafia Way");
  246.     UsePlayerPedAnims();
  247.     DrugsStolen = 0;
  248.     GamerInfo = CreatePickup(1239, 23,-2282.1028,2349.4348,5.0961);
  249. // TELEPORT PICKUPS ============================================================
  250.     lcnteleportpickup = CreatePickup(1559, 23,-2723.2244,-320.9215,7.8438);
  251.     yugoteleportpickup = CreatePickup(1559, 23,-2629.3945,1403.8356,7.0938);
  252.     russteleportpickup = CreatePickup(1559, 23,-2136.1626,-252.2975,35.3203);
  253.     triadteleportpickup = CreatePickup(1559, 23,-2154.6587,641.8469,52.3672);
  254.     cubanteleportpickup = CreatePickup(1559, 23,-1866.9960,-219.3903,18.3750);
  255.     germanteleportpickup = CreatePickup(1559, 23,-2446.2515,528.8219,30.1906);
  256. // TELEPORT PICKUPS BACK TO BASE ==============================================
  257.     lcnteleportpickup2 = CreatePickup(1559, 23,-2716.7261,-323.2274,57.4873);
  258.     russteleportpickup2 = CreatePickup(1559, 23,-2179.8376,-148.2017,50.3188);
  259.     triadteleportpickup2 = CreatePickup(1559, 23,-2158.2214,675.8184,83.1719);
  260.     cubanteleportpickup2 = CreatePickup(1559, 23,-1825.9111,-219.4470,30.3516);
  261.     germanteleportpickup2 = CreatePickup(1559, 23,-2456.9453,456.0735,73.2578);
  262. // SHOP PICKUPS ================================================================
  263.     lcnwaffenpickup = CreatePickup(1210, 23,-2717.8010,-315.7959,7.8438);
  264.     russenwaffenpickup = CreatePickup(1210, 23,-2136.3655,-244.4974,35.3203);
  265.     triadenwaffenpickup = CreatePickup(1210, 23,-2154.7065,647.1374,52.3672);
  266.     yugowaffenpickup = CreatePickup(1210, 23,-2627.5317,1408.6331,7.0938);
  267.     germanwaffenpickup = CreatePickup(1210, 23,-2446.0503,517.9012,30.1604);
  268.     cubanwaffenpickup = CreatePickup(1210, 23,-1868.9342,-219.5195,18.3750);
  269. // DELIVER & BUYDRUG PICKUPS ===================================================
  270.     buydrugpick = CreatePickup(1276, 23,-1890.8228,-1698.6608,21.7500);
  271.     lcndeliver = CreatePickup(1279, 23,-1372.3959,1491.3230,11.0391);
  272. //DM-PICKUPS====================================================================
  273.     GolfPick = CreatePickup(333, 2,2512.1050,2366.3948,10.8203);
  274.     KnifePick = CreatePickup(335, 2,2503.8254,2399.7483,4.2109);
  275.     BasiPick = CreatePickup(336, 2,2513.3416,2386.0793,10.8203);
  276.     ShovelPick = CreatePickup(337, 2,2504.7971,2373.2185,4.2179);
  277.     PoolPick = CreatePickup(338, 2,2502.4897,2400.2603,10.8203);
  278.     AkPick = CreatePickup(355, 2,-411.0689,1327.9689,12.7551);
  279. // 3D TEXTLABELS ==============================================================
  280.     Create3DTextLabel("[ LCN-Shop ]\n/ Shop",gruen,-2717.8010,-315.7959,7.8438,40.0,0);
  281.     Create3DTextLabel("[ LCN-Sniper ]\n/ sniper",gruen,-2723.2244,-320.9215,7.8438,40.0,0);
  282.     Create3DTextLabel("[ Yugo-Shop ]\n/ Shop",yugoblau,-2627.5317,1408.6331,7.0938,40.0,0);
  283.     Create3DTextLabel("[ Yugo-Sniper ]\n/ sniper",yugoblau,-2629.3945,1403.8356,7.0938,40.0,0);
  284.     Create3DTextLabel("[ Triad-Shop ]\n/ Shop",weiss,-2154.7065,647.1374,52.3672,40.0,0);
  285.     Create3DTextLabel("[ Triad-Sniper ]\n/ sniper",weiss,-2154.6587,641.8469,52.3672,40.0,0);
  286.     Create3DTextLabel("[ Russia-Shop ]\n/ Shop",rot,-2136.3655,-244.4974,35.3203,40.0,0);
  287.     Create3DTextLabel("[ Russia-Sniper ]\n/ sniper",rot,-2136.1626,-252.2975,35.3203,40.0,0);
  288.     Create3DTextLabel("[ Cuban-Sniper ]\n/ sniper",braun,-1866.9960,-219.3903,18.3750,40.0,0);
  289.     Create3DTextLabel("[ Cuban-Shop ]\n/ Shop",braun,-1868.9342,-219.5195,18.3750,40.0,0);
  290.     Create3DTextLabel("[ German-Sniper ]\n/ sniper",gelb,-2446.2515,528.8219,30.1906,40.0,0);
  291.     Create3DTextLabel("[ German-Shop ]\n/ Shop",gelb,-2446.0503,517.9012,30.1604,40.0,0);
  292.     Create3DTextLabel("[ Back to Base ]\n/ sniper", gruen,-2716.7261,-323.2274,57.4873,40.0,0);
  293.     Create3DTextLabel("[ Back to Base ]\n/ sniper", weiss,-2158.2214,675.8184,83.1719,40.0,0);
  294.     Create3DTextLabel("[ Back to Base ]\n/ sniper", rot,-2179.8376,-148.2017,50.3188,40.0,0);
  295.     Create3DTextLabel("[ Back to Base ]\n/ sniper", braun,-1825.9111,-219.4470,30.3516,40.0,0);
  296.     Create3DTextLabel("[ Back to Base ]\n/ sniper", gelb,-2456.9453,456.0735,73.2578,40.0,0);
  297.     Create3DTextLabel("[ Gas-Station ]\n/ rob", orange,-2026.4122,156.4898,29.0391,40.0,0);
  298.     Create3DTextLabel("[ Bomb-Shop ]\nCost: 5000$]\n/ buybomb", weiss,-2033.7944,148.7538,28.8359,40.0,0);
  299.     Create3DTextLabel("[ Drug-Job ]\n/ getdrugs", weiss,-1890.8228,-1698.6608,21.7500,40.0,0);
  300. //=================================== LCN ======================================
  301.     AddPlayerClass(124,-2723.2859,-315.4313,7.1783,46.3842,18,2,30,300,29,500); // Shooter
  302.     AddPlayerClass(126,-2723.2859,-315.4313,7.1783,46.3842,25,100,34,100,46,1); // Sniper
  303.     CreateObject(3279, -2630.838623, -225.180496, 3.644390, 0.0000, 0.0000, 326.2500);
  304.     CreateObject(3279, -2798.832764, -309.278412, 6.263117, 0.0000, 0.0000, 78.7500);
  305.     Lcngate = CreateObject(980, -2655.1687011719, -220.49809265137, 5.9577760696411, 0, 0, 0);// TOR
  306.     LcnCar[0] = AddStaticVehicle(487,-2745.2397,-251.1206,7.3717,177.3299,0,0); // LCNHELI
  307.     LcnCar[1] = AddStaticVehicle(487,-2760.8911,-250.7885,7.3670,179.4626,0,0); // LCNHELI
  308.     LcnCar[2] = AddStaticVehicle(447,-2780.3752,-250.8038,7.1998,183.6296,3,3); // LCN SPAROW
  309.     LcnCar[3] = AddStaticVehicle(560,-2735.9685,-295.1056,6.7189,48.1358,0,0); // LCNCAR
  310.     LcnCar[4] = AddStaticVehicle(560,-2739.0344,-298.5477,6.7189,47.1155,0,0); // LCNCAR
  311.     LcnCar[5] = AddStaticVehicle(560,-2742.4265,-301.4638,6.7224,47.2949,0,0); // LCNCAR
  312.     LcnCar[6] = AddStaticVehicle(560,-2745.2144,-304.7863,6.7366,48.9540,0,0); // LCNCAR
  313.     LcnCar[7] = AddStaticVehicle(522,-2732.4912,-281.9734,6.6119,180.8290,0,0); // LCNNRG
  314.     LcnCar[8] = AddStaticVehicle(522,-2734.5293,-282.2130,6.6159,179.0022,0,0); // LCNNRG
  315.     LcnCar[9] = AddStaticVehicle(522,-2737.0022,-282.5346,6.6138,180.6687,0,0); // LCNNRG
  316.     LcnCar[10] = AddStaticVehicle(522,-2739.2146,-282.5947,6.6124,180.8944,0,0); // LCNNRG
  317.     LcnCar[11] = AddStaticVehicle(482,-2727.3042,-281.8167,7.1594,178.6543,0,0); // LCNBURRITO
  318.     LcnCar[12] = AddStaticVehicle(482,-2722.0876,-282.4383,7.1605,179.3576,0,0); // LCNBURRITO
  319. // ============================= RUSSIA ========================================
  320.     AddPlayerClass(111,-2135.0461,-247.9861,35.8789,268.4252,18,2,30,300,29,500); // Shooter
  321.     AddPlayerClass(112,-2135.0461,-247.9861,35.8789,268.4252,25,100,34,100,46,1); // Sniper
  322.     CreateObject(13749, -2116.671143, -201.304413, 39.058853, 0.0000, 0.0000, 326.2501);
  323.     CreateObject(3279, -2117.230957, -85.779228, 34.395927, 0.0000, 0.0000, 270.0000);
  324.     Rusgate = CreateObject(980, -2127.2192382813, -80.924629211426, 36.953063964844, 0, 0, 0); // TOR
  325.     RusCar[0] = AddStaticVehicle(487,-2123.7419,-187.2077,46.4574,0.4387,3,3); // RUSSIAHELI
  326.     RusCar[1] = AddStaticVehicle(487,-2112.5229,-188.1424,46.4812,0.0058,3,3); // RUSSIAHELI
  327.     RusCar[2] = AddStaticVehicle(447,-2102.5940,-187.6119,46.3267,359.3336,3,3); // RUSSPAROW
  328.     RusCar[3] = AddStaticVehicle(482,-2118.8882,-199.1625,35.4399,92.3284,3,3); // RUSSBURRITO
  329.     RusCar[4] = AddStaticVehicle(482,-2106.4836,-198.7703,35.4418,92.4313,3,3); // RUSSBURRITO
  330.     RusCar[5] = AddStaticVehicle(560,-2101.2471,-216.7246,35.0256,65.7531,3,3); // RUSSSULTAN
  331.     RusCar[6] = AddStaticVehicle(560,-2101.0425,-225.0296,35.0260,61.6408,3,3); // RUSSSULTAN
  332.     RusCar[7] = AddStaticVehicle(560,-2100.9475,-233.3310,35.0255,66.2052,3,3); // RUSSSULTAN
  333.     RusCar[8] = AddStaticVehicle(560,-2100.3701,-241.0463,35.0257,64.3804,3,3); // RUSSSULTAN
  334.     RusCar[9] = AddStaticVehicle(522,-2135.8208,-242.1533,34.8915,271.7208,3,3); // RUSSBIKE
  335.     RusCar[10] = AddStaticVehicle(522,-2135.5344,-239.3498,34.8973,268.8901,3,3); // RUSSBIKE
  336.     RusCar[11] = AddStaticVehicle(522,-2135.2886,-236.2899,34.8752,269.5986,3,3); // RUSSBIKE
  337.     RusCar[12] = AddStaticVehicle(522,-2135.1045,-232.8432,34.8798,269.9128,3,3); // RUSSBIKE
  338. //============================== TRIAD`S =======================================
  339.     AddPlayerClass(120,-2153.9602,645.5248,52.3672,268.4179,18,2,30,300,29,500); // Shooter
  340.     AddPlayerClass(118,-2153.9602,645.5248,52.3672,268.4179,25,100,34,100,46,1); // Sniper
  341.     Triadgate = CreateObject(980, -2141.9912109375, 579.66644287109, 37.143802642822, 0, 0, 181.35131835938);//Tor
  342.     TriadCar[0] = AddStaticVehicle(487,-2100.4775,640.0276,63.2114,359.2254,8,8); // TRIADMAVERICK
  343.     TriadCar[1] = AddStaticVehicle(487,-2115.0293,654.4846,60.8770,90.5551,8,8); // TRIADMAVERICK 0.1
  344.     TriadCar[2] = AddStaticVehicle(447,-2109.0833,640.4151,62.9657,357.8421,3,3); // TRIAD SPARoW
  345.     TriadCar[3] = AddStaticVehicle(560,-2151.7073,640.4349,52.0210,1.0985,8,8); // TRIADCAR
  346.     TriadCar[4] = AddStaticVehicle(560,-2151.9370,630.4094,52.0209,0.0804,8,8); // TRIADCAR
  347.     TriadCar[5] = AddStaticVehicle(560,-2134.1306,631.3745,52.0203,0.6530,8,8); // TRIADCAR
  348.     TriadCar[6] = AddStaticVehicle(560,-2134.2485,640.4907,52.0204,359.0363,8,8); // TRIADCAR
  349.     TriadCar[7] = AddStaticVehicle(522,-2158.8396,651.1555,51.9429,266.5595,8,8); // TRIADBIKE
  350.     TriadCar[8] = AddStaticVehicle(522,-2158.6755,653.5526,51.9238,267.4128,8,8); // TRIADBIKE
  351.     TriadCar[9] = AddStaticVehicle(522,-2158.2903,656.0433,51.9408,268.8243,8,8); // TRIADBIKE
  352.     TriadCar[10] = AddStaticVehicle(522,-2158.1399,658.5308,52.0096,268.8724,8,8); // TRIADBIKE
  353.     TriadCar[11] = AddStaticVehicle(482,-2126.3691,651.6125,52.4860,90.7396,8,8); // TRIADBURRITO
  354.     TriadCar[12] = AddStaticVehicle(482,-2126.4976,656.4131,52.4837,89.6744,8,8); // TRIADBURRITO
  355. //======================================= YUGO =================================
  356.     AddPlayerClass(127,-2624.5608,1405.8046,7.1016,253.6912,18,2,30,300,29,500); // Shooter
  357.     AddPlayerClass(125,-2624.5608,1405.8046,7.1016,253.6912,25,100,34,100,46,1); // Sniper
  358.     CreateObject(3528, -2625.095703, 1412.954712, 11.721146, 0.0000, 0.0000, 281.2500);
  359.     CreateObject(3279, -2617.565918, 1422.529663, 6.183775, 0.0000, 0.0000, 11.2500);
  360.     Yugogate = CreateObject(980, -2607.9880371094, 1361.5688476563, 8.831916809082, 0, 0, 270.31530761719);//TOR
  361.     YugoCar[0] = AddStaticVehicle(487,-2640.6104,1409.3154,24.0722,281.3651,79,79); // YUGOHELI
  362.     YugoCar[1] = AddStaticVehicle(487,-2644.7441,1426.4740,24.0751,286.0853,79,79); // YUGOHELI
  363.     YugoCar[2] = AddStaticVehicle(447,-2640.3066,1417.3585,23.9070,285.0850,3,3); // YUGO spAroW
  364.     YugoCar[3] = AddStaticVehicle(560,-2622.7664,1377.8746,6.8388,179.6691,79,79); // YUGOCAR
  365.     YugoCar[4] = AddStaticVehicle(560,-2628.0205,1378.0493,6.8451,178.3450,79,79); // YUGOCAR
  366.     YugoCar[5] = AddStaticVehicle(560,-2633.2368,1378.3258,6.8439,180.9025,79,79); // YUGOCAR
  367.     YugoCar[6] = AddStaticVehicle(560,-2639.6582,1378.3658,6.8538,180.1813,79,79); // YUGOCAR
  368.     YugoCar[7] = AddStaticVehicle(522,-2631.4766,1398.7705,6.6710,198.4156,79,79); // YUGOBIKE
  369.     YugoCar[8] = AddStaticVehicle(522,-2634.3062,1397.5470,6.6573,197.1651,79,79); // YUGOBIKE
  370.     YugoCar[9] = AddStaticVehicle(522,-2636.9790,1397.0101,6.6672,195.4115,79,79); // YUGOBIKE
  371.     YugoCar[10] = AddStaticVehicle(522,-2639.7507,1396.0360,6.6693,193.6001,79,79); // YUGOBIKE
  372.     YugoCar[11] = AddStaticVehicle(522,-2642.5459,1395.3239,6.6553,194.1438,79,79); // YUGOBIKE
  373.     YugoCar[12] = AddStaticVehicle(482,-2644.6975,1368.4366,7.2755,269.8862,79,79); // YUGOBURRITO
  374.     YugoCar[13] = AddStaticVehicle(482,-2644.2375,1361.9392,7.2791,270.5323,79,79); // YUGOBURRITO
  375.     YugoCar[14] = AddStaticVehicle(522,-2665.7136,1383.2653,55.3844,179.4118,79,79); //Yugo Special NrG 1
  376.     YugoCar[15] = AddStaticVehicle(522,-2665.6455,1389.9788,55.3838,179.4117,79,79); //Yugo Special NrG 2
  377. //=================================== GERMAN ===================================
  378.     AddPlayerClass(164,-2445.2549,523.0179,29.9204,266.0372,18,2,30,300,29,500); // Shooter
  379.     AddPlayerClass(165,-2445.2549,523.0179,29.9204,266.0372,25,100,34,100,46,1); // Sniper
  380.     Germangate = CreateObject(980, -2432.9150390625, 497.01708984375, 31.701232910156, 0, 0, 23.955017089844);//GERMAN tor
  381.     GermanCar[0] = AddStaticVehicle(487,-2463.1160,517.1458,51.2325,269.0029,6,6); // german MAVERICK
  382.     GermanCar[1] = AddStaticVehicle(487,-2463.0291,531.9880,51.2124,269.0032,6,6); // german maverick 2
  383.     GermanCar[2] = AddStaticVehicle(447,-2481.6189,523.7122,51.0758,267.9627,3,3); // german seaspawrro
  384.     GermanCar[3] = AddStaticVehicle(560,-2414.1960,539.9283,29.7926,269.3902,6,6); // german auto 1
  385.     GermanCar[4] = AddStaticVehicle(560,-2414.2844,535.9764,29.7956,255.8832,6,6); // german auto 2
  386.     GermanCar[5] = AddStaticVehicle(560,-2415.6765,532.2907,29.7914,244.6225,6,6); // german auto 3
  387.     GermanCar[6] = AddStaticVehicle(560,-2417.2683,528.9397,29.7866,240.1296,6,6); // german auto 4
  388.     GermanCar[7] = AddStaticVehicle(522,-2420.1406,525.7191,29.5010,234.8547,6,6); // german nrg 1
  389.     GermanCar[8] = AddStaticVehicle(522,-2422.4866,521.8463,29.5017,228.8670,6,6); // german nrg 2
  390.     GermanCar[9] = AddStaticVehicle(522,-2425.7776,518.0783,29.5016,228.8670,6,6); // german nrg 3
  391.     GermanCar[10] = AddStaticVehicle(522,-2429.8213,514.9959,29.5206,222.1131,6,6); // german nrg 4
  392.     GermanCar[11] = AddStaticVehicle(482,-2450.5505,503.6636,30.1755,270.8614,6,6); // german buri 1
  393.     GermanCar[12] = AddStaticVehicle(482,-2443.8916,509.2276,30.0599,178.6056,6,6); // german buri 2
  394. //=================================== CUBAN ====================================
  395.     AddPlayerClass(223,-1872.5337,-218.0692,18.3750,268.2185,18,2,30,300,29,500); // Shooter
  396.     AddPlayerClass(46,-1872.5337,-218.0692,18.3750,268.2185,25,100,34,100,46,1); // Sniper
  397.     Cubangate = CreateObject(971, -1851.3482666016, -226.4906463623, 19.694917678833, 0, 0, 0);//Cuban TOR
  398.     CubanCar[0] = AddStaticVehicle(560,-1850.4247,-184.4000,18.2350,177.0312,123,123); // cuban sultan 1
  399.     CubanCar[1] = AddStaticVehicle(560,-1854.1814,-184.2454,18.2376,183.7856,123,123); // cuban sultan 2
  400.     CubanCar[2] = AddStaticVehicle(560,-1854.3782,-193.0923,18.2091,183.7850,123,123); // cuban sultan 3
  401.     CubanCar[3] = AddStaticVehicle(560,-1849.5305,-192.7716,18.2030,183.7850,123,123); // cuban sultan 4
  402.     CubanCar[4] = AddStaticVehicle(522,-1878.8265,-197.4918,16.8364,270.0463,123,123); // cuban nrg 1
  403.     CubanCar[5] = AddStaticVehicle(522,-1878.8250,-199.5673,16.8368,270.0354,123,123); // cuban nrg 2
  404.     CubanCar[6] = AddStaticVehicle(522,-1878.8225,-202.1812,16.8347,270.0329,123,123); // cuban nrg 3
  405.     CubanCar[7] = AddStaticVehicle(522,-1878.8201,-204.8432,16.8320,270.0331,123,123); // cuban nrg 4
  406.     CubanCar[8] = AddStaticVehicle(487,-1880.7257,-194.1729,18.5617,271.5737,123,123); // cuban mav 1
  407.     CubanCar[9] = AddStaticVehicle(487,-1881.3322,-186.5053,18.5725,269.5206,123,123); // cuban mav 2
  408.     CubanCar[10] = AddStaticVehicle(447,-1879.0317,-221.5142,27.4652,269.8658,123,123); // cuban seasparrow
  409.     CubanCar[11] = AddStaticVehicle(482,-1886.1584,-208.9925,18.4793,270.1308,123,123); // cuban burri
  410.     CubanCar[12] = AddStaticVehicle(482,-1876.6624,-208.9708,18.4481,270.1308,123,123); // cuban burri 2
  411. //================================= GAMER ======================================
  412.     AddPlayerClass(115,-2280.8911,2288.0557,4.9602,266.6933,0,0,0,0,0,0);
  413.     Gamergate = CreateObject(980, -2273.7644042969, 2352.1525878906, 6.5936045646667, 0, 0, 55.070007324219);
  414.     GamerCar[0] = AddStaticVehicle(425,-2227.4917,2326.2068,8.1200,178.5560,7,7); //
  415.     GamerCar[1] = AddStaticVehicle(487,-2230.3308,2306.7742,5.4472,91.9524,7,7); // maverick 1
  416.     GamerCar[2] = AddStaticVehicle(487,-2230.0381,2298.1826,5.5959,91.9561,7,7); // maverick 2
  417.     GamerCar[3] = AddStaticVehicle(417,-2230.2173,2284.5339,5.1865,91.6726,7,7); // grose heli
  418.     GamerCar[4] = AddStaticVehicle(560,-2251.6147,2285.0896,4.6806,88.7064,7,7); // sultan 1
  419.     GamerCar[5] = AddStaticVehicle(560,-2251.5479,2288.0430,4.6823,88.7064,7,7); // sultan 2
  420.     GamerCar[6] = AddStaticVehicle(560,-2251.7668,2291.2739,4.6843,88.7064,7,7); // sultan 3
  421.     GamerCar[7] = AddStaticVehicle(560,-2251.7063,2293.9602,4.6860,88.7064,7,7); // sultan 4
  422.     GamerCar[8] = AddStaticVehicle(561,-2252.2527,2296.8784,4.6260,90.0655,7,7); // sultanlike 1
  423.     GamerCar[9] = AddStaticVehicle(561,-2252.2556,2299.9036,4.6347,90.0655,7,7); // sultanlike 2
  424.     GamerCar[10] = AddStaticVehicle(522,-2270.4404,2336.0996,4.3782,266.1135,7,7); // nrg1
  425.     GamerCar[11] = AddStaticVehicle(522,-2270.6267,2333.3474,4.3895,266.1182,7,7); // nrg2
  426.     GamerCar[12] = AddStaticVehicle(522,-2270.8042,2330.3948,4.3820,266.1181,7,7); // nrg3
  427.     GamerCar[13] = AddStaticVehicle(522,-2271.0046,2327.4478,4.3870,266.1201,7,7); // nrg5
  428.     GamerCar[14] = AddStaticVehicle(463,-2271.1216,2324.4749,4.3623,270.2926,7,7); // hl1
  429.     GamerCar[15] = AddStaticVehicle(463,-2271.1042,2321.0071,4.3753,270.2865,7,7); // hl2
  430.     GamerCar[16] =  AddStaticVehicle(468,-2271.1011,2318.3032,4.3933,270.3314,7,7); // san1
  431.     GamerCar[17] =  AddStaticVehicle(468,-2271.0857,2315.6169,4.3933,270.3316,7,7); // san2
  432.     GamerCar[18] =  AddStaticVehicle(468,-2271.0703,2312.9072,4.4041,270.3273,7,7); // san3
  433.     GamerCar[19] =  AddStaticVehicle(411,-2252.8792,2303.0581,4.3891,90.2496,7,7); // infer 1
  434.     GamerCar[20] =  AddStaticVehicle(411,-2252.8914,2305.8445,4.3979,90.2494,7,7); // infer 2
  435.     GamerCar[21] =  AddStaticVehicle(541,-2252.7295,2308.9944,3.9776,87.7732,7,7); // bu;elt 1
  436.     GamerCar[22] =  AddStaticVehicle(541,-2252.6121,2312.0183,3.9777,90.0196,7,7); // bu;elt 2
  437.     GamerCar[23] =  AddStaticVehicle(444,-2252.0046,2316.4492,5.1838,88.2991,7,7); // monsta
  438.     GamerCar[24] =  AddStaticVehicle(579,-2252.5796,2320.9246,4.8795,89.7031,7,7); // hunteley 1
  439.     GamerCar[25] =  AddStaticVehicle(579,-2252.5632,2323.9531,4.9165,89.7037,7,7); // hunteley 2
  440.     GamerCar[26] =  AddStaticVehicle(601,-2227.8975,2351.8188,4.7502,131.9561,7,7); // wannabe pancer
  441.     GamerCar[27] =  AddStaticVehicle(432,-2245.2588,2373.2214,5.0096,131.3261,7,7); // panca
  442. //===========================RANDOM CARS========================================
  443.     AddStaticVehicle(402,-2416.7737,-588.8609,132.4809,212.9476,22,22); //
  444.     AddStaticVehicle(402,-2392.7947,-606.6710,132.4809,35.4784,22,22); //
  445.     AddStaticVehicle(402,-2505.5735,-602.0001,132.3949,180.4139,22,22); //
  446.     AddStaticVehicle(602,-2524.3076,-603.2769,132.1032,177.1063,45,45); //
  447.     AddStaticVehicle(602,-2397.5764,-591.3733,132.1897,125.2256,45,45); //
  448.     AddStaticVehicle(602,-2689.6602,-53.8021,3.8765,356.5940,45,45); //
  449.     AddStaticVehicle(602,-2666.7334,-35.0318,3.8770,179.5092,45,45); //
  450.     AddStaticVehicle(604,-2466.8621,-118.7112,25.4212,175.7007,16,76); //
  451.     AddStaticVehicle(603,-2616.9404,-148.9009,4.1739,267.5471,69,1); //
  452.     AddStaticVehicle(589,-2673.0483,-56.0744,3.9953,359.6624,124,124); //
  453.     AddStaticVehicle(587,-2686.6667,-22.6627,3.8813,180.2258,53,1); //
  454.     AddStaticVehicle(587,-2796.6511,-116.9296,6.7310,90.6214,53,1); //
  455.     AddStaticVehicle(579,-2691.5525,268.8220,4.4169,1.7204,53,53); //
  456.     AddStaticVehicle(579,-2678.0889,268.4761,4.4077,0.2683,53,53); //
  457.     AddStaticVehicle(565,-2693.5349,230.0450,3.9594,270.3218,53,53); //
  458.     AddStaticVehicle(562,-2693.2332,234.2977,4.0688,269.1766,11,1); //
  459.     AddStaticVehicle(561,-2692.7903,238.3800,4.1494,269.2351,54,38); //
  460.     AddStaticVehicle(560,-2659.9922,236.9559,4.1965,90.0651,17,1); //
  461.     AddStaticVehicle(559,-2659.7073,230.9937,3.9925,90.6057,68,8); //
  462.     AddStaticVehicle(555,-2589.0430,622.9824,14.1434,271.0290,68,1); //
  463.     AddStaticVehicle(555,-2481.6553,740.9810,34.6993,179.3592,68,1); //
  464.     AddStaticVehicle(551,-2490.7146,740.9293,34.8161,180.0638,83,1); //
  465.     AddStaticVehicle(551,-2557.7073,626.1100,27.6104,2.3983,83,1); //
  466.     AddStaticVehicle(551,-2546.1150,632.2814,14.2543,267.0381,83,1); //
  467.     AddStaticVehicle(551,-2681.4585,870.7302,76.7349,3.5970,83,1); //
  468.     AddStaticVehicle(549,-2837.1501,863.8202,43.7521,265.8561,75,39); //
  469.     AddStaticVehicle(545,-2590.9053,655.7697,27.6236,270.9669,44,96); //
  470.     AddStaticVehicle(545,-2455.8062,739.6643,34.8267,179.2579,44,96); //
  471.     AddStaticVehicle(545,-2319.6079,1030.2946,50.5063,180.1270,44,96); //
  472.     AddStaticVehicle(544,-2020.6604,75.1712,28.3104,271.9673,3,1); //
  473.     AddStaticVehicle(542,-2267.4387,73.8585,34.9041,94.3648,31,93); //
  474.     AddStaticVehicle(542,-2483.8291,57.9779,26.0350,181.9599,31,93); //
  475.     AddStaticVehicle(542,-2476.8799,412.8604,27.5206,141.1121,31,93); //
  476.     AddStaticVehicle(541,-2486.4304,421.6219,26.9149,137.8478,68,8); //
  477.     AddStaticVehicle(541,-2528.8848,318.6894,34.2509,253.5956,13,8); //
  478.     AddStaticVehicle(541,-2661.5933,267.9075,3.4696,359.6380,36,8); //
  479.     AddStaticVehicle(539,-2786.0757,1332.6061,0.1816,358.2801,70,86); //
  480.     AddStaticVehicle(539,-2782.3066,1333.1011,0.7608,358.2859,70,86); //
  481.     AddStaticVehicle(539,-2777.5085,1332.9355,0.1159,358.2740,70,86); //
  482.     AddStaticVehicle(539,-2769.9219,1332.7059,0.4023,358.2728,70,86); //
  483.     AddStaticVehicle(535,-2500.5483,1223.2570,37.1884,322.0706,55,1); //
  484.     AddStaticVehicle(536,-2512.3865,1210.1990,37.1608,90.8730,32,1); //
  485.     AddStaticVehicle(536,-2458.1453,1070.1851,55.5270,4.2328,32,1); //
  486.     AddStaticVehicle(536,-2665.0784,989.4171,64.6383,5.7381,32,1); //
  487.     AddStaticVehicle(533,-2721.6648,980.0848,54.1718,359.4666,79,1); //
  488.     AddStaticVehicle(533,-2665.2952,912.9135,79.3844,177.3759,79,1); //
  489.     AddStaticVehicle(529,-2635.5833,931.1577,71.3666,191.3667,11,11); //
  490.     AddStaticVehicle(526,-2580.9834,913.6854,64.6670,90.1655,41,29); //
  491.     AddStaticVehicle(526,-2583.2576,626.1356,27.5792,0.0105,41,29); //
  492.     AddStaticVehicle(522,-2592.5022,645.2698,27.3825,265.8216,6,25); //
  493.     AddStaticVehicle(522,-2503.2314,740.8766,34.5830,184.4830,8,82); //
  494.     AddStaticVehicle(522,-2416.9053,742.3102,34.5879,176.1381,8,82); //
  495.     AddStaticVehicle(522,-2264.4927,196.9080,34.7348,90.6708,8,82); //
  496.     AddStaticVehicle(522,-2264.5798,204.3056,34.7348,90.6708,8,82); //
  497.     AddStaticVehicle(522,-2504.2976,343.6132,34.6887,63.1587,8,82); //
  498.     AddStaticVehicle(522,-2586.9048,73.9291,4.2018,82.9552,8,82); //
  499.     AddStaticVehicle(522,-2718.9224,148.3790,4.3030,268.1398,8,82); //
  500.     AddStaticVehicle(522,-2272.4729,-77.7391,34.8918,267.7599,8,82); //
  501.     AddStaticVehicle(522,-2513.4597,-602.4126,132.1312,180.0149,8,82); //
  502.     AddStaticVehicle(522,-2402.7180,-584.8160,132.2173,121.9623,8,82); //
  503.     AddStaticVehicle(522,-2769.6147,361.9973,4.0446,356.5796,8,82); //
  504.     AddStaticVehicle(521,-2495.6731,430.6870,27.3448,129.8253,92,3); //
  505.     AddStaticVehicle(521,-2408.4280,360.4786,34.5510,244.4185,92,3); //
  506.     AddStaticVehicle(521,-2266.4126,86.1168,34.7428,84.2874,92,3); //
  507.     AddStaticVehicle(521,-2616.6287,91.5754,3.9068,264.8586,92,3); //
  508.     AddStaticVehicle(508,-2620.3015,-55.3205,4.7743,0.3559,1,1); //
  509.     AddStaticVehicle(507,-2626.5676,-55.4859,4.0731,359.2131,62,62); //
  510.     AddStaticVehicle(507,-2693.5891,-147.4060,4.0719,92.2627,62,62); //
  511.     AddStaticVehicle(507,-2695.0918,268.2522,4.0670,1.3253,62,62); //
  512.     AddStaticVehicle(507,-2544.0439,654.7109,27.5470,90.5020,62,62); //
  513.     AddStaticVehicle(507,-2481.9761,741.5717,34.7513,180.5906,62,62); //
  514.     AddStaticVehicle(507,-2601.6611,983.7361,77.9329,357.2890,62,62); //
  515.     AddStaticVehicle(507,-2438.9194,1313.1979,15.3514,83.4565,62,62); //
  516.     AddStaticVehicle(507,-2525.8203,1228.6616,37.1680,31.3433,62,62); //
  517.     AddStaticVehicle(506,-2538.5596,1228.8173,37.1724,29.6455,7,7); //
  518.     AddStaticVehicle(506,-2419.0891,1031.2866,50.1426,0.7437,7,7); //
  519.     AddStaticVehicle(506,-2265.7019,141.3937,34.9080,92.2847,7,7); //
  520.     AddStaticVehicle(492,-2519.0327,346.7296,34.8927,246.8088,71,107); //
  521.     AddStaticVehicle(492,-2511.0879,343.3191,27.5478,246.6736,71,107); //
  522.     AddStaticVehicle(407,-2021.0590,84.1284,28.2096,270.8073,3,1); //
  523.     AddStaticVehicle(407,-2021.1887,93.3797,28.2203,270.8951,3,1); //
  524.     AddStaticVehicle(409,-2421.4583,321.5449,34.7090,331.4807,1,1); //
  525.     AddStaticVehicle(409,-2413.0474,337.2351,34.7077,331.4331,1,1); //
  526.     AddStaticVehicle(411,-2268.6028,61.7404,34.7245,87.6070,116,1); //
  527.     AddStaticVehicle(411,-2525.4194,330.4707,34.6774,247.4376,116,1); //
  528.     AddStaticVehicle(411,-2620.9844,-22.6765,3.8963,182.2069,116,1); //
  529.     AddStaticVehicle(411,-2716.4058,870.2601,70.2635,2.0156,116,1); //
  530.     AddStaticVehicle(415,-2710.4360,870.0539,70.4679,0.9241,40,1); //
  531.     AddStaticVehicle(415,-2490.5366,741.6411,34.7875,184.1428,40,1); //
  532.     AddStaticVehicle(415,-2589.7197,652.5753,14.2233,266.8899,40,1); //
  533.     AddStaticVehicle(416,-2655.2434,619.2186,14.5597,271.2412,1,3); //
  534.     AddStaticVehicle(416,-2630.0767,619.3177,14.5599,267.9827,1,3); //
  535.     AddStaticVehicle(416,-2676.2449,620.0023,14.5573,269.2327,1,3); //
  536.     AddStaticVehicle(416,-2676.5942,593.7836,14.5596,269.2327,1,3); //
  537.     AddStaticVehicle(416,-2654.5942,593.4889,14.5615,269.2393,1,3); //
  538.     AddStaticVehicle(429,-2545.9397,632.7849,14.3046,89.6988,14,14); //
  539.     AddStaticVehicle(445,-2543.8198,633.4100,27.6004,91.0144,37,37); //
  540.     AddStaticVehicle(445,-2546.6067,713.8347,27.6833,91.3185,37,37); //
  541.     AddStaticVehicle(603,-2132.2844,-42.5832,35.1576,272.4647,18,1); //
  542.     AddStaticVehicle(603,-2021.1115,-52.2344,35.1856,177.1012,45,45); //
  543.     AddStaticVehicle(589,-2085.3547,-84.7091,34.8221,359.6764,22,22); //
  544.     AddStaticVehicle(565,-2057.6096,55.8275,28.0248,265.6232,53,53); //
  545.     AddStaticVehicle(562,-2021.3917,66.2360,28.2073,359.4389,11,1); //
  546.     AddStaticVehicle(560,-2015.9558,49.3553,31.1138,0.8346,21,1); //
  547.     AddStaticVehicle(559,-1972.5265,100.8323,27.3437,89.2393,2,1); //
  548.     AddStaticVehicle(549,-1988.0210,118.9040,27.2364,0.1400,79,39); //
  549.     AddStaticVehicle(549,-1988.1639,171.1337,27.2364,359.1077,84,36); //
  550.     AddStaticVehicle(544,-2020.0958,91.2405,28.1560,273.1722,3,1); //
  551.     AddStaticVehicle(541,-2075.5562,212.9287,35.0172,325.9548,60,1); //
  552.     AddStaticVehicle(535,-2107.9919,244.2583,35.5119,219.6379,31,1); //
  553.     AddStaticVehicle(524,-2102.3103,172.4187,36.0033,15.0231,65,31); //
  554.     AddStaticVehicle(506,-2266.8696,89.3536,34.8760,269.6390,7,7); //
  555.     AddStaticVehicle(505,-2266.0847,192.7231,35.3072,269.2906,120,123); //
  556.     AddStaticVehicle(500,-2184.4709,305.9776,35.2281,178.6576,40,110); //
  557.     AddStaticVehicle(506,-2201.7024,293.2020,34.8216,359.9998,6,6); //
  558.     AddStaticVehicle(402,-2231.5627,293.2117,34.9487,0.3397,30,30); //
  559.     AddStaticVehicle(411,-1971.2395,303.1635,34.8925,129.9415,116,1); //
  560.     AddStaticVehicle(415,-2020.5674,388.0089,34.9437,359.9985,40,1); //
  561.     AddStaticVehicle(429,-2019.9009,418.6103,34.8516,269.0737,14,14); //
  562.     AddStaticVehicle(445,-1979.5588,443.6755,35.0468,359.2050,39,39); //
  563.     AddStaticVehicle(411,-1977.8130,459.5112,28.2935,359.9947,12,1); //
  564.     AddStaticVehicle(451,-1976.6556,797.7638,54.7005,269.9808,16,16); //
  565.     AddStaticVehicle(467,-1984.7444,867.9398,44.9430,359.4640,2,1); //
  566.     AddStaticVehicle(477,-2021.5891,905.3015,46.5911,271.1561,121,1); //
  567.     AddStaticVehicle(480,-1987.9614,947.4948,45.2180,147.6258,6,6); //
  568.     AddStaticVehicle(496,-1973.2938,1117.3418,53.2098,2.2422,37,19); //
  569.     AddStaticVehicle(451,-2114.9343,1159.9274,55.0916,1.2296,123,123); //
  570.     AddStaticVehicle(411,-1781.5710,1201.3925,24.8510,271.9113,106,1); //
  571.     AddStaticVehicle(411,-1567.4487,1115.4772,6.9146,89.2141,75,1); //
  572.     AddStaticVehicle(415,-1572.5841,1204.1324,6.9623,65.3284,40,1); //
  573. //OBJECTS FOR DUEL SYSTEM ======================================================
  574.     CreateObject(3095, 1745.2294921875, -2835.8447265625, 5, 0, 0, 0);
  575.     CreateObject(3095, 1736.2451171875, -2835.8447265625, 5, 0, 0, 0);
  576.     CreateObject(3095, 1745.2294921875, -2844.833984375, 5, 0, 0, 0);
  577.     CreateObject(3095, 1736.2451171875, -2844.833984375, 5, 0, 0, 0);
  578.     CreateObject(3095, 1745.2294921875, -2853.8239746094, 5, 0, 0, 0);
  579.     CreateObject(3095, 1736.2451171875, -2853.8239746094, 5, 0, 0, 0);
  580.     CreateObject(3095, 1727.2551269531, -2835.8447265625, 5, 0, 0, 0);
  581.     CreateObject(3095, 1727.2551269531, -2844.833984375, 5, 0, 0, 0);
  582.     CreateObject(3095, 1727.2551269531, -2853.8232421875, 5, 0, 0, 0);
  583.     CreateObject(3095, 1745.2294921875, -2862.8132324219, 5, 0, 0, 0);
  584.     CreateObject(3095, 1736.2451171875, -2862.8132324219, 5, 0, 0, 0);
  585.     CreateObject(3095, 1727.2548828125, -2862.8132324219, 5, 0, 0, 0);
  586.     CreateObject(3095, 1718.2648925781, -2835.8447265625, 5, 0, 0, 0);
  587.     CreateObject(3095, 1718.2648925781, -2844.833984375, 5, 0, 0, 0);
  588.     CreateObject(3095, 1718.2648925781, -2853.8232421875, 5, 0, 0, 0);
  589.     CreateObject(3095, 1718.2648925781, -2862.8125, 5, 0, 0, 0);
  590.     CreateObject(3401, 1742.7684326172, -2859.9912109375, 7.9004049301147, 0, 0, 0);
  591.     CreateObject(994, 1742.6313476563, -2852.4506835938, 5.5881395339966, 0, 0, 0);
  592.     CreateObject(994, 1736.0305175781, -2852.4506835938, 5.5881395339966, 0, 0, 0);
  593.     CreateObject(3095, 1749.6668701172, -2835.8447265625, 9.5, 0, 90, 0);
  594.     CreateObject(3095, 1749.666015625, -2862.8134765625, 9.5, 0, 90, 0);
  595.     CreateObject(3095, 1749.666015625, -2853.8232421875, 9.5, 0, 90, 0);
  596.     CreateObject(3095, 1749.666015625, -2844.833984375, 9.5, 0, 90, 0);
  597.     CreateObject(994, 1734.8913574219, -2866.2641601563, 5.555365562439, 0, 0, 90);
  598.     CreateObject(994, 1734.890625, -2859.5632324219, 5.555365562439, 0, 0, 90);
  599.     CreateObject(3401, 1742.7684326172, -2838.2465820313, 7.9004049301147, 0, 0, 0);
  600.     CreateObject(994, 1742.630859375, -2845.4501953125, 5.5881395339966, 0, 0, 0);
  601.     CreateObject(994, 1736.0302734375, -2845.4501953125, 5.5881395339966, 0, 0, 0);
  602.     CreateObject(994, 1734.890625, -2838.0625, 5.555365562439, 0, 0, 90);
  603.     CreateObject(994, 1734.890625, -2844.8625488281, 5.555365562439, 0, 0, 90);
  604.     CreateObject(3095, 1745.2294921875, -2830.8447265625, 9.5, 0, 90, 270);
  605.     CreateObject(3095, 1736.2451171875, -2830.8447265625, 9.5, 0, 90, 270);
  606.     CreateObject(3095, 1718.2648925781, -2830.8447265625, 9.5, 0, 90, 270);
  607.     CreateObject(3095, 1727.2551269531, -2830.8447265625, 9.5, 0, 90, 270);
  608.     CreateObject(3095, 1713.2648925781, -2862.8125, 9.5, 0, 90, 0);
  609.     CreateObject(3095, 1713.2646484375, -2835.8447265625, 9.5, 0, 90, 0);
  610.     CreateObject(3095, 1713.2646484375, -2844.833984375, 9.5, 0, 90, 0);
  611.     CreateObject(3095, 1713.2646484375, -2853.8232421875, 9.5, 0, 90, 0);
  612.     CreateObject(3095, 1718.2648925781, -2866.8125, 9.5, 0, 90, 270);
  613.     CreateObject(3095, 1727.2548828125, -2866.8125, 9.5, 0, 90, 270);
  614.     CreateObject(3095, 1736.2451171875, -2866.8125, 9.5, 0, 90, 270);
  615.     CreateObject(3095, 1745.2294921875, -2866.8125, 9.5, 0, 90, 270);
  616.     CreateObject(3095, 1745.2294921875, -2835.8447265625, 10.199999809265, 0, 0, 0);
  617.     CreateObject(3095, 1736.2451171875, -2835.8447265625, 10.199999809265, 0, 0, 0);
  618.     CreateObject(3095, 1745.2294921875, -2844.833984375, 10.199999809265, 0, 0, 0);
  619.     CreateObject(3095, 1736.2451171875, -2844.833984375, 10.199999809265, 0, 0, 0);
  620.     CreateObject(3095, 1745.2294921875, -2853.8232421875, 10.199999809265, 0, 0, 0);
  621.     CreateObject(3095, 1745.2294921875, -2862.8125, 10.199999809265, 0, 0, 0);
  622.     CreateObject(3095, 1736.2451171875, -2853.8232421875, 10.199999809265, 0, 0, 0);
  623.     CreateObject(3095, 1736.2451171875, -2862.8125, 10.199999809265, 0, 0, 0);
  624.     CreateObject(3401, 1720.767578125, -2838.24609375, 7.9004049301147, 0, 0, 0);
  625.     CreateObject(994, 1728.2906494141, -2838.0625, 5.555365562439, 0, 0, 90);
  626.     CreateObject(994, 1728.2906494141, -2844.8623046875, 5.555365562439, 0, 0, 90);
  627.     CreateObject(994, 1714.0302734375, -2845.4501953125, 5.5881395339966, 0, 0, 0);
  628.     CreateObject(994, 1720.7302246094, -2845.4501953125, 5.5881395339966, 0, 0, 0);
  629.     CreateObject(3401, 1720.767578125, -2859.9912109375, 7.9004049301147, 0, 0, 0);
  630.     CreateObject(994, 1728.2906494141, -2866.263671875, 5.555365562439, 0, 0, 90);
  631.     CreateObject(994, 1728.2906494141, -2859.5625, 5.555365562439, 0, 0, 90);
  632.     CreateObject(994, 1714.0302734375, -2852.4501953125, 5.5881395339966, 0, 0, 0);
  633.     CreateObject(994, 1720.7294921875, -2852.4501953125, 5.5881395339966, 0, 0, 0);
  634.     CreateObject(3095, 1727.2548828125, -2862.8125, 10.199999809265, 0, 0, 0);
  635.     CreateObject(3095, 1718.2646484375, -2862.8125, 10.199999809265, 0, 0, 0);
  636.     CreateObject(3095, 1727.2548828125, -2853.8232421875, 10.199999809265, 0, 0, 0);
  637.     CreateObject(3095, 1718.2646484375, -2853.8232421875, 10.199999809265, 0, 0, 0);
  638.     CreateObject(3095, 1727.2548828125, -2844.833984375, 10.199999809265, 0, 0, 0);
  639.     CreateObject(3095, 1718.2646484375, -2844.833984375, 10.199999809265, 0, 0, 0);
  640.     CreateObject(3095, 1727.2548828125, -2835.8447265625, 10.199999809265, 0, 0, 0);
  641.     CreateObject(3095, 1718.2646484375, -2835.8447265625, 10.199999809265, 0, 0, 0);
  642.     //ZONES
  643.     Zone1 = GangZoneCreate(-2799.996093, -173.397064, -2463.996093, 154.602935);
  644.     Zone2 = GangZoneCreate(-2799.354492, 232.376708, -2615.354492, 696.376708);
  645.     Zone3 = GangZoneCreate(-2276.547119, -86.489639, -2004.547119, 169.510360);
  646.     Zone4 = GangZoneCreate(-2445.138183, -232.113327, -2293.138183, 223.886672);
  647.     Zone5 = GangZoneCreate(-2328.167480, 337.696594, -1944.167480, 681.696594);
  648.     Zone6 = GangZoneCreate(-1824.531494, 624.765625, -1496.531494, 920.765625);
  649.     Zone7 = GangZoneCreate(-2439.947753, 1035.557861, -2119.947753, 1307.557861);
  650.     Zone8 = GangZoneCreate(-1854.087280, 1178.869628, -1622.087280, 1410.869628);
  651.     Zone9 = GangZoneCreate(-2213.718750, 710.110534, -1949.718750, 982.110534);
  652.     Zone10 = GangZoneCreate(-2765.796386, 784.332397, -2437.796386, 1104.332397);
  653.     Zone11 = GangZoneCreate(-1922.631958, -28.333175, -1706.631958, 403.666809);
  654.     Zone12 = GangZoneCreate(-1957.691406, -758.583618, -1645.691406, -430.583618);
  655.     Zone13 = GangZoneCreate(-2518.000000, -602.239868, -2246.000000, -306.239868);
  656.  
  657. //Textdraws===============================================================
  658.     SetTimer("StatsTimer",1500,1);
  659.     for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
  660.     {
  661. //RanksTextdraw-------
  662.     RankTextdraw[playerid] = TextDrawCreate(23.000000, 114.000000, "-");
  663.     TextDrawBackgroundColor(RankTextdraw[playerid],255);
  664.     TextDrawFont(RankTextdraw[playerid],2);
  665.     TextDrawLetterSize(RankTextdraw[playerid], 0.379999, 1.050000);
  666.     TextDrawColor(RankTextdraw[playerid], 16777215);
  667.     TextDrawSetOutline(RankTextdraw[playerid],0);
  668.     TextDrawSetProportional(RankTextdraw[playerid],1);
  669.     TextDrawSetShadow(RankTextdraw[playerid],1);
  670. //Stats Text Draw --------------
  671.     StatsTextdraw[playerid] = TextDrawCreate(130.000000, 420.000000, "-");
  672.     TextDrawBackgroundColor(StatsTextdraw[playerid], 255);
  673.     TextDrawFont(StatsTextdraw[playerid], 2);
  674.     TextDrawLetterSize(StatsTextdraw[playerid], 0.549999, 1.400000);
  675.     TextDrawColor(StatsTextdraw[playerid], -1);
  676.     TextDrawSetOutline(StatsTextdraw[playerid], 1);
  677.     TextDrawSetProportional(StatsTextdraw[playerid], 1);
  678. //Forum Text DRaw----------------
  679.     ForumTextdraw[playerid] = TextDrawCreate(0.000000, 437.000000, "Forum: gta-dm.de");
  680.     TextDrawBackgroundColor(ForumTextdraw[playerid], 255);
  681.     TextDrawFont(ForumTextdraw[playerid], 1);
  682.     TextDrawLetterSize(ForumTextdraw[playerid], 0.500000, 1.000000);
  683.     TextDrawColor(ForumTextdraw[playerid], 65535);
  684.     TextDrawSetOutline(ForumTextdraw[playerid], 1);
  685.     TextDrawSetProportional(ForumTextdraw[playerid], 1);
  686. //ZonestextDraw------------------
  687.     ZonesTextdraw[playerid] = TextDrawCreate(11.000000, 324.000000, "-");
  688.     TextDrawBackgroundColor(ZonesTextdraw[playerid], 255);
  689.     TextDrawFont(ZonesTextdraw[playerid], 3);
  690.     TextDrawLetterSize(ZonesTextdraw[playerid], 0.360000, 1.600000);
  691.     TextDrawColor(ZonesTextdraw[playerid], -1);
  692.     TextDrawSetOutline(ZonesTextdraw[playerid], 1);
  693.     TextDrawSetProportional(ZonesTextdraw[playerid], 1);
  694. //NoTimeDuel--------------------------------------------------------------------
  695.     duelRoom1 = -1;
  696.     duelRoom2 = -1;
  697.     duelRoom3 = -1;
  698.     duelRoom4 = -1;
  699.     }
  700.     return 1;
  701. }
  702.  
  703. public OnGameModeExit()
  704. {
  705.     return 1;
  706. }
  707.  
  708. public OnPlayerRequestClass(playerid, classid)
  709. {
  710.     if (classid == 0)
  711.     {
  712.         GameTextForPlayer(playerid,"~g~ LA COSA NOSTRA SHOOTER-TEAM",2000,3);
  713.         SetPlayerPos(playerid,-2723.2859,-315.4313,7.1783);
  714.         SetPlayerFacingAngle(playerid,45.3784);
  715.         SetPlayerCameraPos(playerid,-2725.5479,-312.8718,7.0391);
  716.         SetPlayerCameraLookAt(playerid,-2723.2859,-315.4313,7.1783);
  717.         Gang[playerid] = TEAM_LCN;
  718.     }
  719.     if (classid == 1)
  720.     {
  721.         GameTextForPlayer(playerid,"~g~ LA COSA NOSTRA SNIPER-TEAM",2000,3);
  722.         SetPlayerPos(playerid,-2723.2859,-315.4313,7.1783);
  723.         SetPlayerFacingAngle(playerid,45.3784);
  724.         SetPlayerCameraPos(playerid,-2725.5479,-312.8718,7.0391);
  725.         SetPlayerCameraLookAt(playerid,-2723.2859,-315.4313,7.1783);
  726.         Gang[playerid] = TEAM_LCN;
  727.     }
  728.     if (classid == 2)
  729.     {
  730.         GameTextForPlayer(playerid,"~r~ RUSSIAN MAFIA SHOOTER-TEAM",2000,3);
  731.         SetPlayerPos(playerid,-2135.0461,-247.9861,35.8789);
  732.         SetPlayerFacingAngle(playerid,270.3784);
  733.         SetPlayerCameraPos(playerid,-2132.0156,-247.8858,35.3203);
  734.         SetPlayerCameraLookAt(playerid,-2135.0461,-247.9861,35.8789);
  735.         Gang[playerid] = TEAM_RUS;
  736.     }
  737.     if (classid == 3)
  738.     {
  739.         GameTextForPlayer(playerid,"~r~ RUSSIAN MAFIA SNIPER-TEAM",2000,3);
  740.         SetPlayerPos(playerid,-2135.0461,-247.9861,35.8789);
  741.         SetPlayerFacingAngle(playerid,270.3784);
  742.         SetPlayerCameraPos(playerid,-2132.0156,-247.8858,35.3203);
  743.         SetPlayerCameraLookAt(playerid,-2135.0461,-247.9861,35.8789);
  744.         Gang[playerid] = TEAM_RUS;
  745.     }
  746.     if (classid == 4)
  747.     {
  748.         GameTextForPlayer(playerid,"~w~ TRIAD SHOOTER-TEAM",2000,3);
  749.         SetPlayerPos(playerid,-2153.9602,645.5248,52.3672);
  750.         SetPlayerFacingAngle(playerid,270.3784);
  751.         SetPlayerCameraPos(playerid,-2150.3926,645.6638,52.2656);
  752.         SetPlayerCameraLookAt(playerid,-2153.9602,645.5248,52.3672);
  753.         Gang[playerid] = TEAM_TRIADS;
  754.     }
  755.     if (classid == 5)
  756.     {
  757.         GameTextForPlayer(playerid,"~w~ TRIAD SNIPER-TEAM",2000,3);
  758.         SetPlayerPos(playerid,-2153.9602,645.5248,52.3672);
  759.         SetPlayerFacingAngle(playerid,270.3784);
  760.         SetPlayerCameraPos(playerid,-2150.3926,645.6638,52.2656);
  761.         SetPlayerCameraLookAt(playerid,-2153.9602,645.5248,52.3672);
  762.         Gang[playerid] = TEAM_TRIADS;
  763.     }
  764.     if (classid == 6)
  765.     {
  766.         GameTextForPlayer(playerid,"~b~ YUGOSLAWIAN MAFIA SHOOTER-TEAM",2000,3);
  767.         SetPlayerPos(playerid,-2624.5608,1405.8046,7.1016);
  768.         SetPlayerFacingAngle(playerid,270.3784);
  769.         SetPlayerCameraPos(playerid,-2619.5066,1405.4160,7.0938);
  770.         SetPlayerCameraLookAt(playerid,-2624.5608,1405.8046,7.1016);
  771.         Gang[playerid] = TEAM_YUGO;
  772.     }
  773.     if (classid == 7)
  774.     {
  775.         GameTextForPlayer(playerid,"~b~ YUGOSLAWIAN MAFIA SNIPER-TEAM",2000,3);
  776.         SetPlayerPos(playerid,-2624.5608,1405.8046,7.1016);
  777.         SetPlayerFacingAngle(playerid,270.3784);
  778.         SetPlayerCameraPos(playerid,-2619.5066,1405.4160,7.0938);
  779.         SetPlayerCameraLookAt(playerid,-2624.5608,1405.8046,7.1016);
  780.         Gang[playerid] = TEAM_YUGO;
  781.     }
  782.     if (classid == 8)
  783.     {
  784.         GameTextForPlayer(playerid,"~y~ GERMAN MAFIA SHOOTER-TEAM",2000,3);
  785.         SetPlayerPos(playerid,-2445.2549,523.0179,29.9204);
  786.         SetPlayerFacingAngle(playerid,270.3784);
  787.         SetPlayerCameraPos(playerid,-2438.1738,523.0526,29.9058);
  788.         SetPlayerCameraLookAt(playerid,-2445.2549,523.0179,29.9204);
  789.         Gang[playerid] = TEAM_GERMAN;
  790.     }
  791.     if (classid == 9)
  792.     {
  793.         GameTextForPlayer(playerid,"~y~ GERMAN MAFIA SNIPER-TEAM",2000,3);
  794.         SetPlayerPos(playerid,-2445.2549,523.0179,29.9204);
  795.         SetPlayerFacingAngle(playerid,270.3784);
  796.         SetPlayerCameraPos(playerid,-2438.1738,523.0526,29.9058);
  797.         SetPlayerCameraLookAt(playerid,-2445.2549,523.0179,29.9204);
  798.         Gang[playerid] = TEAM_GERMAN;
  799.     }
  800.     if (classid == 10)
  801.     {
  802.         GameTextForPlayer(playerid,"~p~ CUBAN MAFIA SHOOTER-TEAM",2000,3);
  803.         SetPlayerPos(playerid,-1872.5337,-218.0692,18.3750);
  804.         SetPlayerFacingAngle(playerid,270.3784);
  805.         SetPlayerCameraPos(playerid,-1865.4303,-217.8114,18.3750);
  806.         SetPlayerCameraLookAt(playerid,-1872.5337,-218.0692,18.3750);
  807.         Gang[playerid] = TEAM_CUBAN;
  808.     }
  809.     if (classid == 11)
  810.     {
  811.         GameTextForPlayer(playerid,"~p~ CUBAN MAFIA SNIPER-TEAM",2000,3);
  812.         SetPlayerPos(playerid,-1872.5337,-218.0692,18.3750);
  813.         SetPlayerFacingAngle(playerid,270.3784);
  814.         SetPlayerCameraPos(playerid,-1865.4303,-217.8114,18.3750);
  815.         SetPlayerCameraLookAt(playerid,-1872.5337,-218.0692,18.3750);
  816.         Gang[playerid] = TEAM_CUBAN;
  817.     }
  818.     if(classid == 12)
  819.     {
  820.         GameTextForPlayer(playerid,"~b~ SF-MW ELITE GAMER-TEAM",2000,3);
  821.         SetPlayerPos(playerid,-2280.8911,2288.0557,4.9602);
  822.         SetPlayerFacingAngle(playerid,270.3784);
  823.         SetPlayerCameraPos(playerid,-2270.8911,2288.0557,4.9602);
  824.         SetPlayerCameraLookAt(playerid,-2280.8911,2288.0557,4.9602);
  825.         Gang[playerid] = TEAM_GAMER;
  826.     }
  827.         return 1;
  828. }
  829. public OnPlayerConnect(playerid)
  830. {
  831. // REGISTER SYSTEM =============================================================
  832.     new pname[MAX_PLAYERS],accFormat[128];
  833.     GetPlayerName(playerid,pname,sizeof pname);
  834.     format(accFormat,sizeof accFormat,"acc/%s.sav",pname); // the place where your stats should be saved
  835.     if(fexist(accFormat))
  836.     {
  837.         ShowPlayerDialog(playerid,DIALOG_LOGIN,1,"Login","Hello!\nYour Account has been founded\nPlease logg in!","Cancel","Next");
  838.     }
  839.     else
  840.     {
  841.         ShowPlayerDialog(playerid,DIALOG_REG,1,"Register","You have not an Account on this Server\nPlease register!","Cancel","Next");
  842.     }
  843. // JOIN & LEAVE MESSAGES =======================================================
  844.     new pName[MAX_PLAYER_NAME];
  845.     new string[48];
  846.     GetPlayerName(playerid, pName, sizeof(pName));
  847.     format(string, sizeof(string), "** %s has joined the Server. **", pName);
  848.     SendClientMessageToAll(COLOR_GREEN, string);
  849. //------------------------------------------------------------------------------
  850.     pIPWarns[playerid] = 0;
  851.     teamkills[playerid] = 0;
  852.     IsBombPlanted[playerid] = 0;//Bomb is not planted
  853.     PlayerHasBomb[playerid] = 0;//wenn der Spieler connected hat er keine bombe
  854.     IsDm[playerid] = 0; //pllyer ist not in DM arenas
  855.     KillSpree[playerid] = 0;
  856. //==============================================================================
  857.     SendClientMessage(playerid, hellblau, "|_______ WELCOME TO SAN FRANCISCO MAFIA WARS v3 _______|");
  858.     SendClientMessage(playerid, weiss,"Read the Rules before you do Stupid things. (/rules)");
  859.     SendClientMessage(playerid, weiss,"When you need Help, ask an Admin or read (/help)");
  860.     SendClientMessage(playerid, weiss,"Type (/rinfo) to get information about our Ranksystem");
  861.     SendClientMessage(playerid, weiss,"Be ware Cheaters, this Server is protectet by an Anti-Cheat System!");
  862. //---------
  863.     PlayerduelWatching[playerid] = 0;
  864.     InventationSent[playerid] = -1;
  865.     Inventation[playerid] = -1;
  866.     Induel[playerid] = 0;
  867.     Inventationprice[playerid] = 0;
  868. //---------
  869.     TextDrawShowForPlayer(playerid,ForumTextdraw[playerid]);
  870. //--------
  871.     gettime(hour, minute);
  872.     SetPlayerTime(playerid,hour,minute);
  873.     return 1;
  874. }
  875.  
  876. public OnPlayerDisconnect(playerid, reason)
  877. {
  878. // STATS SAVER IN REGISTERSYSTEM ===============================================
  879.     new pname[MAX_PLAYERS],accFormat[128];
  880.     GetPlayerName(playerid,pname,sizeof pname);
  881.     format(accFormat,sizeof accFormat,"acc/%s.sav",pname);
  882.     if(fexist(accFormat) && Spieler[playerid][eingeloggt])
  883.     {
  884.         dini_IntSet(accFormat,"rang",Spieler[playerid][rang]);
  885.         dini_IntSet(accFormat,"Adminlvl",Spieler[playerid][alvl]);
  886.         dini_IntSet(accFormat,"Kills",Spieler[playerid][Kills]);
  887.         dini_IntSet(accFormat,"Deaths",Spieler[playerid][Deaths]);
  888.         dini_IntSet(accFormat,"Geld",GetPlayerMoney(playerid));
  889.         dini_IntSet(accFormat,"Score",GetPlayerScore(playerid));
  890.         dini_IntSet(accFormat,"gamer",Spieler[playerid][gamer]);
  891.     }
  892.     Spieler[playerid][eingeloggt] = 0;
  893. // ROBSYSTEM
  894.     isAtRob[playerid] = 0;
  895.     if(timer_x[playerid] > 0)KillTimer(timer_x[playerid]);
  896.     timer_x[playerid] = 0;
  897. //----
  898.     PlayerduelWatching[playerid] = 0;
  899.     InventationSent[playerid] = -1;
  900.     Inventation[playerid] = -1;
  901.     Induel[playerid] = 0;
  902.     Inventationprice[playerid] = 0;
  903.     // LEAVE MESSAGE ===========================================================
  904.     new pName[MAX_PLAYER_NAME];
  905.     new string[56];
  906.     GetPlayerName(playerid, pName, sizeof(pName));
  907.     switch(reason)
  908.     {
  909.         case 0: format(string, sizeof(string), "**%s has left the Server.(Timeout/Crash)**", pName);
  910.         case 1: format(string, sizeof(string), "** %s has left the Server. **", pName);
  911.         case 2: format(string, sizeof(string), "** %s has left the Server.(Kick/Ban)**", pName);
  912.     }
  913.     SendAdminMessage(COLOR_RED, string);
  914.     return 1;
  915. }
  916. public OnPlayerSpawn(playerid)
  917. {
  918.     SetTimer("zonecheck",1500,1);// zone cheks
  919.     SetPlayerArmour(playerid, 100.0);
  920.     SendClientMessage(playerid, COLOR_GREEN, "*** ANTI SPAWNKILL ACTIVE ***");
  921. // ANTI SPAWN KILL =============================================================
  922.     SetTimerEx("GiveWeapons", SPAWNTIME*1000, false, "i", playerid);
  923. //----
  924.     SetPlayerHealth(playerid, 1000.0);
  925.     if (Gang[playerid] == TEAM_LCN) { SetPlayerColor(playerid,gruen);}//LCN COLOR GREEN
  926.     else if (Gang[playerid] == TEAM_RUS) { SetPlayerColor(playerid,rot);}//RUSSIA COLOR RED
  927.     else if (Gang[playerid] == TEAM_TRIADS) { SetPlayerColor(playerid,weiss); }//TRIADS YELLOW
  928.     else if (Gang[playerid] ==  TEAM_YUGO) { SetPlayerColor(playerid,yugoblau);}//YUGOS GREY
  929.     else if (Gang[playerid] ==  TEAM_GERMAN) { SetPlayerColor(playerid,gelb);}//GERMANS
  930.     else if (Gang[playerid] ==  TEAM_CUBAN) { SetPlayerColor(playerid,braun);}//CUBANS
  931. // Minijob =====================================================================
  932.     drugjob[playerid] = 0;
  933. //------------------------------------------------------------------------------
  934.     new color1 = dini_Int("/zones/zones.ini","Zone1");
  935.     new color2 = dini_Int("/zones/zones.ini","Zone2");
  936.     new color3 = dini_Int("/zones/zones.ini","Zone3");
  937.     new color4 = dini_Int("/zones/zones.ini","Zone4");
  938.     new color5 = dini_Int("/zones/zones.ini","Zone5");
  939.     new color6 = dini_Int("/zones/zones.ini","Zone6");
  940.     new color7 = dini_Int("/zones/zones.ini","Zone7");
  941.     new color8 = dini_Int("/zones/zones.ini","Zone8");
  942.     new color9 = dini_Int("/zones/zones.ini","Zone9");
  943.     new color10 = dini_Int("/zones/zones.ini","Zone10");
  944.     new color11 = dini_Int("/zones/zones.ini","Zone11");
  945.     new color12 = dini_Int("/zones/zones.ini","Zone12");
  946.     new color13 = dini_Int("/zones/zones.ini","Zone13");
  947. //------------------------------------------------------------------------------
  948.     GangZoneShowForPlayer(playerid, Zone1, color1);
  949.     GangZoneShowForPlayer(playerid, Zone2, color2);
  950.     GangZoneShowForPlayer(playerid, Zone3, color3);
  951.     GangZoneShowForPlayer(playerid, Zone4, color4);
  952.     GangZoneShowForPlayer(playerid, Zone5, color5);
  953.     GangZoneShowForPlayer(playerid, Zone6, color6);
  954.     GangZoneShowForPlayer(playerid, Zone7, color7);
  955.     GangZoneShowForPlayer(playerid, Zone8, color8);
  956.     GangZoneShowForPlayer(playerid, Zone9, color9);
  957.     GangZoneShowForPlayer(playerid, Zone10, color10);
  958.     GangZoneShowForPlayer(playerid, Zone11, color11);
  959.     GangZoneShowForPlayer(playerid, Zone12, color12);
  960.     GangZoneShowForPlayer(playerid, Zone13, color13);
  961.     PlayerAtacker[playerid] = 0;
  962.     if(Gang[playerid] == TEAM_GAMER)
  963.     {
  964.         if(Spieler[playerid][gamer] == 0)
  965.         {
  966.             PlayerToSkinSelect(playerid);
  967.             SendClientMessage(playerid,COLOR_RED,"You are not in the Gamer-Team!/gamerinfo to get more informations!");
  968.         }
  969.         else if (Spieler[playerid][gamer] == 1)
  970.         {
  971.             GivePlayerWeapon(playerid,29,1000);
  972.             GivePlayerWeapon(playerid,16,5);
  973.             GivePlayerWeapon(playerid,31,1000);
  974.             GivePlayerWeapon(playerid,34,250);
  975.             GivePlayerWeapon(playerid,24,200);
  976.             SetPlayerColor(playerid,COLOR_LIGHTBLUE);
  977.         }
  978.     }
  979. //------------------------------------------------------------------------------
  980.     if(IsDm[playerid] == 1){SniperDm(playerid);}
  981.     if(IsDm[playerid] == 2){DeagleDm(playerid);}
  982.     if(IsDm[playerid] == 3){GrenadeDm(playerid);}
  983.     if(IsDm[playerid] == 4){AllinDm(playerid);}
  984.     if(IsDm[playerid] == 5){StreetfightDm(playerid);}
  985.     if(IsDm[playerid] == 6){TacticDm(playerid);}
  986. //------------------------------------------------------------------------------
  987.     TextDrawShowForPlayer(playerid,txtTimeDisp);
  988.     gettime(hour, minute);
  989.     SetPlayerTime(playerid,hour,minute);
  990.     return 1;
  991. }
  992. public StatsTimer()
  993. {
  994.     for(new i=0;i<MAX_PLAYERS;i++)
  995.     {
  996.         if (IsPlayerConnected(i))
  997.         {
  998.         new str[128];
  999.         TextDrawHideForPlayer(i,RankTextdraw[i]);
  1000.        //--------
  1001.         if(Spieler[i][rang] == 1){
  1002.         format(str, sizeof(str), "Rank: BabyKiller");
  1003.         TextDrawSetString(RankTextdraw[i],str);
  1004.         TextDrawShowForPlayer(i,RankTextdraw[i]);
  1005.         }
  1006.         if(Spieler[i][rang] == 2){
  1007.         format(str, sizeof(str), "Rank: Outlaw");
  1008.         TextDrawSetString(RankTextdraw[i],str);
  1009.         TextDrawShowForPlayer(i,RankTextdraw[i]);
  1010.         }
  1011.         if(Spieler[i][rang] == 3){
  1012.         format(str, sizeof(str), "Rank: Newcomer");
  1013.         TextDrawSetString(RankTextdraw[i],str);
  1014.         TextDrawShowForPlayer(i,RankTextdraw[i]);
  1015.         }
  1016.         if(Spieler[i][rang] == 4){
  1017.         format(str, sizeof(str), "Rank: Associate");
  1018.         TextDrawSetString(RankTextdraw[i],str);
  1019.         TextDrawShowForPlayer(i,RankTextdraw[i]);
  1020.         }
  1021.         if(Spieler[i][rang] == 5){
  1022.         format(str, sizeof(str), "Rank: Soldier");
  1023.         TextDrawSetString(RankTextdraw[i],str);
  1024.         TextDrawShowForPlayer(i,RankTextdraw[i]);
  1025.         }
  1026.         if(Spieler[i][rang] == 6){
  1027.         format(str, sizeof(str), "Rank: Killer");
  1028.         TextDrawSetString(RankTextdraw[i],str);
  1029.         TextDrawShowForPlayer(i,RankTextdraw[i]);
  1030.         }
  1031.         if(Spieler[i][rang] == 7){
  1032.         format(str, sizeof(str), "Rank: Capo");
  1033.         TextDrawSetString(RankTextdraw[i],str);
  1034.         TextDrawShowForPlayer(i,RankTextdraw[i]);
  1035.         }
  1036.         if(Spieler[i][rang] == 8){
  1037.         format(str, sizeof(str), "Rank: StreetBoss");
  1038.         TextDrawSetString(RankTextdraw[i],str);
  1039.         TextDrawShowForPlayer(i,RankTextdraw[i]);
  1040.         }
  1041.         if(Spieler[i][rang] == 9){
  1042.         format(str, sizeof(str), "Rank: Underboss");
  1043.         TextDrawSetString(RankTextdraw[i],str);
  1044.         TextDrawShowForPlayer(i,RankTextdraw[i]);
  1045.         }
  1046.         if(Spieler[i][rang] == 10){
  1047.         format(str, sizeof(str), "Rank: Godfather");
  1048.         TextDrawSetString(RankTextdraw[i],str);
  1049.         TextDrawShowForPlayer(i,RankTextdraw[i]);
  1050.         }
  1051. /*1*/   if(!IsPlayerInArea(i,-2799.996093, -173.397064, -2463.996093, 154.602935)){TextDrawSetString(ZonesTextdraw[i],"*");TextDrawShowForPlayer(i,ZonesTextdraw[i]);}
  1052. /*2*/   if(!IsPlayerInArea(i,-2799.354492, 232.376708, -2615.354492, 696.376708)){TextDrawSetString(ZonesTextdraw[i],"*");TextDrawShowForPlayer(i,ZonesTextdraw[i]);}
  1053. /*3*/   if(!IsPlayerInArea(i,-2276.547119, -86.489639, -2004.547119, 169.510360)){TextDrawSetString(ZonesTextdraw[i],"*");TextDrawShowForPlayer(i,ZonesTextdraw[i]);}
  1054. /*4*/   if(!IsPlayerInArea(i,-2445.138183, -232.113327, -2293.138183, 223.886672)){TextDrawSetString(ZonesTextdraw[i],"*");TextDrawShowForPlayer(i,ZonesTextdraw[i]);}
  1055. /*5*/   if(!IsPlayerInArea(i,-2328.167480, 337.696594, -1944.167480, 681.696594)){TextDrawSetString(ZonesTextdraw[i],"*");TextDrawShowForPlayer(i,ZonesTextdraw[i]);}
  1056. /*6*/   if(!IsPlayerInArea(i,-1824.531494, 624.765625, -1496.531494, 920.765625)){TextDrawSetString(ZonesTextdraw[i],"*");TextDrawShowForPlayer(i,ZonesTextdraw[i]);}
  1057. /*7*/   if(!IsPlayerInArea(i,-2439.947753, 1035.557861, -2119.947753, 1307.557861)){TextDrawSetString(ZonesTextdraw[i],"*");TextDrawShowForPlayer(i,ZonesTextdraw[i]);}
  1058. /*8*/   if(!IsPlayerInArea(i,-1854.087280, 1178.869628, -1622.087280, 1410.869628)){TextDrawSetString(ZonesTextdraw[i],"*");TextDrawShowForPlayer(i,ZonesTextdraw[i]);}
  1059. /*9*/   if(!IsPlayerInArea(i,-2213.718750, 710.110534, -1949.718750, 982.110534)){TextDrawSetString(ZonesTextdraw[i],"*");TextDrawShowForPlayer(i,ZonesTextdraw[i]);}
  1060. /*10*/  if(!IsPlayerInArea(i,-2765.796386, 784.332397, -2437.796386, 1104.332397)){TextDrawSetString(ZonesTextdraw[i],"*");TextDrawShowForPlayer(i,ZonesTextdraw[i]);}
  1061. /*11*/  if(!IsPlayerInArea(i,-1922.631958, -28.333175, -1706.631958, 403.666809)){TextDrawSetString(ZonesTextdraw[i],"*");TextDrawShowForPlayer(i,ZonesTextdraw[i]);}
  1062. /*12*/  if(!IsPlayerInArea(i,-1957.691406, -758.583618, -1645.691406, -430.5836182)){TextDrawSetString(ZonesTextdraw[i],"*");TextDrawShowForPlayer(i,ZonesTextdraw[i]);}
  1063. /*13*/  if(!IsPlayerInArea(i,-2518.000000, -602.239868, -2246.000000, -306.239868)){TextDrawSetString(ZonesTextdraw[i],"*");TextDrawShowForPlayer(i,ZonesTextdraw[i]);}
  1064.         if(IsPlayerInArea(i,-2799.996093, -173.397064, -2463.996093, 154.602935))
  1065.         {
  1066.             new color = dini_Int("/zones/zones.ini","Zone1");
  1067.             if(color == 13369540){ZoneTextLcn(i);}
  1068.             else if(color == -1439485014){ZoneTextRus(i);}
  1069.             else if(color == -86){ZoneTextTriad(i);}
  1070.             else if(color == 3407768){ZoneTextYugo(i);}
  1071.             else if(color == -65366){ZoneTextGerman(i);}
  1072.             else if(color ==1714618567){ZoneTextCuban(i);}
  1073.         }
  1074.         if(IsPlayerInArea(i,-2799.354492, 232.376708, -2615.354492, 696.376708))
  1075.         {
  1076.             new color = dini_Int("/zones/zones.ini","Zone2");
  1077.             if(color == 13369540){ZoneTextLcn(i);}
  1078.             else if(color == -1439485014){ZoneTextRus(i);}
  1079.             else if(color == -86){ZoneTextTriad(i);}
  1080.             else if(color == 3407768){ZoneTextYugo(i);}
  1081.             else if(color == -65366){ZoneTextGerman(i);}
  1082.             else if(color ==1714618567){ZoneTextCuban(i);}
  1083.         }
  1084.         if(IsPlayerInArea(i,-2276.547119, -86.489639, -2004.547119, 169.510360))
  1085.         {
  1086.             new color = dini_Int("/zones/zones.ini","Zone3");
  1087.             if(color == 13369540){ZoneTextLcn(i);}
  1088.             else if(color == -1439485014){ZoneTextRus(i);}
  1089.             else if(color == -86){ZoneTextTriad(i);}
  1090.             else if(color == 3407768){ZoneTextYugo(i);}
  1091.             else if(color == -65366){ZoneTextGerman(i);}
  1092.             else if(color ==1714618567){ZoneTextCuban(i);}
  1093.         }
  1094.         if(IsPlayerInArea(i,-2445.138183, -232.113327, -2293.138183, 223.886672))
  1095.         {
  1096.             new color = dini_Int("/zones/zones.ini","Zone4");
  1097.             if(color == 13369540){ZoneTextLcn(i);}
  1098.             else if(color == -1439485014){ZoneTextRus(i);}
  1099.             else if(color == -86){ZoneTextTriad(i);}
  1100.             else if(color == 3407768){ZoneTextYugo(i);}
  1101.             else if(color == -65366){ZoneTextGerman(i);}
  1102.             else if(color ==1714618567){ZoneTextCuban(i);}
  1103.         }
  1104.         if(IsPlayerInArea(i,-2328.167480, 337.696594, -1944.167480, 681.696594))
  1105.         {
  1106.             new color = dini_Int("/zones/zones.ini","Zone5");
  1107.             if(color == 13369540){ZoneTextLcn(i);}
  1108.             else if(color == -1439485014){ZoneTextRus(i);}
  1109.             else if(color == -86){ZoneTextTriad(i);}
  1110.             else if(color == 3407768){ZoneTextYugo(i);}
  1111.             else if(color == -65366){ZoneTextGerman(i);}
  1112.             else if(color ==1714618567){ZoneTextCuban(i);}
  1113.         }
  1114.         if(IsPlayerInArea(i,-1824.531494, 624.765625, -1496.531494, 920.765625))
  1115.         {
  1116.             new color = dini_Int("/zones/zones.ini","Zone6");
  1117.             if(color == 13369540){ZoneTextLcn(i);}
  1118.             else if(color == -1439485014){ZoneTextRus(i);}
  1119.             else if(color == -86){ZoneTextTriad(i);}
  1120.             else if(color == 3407768){ZoneTextYugo(i);}
  1121.             else if(color == -65366){ZoneTextGerman(i);}
  1122.             else if(color ==1714618567){ZoneTextCuban(i);}
  1123.         }
  1124.         if(IsPlayerInArea(i,-2439.947753, 1035.557861, -2119.947753, 1307.557861))
  1125.         {
  1126.             new color = dini_Int("/zones/zones.ini","Zone7");
  1127.             if(color == 13369540){ZoneTextLcn(i);}
  1128.             else if(color == -1439485014){ZoneTextRus(i);}
  1129.             else if(color == -86){ZoneTextTriad(i);}
  1130.             else if(color == 3407768){ZoneTextYugo(i);}
  1131.             else if(color == -65366){ZoneTextGerman(i);}
  1132.             else if(color ==1714618567){ZoneTextCuban(i);}
  1133.         }
  1134.         if(IsPlayerInArea(i,-1854.087280, 1178.869628, -1622.087280, 1410.869628))
  1135.         {
  1136.             new color = dini_Int("/zones/zones.ini","Zone8");
  1137.             if(color == 13369540){ZoneTextLcn(i);}
  1138.             else if(color == -1439485014){ZoneTextRus(i);}
  1139.             else if(color == -86){ZoneTextTriad(i);}
  1140.             else if(color == 3407768){ZoneTextYugo(i);}
  1141.             else if(color == -65366){ZoneTextGerman(i);}
  1142.             else if(color ==1714618567){ZoneTextCuban(i);}
  1143.         }
  1144.         if(IsPlayerInArea(i,-2213.718750, 710.110534, -1949.718750, 982.110534))
  1145.         {
  1146.             new color = dini_Int("/zones/zones.ini","Zone9");
  1147.             if(color == 13369540){ZoneTextLcn(i);}
  1148.             else if(color == -1439485014){ZoneTextRus(i);}
  1149.             else if(color == -86){ZoneTextTriad(i);}
  1150.             else if(color == 3407768){ZoneTextYugo(i);}
  1151.             else if(color == -65366){ZoneTextGerman(i);}
  1152.             else if(color ==1714618567){ZoneTextCuban(i);}
  1153.         }
  1154.         if(IsPlayerInArea(i,-2765.796386, 784.332397, -2437.796386, 1104.332397))
  1155.         {
  1156.             new color = dini_Int("/zones/zones.ini","Zone10");
  1157.             if(color == 13369540){ZoneTextLcn(i);}
  1158.             else if(color == -1439485014){ZoneTextRus(i);}
  1159.             else if(color == -86){ZoneTextTriad(i);}
  1160.             else if(color == 3407768){ZoneTextYugo(i);}
  1161.             else if(color == -65366){ZoneTextGerman(i);}
  1162.             else if(color ==1714618567){ZoneTextCuban(i);}
  1163.         }
  1164.         if(IsPlayerInArea(i,-1922.631958, -28.333175, -1706.631958, 403.666809))
  1165.         {
  1166.             new color = dini_Int("/zones/zones.ini","Zone11");
  1167.             if(color == 13369540){ZoneTextLcn(i);}
  1168.             else if(color == -1439485014){ZoneTextRus(i);}
  1169.             else if(color == -86){ZoneTextTriad(i);}
  1170.             else if(color == 3407768){ZoneTextYugo(i);}
  1171.             else if(color == -65366){ZoneTextGerman(i);}
  1172.             else if(color ==1714618567){ZoneTextCuban(i);}
  1173.         }
  1174.         if(IsPlayerInArea(i,-1957.691406, -758.583618, -1645.691406, -430.5836182))
  1175.         {
  1176.             new color = dini_Int("/zones/zones.ini","Zone12");
  1177.             if(color == 13369540){ZoneTextLcn(i);}
  1178.             else if(color == -1439485014){ZoneTextRus(i);}
  1179.             else if(color == -86){ZoneTextTriad(i);}
  1180.             else if(color == 3407768){ZoneTextYugo(i);}
  1181.             else if(color == -65366){ZoneTextGerman(i);}
  1182.             else if(color ==1714618567){ZoneTextCuban(i);}
  1183.         }
  1184.         if(IsPlayerInArea(i,-2518.000000, -602.239868, -2246.000000, -306.239868))
  1185.         {
  1186.             new color = dini_Int("/zones/zones.ini","Zone13");
  1187.             if(color == 13369540){ZoneTextLcn(i);}
  1188.             else if(color == -1439485014){ZoneTextRus(i);}
  1189.             else if(color == -86){ZoneTextTriad(i);}
  1190.             else if(color == 3407768){ZoneTextYugo(i);}
  1191.             else if(color == -65366){ZoneTextGerman(i);}
  1192.             else if(color ==1714618567){ZoneTextCuban(i);}
  1193.         }
  1194.         new str2[128];
  1195.         format(str2, sizeof(str2), "Kills:%d Deaths:%d Ratio:%0.2f",Spieler[i][Kills],Spieler[i][Deaths],Float:Spieler[i][Kills]/Float:Spieler[i][Deaths]);
  1196.         TextDrawSetString(StatsTextdraw[i],str2);
  1197.         TextDrawShowForPlayer(i,StatsTextdraw[i]);
  1198.         }
  1199.     }
  1200.     return 1;
  1201. }
  1202. public OnPlayerDeath(playerid, killerid, reason)
  1203. {
  1204. //---
  1205.     TextDrawHideForPlayer(playerid,txtTimeDisp);
  1206. //---
  1207.     if(killerid==INVALID_PLAYER_ID){
  1208.     GameTextForPlayer(playerid,"---WASTED---",2000,3);
  1209.     }
  1210. //----
  1211.     if(killerid != INVALID_PLAYER_ID)
  1212.     {
  1213.         if(Gang[killerid] == Gang[playerid] && IsDm[killerid] == 0)
  1214.         {
  1215.                 teamkills[killerid]++;
  1216.                 if (teamkills[killerid] > 2){Kick(killerid);}
  1217.                 SendClientMessage(killerid,hellrot,"You have been punished for teamkillng (3 Teamkills and you get a kick)");
  1218.                 GivePlayerMoney(killerid,-1000);
  1219.                 ResetPlayerWeapons(killerid);
  1220.                 GivePlayerWeapon(killerid,23,100);
  1221.         }
  1222. //------------------------------------------------------------------------------
  1223.         else if(killerid != INVALID_PLAYER_ID && isAtRob[playerid])
  1224.         {
  1225.             GivePlayerMoney(killerid,6000);
  1226.             GivePlayerMoney(playerid,-6000);
  1227.             SendClientMessage(killerid, gruen, "The Robber is killed. You get 6.000$");
  1228.             isAtRob[playerid] = 0;
  1229.         }
  1230. //------------------------------------------------------------------------------
  1231.         else if(killerid !=INVALID_PLAYER_ID && drugjob[playerid] == 1)
  1232.         {
  1233.             new StealName[MAX_PLAYER_NAME],LoserName[MAX_PLAYER_NAME];
  1234.             new akischwul[128];
  1235.             GetPlayerName(playerid,LoserName,sizeof(LoserName));
  1236.             GetPlayerName(killerid,StealName,sizeof(StealName));
  1237.  
  1238.             SendClientMessageToAll(COLOR_DARKRED, "|______San Francisco-News______|");
  1239.             SendClientMessageToAll(hellrot, " ");
  1240.             format(akischwul,sizeof(akischwul),"%s has stolen the drugs of %s ",StealName,LoserName);
  1241.             SendClientMessageToAll(weiss,akischwul);
  1242.             SendClientMessageToAll(weiss, "Stop him! And you get his Drugs !");
  1243.             SendClientMessageToAll(weiss, "You find him on the Mini-map(the Red Point)");
  1244.             SendClientMessageToAll(hellrot, " ");
  1245.             SendClientMessageToAll(COLOR_DARKRED, "|______San Francisco-News______|");
  1246.  
  1247.             SetPlayerCheckpoint(killerid,DeliverCheck,3.0);
  1248.             SendClientMessage(playerid,COLOR_RED,"You have lost your Drugs");
  1249.             drugjob[playerid] = 0;
  1250.             drugjob[killerid] = 1;
  1251.             SendClientMessage(killerid,COLOR_GREEN,"You have stolen the drugs bring them to the red point on the map");
  1252.             SetPlayerColor(killerid,COLOR_RED);
  1253.         }
  1254.         new kname[MAX_PLAYER_NAME],str3[128];
  1255.         GetPlayerName(killerid,kname,sizeof(kname));
  1256.         if(KillSpree[killerid] == 2){
  1257.         format(str3, sizeof(str3),"~r~ %s ~g~ IS DOMINATING",kname);
  1258.         GameTextForAll(str3,5000,4);
  1259.         SendClientMessage(killerid,COLOR_GREEN,"You have a KillingSpree of 3 You get 500$");
  1260.         GivePlayerMoney(killerid,500);
  1261.         }
  1262.         else if(KillSpree[killerid] == 4){
  1263.         format(str3, sizeof(str3),"~r~ %s ~g~ IS ON KILLING SPREE",kname);
  1264.         GameTextForAll(str3,5000,4);
  1265.         SendClientMessage(killerid,COLOR_GREEN,"You have a KillingSpree of 5 You get 800$ and Aromour for free");
  1266.         GivePlayerMoney(killerid,800);
  1267.         SetPlayerArmour(killerid,100);
  1268.         }
  1269.         else if(KillSpree[killerid] == 11){
  1270.         format(str3, sizeof(str3),"~r~ %s ~g~ HAS A MONSTER KILL",kname);
  1271.         GameTextForAll(str3,5000,4);
  1272.         SendClientMessage(killerid,COLOR_GREEN,"You have a KillingSpree of 10 You get 2000$ and Armour+Health for free");
  1273.         SetPlayerArmour(killerid,100);
  1274.         SetPlayerHealth(killerid,100);
  1275.         GivePlayerMoney(killerid,2000);
  1276.         }
  1277.         else if(KillSpree[killerid] == 15){
  1278.         format(str3, sizeof(str3),"~r~ %s ~g~ GODLIKE",kname);
  1279.         GameTextForAll(str3,5000,4);
  1280.         SendClientMessage(killerid,COLOR_GREEN,"You have a KillingSpree of 16 You get 2500$ and M4,MP5,Sniper,Deagle for free");
  1281.         GivePlayerWeapon(killerid,34,1000);
  1282.         GivePlayerWeapon(killerid,29,1000);
  1283.         GivePlayerWeapon(killerid,24,1000);
  1284.         GivePlayerWeapon(killerid,31,1000);
  1285.         GivePlayerMoney(killerid,2500);
  1286.         }
  1287.         else if(KillSpree[killerid] == 19){
  1288.         format(str3, sizeof(str3),"~r~ %s ~g~ WICKED SICK",kname);
  1289.         GameTextForAll(str3,5000,4);
  1290.         SendClientMessage(killerid,COLOR_GREEN,"You have a KillingSpree of 20 You get 3500$ and M4,MP5,Sniper,Deagle,Health,Armour for free");
  1291.         GivePlayerWeapon(killerid,34,1000);
  1292.         GivePlayerWeapon(killerid,29,1000);
  1293.         GivePlayerWeapon(killerid,24,1000);
  1294.         GivePlayerWeapon(killerid,31,1000);
  1295.         GivePlayerMoney(killerid,3500);
  1296.         SetPlayerArmour(killerid,100);
  1297.         SetPlayerHealth(killerid,100);
  1298.         }
  1299.         else if(KillSpree[killerid] >= 24){
  1300.         format(str3, sizeof(str3),"~g~ HOLY SHIT ~r~ %s with %d KILLS",kname,KillSpree[playerid]);
  1301.         GameTextForAll(str3,5000,4);
  1302.         SendClientMessage(killerid,COLOR_GREEN,"You have a ENOURMOUS KILLING SPREE for every kill while the Spree you will get 1000$");
  1303.         GivePlayerMoney(killerid,100);
  1304.         }
  1305.         if(Induel[playerid] == 1)
  1306.         {
  1307.             new string[256];
  1308.             new killername[MAX_PLAYER_NAME];
  1309.             new playername[MAX_PLAYER_NAME];
  1310.             GetPlayerName(killerid, killername, sizeof(killername));
  1311.             GetPlayerName(playerid, playername, sizeof(playername));
  1312.             if(duelRoom1 == playerid || duelRoom1 == killerid)
  1313.             {
  1314.                 Inventation[playerid] = -1;
  1315.                 InventationSent[playerid] = -1;
  1316.                 Inventation[killerid] = -1;
  1317.                 InventationSent[killerid] = -1;
  1318.                 Induel[playerid] = 0;
  1319.                 Induel[killerid] = 0;
  1320.                 format(string, sizeof(string), "%s defeated %s in a duel and wins $%d", killername, playername, duelRoom1price);
  1321.                 SendClientMessageToAll(GREEN, string);
  1322.                 GivePlayerMoney(killerid, (duelRoom1price*2));
  1323.                 SpawnPlayer(killerid);
  1324.                 duelRoom1 = -1;
  1325.                 return 1;
  1326.             }
  1327.             if(duelRoom2 == playerid || duelRoom2 == killerid)
  1328.             {
  1329.                 Inventation[playerid] = -1;
  1330.                 InventationSent[playerid] = -1;
  1331.                 Inventation[killerid] = -1;
  1332.                 InventationSent[killerid] = -1;
  1333.                 Induel[playerid] = 0;
  1334.                 Induel[killerid] = 0;
  1335.                 format(string, sizeof(string), "%s defeated %s in a duel and wins $%d", killername, playername, duelRoom2price);
  1336.                 SendClientMessageToAll(GREEN, string);
  1337.                 GivePlayerMoney(killerid, (duelRoom2price*2));
  1338.                 SpawnPlayer(killerid);
  1339.                 duelRoom2 = -1;
  1340.                 return 1;
  1341.             }
  1342.             if(duelRoom3 == playerid || duelRoom3 == killerid)
  1343.             {
  1344.                 Inventation[playerid] = -1;
  1345.                 InventationSent[playerid] = -1;
  1346.                 Inventation[killerid] = -1;
  1347.                 InventationSent[killerid] = -1;
  1348.                 Induel[playerid] = 0;
  1349.                 Induel[killerid] = 0;
  1350.                 format(string, sizeof(string), "%s defeated %s in a duel and wins $%d", killername, playername, duelRoom3price);
  1351.                 SendClientMessageToAll(GREEN, string);
  1352.                 GivePlayerMoney(killerid, (duelRoom3price*2));
  1353.                 SpawnPlayer(killerid);
  1354.                 duelRoom3 = -1;
  1355.                 return 1;
  1356.             }
  1357.             if(duelRoom4 == playerid || duelRoom4 == killerid)
  1358.             {
  1359.                 Inventation[playerid] = -1;
  1360.                 InventationSent[playerid] = -1;
  1361.                 Inventation[killerid] = -1;
  1362.                 InventationSent[killerid] = -1;
  1363.                 Induel[playerid] = 0;
  1364.                 Induel[killerid] = 0;
  1365.                 format(string, sizeof(string), "%s defeated %s in a duel and wins $%d", killername, playername, duelRoom4price);
  1366.                 SendClientMessageToAll(GREEN, string);
  1367.                 GivePlayerMoney(killerid, (duelRoom4price*2));
  1368.                 SpawnPlayer(killerid);
  1369.                 duelRoom4 = -1;
  1370.                 return 1;
  1371.             }
  1372.             return 1;
  1373.         }
  1374. //------------------------------------------------------------------------------
  1375.         SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
  1376.         new name[MAX_PLAYER_NAME],deathstring[128];
  1377.         GetPlayerName(killerid,name,sizeof(name));
  1378.         format(deathstring,sizeof(deathstring),"~r~Owned by %s",name);
  1379.         GameTextForPlayer(playerid,deathstring,2000,3);
  1380.         KillSpree[killerid]++;
  1381.     }
  1382.     SendDeathMessage(killerid,playerid,reason);
  1383.     KillSpree[playerid] = 0;
  1384.     DisablePlayerCheckpoint(playerid);
  1385.     Spieler[playerid][Deaths]++;
  1386.     Spieler[killerid][Kills]++;
  1387.     return 1;
  1388. }
  1389.  
  1390. public OnVehicleSpawn(vehicleid)
  1391. {
  1392.     return 1;
  1393. }
  1394.  
  1395. public OnVehicleDeath(vehicleid, killerid)
  1396. {
  1397.     return 1;
  1398. }
  1399.  
  1400. public OnPlayerText(playerid, text[])
  1401. {
  1402. // TEAM CHATS ==================================================================
  1403.     if (text[0] == '!')
  1404.     {
  1405.         new playerTeam = Gang[playerid];
  1406.         new string[128];
  1407.         new color;
  1408.  
  1409.         GetPlayerName(playerid, string, sizeof string);
  1410.         format(string,sizeof(string),"((**TEAMCHAT %s: %s. **))",string,text[1]);
  1411.  
  1412.         switch (playerTeam)
  1413.         {
  1414.             case TEAM_LCN: color = aqua;
  1415.             case TEAM_RUS: color = aqua;
  1416.             case TEAM_TRIADS: color = aqua;
  1417.             case TEAM_YUGO: color = aqua;
  1418.             case TEAM_GERMAN: color = aqua;
  1419.             case TEAM_CUBAN: color = aqua;
  1420.             case TEAM_GAMER: color = aqua;
  1421.         }
  1422.         for(new i; i < MAX_PLAYERS; i++)
  1423.         {
  1424.             if (Gang[i] == playerTeam)
  1425.             {
  1426.                 SendClientMessage(i,color,string);
  1427.             }
  1428.         }
  1429.         return 0;
  1430.     }
  1431. //--
  1432.     return 1;
  1433. }
  1434.  
  1435. public OnPlayerCommandText(playerid, cmdtext[])
  1436. {
  1437. // DMCDS BEGINN ================================================================
  1438.     dcmd(report,6,cmdtext);
  1439.     dcmd(kick,4,cmdtext);
  1440.     dcmd(ban,3,cmdtext);
  1441.     dcmd(seestats,8,cmdtext);
  1442.     dcmd(admins,6,cmdtext);
  1443.     dcmd(a,1,cmdtext);
  1444.     dcmd(dec,3,cmdtext);
  1445.     dcmd(makeadmin,9,cmdtext);
  1446.     dcmd(freeze,6,cmdtext);
  1447.     dcmd(unfreeze,8,cmdtext);
  1448.     dcmd(setkills,8,cmdtext);
  1449.     dcmd(setdeaths,9,cmdtext);
  1450.     dcmd(setscore,8,cmdtext);
  1451.     dcmd(givecash,8,cmdtext);
  1452.     dcmd(giveweapon,10,cmdtext);
  1453.     dcmd(explode,7,cmdtext);
  1454.     dcmd(spectate,8,cmdtext);
  1455.     dcmd(tele,4,cmdtext);
  1456.     dcmd(gethere,7,cmdtext);
  1457.     dcmd(pm,2,cmdtext);
  1458.     dcmd(setskin,7,cmdtext);
  1459.     dcmd(heal,4,cmdtext);
  1460.     dcmd(takeweaps,9,cmdtext);
  1461.     dcmd(setweather,10,cmdtext);
  1462.     dcmd(sethour,7,cmdtext);
  1463.     dcmd(veh,3,cmdtext);
  1464.     dcmd(seecash,7,cmdtext);
  1465.     dcmd(armour,6,cmdtext);
  1466.     dcmd(setcash,7,cmdtext);
  1467. //dcmd duel
  1468.     dcmd(watchduels,10,cmdtext);
  1469.     dcmd(leavewatch,10,cmdtext);
  1470.     dcmd(duel,4,cmdtext);
  1471.     dcmd(acceptduel,10,cmdtext);
  1472.     dcmd(declineduel,11,cmdtext);
  1473. //-------------------------------
  1474.     dcmd(givemoney,9,cmdtext);
  1475. //------------------------------------------------------------------------------
  1476.     if(strcmp("/gbase",cmdtext,true,10)==0)
  1477.     {
  1478.         SetPlayerCheckpoint(playerid,GamerCheck,3.0);
  1479.         SendClientMessage(playerid,COLOR_GREEN,"Follow the red Point on your Mini-Map to come to the GamerBase");
  1480.         return 1;
  1481.     }
  1482.     if(strcmp("/join",cmdtext,true,10)==0)
  1483.     {
  1484.     if(Spieler[playerid][gamer] == 1)return SendClientMessage(playerid,COLOR_RED,"You are already in the Gamer-Team!");
  1485.     if(Spieler[playerid][Kills] < 500)return SendClientMessage(playerid,COLOR_RED,"You have not enough kills!/gamerinfo");
  1486.     if(GetPlayerMoney(playerid) < 200000)return SendClientMessage(playerid,COLOR_RED,"You have not enough money!/gamerinfo");
  1487.        if(IsPlayerInRangeOfPoint(playerid,10,-2282.1028,2349.4348,5.0961))
  1488.         {
  1489.             SendClientMessage(playerid,COLOR_GREEN,"You have sucsessfully joined the Gamer-Team have fun!");
  1490.             Spieler[playerid][gamer] = 1;
  1491.             GivePlayerMoney(playerid,-200000);
  1492.         }
  1493.         return 1;
  1494.     }
  1495.     if(strcmp("/o",cmdtext,true,10)==0)
  1496.     {
  1497.        if(IsPlayerInRangeOfPoint(playerid,10,-2273.7644042969, 2352.1525878906, 6.5936045646667) && Gang[playerid]==TEAM_GAMER)
  1498.         {
  1499.             MoveObject(Gamergate,-2273.7644042969, 2352.1525878906, -2.5936045646667,3.5);
  1500.             SetTimer("GamerTimer",5000,false);
  1501.         }
  1502.         return 1;
  1503.     }
  1504.     if(strcmp("/gamerinfo",cmdtext,true,10)==0)
  1505.     {
  1506.         SendClientMessage(playerid,COLOR_LIGHTBLUE,"***GAMER-INFO***");
  1507.         SendClientMessage(playerid,COLOR_YELLOW,"You must have 500 Kills and 200000$ to be able to join the Gamer team");
  1508.         SendClientMessage(playerid,COLOR_YELLOW,"In this team you will have better weapons,vehicles and a perfect base!");
  1509.         SendClientMessage(playerid,COLOR_YELLOW,"Type /gbase to know where their base is");
  1510.         return 1;
  1511.     }
  1512.     if (strcmp("/leave", cmdtext, true, 10) == 0)
  1513.     {
  1514.         if(IsDm[playerid] == 0) return SendClientMessage(playerid,COLOR_RED,"You are not in a DM Arena!");
  1515.         IsDm[playerid] =0 ;
  1516.         SendClientMessage(playerid,COLOR_GREEN,"You will spawn on the normal place after next death");
  1517.         return 1;
  1518.     }
  1519.     if (strcmp("/clear", cmdtext, true, 10) == 0)
  1520.     {
  1521.         if(Spieler[playerid][alvl] < 1)return SendClientMessage(playerid, COLOR_RED,"You must be a Moderator or higher to see clear the chat");
  1522.         for(new i=0;i<100;i++){
  1523.         SendClientMessageToAll(COLOR_RED," ");
  1524.     }
  1525.         new name[MAX_PLAYER_NAME],string[128];
  1526.         GetPlayerName(playerid,name,sizeof(name));
  1527.         format(string,sizeof(string),"Admin %s has cleared the chat",name);
  1528.         SendClientMessageToAll(COLOR_GREEN,string);
  1529.         return 1;
  1530.     }
  1531. //------------------------------------------------------------------------------
  1532.     if (strcmp("/ahelp", cmdtext, true, 10) == 0)
  1533.     {
  1534.     if(Spieler[playerid][alvl] == 0)
  1535.     {
  1536.         SendClientMessage(playerid, COLOR_RED,"You must be a Moderator or higher to see admin commands");
  1537.     }
  1538.     if(Spieler[playerid][alvl] == 1)
  1539.     {
  1540.         SendClientMessage(playerid, COLOR_PURPLE,"[Moderator]: /a /dec /freeze /unfreeze /explode /spectate /kick /takeweaps /clear /seecash ");
  1541.     }
  1542.     if(Spieler[playerid][alvl] == 2)
  1543.     {
  1544.         SendClientMessage(playerid, COLOR_PURPLE,"[Moderator]: /a /dec /freeze /unfreeze /explode /spectate /kick /takeweaps /clear /seecash ");
  1545.         SendClientMessage(playerid, COLOR_PURPLE,"[Administrator]: /giveweapon /tele /gethere /setskin /heal /armour /sethour /setweather ");
  1546.     }
  1547.     if(Spieler[playerid][alvl] == 3)
  1548.     {
  1549.         SendClientMessage(playerid, COLOR_PURPLE,"[Moderator]: /a /dec /freeze /unfreeze /explode /spectate /kick /takeweaps /clear /seecash ");
  1550.         SendClientMessage(playerid, COLOR_PURPLE,"[Administrator]: /giveweapon /tele /gethere /setskin /heal /armour /sethour /setweather");
  1551.         SendClientMessage(playerid, COLOR_PURPLE,"[Super Admin]: /gmx /ban /setscore /setdeaths /setkills /givecash /setcash /veh");
  1552.     }
  1553.     if(Spieler[playerid][alvl] == 4)
  1554.     {
  1555.         SendClientMessage(playerid, COLOR_PURPLE,"[Moderator]: /a /dec /freeze /unfreeze /explode /spectate /kick /takeweaps /clear /seecash ");
  1556.         SendClientMessage(playerid, COLOR_PURPLE,"[Administrator]: /giveweapon /tele /gethere /setskin /heal /armour /sethour /setweather");
  1557.         SendClientMessage(playerid, COLOR_PURPLE,"[Super Admin]: /gmx /ban /setscore /setdeaths /setkills /givecash /setcash /veh");
  1558.         SendClientMessage(playerid, COLOR_PURPLE,"[ServerOwner]: /makeadmin");
  1559.     }
  1560.     return 1;
  1561.     }
  1562. //------------------------------------------------------------------------------
  1563.     if (strcmp("/stats", cmdtext, true, 10) == 0)
  1564.     {
  1565.         new name[MAX_PLAYER_NAME], string[256], string2[256],string3[256];
  1566.         GetPlayerName(playerid, name, sizeof(name));
  1567.         format(string, sizeof(string), "|_________ Stats of %s __________|", name);
  1568.         format(string2, sizeof(string2), "[Kills: %d] [Deaths: %d] [Ratio: %0.2f]",Spieler[playerid][Kills], Spieler[playerid][Deaths],Float:Spieler[playerid][Kills]/Float:Spieler[playerid][Deaths]);
  1569.         format(string3, sizeof(string3), "[Cash: %d] [Score: %d] [Adminlevel: %d]",GetPlayerMoney(playerid),GetPlayerScore(playerid),Spieler[playerid][alvl]);
  1570.         SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  1571.         SendClientMessage(playerid, COLOR_WHITE, string2);
  1572.         SendClientMessage(playerid, COLOR_WHITE, string3);
  1573.         SendClientMessage(playerid, COLOR_LIGHTBLUE, "|___________________________________|");
  1574.         return 1;
  1575.     }
  1576. //------------------------------------------------------------------------------
  1577.     if (strcmp("/gmx",cmdtext,true,10) == 0)
  1578.     {
  1579.     if(Spieler[playerid][alvl] < 3){
  1580.         return SendClientMessage(playerid,COLOR_RED,"You must be Admin level 3 or higher to start a gmx");
  1581.     }
  1582.     new
  1583.         name[MAX_PLAYER_NAME],
  1584.         string[128];
  1585.     GetPlayerName(playerid,name,sizeof(name));
  1586.     format(string,sizeof(string),"[GMX] Admin %s has restarted the Server![GMX] ",name);
  1587.     SendClientMessageToAll(COLOR_LIGHTBLUE,string);
  1588.     SendRconCommand("gmx");
  1589.     return 1;
  1590.     }
  1591.     if (strcmp("/resetstats", cmdtext, true, 10) == 0)
  1592.     {
  1593.         Spieler[playerid][Deaths]=0;
  1594.         Spieler[playerid][Kills]=0;
  1595.         SetPlayerScore(playerid,0);
  1596.         SendClientMessage(playerid,hellrot,"You have reset your stats");
  1597.     return 1;
  1598.     }
  1599. //------------------------------------------------------------------------------
  1600.     if (strcmp("/info", cmdtext, true) == 0)
  1601.     {
  1602.         ShowPlayerDialog(playerid, Rules, DIALOG_STYLE_MSGBOX, " ", "*** Information ***\n\n\n*This is a TeamDeathMatch Server you have to kill the Members of the other Mafias", "OK", " ");
  1603.         return 1;
  1604.     }
  1605.     if (strcmp("/startwar", cmdtext, true) == 0)
  1606.     {
  1607.         if(Gang[playerid]==TEAM_GAMER)return SendClientMessage(playerid,COLOR_RED,"Gamer Team can`t start Mafia-Wars");
  1608.         if(EnableAtack1 == 1)return SendClientMessage(playerid,COLOR_RED,"You can`t attack the Zone you must wait!(it can take 30 minutes)");
  1609.         if(Spieler[playerid][rang] < 4) return SendClientMessage(playerid,COLOR_RED,"You need the rank Associte to start a Mafia-War!");
  1610.         if(IsPlayerInArea(playerid,-2799.996093, -173.397064, -2463.996093, 154.602935))
  1611.         {
  1612.             new color = dini_Int("/zones/zones.ini","Zone1");
  1613.             if(color == 13369540){ZoneAtackLcn(playerid);}
  1614.             else if(color == -1439485014){ZoneAtackRus(playerid);}
  1615.             else if(color == -86){ZoneAtackTriad(playerid);}
  1616.             else if(color == 3407768){ZoneAtackYugo(playerid);}
  1617.             else if(color == -65366){ZoneAtackGerman(playerid);}
  1618.             else if(color ==1714618567){ZoneAtackCuban(playerid);}
  1619.             Zone1Atack = 1;
  1620.         }
  1621. //Zone2=========================================================================
  1622.         else if(IsPlayerInArea(playerid,-2799.354492, 232.376708, -2615.354492, 696.376708))
  1623.         {
  1624.             new color = dini_Int("/zones/zones.ini","Zone2");
  1625.             if(color == 13369540){ZoneAtackLcn(playerid);}
  1626.             else if(color == -1439485014){ZoneAtackRus(playerid);}
  1627.             else if(color == -86){ZoneAtackTriad(playerid);}
  1628.             else if(color == 3407768){ZoneAtackYugo(playerid);}
  1629.             else if(color == -65366){ZoneAtackGerman(playerid);}
  1630.             else if(color ==1714618567){ZoneAtackCuban(playerid);}
  1631.             Zone2Atack = 1;
  1632.         }
  1633. //ZONE3=========================================================================
  1634.         else if(IsPlayerInArea(playerid,-2276.547119, -86.489639, -2004.547119, 169.510360))
  1635.         {
  1636.             new color = dini_Int("/zones/zones.ini","Zone3");
  1637.             if(color == 13369540){ZoneAtackLcn(playerid);}
  1638.             else if(color == -1439485014){ZoneAtackRus(playerid);}
  1639.             else if(color == -86){ZoneAtackTriad(playerid);}
  1640.             else if(color == 3407768){ZoneAtackYugo(playerid);}
  1641.             else if(color == -65366){ZoneAtackGerman(playerid);}
  1642.             else if(color ==1714618567){ZoneAtackCuban(playerid);}
  1643.             Zone3Atack = 1;
  1644.         }
  1645. //ZONE4=========================================================================
  1646.         else if(IsPlayerInArea(playerid,-2445.138183, -232.113327, -2293.138183, 223.886672))
  1647.         {
  1648.             new color = dini_Int("/zones/zones.ini","Zone4");
  1649.             if(color == 13369540){ZoneAtackLcn(playerid);}
  1650.             else if(color == -1439485014){ZoneAtackRus(playerid);}
  1651.             else if(color == -86){ZoneAtackTriad(playerid);}
  1652.             else if(color == 3407768){ZoneAtackYugo(playerid);}
  1653.             else if(color == -65366){ZoneAtackGerman(playerid);}
  1654.             else if(color ==1714618567){ZoneAtackCuban(playerid);}
  1655.             Zone4Atack = 1;
  1656.         }
  1657. //ZONE5=========================================================================
  1658.         else if(IsPlayerInArea(playerid,-2328.167480, 337.696594, -1944.167480, 681.696594))
  1659.         {
  1660.             new color = dini_Int("/zones/zones.ini","Zone5");
  1661.             if(color == 13369540){ZoneAtackLcn(playerid);}
  1662.             else if(color == -1439485014){ZoneAtackRus(playerid);}
  1663.             else if(color == -86){ZoneAtackTriad(playerid);}
  1664.             else if(color == 3407768){ZoneAtackYugo(playerid);}
  1665.             else if(color == -65366){ZoneAtackGerman(playerid);}
  1666.             else if(color ==1714618567){ZoneAtackCuban(playerid);}
  1667.             Zone5Atack = 1;
  1668.         }
  1669. //ZONE6=========================================================================
  1670.         else if(IsPlayerInArea(playerid,-1824.531494, 624.765625, -1496.531494, 920.765625))
  1671.         {
  1672.             new color = dini_Int("/zones/zones.ini","Zone6");
  1673.             if(color == 13369540){ZoneAtackLcn(playerid);}
  1674.             else if(color == -1439485014){ZoneAtackRus(playerid);}
  1675.             else if(color == -86){ZoneAtackTriad(playerid);}
  1676.             else if(color == 3407768){ZoneAtackYugo(playerid);}
  1677.             else if(color == -65366){ZoneAtackGerman(playerid);}
  1678.             else if(color ==1714618567){ZoneAtackCuban(playerid);}
  1679.             Zone6Atack = 1;
  1680.         }
  1681. //ZONE7=========================================================================
  1682.         else if(IsPlayerInArea(playerid,-2439.947753, 1035.557861, -2119.947753, 1307.557861))
  1683.         {
  1684.             new color = dini_Int("/zones/zones.ini","Zone7");
  1685.             if(color == 13369540){ZoneAtackLcn(playerid);}
  1686.             else if(color == -1439485014){ZoneAtackRus(playerid);}
  1687.             else if(color == -86){ZoneAtackTriad(playerid);}
  1688.             else if(color == 3407768){ZoneAtackYugo(playerid);}
  1689.             else if(color == -65366){ZoneAtackGerman(playerid);}
  1690.             else if(color ==1714618567){ZoneAtackCuban(playerid);}
  1691.             Zone7Atack = 1;
  1692.         }
  1693. //ZONE8=========================================================================
  1694.         else if(IsPlayerInArea(playerid,-1854.087280, 1178.869628, -1622.087280, 1410.869628))
  1695.         {
  1696.             new color = dini_Int("/zones/zones.ini","Zone8");
  1697.             if(color == 13369540){ZoneAtackLcn(playerid);}
  1698.             else if(color == -1439485014){ZoneAtackRus(playerid);}
  1699.             else if(color == -86){ZoneAtackTriad(playerid);}
  1700.             else if(color == 3407768){ZoneAtackYugo(playerid);}
  1701.             else if(color == -65366){ZoneAtackGerman(playerid);}
  1702.             else if(color ==1714618567){ZoneAtackCuban(playerid);}
  1703.             Zone8Atack = 1;
  1704.         }
  1705. //ZONE9=========================================================================
  1706.         else if(IsPlayerInArea(playerid,-2213.718750, 710.110534, -1949.718750, 982.110534))
  1707.         {
  1708.             new color = dini_Int("/zones/zones.ini","Zone9");
  1709.             if(color == 13369540){ZoneAtackLcn(playerid);}
  1710.             else if(color == -1439485014){ZoneAtackRus(playerid);}
  1711.             else if(color == -86){ZoneAtackTriad(playerid);}
  1712.             else if(color == 3407768){ZoneAtackYugo(playerid);}
  1713.             else if(color == -65366){ZoneAtackGerman(playerid);}
  1714.             else if(color ==1714618567){ZoneAtackCuban(playerid);}
  1715.             Zone9Atack = 1;
  1716.         }
  1717. //ZONE10=========================================================================
  1718.         else if(IsPlayerInArea(playerid,-2765.796386, 784.332397, -2437.796386, 1104.332397))
  1719.         {
  1720.             new color = dini_Int("/zones/zones.ini","Zone10");
  1721.             if(color == 13369540){ZoneAtackLcn(playerid);}
  1722.             else if(color == -1439485014){ZoneAtackRus(playerid);}
  1723.             else if(color == -86){ZoneAtackTriad(playerid);}
  1724.             else if(color == 3407768){ZoneAtackYugo(playerid);}
  1725.             else if(color == -65366){ZoneAtackGerman(playerid);}
  1726.             else if(color ==1714618567){ZoneAtackCuban(playerid);}
  1727.             Zone10Atack = 1;
  1728.         }
  1729. //ZONE11=========================================================================
  1730.         else if(IsPlayerInArea(playerid,-1922.631958, -28.333175, -1706.631958, 403.666809))
  1731.         {
  1732.             new color = dini_Int("/zones/zones.ini","Zone11");
  1733.             if(color == 13369540){ZoneAtackLcn(playerid);}
  1734.             else if(color == -1439485014){ZoneAtackRus(playerid);}
  1735.             else if(color == -86){ZoneAtackTriad(playerid);}
  1736.             else if(color == 3407768){ZoneAtackYugo(playerid);}
  1737.             else if(color == -65366){ZoneAtackGerman(playerid);}
  1738.             else if(color ==1714618567){ZoneAtackCuban(playerid);}
  1739.             Zone11Atack = 1;
  1740.         }
  1741. //ZONE12=========================================================================
  1742.         else if(IsPlayerInArea(playerid,-1957.691406, -758.583618, -1645.691406, -430.5836182))
  1743.         {
  1744.             new color = dini_Int("/zones/zones.ini","Zone12");
  1745.             if(color == 13369540){ZoneAtackLcn(playerid);}
  1746.             else if(color == -1439485014){ZoneAtackRus(playerid);}
  1747.             else if(color == -86){ZoneAtackTriad(playerid);}
  1748.             else if(color == 3407768){ZoneAtackYugo(playerid);}
  1749.             else if(color == -65366){ZoneAtackGerman(playerid);}
  1750.             else if(color ==1714618567){ZoneAtackCuban(playerid);}
  1751.             Zone12Atack = 1;
  1752.         }
  1753. //ZONE13=========================================================================
  1754.         else if(IsPlayerInArea(playerid,-2518.000000, -602.239868, -2246.000000, -306.239868))
  1755.         {
  1756.             new color = dini_Int("/zones/zones.ini","Zone13");
  1757.             if(color == 13369540){ZoneAtackLcn(playerid);}
  1758.             else if(color == -1439485014){ZoneAtackRus(playerid);}
  1759.             else if(color == -86){ZoneAtackTriad(playerid);}
  1760.             else if(color == 3407768){ZoneAtackYugo(playerid);}
  1761.             else if(color == -65366){ZoneAtackGerman(playerid);}
  1762.             else if(color ==1714618567){ZoneAtackCuban(playerid);}
  1763.             Zone13Atack = 1;
  1764.         }
  1765.         return 1;
  1766.     }
  1767. // Yugo Sniper  ----------------------------------------------------------------
  1768.     if(!strcmp("/sniper",cmdtext))
  1769.     {
  1770. //---Yugo
  1771.         if(IsPlayerInRangeOfPoint(playerid,2.0,-2629.3945,1403.8356,7.0938))
  1772.         {
  1773.             if(!CheckForSkin(playerid,125))return SendClientMessage(playerid,grau,"You are not in the Yugoslawian Sniper-Team!");
  1774.             SendClientMessage(playerid, purple, "SniperPlace");
  1775.             SetPlayerPos(playerid, -2661.7747,1377.8031,53.8972);
  1776.             SetPlayerFacingAngle(playerid,360.0);
  1777.          }
  1778. //---Triads
  1779.         if(IsPlayerInRangeOfPoint(playerid,2.0,-2154.6587,641.8469,52.3672))//triads 118
  1780.         {
  1781.             if(!CheckForSkin(playerid,118))return SendClientMessage(playerid,grau,"You are not in the Triad Sniper-Team!");
  1782.             SendClientMessage(playerid, purple, "SniperPlace");
  1783.             SetPlayerPos(playerid, -2157.8088,662.8646,83.3784);
  1784.             SetPlayerFacingAngle(playerid,360.0);
  1785.         }
  1786. //---Russians
  1787.         if(IsPlayerInRangeOfPoint(playerid,2.0,-2136.1626,-252.2975,35.3203)) //russians 112
  1788.         {
  1789.             if(!CheckForSkin(playerid,112))return SendClientMessage(playerid,grau,"You are not in the Russian Mafia Sniper-Team!");
  1790.             SendClientMessage(playerid, purple, "SniperPlace");
  1791.             SetPlayerPos(playerid, -2180.5122,-137.4114,50.3188);
  1792.             SetPlayerFacingAngle(playerid,360.0);
  1793.         }
  1794. //----LCN
  1795.         if(IsPlayerInRangeOfPoint(playerid,2.0,-2723.2244,-320.9215,7.8438))
  1796.         {
  1797.             if(!CheckForSkin(playerid,126))return SendClientMessage(playerid,grau,"You are not in the LCN Sniper-Team!");
  1798.             SendClientMessage(playerid, purple, "SniperPlace");
  1799.             SetPlayerPos(playerid, -2718.6409,-319.2138,57.4873);
  1800.             SetPlayerFacingAngle(playerid,360.0);
  1801.         }
  1802. //---Germans
  1803.         if(IsPlayerInRangeOfPoint(playerid,2.0,-2446.2515,528.8219,30.1906)) //Germans 165
  1804.         {
  1805.             if(!CheckForSkin(playerid,165))return SendClientMessage(playerid,grau,"You are not in the German Mafia Sniper-Team!");
  1806.             SendClientMessage(playerid, purple, "SniperPlace");
  1807.             SetPlayerPos(playerid, -2456.9453,456.0735,73.2578);
  1808.             SetPlayerFacingAngle(playerid,360.0);
  1809.         }
  1810. //---Cubans
  1811.         if(IsPlayerInRangeOfPoint(playerid,2.0,-1866.9960,-219.3903,18.3750))
  1812.         {
  1813.             if(!CheckForSkin(playerid,46))return SendClientMessage(playerid,grau,"You are not in the Cuban Sniper-Team!");
  1814.             SendClientMessage(playerid, purple, "SniperPlace");
  1815.             SetPlayerPos(playerid, -1825.8037,-216.2334,30.3457);
  1816.             SetPlayerFacingAngle(playerid,360.0);
  1817.         }
  1818. //Exits-------------------------------------------------------------------------
  1819. //---LCN
  1820.         if(IsPlayerInRangeOfPoint(playerid,2.0,-2716.7261,-323.2274,57.4873))
  1821.         {
  1822.             if(!CheckForSkin(playerid,126))return SendClientMessage(playerid,grau,"You are not in the Sniper-Team!");
  1823.             SendClientMessage(playerid, purple, "Back to Base");
  1824.             SetPlayerPos(playerid,-2722.2542,-316.8507,7.6425);
  1825.             SetPlayerFacingAngle(playerid,360.0);
  1826.         }
  1827. //---RUS
  1828.         if(IsPlayerInRangeOfPoint(playerid,2.0,-2179.8376,-148.2017,50.3188))
  1829.         {
  1830.             if(!CheckForSkin(playerid,112))return SendClientMessage(playerid,grau,"You are not in the Sniper-Team!");
  1831.             SendClientMessage(playerid, purple, "Back to Base");
  1832.             SetPlayerPos(playerid,-2134.8318,-247.8439,35.7980);
  1833.             SetPlayerFacingAngle(playerid,360.0);
  1834.         }
  1835. //---Triad
  1836.         if(IsPlayerInRangeOfPoint(playerid,2.0,-2158.2214,675.8184,83.1719))
  1837.         {
  1838.             if(!CheckForSkin(playerid,118))return SendClientMessage(playerid,grau,"You are not in the Sniper-Team!");
  1839.             SendClientMessage(playerid, purple, "Back to Base");
  1840.             SetPlayerPos(playerid,-2154.9038,645.6788,52.3672);
  1841.             SetPlayerFacingAngle(playerid,360.0);
  1842.         }
  1843. //---German
  1844.         if(IsPlayerInRangeOfPoint(playerid,2.0,-2456.9453,456.0735,73.2578))
  1845.         {
  1846.             if(!CheckForSkin(playerid,165)) return SendClientMessage(playerid,grau,"You are not in the Sniper-Team!");
  1847.             SendClientMessage(playerid, purple, "Back to Base");
  1848.             SetPlayerPos(playerid,-2446.2515,528.8219,30.1906);
  1849.             SetPlayerFacingAngle(playerid,360.0);
  1850.         }
  1851. //---Cubans
  1852.         if(IsPlayerInRangeOfPoint(playerid,2.0,-1825.9111,-219.4470,30.3516))
  1853.         {
  1854.             if(!CheckForSkin(playerid,46)) return SendClientMessage(playerid,grau,"You are not in the Sniper-Team!!");
  1855.             SendClientMessage(playerid, purple, "Back to Base");
  1856.             SetPlayerPos(playerid,-1872.5337,-218.0692,18.3750);
  1857.             SetPlayerFacingAngle(playerid,360.0);
  1858.         }
  1859.         return 1;
  1860. }
  1861. //------------------------------------------------------------------------------
  1862.     if(!strcmp(cmdtext, "/help"))
  1863.     {
  1864.         SendClientMessage(playerid, hellblau, "***HELP***");
  1865.         SendClientMessage(playerid, gelb, "[GENERAL]: /report /admins /dm /leave /me");
  1866.         SendClientMessage(playerid, gelb, "[GENERAL]: /fstyle /kill /givemoney /gamerinfo");
  1867.         SendClientMessage(playerid, gelb, "[JOB]: /druginfo /getdrugs /deliver /rob");
  1868.         SendClientMessage(playerid, gelb, "[BOMB]: /buybomb /plant /expbomb");
  1869.         SendClientMessage(playerid, gelb, "[ACCOUNT]: /stats /resetstats /seestats /pm");
  1870.         SendClientMessage(playerid, gelb, "[RANK]: /rankstats /rinfo");
  1871.         SendClientMessage(playerid, gelb, "[TEAM]: ![TEXT] /sniper /shop /startwar /warhelp");
  1872.         SendClientMessage(playerid, gelb, "[DUEL]: /duel /acceptduel /declineduel /watchduels /leavewatch");
  1873.         SendClientMessage(playerid, gelb, "[ABOUT SERVER]: /credits /rules /forum");
  1874.         return 1;
  1875.     }
  1876. //------------------------------------------------------------------------------
  1877.     if (strcmp("/forum", cmdtext, true) == 0)
  1878.     {
  1879.         SendClientMessage (playerid, hellblau, "Forum: www.gta-dm.de");
  1880.         return 1;
  1881.     }
  1882. //------------------------------------------------------------------------------
  1883.     if (strcmp("/rinfo", cmdtext, true) == 0)
  1884.     {
  1885.         ShowPlayerDialog(playerid, RInfo, DIALOG_STYLE_MSGBOX, " ","Rank Info:\n\n-Rank: BabyKiller = 0 Kills, 500$\n-Rank: Outlaw = 25 Kills, 800$\n-Rank: Newcomer = 50 Kills, 1500$\n-Rank: Associate = 100 Kills, 2500$\n-Rank: Soldier = 150 Kills, 3500$\n-Rank: Killer = 250 Kills, 4500$\n-Rank: Capo = 400 Kills, 5000$\n-Rank: Streetboss = 600 Kills, 6000$\n-Rank: Underboss = 900 Kills, 8000$\n-Rank: Godfather = 1500 Kills, 10000$","OK","Cancel");
  1886.         return 1;
  1887.     }
  1888.     if (strcmp("/warhelp", cmdtext, true) == 0)
  1889.     {
  1890.         SendClientMessage(playerid,hellblau,"***TURF HELP***");
  1891.         SendClientMessage(playerid,gelb,"You can start a Mafia-War between two mafias when you have the rank Associate");
  1892.         SendClientMessage(playerid,gelb,"Note: You must be in enemys Mafia zone to be able to start the war.");
  1893.         SendClientMessage(playerid,gelb,"You can start the mafia war with the cmd /startwar.");
  1894.         return 1;
  1895.     }
  1896. //------------------------------------------------------------------------------
  1897.     if (strcmp("/rankstats", cmdtext, true) == 0)
  1898.     {
  1899.         if(Spieler[playerid][rang] == 1 ) // BabyKiller
  1900.         {
  1901.         SendClientMessage(playerid,hellblau,"                                       Your Rank Stats");
  1902.         SendClientMessage(playerid,grau,"Your Mafia Rank: BabyKiller || Next Rank: Outlaw || Your Gage: [500$]");
  1903.         SendClientMessage(playerid,weiss,"For the rank infos type /rinfo");
  1904.         }
  1905.         if(Spieler[playerid][rang] == 2 ) //Newcomer
  1906.         {
  1907.         SendClientMessage(playerid,hellblau,"                                       Your Rank Stats");
  1908.         SendClientMessage(playerid,grau,"Your Mafia Rank: Outlaw || Next Rank: Newcomer || Your Gage: [800$]");
  1909.         SendClientMessage(playerid,weiss,"For the rank infos type /rinfo");
  1910.         }
  1911.         if(Spieler[playerid][rang] == 3 ) // Outlaw
  1912.         {
  1913.         SendClientMessage(playerid,hellblau,"                                       Your Rank Stats");
  1914.         SendClientMessage(playerid,grau,"Your Mafia Rank: Newcomer || Next Rank: Associate || Your Gage: [1500$]");
  1915.         }
  1916.         if(Spieler[playerid][rang] == 4 ) // Associate
  1917.         {
  1918.         SendClientMessage(playerid,hellblau,"                                       Your Rank Stats");
  1919.         SendClientMessage(playerid,grau,"Your Mafia Rank: Associate || Next Rank: Soldier || Your Gage: [2500$]");
  1920.         }
  1921.         if(Spieler[playerid][rang] == 5 ) // Soldier
  1922.         {
  1923.         SendClientMessage(playerid,hellblau,"                                       Your Rank Stats");
  1924.         SendClientMessage(playerid,grau,"Your Mafia Rank: Soldier || Next Rank: Killer || Your Gage: [4000$]");
  1925.         }
  1926.         if(Spieler[playerid][rang] == 6 ) // killer
  1927.         {
  1928.         SendClientMessage(playerid,hellblau,"                                       Your Rank Stats");
  1929.         SendClientMessage(playerid,grau,"Your Mafia Rank: Killer || Next Rank: Capo || Your Gage: [6000$]");
  1930.         }
  1931.         if(Spieler[playerid][rang] == 7 ) // capo
  1932.         {
  1933.         SendClientMessage(playerid,hellblau,"                                       Your Rank Stats");
  1934.         SendClientMessage(playerid,grau,"Your Mafia Rank: Capo || Next Rank: StreetBoss || Your Gage: [8500$]");
  1935.         }
  1936.         if(Spieler[playerid][rang] == 8 ) // sTreetBoss
  1937.         {
  1938.         SendClientMessage(playerid,hellblau,"                                       Your Rank Stats");
  1939.         SendClientMessage(playerid,grau,"Your Mafia Rank: StreetBoss || Next Rank: UnderBoss || Your Gage: [11000$]");
  1940.         }
  1941.         if(Spieler[playerid][rang] == 9 ) //UnderBOss
  1942.         {
  1943.         SendClientMessage(playerid,hellblau,"                                       Your Rank Stats");
  1944.         SendClientMessage(playerid,grau,"Your Mafia Rank: UnderBoss || Next Rank: GodFather || Your Gage: [15000$]");
  1945.         }
  1946.         if(Spieler[playerid][rang] == 10 ) // GodFather
  1947.         {
  1948.         SendClientMessage(playerid,hellblau,"                                       Your Rank Stats");
  1949.         SendClientMessage(playerid,grau,"Your Mafia Rank: GodFather || Your Gage: [30000$]");
  1950.         }
  1951.         return 1;
  1952.     }
  1953. //------------------------------------------------------------------------------
  1954.     if (strcmp("/shop", cmdtext, true) == 0)
  1955.     {
  1956.         if(IsPlayerInRangeOfPoint(playerid,2.0,-2717.8010,-315.7959,7.8438))//lcn
  1957.         {
  1958.             if(Gang[playerid] != TEAM_LCN) return SendClientMessage(playerid,COLOR_RED,"You are not in the La Cosa Nostra Family");
  1959.             ShowDialog(playerid);
  1960.         }
  1961.         if(IsPlayerInRangeOfPoint(playerid,2.0,-2136.3655,-244.4974,35.3203))//rus
  1962.         {
  1963.             if(Gang[playerid] != TEAM_RUS) return SendClientMessage(playerid,COLOR_RED,"You are not in the Russian Mafia");
  1964.             ShowDialog(playerid);
  1965.         }
  1966.         if(IsPlayerInRangeOfPoint(playerid,2.0,-2154.7065,647.1374,52.3672))//triad
  1967.         {
  1968.             if(Gang[playerid] != TEAM_TRIADS) return SendClientMessage(playerid,COLOR_RED,"You are not in the Triad Family");
  1969.             ShowDialog(playerid);
  1970.         }
  1971.         if(IsPlayerInRangeOfPoint(playerid,2.0,-2627.5317,1408.6331,7.0938))//yugo
  1972.         {
  1973.             if(Gang[playerid] != TEAM_YUGO) return SendClientMessage(playerid,COLOR_RED,"You are not in the Yogoslawian Mafia");
  1974.             ShowDialog(playerid);
  1975.         }
  1976.         if(IsPlayerInRangeOfPoint(playerid,2.0,-2446.0503,517.9012,30.1604))// german
  1977.         {
  1978.             if(Gang[playerid] != TEAM_GERMAN) return SendClientMessage(playerid,COLOR_RED,"You are not in the German Mafia");
  1979.             ShowDialog(playerid);
  1980.         }
  1981.         if(IsPlayerInRangeOfPoint(playerid,2.0,-1868.9342,-219.5195,18.3750))//cuban
  1982.         {
  1983.             if(Gang[playerid] != TEAM_CUBAN) return SendClientMessage(playerid,COLOR_RED,"You are not in the Cuban Mafia");
  1984.             ShowDialog(playerid);
  1985.         }
  1986.         return 1;
  1987.  
  1988.     }
  1989. //------------------------------------------------------------------------------
  1990.     if (strcmp("/fstyle", cmdtext, true) == 0)
  1991.     {
  1992.         ShowPlayerDialog(playerid, Fight, DIALOG_STYLE_LIST, "Fight styles", "Kneehead      \nBoxing    \nGrabkick  \nKungfu    ", "Select", "Cancel");
  1993.         return 1;
  1994.     }
  1995. //------------------------------------------------------------------------------
  1996.     if (strcmp("/credits", cmdtext, true, 10) == 0)
  1997.     {
  1998.         ShowPlayerDialog(playerid, Credits, DIALOG_STYLE_MSGBOX, "Credits of the Gamemode", "San Francisco Mafia Wars\n\nSpecial Thanks to:\nBlackFoX_UD_ - For support\nM4rciii - For Support\n[NeS]Fischer - For Support \nInternetInk aka Benjamin - For Support\nDouble-O-Seven - For JunkBuster\nwww.samp.breadfish.de\n Special Thanks to NoTime\n\nDeveloped & Scripted by Hustler & Shukaz ©", "OK", " ");
  1999.         return 1;
  2000.     }
  2001. //------------------------------------------------------------------------------
  2002.  
  2003.     if (strcmp("/rules", cmdtext, true) == 0)
  2004.     {
  2005.         ShowPlayerDialog(playerid, Rules, DIALOG_STYLE_MSGBOX, " ", "***Rules***\n\n\n*Respect: We didn`t tolerate any racist remarks on this Server!\n*Driver drive-by on player without vehicle = -1000$&Death\n*If you make advertising on this Server, you get banned!\n*You can also be banned for cheating or bugusing\n*When you have 3 teamkills you will be KICKED automatically \n\nOtherwise, we wish you much fun on this Server!", "OK", "OK");
  2006.         return 1;
  2007.     }
  2008. //------------------------------------------------------------------------------
  2009.  
  2010.     if(!strcmp(cmdtext, "/me", true, 3))
  2011.     {
  2012.         if(!cmdtext[3])return SendClientMessage(playerid, grau, "USAGE: /me [action]");
  2013.         new str[128];
  2014.         GetPlayerName(playerid, str, sizeof(str));
  2015.         format(str, sizeof(str), "* %s %s", str, cmdtext[4]);
  2016.         SendClientMessageToAll(0xC2A2DAAA, str);
  2017.         return 1;
  2018.     }
  2019. //------------------------------------------------------------------------------
  2020.     if (strcmp("/kill", cmdtext, true) == 0)
  2021.     {
  2022.         IsDm[playerid] = 0;
  2023.         SetPlayerHealth(playerid,0.0);
  2024.         return 1;
  2025.     }
  2026. //------------------------------------------------------------------------------
  2027.     if(strcmp(cmdtext, "/rob", true) == 0)
  2028.         {
  2029.             if(!IsPlayerInRangeOfPoint(playerid,20.0,-2026.4122,156.4898,29.0391))
  2030.             {
  2031.                 SendClientMessage(playerid,grau,"You are not at the Gas-Station!");
  2032.                 return 1;
  2033.             }
  2034.             if(rob)
  2035.             {
  2036.                 SendClientMessage(playerid,grau,"The Gas-Station has been robbed!");
  2037.                 return 1;
  2038.             }
  2039.             TogglePlayerControllable(playerid,0);
  2040.             rob = 1;
  2041.             SetTimer("robtimer",robtime,0);
  2042.             SetTimerEx("freezetimer",freezetime,0,"i",playerid);
  2043.             SendClientMessageToAll(COLOR_DARKRED, "|______San Francisco-News______|");
  2044.             SendClientMessageToAll(hellrot, " ");
  2045.             new name[MAX_PLAYER_NAME],string2[128];
  2046.             GetPlayerName(playerid,name,sizeof(name));
  2047.             format(string2,sizeof(string2),"%s is robing the Gas-Station",name);
  2048.             SendClientMessageToAll(weiss,string2);
  2049.             SendClientMessageToAll(weiss, "Stop him! And you get 6.000$");
  2050.             SendClientMessageToAll(hellrot, " ");
  2051.             SendClientMessageToAll(COLOR_DARKRED, "|______San Francisco-News______|");
  2052.             SendClientMessage(playerid,COLOR_GREEN,"You are robbing the Gas-Station wait 1 Minutes!");
  2053.             SetPlayerHealth(playerid,999999999);
  2054.             return 1;
  2055.         }
  2056. //------------------------------------------------------------------------------
  2057.     if(!strcmp("/buybomb", cmdtext))
  2058.     {
  2059.         if(!IsPlayerInRangeOfPoint(playerid,5.0,-2033.7944,148.7538,28.8359))
  2060.         {
  2061.             SendClientMessage(playerid,hellrot,"You are not at the Bomb-Shop!");
  2062.             return 1;
  2063.         }
  2064.         if(GetPlayerMoney(playerid) < 5000)
  2065.         {
  2066.             SendClientMessage(playerid,hellrot,"You have not enough Money for a Bomb!");
  2067.             return 1;
  2068.         }
  2069.         SendClientMessage(playerid,aqua,"You have sucsessful buyed a Bomb! (type /plant to plant the bomb)");
  2070.         PlayerHasBomb[playerid] = 1;
  2071.         GivePlayerMoney(playerid,-5000);
  2072.         return 1;
  2073.     }
  2074.     if(!strcmp("/plant", cmdtext))
  2075.     {
  2076.         if(PlayerHasBomb[playerid] == 0)
  2077.         {
  2078.             SendClientMessage(playerid,hellrot,"You have not a Bomb");
  2079.             return 1;
  2080.         }
  2081.         ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
  2082.         new Float:plX,Float:plY,Float:plZ;
  2083.         GetPlayerPos(playerid,plX,plY,plZ);
  2084.         BombenObject[playerid] = CreateObject(1252,plX,plY,plZ-0.85,0.0,0.0,0.0);
  2085.         PlayerHasBomb[playerid] = 0;
  2086.         IsBombPlanted[playerid] = 1;
  2087.         SendClientMessage(playerid,blau,"Bomb is planted! /expbomb to explode it");
  2088.         ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);//Animation
  2089.         return 1;
  2090.     }
  2091.     if(!strcmp("/expbomb",cmdtext))
  2092.     {
  2093.         if(IsBombPlanted[playerid] == 0)
  2094.         {
  2095.         SendClientMessage(playerid,grau,"You havent planted the bomb!");
  2096.         return 1;
  2097.         }
  2098.         BombExplode(playerid);
  2099.         IsBombPlanted[playerid]= 0;
  2100.         return 1;
  2101.     }
  2102.     if (!strcmp("/dm",cmdtext))
  2103.     {
  2104.         if(IsDm[playerid] >=1)return SendClientMessage(playerid,COLOR_RED,"You are already in a /dm arena !");
  2105.         ShowPlayerDialog(playerid, DIALOG_DM, DIALOG_STYLE_LIST, "Aviable DM Arenas", "Sniper-DeathMatch\nDeagle-DeathMatch \nGrenade-DeathMatch \nAll Inclusive-DeathMatch \nStreet Fight-DeathMatch\nTactic-DeathMatch", "Select", "Cancel");
  2106.         return 1;
  2107.     }
  2108. //------------------------------------------------------------------------------
  2109.     if(!strcmp(cmdtext, "/druginfo"))
  2110.     {
  2111.     SetPlayerCheckpoint(playerid, Checkpoint1, 3.0);
  2112.     SendClientMessage(playerid,COLOR_GREEN,"Follow the red point on the Mini-map to buy the drugs");
  2113.     return 1;
  2114.     }
  2115. // -----------------------------------------------------------------------------
  2116.     if(!strcmp(cmdtext, "/getdrugs"))
  2117.     {
  2118.     if(IsPlayerInRangeOfPoint(playerid,5.0,-1890.8228,-1698.6608,21.7500))
  2119.     {
  2120.     if(DrugsStolen == 1) return SendClientMessage(playerid,COLOR_RED,"You must wait because the drugs are not here jet(It can take 2 Hours)");
  2121.     if(drugjob[playerid] == 1)return SendClientMessage(playerid,COLOR_RED,"You have already buyed Drugs!");
  2122.     SetTimer("DrugTimer",7000000,false);
  2123.     DrugsStolen = 1;
  2124.     drugjob[playerid] = 1;
  2125.     SendClientMessage(playerid, COLOR_GREEN, "Sucsesfull get the Drugs now follow the red point on the map and /deliver it!");
  2126.     DisablePlayerCheckpoint(playerid);
  2127.     SetPlayerColor(playerid,COLOR_RED);
  2128.     SetPlayerCheckpoint(playerid,DeliverCheck,3.0);
  2129.     new pname[MAX_PLAYER_NAME],dakigay2[128];
  2130.     GetPlayerName(playerid,pname,sizeof(pname));
  2131.     SendClientMessageToAll(COLOR_DARKRED, "|______San Francisco-News______|");
  2132.     SendClientMessageToAll(hellrot, " ");
  2133.     format(dakigay2,sizeof(dakigay2),"%s has get the Drugs",pname);
  2134.     SendClientMessageToAll(weiss,dakigay2);
  2135.     SendClientMessageToAll(weiss, "Stop him! And you get his Drugs !");
  2136.     SendClientMessageToAll(weiss, "You find him on the Mini-map(the Red Point)");
  2137.     SendClientMessageToAll(hellrot, " ");
  2138.     SendClientMessageToAll(COLOR_DARKRED, "|______San Francisco-News______|");
  2139.     }
  2140.     return 1;
  2141.     }
  2142. //------------------------------------------------------------------------------
  2143.     if(!strcmp(cmdtext, "/deliver"))
  2144.     {
  2145.         if(IsPlayerInRangeOfPoint(playerid,5.0,-1372.3959,1491.3230,11.0391))
  2146.     {
  2147.         if(drugjob[playerid] == 0) return SendClientMessage(playerid,COLOR_RED,"You have not the drugs!");
  2148.         GameTextForPlayer(playerid, "~g~You Completed the job, well done! +10000$", 3000, 3);
  2149.         GivePlayerMoney(playerid,10000);
  2150.         DisablePlayerCheckpoint(playerid);
  2151.         drugjob[playerid] = 0;
  2152.         SendClientMessageToAll(rot,"The Drus have been deliverd");
  2153.         if (Gang[playerid] == TEAM_LCN) { SetPlayerColor(playerid,gruen);}//LCN COLOR GREEN
  2154.         else if (Gang[playerid] == TEAM_RUS) { SetPlayerColor(playerid,rot);}//RUSSIA COLOR RED
  2155.         else if (Gang[playerid] == TEAM_TRIADS) { SetPlayerColor(playerid,weiss);}//TRIADS YELLOW
  2156.         else if (Gang[playerid] ==  TEAM_YUGO) { SetPlayerColor(playerid,yugoblau);}//YUGOS GREY
  2157.         else if (Gang[playerid] ==  TEAM_GERMAN) { SetPlayerColor(playerid,gelb);}//GERMANS
  2158.         else if (Gang[playerid] ==  TEAM_CUBAN) { SetPlayerColor(playerid,braun);}//CUBANS
  2159.     }
  2160.     return 1;
  2161. //------------------------------------------------------------------------------
  2162.     }
  2163.     return 0;
  2164. }
  2165.  
  2166. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  2167. {
  2168.     if(PlayerAtacker[playerid] == 1){RemovePlayerFromVehicle(playerid);}
  2169.   return 1;
  2170. }
  2171. stock IsPlayerInArea(playerid,Float:minX,Float:minY,Float:maxX,Float:maxY)
  2172. {
  2173.   new Float:pX,Float:pY,Float:pZ;
  2174.   GetPlayerPos(playerid,pX,pY,pZ);
  2175.   if(pX >= minX && pX <= maxX && pY >= minY && pY <= maxY) return 1;
  2176.   return 0;
  2177. }
  2178.  
  2179.  
  2180. public OnPlayerExitVehicle(playerid, vehicleid)
  2181. {
  2182.     return 1;
  2183. }
  2184.  
  2185. public OnPlayerStateChange(playerid, newstate, oldstate)
  2186. {
  2187.         new getcar = GetPlayerVehicleID(playerid);
  2188.         if(IsItLcnCar(getcar))
  2189.         {
  2190.             if(Gang[playerid]==TEAM_LCN) { }
  2191.             else
  2192.             {
  2193.                 RemovePlayerFromVehicle(playerid);
  2194.                 SendClientMessage(playerid,COLOR_RED, "You are not a part of the La Cosa Nostra family");
  2195.             }
  2196.         }
  2197.         else if(IsItRusCar(getcar))
  2198.         {
  2199.             if(Gang[playerid]==TEAM_RUS) { }
  2200.             else
  2201.             {
  2202.                 RemovePlayerFromVehicle(playerid);
  2203.                 SendClientMessage(playerid,COLOR_RED, "You are not a part of the Russian Mafia family");
  2204.             }
  2205.         }
  2206.         else if(IsItTriadCar(getcar))
  2207.         {
  2208.             if(Gang[playerid]==TEAM_TRIADS) { }
  2209.             else
  2210.             {
  2211.                 RemovePlayerFromVehicle(playerid);
  2212.                 SendClientMessage(playerid,COLOR_RED, "You are not a part of the Triad family");
  2213.             }
  2214.         }
  2215.         else if(IsItYugoCar(getcar))
  2216.         {
  2217.             if(Gang[playerid]==TEAM_YUGO) { }
  2218.             else
  2219.             {
  2220.                 RemovePlayerFromVehicle(playerid);
  2221.                 SendClientMessage(playerid,COLOR_RED, "You are not a part of the Yugoslawian Mafia family");
  2222.             }
  2223.         }
  2224.         else if(IsItGermanCar(getcar))
  2225.         {
  2226.             if(Gang[playerid]==TEAM_GERMAN) { }
  2227.             else
  2228.             {
  2229.                 RemovePlayerFromVehicle(playerid);
  2230.                 SendClientMessage(playerid,COLOR_RED, "You are not a part of the German Mafia family");
  2231.             }
  2232.         }
  2233.         else if(IsItCubanCar(getcar))
  2234.         {
  2235.             if(Gang[playerid]==TEAM_CUBAN) { }
  2236.             else
  2237.             {
  2238.                 RemovePlayerFromVehicle(playerid);
  2239.                 SendClientMessage(playerid,COLOR_RED, "You are not a part of the Cuban Mafia family");
  2240.             }
  2241.         }
  2242.         else if(IsItGamerCar(getcar))
  2243.         {
  2244.             if(Gang[playerid] == TEAM_GAMER){}
  2245.             else
  2246.             {
  2247.                 RemovePlayerFromVehicle(playerid);
  2248.                 SendClientMessage(playerid,COLOR_RED,"You are not in the Gamer-Team /gamerifno to get informations");
  2249.             }
  2250.         }
  2251.         if(newstate == PLAYER_STATE_DRIVER)
  2252.         {
  2253.             if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 447 && Spieler[playerid][rang] < 7)
  2254.             {
  2255.                 RemovePlayerFromVehicle(playerid);
  2256.                 SendClientMessage(playerid,COLOR_RED,"You must have the Rank Capo or higher to be able to fly with Sparrow");
  2257.             }
  2258.         }
  2259.         return 1;
  2260. }
  2261.  
  2262. public OnPlayerEnterCheckpoint(playerid)
  2263. {
  2264.     return 1;
  2265. }
  2266.  
  2267. public OnPlayerLeaveCheckpoint(playerid)
  2268. {
  2269.     return 1;
  2270. }
  2271.  
  2272. public OnPlayerEnterRaceCheckpoint(playerid)
  2273. {
  2274.     return 1;
  2275. }
  2276.  
  2277. public OnPlayerLeaveRaceCheckpoint(playerid)
  2278. {
  2279.     return 1;
  2280. }
  2281.  
  2282. public OnRconCommand(cmd[])
  2283. {
  2284.     return 1;
  2285. }
  2286.  
  2287. public OnPlayerRequestSpawn(playerid)
  2288. {
  2289.     return 1;
  2290. }
  2291.  
  2292. public OnObjectMoved(objectid)
  2293. {
  2294.     return 1;
  2295. }
  2296.  
  2297. public OnPlayerObjectMoved(playerid, objectid)
  2298. {
  2299.     return 1;
  2300. }
  2301.  
  2302. public OnPlayerPickUpPickup(playerid, pickupid)
  2303. {
  2304. //Sniper Story------------------------------------------------------------------
  2305.     if(pickupid == lcnteleportpickup && CheckForSkin(playerid,126)){GameTextForPlayer(playerid,"~g~ Type /sniper to come to lcn sniperplace",2000,3);}
  2306.     if(pickupid == yugoteleportpickup && CheckForSkin(playerid,125)){GameTextForPlayer(playerid,"~w~ Type /sniper to come to yugo sniperplace",2000,3);}
  2307.     if(pickupid == russteleportpickup && CheckForSkin(playerid,112)){GameTextForPlayer(playerid,"~r~ Type /sniper to come to russian sniperplace",2000,3);}
  2308.     if(pickupid == triadteleportpickup && CheckForSkin(playerid,117)){GameTextForPlayer(playerid,"~y~ Type /sniper to come to triad sniperplace",2000,3);}
  2309.     if(pickupid == cubanteleportpickup && CheckForSkin(playerid,46)){GameTextForPlayer(playerid,"~r~ Type /sniper to come to russian sniperplace",2000,3);}
  2310.     if(pickupid == germanteleportpickup && CheckForSkin(playerid,165)){GameTextForPlayer(playerid,"~y~ Type /sniper to come to german sniperplace",2000,3);}
  2311. //--------
  2312.     if(pickupid == lcnteleportpickup2 && CheckForSkin(playerid,126)){GameTextForPlayer(playerid,"~g~ Type /sniper to go back to the base",2000,3);}
  2313.     if(pickupid == russteleportpickup2 && CheckForSkin(playerid,112)){GameTextForPlayer(playerid,"~r~ Type /sniper to go back to the base",2000,3);}
  2314.     if(pickupid == triadteleportpickup2 && CheckForSkin(playerid,117)){GameTextForPlayer(playerid,"~y~ Type /sniper to go back to the base",2000,3);}
  2315.     if(pickupid == germanteleportpickup2 && CheckForSkin(playerid,165)){GameTextForPlayer(playerid,"~r~ Type /sniper to go back to the base",2000,3);}
  2316.     if(pickupid == cubanteleportpickup2 && CheckForSkin(playerid,46)){GameTextForPlayer(playerid,"~y~ Type /sniper to go back to the base",2000,3);}
  2317. //Shop Story--------------------------------------------------------------------
  2318.     if(pickupid == lcnwaffenpickup){GameTextForPlayer(playerid,"~g~ Type /shop to buy weapons etc.",2000,3);}
  2319.     if(pickupid == russenwaffenpickup){GameTextForPlayer(playerid,"~r~ Type /shop to buy weapons etc.",2000,3);}
  2320.     if(pickupid == triadenwaffenpickup){GameTextForPlayer(playerid,"~w~ Type /shop to buy weapons etc.",2000,3);}
  2321.     if(pickupid == yugowaffenpickup){GameTextForPlayer(playerid,"~b~ Type /shop to buy weapons etc.",2000,3);}
  2322.     if(pickupid == germanwaffenpickup){GameTextForPlayer(playerid,"~y~ Type /shop to buy weapons etc.",2000,3);}
  2323.     if(pickupid == cubanwaffenpickup){GameTextForPlayer(playerid,"~b~ Type /shop to buy weapons etc.",2000,3);}
  2324. // Minijob --------------------------------------------------------------------
  2325.     if(pickupid == lcndeliver){GameTextForPlayer(playerid,"~g~ Type /deliver to sell your products",2000,3);}
  2326.     if(pickupid == buydrugpick){GameTextForPlayer(playerid,"~w~ Type /getdrugs to buy products",2000,3);}
  2327. //StreetFithg -----------------------------------------------------------------
  2328.     if(pickupid == GolfPick){GivePlayerWeapon(playerid,2,1);}
  2329.     if(pickupid == KnifePick){GivePlayerWeapon(playerid,4,1);}
  2330.     if(pickupid == BasiPick){GivePlayerWeapon(playerid,5,1);}
  2331.     if(pickupid == ShovelPick){GivePlayerWeapon(playerid,6,1);}
  2332.     if(pickupid == PoolPick){GivePlayerWeapon(playerid,7,1);}
  2333.     if(pickupid == AkPick){new w=0; GivePlayerWeapon(playerid,30,w);}
  2334.     if(pickupid == GamerInfo){GameTextForPlayer(playerid,"~g~ /JOIN FOR JOINING THE GAMER TEAM",2000,3);}
  2335.     return 1;
  2336. }
  2337. public OnVehicleMod(playerid, vehicleid, componentid)
  2338. {
  2339.     return 1;
  2340. }
  2341.  
  2342. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  2343. {
  2344.     return 1;
  2345. }
  2346.  
  2347. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  2348. {
  2349.     return 1;
  2350. }
  2351. public OnPlayerSelectedMenuRow(playerid, row)
  2352. {
  2353.     return 1;
  2354. }
  2355. public OnPlayerExitedMenu(playerid)
  2356. {
  2357.     return 1;
  2358. }
  2359.  
  2360. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  2361. {
  2362.     return 1;
  2363. }
  2364.  
  2365. public OnRconLoginAttempt(ip[], password[], success)
  2366. {
  2367.     return 1;
  2368. }
  2369.  
  2370. public OnPlayerUpdate(playerid)
  2371. {
  2372.     return 1;
  2373. }
  2374.  
  2375. public OnPlayerStreamIn(playerid, forplayerid)
  2376. {
  2377.     return 1;
  2378. }
  2379.  
  2380. public OnPlayerStreamOut(playerid, forplayerid)
  2381. {
  2382.     return 1;
  2383. }
  2384.  
  2385. public OnVehicleStreamIn(vehicleid, forplayerid)
  2386. {
  2387.     return 1;
  2388. }
  2389.  
  2390. public OnVehicleStreamOut(vehicleid, forplayerid)
  2391. {
  2392.     return 1;
  2393. }
  2394.  
  2395. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  2396. {
  2397. // REGISTER SYSTEM =============================================================
  2398.     new pname[MAX_PLAYERS],accFormat[128];
  2399.     GetPlayerName(playerid,pname,sizeof pname);
  2400.     format(accFormat,sizeof accFormat,"acc/%s.sav",pname);
  2401.     if(response)
  2402.     {
  2403.         switch(dialogid)
  2404.         {
  2405.             case DIALOG_LOGIN:
  2406.             {
  2407.                 if(!strlen(inputtext))
  2408.                 {
  2409.                     ShowPlayerDialog(playerid,DIALOG_LOGIN,1,"Login","Hello!\nYor Account has been founded!\nPlease log in!","Cancel","Next");
  2410.                     return SendClientMessage(playerid,0xFFFFFFFF,"No password!");
  2411.                 }
  2412.                 if(strcmp(inputtext,dini_Get(accFormat,"Passwort")) == 0)
  2413.                 {
  2414.                     Spieler[playerid][rang] = dini_Int(accFormat,"rang");
  2415.                     Spieler[playerid][alvl] = dini_Int(accFormat,"AdminLvl");
  2416.                     Spieler[playerid][Kills] = dini_Int(accFormat,"Kills");
  2417.                     Spieler[playerid][Deaths] = dini_Int(accFormat,"Deaths");
  2418.                     GivePlayerMoney(playerid,dini_Int(accFormat,"Geld"));
  2419.                     SetPlayerScore(playerid,dini_Int(accFormat,"Score"));
  2420.                     Spieler[playerid][gamer] = dini_Int(accFormat,"gamer");
  2421.                     Spieler[playerid][eingeloggt] = 1;
  2422.                     SendClientMessage(playerid,COLOR_GREEN,"You have been sucessfully logged in.");
  2423.                 }
  2424.                 else
  2425.                 {
  2426.                     ShowPlayerDialog(playerid,DIALOG_LOGIN,1,"Login","Hello!\nYor Account has been founded!\nPlease log in!","Cancel","Next");
  2427.                     SendClientMessage(playerid,COLOR_RED,"This password is wrong!");
  2428.                 }
  2429.             }
  2430.             case DIALOG_REG:
  2431.             {
  2432.                 if(!strlen(inputtext))
  2433.                 {
  2434.                         ShowPlayerDialog(playerid,DIALOG_REG,1,"Register","You have not an Account on this Server\nPlease Register!","Cancel","Next");
  2435.                         return SendClientMessage(playerid,COLOR_RED,"This password ist too short!");
  2436.                 }
  2437.                 dini_Create(accFormat);
  2438.                 dini_Set(accFormat,"Passwort",inputtext);
  2439.                 Spieler[playerid][rang] = 0 ;
  2440.                 Spieler[playerid][alvl] = 0 ;
  2441.                 Spieler[playerid][Kills] = 0;
  2442.                 Spieler[playerid][Deaths]= 0;
  2443.                 Spieler[playerid][gamer]= 0;
  2444.                 SetPlayerMoney(playerid,1000);
  2445.                 Spieler[playerid][eingeloggt] = 1;
  2446.                 SendClientMessage(playerid,COLOR_GREEN,"Your account has been registred and you have been automatically logged in");
  2447.             }
  2448.         }
  2449.     }
  2450.     else
  2451.     {
  2452.         switch(dialogid)
  2453.         {
  2454.             case DIALOG_LOGIN:ShowPlayerDialog(playerid,DIALOG_LOGIN,1,"Login","Hello!\nYor Account has been founded!\nPlease log in!","Cancel","Next");
  2455.             case DIALOG_REG:ShowPlayerDialog(playerid,DIALOG_REG,1,"Register","You have not an Account on this Server\nPlease Register!","Cancel","Next");
  2456.         }
  2457.     }
  2458. // GUI SHOP ====================================================================
  2459.     if(dialogid == Waffenmenu)
  2460.     {
  2461.         if(response)
  2462.         {
  2463.             if(listitem == 0) // AK47
  2464.             {
  2465.                 if(preise[listitem] >= GetPlayerMoney(playerid))return SendClientMessage(playerid,rot,"You need more money for this Weapon!");// abfrage ob man das geld hat
  2466.                 GivePlayerWeapon(playerid,30,300);
  2467.                 GivePlayerMoney(playerid, -400);
  2468.                 ShowDialog(playerid);
  2469.             }
  2470.             if(listitem == 1) // Desert Eagle
  2471.             {
  2472.                 if(preise[listitem] >= GetPlayerMoney(playerid))return SendClientMessage(playerid,rot,"You need more money for this Weapon!");
  2473.                 if(Spieler[playerid][rang] < 2) return SendClientMessage(playerid,rot,"You must have the rank Outlaw or higher for this Weapon!(/rinfo for more Rank infos!)");//rankabfrage
  2474.                 GivePlayerWeapon(playerid,24,100);
  2475.                 GivePlayerMoney(playerid, -1000);
  2476.                 ShowDialog(playerid);
  2477.             }
  2478.             if(listitem == 2) // M4
  2479.             {
  2480.                 if(preise[listitem] >= GetPlayerMoney(playerid))return SendClientMessage(playerid,rot,"You need more money for this Weapon!");
  2481.                 if(Spieler[playerid][rang] < 4) return SendClientMessage(playerid,rot,"You must have the rank Associate or higher for this Weapon(/rinfo for more Rank infos!)!");//rankabfrage
  2482.                 GivePlayerWeapon(playerid,31,300);
  2483.                 GivePlayerMoney(playerid, -800);
  2484.                 ShowDialog(playerid);
  2485.             }
  2486.             if(listitem == 3) // Sniper Rifle
  2487.             {
  2488.                 if(preise[listitem] >= GetPlayerMoney(playerid))return SendClientMessage(playerid,rot,"You need more money for this Weapon!");
  2489.                 if(Spieler[playerid][rang] < 5) return SendClientMessage(playerid,rot,"You must have the rank Soldier or higher for this Weapon(/rinfo for more Rank infos!)!");//rankabfrage
  2490.                 GivePlayerWeapon(playerid,34,100);
  2491.                 GivePlayerMoney(playerid, -1000);
  2492.                 ShowDialog(playerid);
  2493.             }
  2494.             if(listitem == 4) // Rifle
  2495.             {
  2496.                 if(preise[listitem] >= GetPlayerMoney(playerid))return SendClientMessage(playerid,rot,"You need more money for this Weapon!");
  2497.                 if(Spieler[playerid][rang] < 3) return SendClientMessage(playerid,rot,"You must have the rank Newcomer or higher for this Weapon!(/rinfo for more Rank infos!)");//rankabfrage
  2498.                 GivePlayerWeapon(playerid,33,130);
  2499.                 GivePlayerMoney(playerid, -600);
  2500.                 ShowDialog(playerid);
  2501.             }
  2502.             if(listitem == 5) // Grenade
  2503.             {
  2504.                 if(preise[listitem] >= GetPlayerMoney(playerid))return SendClientMessage(playerid,rot,"You need more money for this Weapon!");
  2505.                 if(Spieler[playerid][rang] < 5) return SendClientMessage(playerid,rot,"You must have the rank Soldier or higher for this Weapon(/rinfo for more Rank infos!)!");//rankabfrage
  2506.                 GivePlayerWeapon(playerid,16,5);
  2507.                 GivePlayerMoney(playerid, -1000);
  2508.                 ShowDialog(playerid);
  2509.             }
  2510.             if(listitem == 6) //Molotovs
  2511.             {
  2512.                 if(preise[listitem] >= GetPlayerMoney(playerid))return SendClientMessage(playerid,rot,"You need more money for this Weapon!");
  2513.                 if(Spieler[playerid][rang] < 2) return SendClientMessage(playerid,rot,"You must have the rank Outlaw or higher for this Weapon(/rinfo for more Rank infos!)!");//rankabfrage
  2514.                 GivePlayerWeapon(playerid,18,5);
  2515.                 GivePlayerMoney(playerid, -900);
  2516.                 ShowDialog(playerid);
  2517.             }
  2518.             if(listitem == 7)// MP5
  2519.             {
  2520.                 if(preise[listitem] >= GetPlayerMoney(playerid))return SendClientMessage(playerid,rot,"You need more money for this Weapon!");
  2521.                 GivePlayerWeapon(playerid,29,200);
  2522.                 GivePlayerMoney(playerid, -400);
  2523.                 ShowDialog(playerid);
  2524.              }
  2525.             if(listitem == 8) //RocketLauncher
  2526.             {
  2527.                 if(preise[listitem] >= GetPlayerMoney(playerid))return SendClientMessage(playerid,rot,"You need more money for this Weapon!");
  2528.                 if(Spieler[playerid][rang] < 7) return SendClientMessage(playerid,rot,"You must have the rank Capo or higher for this Weapon(/rinfo for more Rank infos!)!");//rankabfrage
  2529.                 GivePlayerWeapon(playerid,35,18);
  2530.                 GivePlayerMoney(playerid, -10000);
  2531.                 ShowDialog(playerid);
  2532.             }
  2533.             if(listitem == 9) //Flamethrower
  2534.             {
  2535.                 if(preise[listitem] >= GetPlayerMoney(playerid))return SendClientMessage(playerid,rot,"You need more money for this Weapon!");
  2536.                 if(Spieler[playerid][rang] < 6) return SendClientMessage(playerid,rot,"You must have the rank Killer or higher for this Weapon(/rinfo for more Rank infos!)!");//rankabfrage
  2537.                 GivePlayerWeapon(playerid,37,500);
  2538.                 GivePlayerMoney(playerid, -9000);
  2539.                 ShowDialog(playerid);
  2540.             }
  2541.             if(listitem == 10) //Armour
  2542.             {
  2543.                 if(preise[listitem] >= GetPlayerMoney(playerid))return SendClientMessage(playerid,rot,"You need more money for Armour!!");
  2544.                 SetPlayerArmour(playerid,100.0);
  2545.                 GivePlayerMoney(playerid, -500);
  2546.                 ShowDialog(playerid);
  2547.             }
  2548.             if(listitem == 11) //Drugs
  2549.             {
  2550.                 if(preise[listitem] >= GetPlayerMoney(playerid))return SendClientMessage(playerid,rot,"You need more money for Drugs!");
  2551.                 SetPlayerHealth(playerid,100.0);
  2552.                 GivePlayerMoney(playerid, -250);
  2553.                 ShowDialog(playerid);
  2554.             }
  2555.         }
  2556.     }
  2557. //Gui Fight---------------------------------------------------------------------
  2558.     if(dialogid == Fight)
  2559.     {
  2560.         if(response)
  2561.         {
  2562.             if(listitem == 0){SetPlayerFightingStyle (playerid, FIGHT_STYLE_KNEEHEAD);}
  2563.             if(listitem == 1){SetPlayerFightingStyle (playerid, FIGHT_STYLE_BOXING);}
  2564.             if(listitem == 2){SetPlayerFightingStyle (playerid, FIGHT_STYLE_GRABKICK);}
  2565.             if(listitem == 3){SetPlayerFightingStyle (playerid, FIGHT_STYLE_KUNGFU);
  2566.             }
  2567.         }
  2568.     }
  2569. //DM Arenas---------------------------------------------------------------------
  2570.     if(dialogid == DIALOG_DM)
  2571.     {
  2572.         if(response)
  2573.         {
  2574.             if(listitem == 0){SniperDm(playerid);}
  2575.             if(listitem == 1){DeagleDm(playerid);}
  2576.             if(listitem == 2){GrenadeDm(playerid);}
  2577.             if(listitem == 3){AllinDm(playerid);}
  2578.             if(listitem == 4){StreetfightDm(playerid);}
  2579.             if(listitem == 5){TacticDm(playerid);}
  2580.         }
  2581.     }
  2582.     return 1;
  2583. }
  2584. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  2585. {
  2586.     return 1;
  2587. }
  2588. //PayDay System-----------------------------------------------------------------
  2589. forward payday();
  2590. public payday()
  2591. {
  2592.     for (new i = 0; i < MAX_PLAYERS; i++)
  2593.     {
  2594.         if(Spieler[i][rang] == 1 ) // BabyKiller
  2595.         {
  2596.         SendClientMessage(i,hellblau,"|__PAYDAY__|");
  2597.         SendClientMessage(i,weiss,"============================");
  2598.         SendClientMessage(i,grau,"|----------------------------|");
  2599.         SendClientMessage(i,grau,"|Your Mafia Rank is |");
  2600.         SendClientMessage(i,grau,"| ~ BabyKiller ~ |");
  2601.         SendClientMessage(i,grau,"|You get 500$|");
  2602.         SendClientMessage(i,grau,"|----------------------------|");
  2603.         SendClientMessage(i,weiss,"============================");
  2604.         SendClientMessage(i,weiss,"(Type /rinfo to get more Informations about our Ranksystem)");
  2605.         GivePlayerMoney(i,500);
  2606.         }
  2607.         if(Spieler[i][rang] == 2 ) // Outlaw
  2608.         {
  2609.         SendClientMessage(i,hellblau,"|__PAYDAY__|");
  2610.         SendClientMessage(i,weiss,"============================");
  2611.         SendClientMessage(i,grau,"|----------------------------|");
  2612.         SendClientMessage(i,grau,"|Your Mafia Rank is |");
  2613.         SendClientMessage(i,grau,"| ~ Outlaw ~ |");
  2614.         SendClientMessage(i,grau,"|You get 800$|");
  2615.         SendClientMessage(i,grau,"|----------------------------|");
  2616.         SendClientMessage(i,weiss,"============================");
  2617.         GivePlayerMoney(i,800);
  2618.         }
  2619.         if(Spieler[i][rang] == 3 ) //newcomer
  2620.         {
  2621.         SendClientMessage(i,hellblau,"|__PAYDAY__|");
  2622.         SendClientMessage(i,weiss,"============================");
  2623.         SendClientMessage(i,grau,"|----------------------------|");
  2624.         SendClientMessage(i,grau,"|Your Mafia Rank is |");
  2625.         SendClientMessage(i,grau,"| ~ Newcomer ~ |");
  2626.         SendClientMessage(i,grau,"|You get 1500$|");
  2627.         SendClientMessage(i,grau,"|----------------------------|");
  2628.         SendClientMessage(i,weiss,"============================");
  2629.         GivePlayerMoney(i,1500);
  2630.         }
  2631.         if(Spieler[i][rang] == 4 ) //Associate
  2632.         {
  2633.         SendClientMessage(i,hellblau,"|__PAYDAY__|");
  2634.         SendClientMessage(i,weiss,"============================");
  2635.         SendClientMessage(i,grau,"|----------------------------|");
  2636.         SendClientMessage(i,grau,"|Your Mafia Rank is |");
  2637.         SendClientMessage(i,grau,"| ~ Associate ~ |");
  2638.         SendClientMessage(i,grau,"|You get 2500$|");
  2639.         SendClientMessage(i,grau,"|----------------------------|");
  2640.         SendClientMessage(i,weiss,"============================");
  2641.         GivePlayerMoney(i,2500);
  2642.         }
  2643.         if(Spieler[i][rang] == 5 ) // Solidier
  2644.         {
  2645.         SendClientMessage(i,hellblau,"|__PAYDAY__|");
  2646.         SendClientMessage(i,weiss,"============================");
  2647.         SendClientMessage(i,grau,"|----------------------------|");
  2648.         SendClientMessage(i,grau,"|Your Mafia Rank is |");
  2649.         SendClientMessage(i,grau,"| ~ Soldier ~ |");
  2650.         SendClientMessage(i,grau,"|You get 3500$|");
  2651.         SendClientMessage(i,grau,"|----------------------------|");
  2652.         SendClientMessage(i,weiss,"============================");
  2653.         GivePlayerMoney(i,3500);
  2654.         }
  2655.         if(Spieler[i][rang] == 6 ) // Killer
  2656.         {
  2657.         SendClientMessage(i,hellblau,"|__PAYDAY__|");
  2658.         SendClientMessage(i,weiss,"============================");
  2659.         SendClientMessage(i,grau,"|----------------------------|");
  2660.         SendClientMessage(i,grau,"|Your Mafia Rank is |");
  2661.         SendClientMessage(i,grau,"| ~ Killer ~ |");
  2662.         SendClientMessage(i,grau,"|You get 4500$|");
  2663.         SendClientMessage(i,grau,"|----------------------------|");
  2664.         SendClientMessage(i,weiss,"============================");
  2665.         GivePlayerMoney(i,4500);
  2666.         }
  2667.         if(Spieler[i][rang] == 7 ) // Capo
  2668.         {
  2669.         SendClientMessage(i,hellblau,"|__PAYDAY__|");
  2670.         SendClientMessage(i,weiss,"============================");
  2671.         SendClientMessage(i,grau,"|----------------------------|");
  2672.         SendClientMessage(i,grau,"|Your Mafia Rank is |");
  2673.         SendClientMessage(i,grau,"| ~ Capo ~ |");
  2674.         SendClientMessage(i,grau,"|You get 5000$|");
  2675.         SendClientMessage(i,grau,"|----------------------------|");
  2676.         SendClientMessage(i,weiss,"============================");
  2677.         GivePlayerMoney(i,5000);
  2678.         }
  2679.         if(Spieler[i][rang] == 8 ) // StreetBoss
  2680.         {
  2681.         SendClientMessage(i,hellblau,"|__PAYDAY__|");
  2682.         SendClientMessage(i,weiss,"============================");
  2683.         SendClientMessage(i,grau,"|----------------------------|");
  2684.         SendClientMessage(i,grau,"|Your Mafia Rank is |");
  2685.         SendClientMessage(i,grau,"| ~ StreetBoss ~ |");
  2686.         SendClientMessage(i,grau,"|You get 6500$|");
  2687.         SendClientMessage(i,grau,"|----------------------------|");
  2688.         SendClientMessage(i,weiss,"============================");
  2689.         GivePlayerMoney(i,6500);
  2690.         }
  2691.         if(Spieler[i][rang] == 9 ) // UnderBoss
  2692.         {
  2693.         SendClientMessage(i,hellblau,"|__PAYDAY__|");
  2694.         SendClientMessage(i,weiss,"============================");
  2695.         SendClientMessage(i,grau,"|----------------------------|");
  2696.         SendClientMessage(i,grau,"|Your Mafia Rank is |");
  2697.         SendClientMessage(i,grau,"| ~ UnderBoss ~ |");
  2698.         SendClientMessage(i,grau,"|You get 8000$|");
  2699.         SendClientMessage(i,grau,"|----------------------------|");
  2700.         SendClientMessage(i,weiss,"============================");
  2701.         GivePlayerMoney(i,8000);
  2702.         }
  2703.         if(Spieler[i][rang] == 10 ) // GodFather
  2704.         {
  2705.         SendClientMessage(i,hellblau,"|__PAYDAY__|");
  2706.         SendClientMessage(i,weiss,"============================");
  2707.         SendClientMessage(i,grau,"|----------------------------|");
  2708.         SendClientMessage(i,grau,"|Your Mafia Rank is |");
  2709.         SendClientMessage(i,grau,"| ~ GodFather ~ |");
  2710.         SendClientMessage(i,grau,"|You get 10000$|");
  2711.         SendClientMessage(i,grau,"|----------------------------|");
  2712.         SendClientMessage(i,weiss,"============================");
  2713.         GivePlayerMoney(i,10000);
  2714.         }
  2715.     }
  2716.     return 1;
  2717. }
  2718. //Auto Message System-----------------------------------------------------------
  2719. forward AutoNaricht();
  2720. public AutoNaricht()
  2721. {
  2722.     SendClientMessageToAll(purple, "======================== SERVER INFORMATION ========================");
  2723.     SendClientMessageToAll(weiss, "You want to see the mostly all commands? Type /help !");
  2724.     SendClientMessageToAll(weiss, "You need Weapons or Heal? Just type /shop in your Base !");
  2725.     SendClientMessageToAll(weiss, "Don't make Teamkill this is a TEAM DM Server!");
  2726.     SendClientMessageToAll(weiss, "For the Rank infos type /rinfo");
  2727.     SendClientMessageToAll(weiss, "You have ideas how to make this server better? ~~> gta-dm.de");
  2728.     SendClientMessageToAll(purple, "======================== SERVER INFORMATION ========================");
  2729.     return 1;
  2730. }
  2731. //Anti Spawnkill==--------------------------------------------------------------
  2732. forward GiveWeapons(playerid);
  2733. public GiveWeapons(playerid)
  2734. {
  2735.     SendClientMessage(playerid,COLOR_WHITE, "*** ANTI SPAWNKILL OFF ***");
  2736.     SetPlayerHealth(playerid, 100.0);
  2737.     return 1;
  2738. }
  2739. stock SendAdminMessagebyM(color,const message[])
  2740. {
  2741.     for(new i = 0; i < GetMaxPlayers(); i++)
  2742.     {
  2743.         if(IsPlayerConnected(i) && IsPlayerAdmin(i))
  2744.         {
  2745.             SendClientMessage(i,color,message);
  2746.         }
  2747.     }
  2748. }
  2749. stock ShowDialog(playerid)
  2750. {
  2751.     ShowPlayerDialog(playerid,Waffenmenu,DIALOG_STYLE_LIST,"Weapons","AK47 - 400$ - Rank: BabyKiller\nD.Eagle - 800$ - Rank: Outlaw\nM4 - 800$ - Rank: Associate\nSniper - 1000$ - Rank: Soldier\nRifle - 600$ - Rank: Newcomer\nGrenade - 1000$ - Rank: Soldier\nMolotov - 900$ - Rank: Newcomer\nMP5 - 400$ - Rank: BabyKiller\nRocketLauncher - 10000$ - Rank: Capo\nFlamethrower - 9000$ - Rank: Killer\nArmour - 500$ - Rank: BabyKiller\nDrug - 250$ - Rank: BabyKiller","Select","Back");
  2752. }
  2753. //Anti Weapon Cheat system======================================================
  2754. public Cheattimer()
  2755. {
  2756.     for (new i = 0; i < MAX_PLAYERS; i++)
  2757.     {
  2758.         new name[MAX_PLAYER_NAME],cstring[64];
  2759.         GetPlayerName(i,name,sizeof(name));
  2760.         if(IsPlayerConnected(i) && GetPlayerState(i) == PLAYER_STATE_ONFOOT)// THATS IMPORTANT WITHOUT THIS we can get BUGS
  2761.         {
  2762.             if(GetPlayerWeapon(i) == 38 )//Minigun
  2763.             {
  2764.                 format(cstring,sizeof cstring," %s was banned for Minigun cheating",name);
  2765.                 SendClientMessageToAll(hellrot,cstring);//
  2766.                 Kick(i);
  2767.             }
  2768.             if(GetPlayerWeapon(i) == 35 && Spieler[i][rang] < 7)//bazooke
  2769.             {
  2770.                 format(cstring,sizeof cstring," %s was banned for Bazooka cheating",name);
  2771.                 SendClientMessageToAll(hellrot,cstring);//
  2772.                 Kick(i);
  2773.             }
  2774.             if(GetPlayerWeapon(i) == 36 )// Bessere bazooke
  2775.             {
  2776.                 format(cstring,sizeof cstring," %s was banned for Selfaim Bazooka cheating",name);
  2777.                 SendClientMessageToAll(hellrot,cstring);//
  2778.                 Kick(i);
  2779.             }
  2780.             if(GetPlayerWeapon(i) ==37 && Spieler[i][rang] < 6)// flammenwerfer
  2781.             {
  2782.                 format(cstring,sizeof cstring," %s was banned for Flamethrower cheating",name);
  2783.                 SendClientMessageToAll(hellrot,cstring);//
  2784.                 Kick(i);
  2785.             }
  2786.             if(GetPlayerWeapon(i) == 39 )//BOmben by detonator
  2787.             {
  2788.                 format(cstring,sizeof cstring," %s was banned for Bomb+Detonator cheating",name);
  2789.                 SendClientMessageToAll(hellrot,cstring);//
  2790.                 Kick(i);
  2791.             }
  2792.             if(GetPlayerWeapon(i) == 42 )//feurloscher
  2793.             {
  2794.                 format(cstring,sizeof cstring," %s was banned for cheating",name);
  2795.                 SendClientMessageToAll(hellrot,cstring);//
  2796.                 Kick(i);
  2797.             }
  2798.             if(GetPlayerWeapon(i) ==41 )//spary
  2799.             {
  2800.                 format(cstring,sizeof cstring," %s was banned for spray cheating",name);
  2801.                 SendClientMessageToAll(hellrot,cstring);//
  2802.                 Kick(i);
  2803.             }
  2804.             if(GetPlayerWeapon(i) ==43 )//kamera
  2805.             {
  2806.                 format(cstring,sizeof cstring," %s was banned for Camera cheating",name);
  2807.                 SendClientMessageToAll(hellrot,cstring);//
  2808.                 Kick(i);
  2809.             }
  2810.             if(GetPlayerWeapon(i) ==44 )//nightgoogles
  2811.             {
  2812.                 format(cstring,sizeof cstring," %s was banned for nightgoogles cheating",name);
  2813.                 SendClientMessageToAll(hellrot,cstring);//
  2814.                 Kick(i);
  2815.             }
  2816.             if(GetPlayerWeapon(i) ==45 )//warmebrillen
  2817.             {
  2818.                 format(cstring,sizeof cstring," %s was banned for Hotgoogles cheating",name);
  2819.                 SendClientMessageToAll(hellrot,cstring);//
  2820.                 Kick(i);
  2821.             }
  2822.             if(GetPlayerWeapon(i) ==22 )//9mm
  2823.             {
  2824.                 format(cstring,sizeof cstring," %s was banned for 9mm cheating",name);
  2825.                 SendClientMessageToAll(hellrot,cstring);//
  2826.                 Kick(i);
  2827.             }
  2828.             if(GetPlayerWeapon(i) ==26 )//sawnoffshotgun
  2829.             {
  2830.                 format(cstring,sizeof cstring," %s was banned for Sawnoffshotgun cheating",name);
  2831.                 SendClientMessageToAll(hellrot,cstring);//
  2832.                 Kick(i);
  2833.             }
  2834.             if(GetPlayerWeapon(i) ==28 )//uzi
  2835.             {
  2836.                 format(cstring,sizeof cstring," %s was banned for Uzi cheating",name);
  2837.                 SendClientMessageToAll(hellrot,cstring);//
  2838.                 Kick(i);
  2839.             }
  2840.             if(GetPlayerWeapon(i) ==32 )//tec9
  2841.             {
  2842.                 format(cstring,sizeof cstring," %s was banned for Tec9 cheating",name);
  2843.                 SendClientMessageToAll(hellrot,cstring);//
  2844.                 Kick(i);
  2845.             }
  2846.         }
  2847.     }
  2848. }
  2849. public rangtimer()
  2850. {
  2851.     for (new i = 0; i < MAX_PLAYERS; i++)
  2852.     {
  2853.         if(Spieler[i][Kills] >= 0 ) // BabyKiller
  2854.         {
  2855.             Spieler[i][rang] = 1;
  2856.         }
  2857.         if(Spieler[i][Kills] >= 25 ) // Outlaw
  2858.         {
  2859.             Spieler[i][rang] = 2;
  2860.         }
  2861.         if(Spieler[i][Kills] >= 50 ) // newcomer
  2862.         {
  2863.             Spieler[i][rang] = 3;
  2864.         }
  2865.         if(Spieler[i][Kills] >= 100 )//associate
  2866.         {
  2867.             Spieler[i][rang] = 4;
  2868.         }
  2869.         if(Spieler[i][Kills] >= 150 ) // soldier
  2870.         {
  2871.             Spieler[i][rang] = 5;
  2872.         }
  2873.         if(Spieler[i][Kills] >= 250 )//killerer
  2874.         {
  2875.             Spieler[i][rang] = 6;
  2876.         }
  2877.         if(Spieler[i][Kills] >= 400 ) // capo
  2878.         {
  2879.             Spieler[i][rang] = 7;
  2880.         }
  2881.         if(Spieler[i][Kills] >= 600 ) // streetboss
  2882.         {
  2883.             Spieler[i][rang] = 8;
  2884.         }
  2885.         if(Spieler[i][Kills] >= 900 ) // underboss
  2886.         {
  2887.             Spieler[i][rang] = 9;
  2888.         }
  2889.         if(Spieler[i][Kills] >= 1500 ) // godfather
  2890.         {
  2891.             Spieler[i][rang] = 10;
  2892.         }
  2893.     }
  2894. }
  2895.  
  2896.  
  2897.  
  2898.  
  2899.  
  2900. //------------------------------------------------------------------------------
  2901.  
  2902. stock CheckForSkin(playerid,skin)
  2903. {
  2904.     return (GetPlayerSkin(playerid) == skin);
  2905. }
  2906. public robtimer()
  2907. {
  2908.         rob = 0;
  2909. }
  2910. public freezetimer(playerid)
  2911. {
  2912.         TogglePlayerControllable(playerid,1);
  2913.         SendClientMessage(playerid,dunkelgruen,"Sucsessful robbed the Gas Station!");
  2914.         SetTimerEx("resetRob",600000,0,"i",playerid);
  2915.         new randmoney = 2000 + random (6000);
  2916.         GivePlayerMoney(playerid,randmoney);
  2917.         SetPlayerHealth(playerid, 80);
  2918.         isAtRob[playerid] = 1;
  2919. }
  2920. public resetRob(playerid)isAtRob[playerid] = 0;
  2921. //Bomb System-----------------------------------------------------------
  2922. stock BombExplode(playerid)
  2923. {
  2924.     new Float:bX,Float:bY,Float:bZ;
  2925.     GetObjectPos(BombenObject[playerid],bX,bY,bZ);
  2926.     CreateExplosion(bX+3,bY+3,bZ,10,10.0);
  2927.     CreateExplosion(bX+5,bY+5,bZ,10,10.0);
  2928.     CreateExplosion(bX+3,bY+3,bZ,10,10.0);
  2929.     CreateExplosion(bX+5,bY+5,bZ,10,10.0);
  2930.     CreateExplosion(bX+10,bY+10,bZ,10,10.0);
  2931.     CreateExplosion(bX+6,bY+6,bZ,10,10.0);
  2932.     CreateExplosion(bX+10,bY+10,bZ,10,10.0);
  2933.     CreateExplosion(bX+9,bY+9,bZ,10,10.0);
  2934.     CreateExplosion(bX+15,bY+15,bZ,10,10.0);
  2935.     CreateExplosion(bX+9,bY+9,bZ,10,10.0);
  2936.     CreateExplosion(bX+20,bY+20,bZ,10,10.0);
  2937.     CreateExplosion(bX+15,bY+15,bZ,10,10.0);
  2938.     CreateExplosion(bX+20,bY+20,bZ,10,10.0);
  2939.     CreateExplosion(bX+15,bY+15,bZ,10,10.0);
  2940.     CreateExplosion(bX+20,bY+20,bZ,10,10.0);
  2941.     CreateExplosion(bX,bY,bZ,10,5.0);
  2942.     CreateExplosion(bX,bY,bZ,10,5.0);
  2943.     CreateExplosion(bX,bY,bZ,10,5.0);
  2944.     CreateExplosion(bX,bY,bZ,10,5.0);
  2945.     DestroyObject(BombenObject[playerid]);
  2946.     return 1;
  2947. }
  2948. //DcMDs CMDS====================================================================
  2949. dcmd_report(playerid,params[])
  2950. {
  2951.     new
  2952.         sReason[128],
  2953.         pID;
  2954.     if(sscanf(params,"s",sReason)) {
  2955.             return  SendClientMessage(playerid,grau,"USAGE: /report [reason]");
  2956.  
  2957.         }
  2958.     new
  2959.             Tplayer[MAX_PLAYER_NAME],
  2960.             string[128];
  2961.     GetPlayerName(pID,Tplayer,sizeof(Tplayer));
  2962.     format(string,sizeof(string),"%s has writen report with the reason : %s",Tplayer,sReason[0] ? sReason : "<No Reason>");
  2963.     SendAdminMessage(blau,string);
  2964.     return 1;
  2965.  }
  2966. //------------------------------------------------------------------------------
  2967. dcmd_kick(playerid,params[])
  2968. {
  2969.     new
  2970.         Reason[256],
  2971.         pID;
  2972.     if(Spieler[playerid][alvl] < 1){
  2973.         return SendClientMessage(playerid,grau,"You are not a Moderator/Admin!");
  2974.         }
  2975.     if(sscanf(params,"us",pID,Reason)){
  2976.         return SendClientMessage(playerid,grau,"USAGE: /kick [playerid] [reason]");
  2977.         }
  2978.     if(!IsPlayerConnected(pID)) {
  2979.         return SendClientMessage(playerid,grau,"Nobody is connected with this ID!");
  2980.         }
  2981.     new
  2982.             name[MAX_PLAYER_NAME],
  2983.             string[256];
  2984.     GetPlayerName(pID,name,sizeof(name));
  2985.     new
  2986.             Aname[MAX_PLAYER_NAME];
  2987.     GetPlayerName(playerid,Aname,sizeof(Aname));
  2988.     format(string,sizeof(string)," %s has kicked %s, Reason: %s",Aname,name,Reason);
  2989.     SendClientMessageToAll(hellrot,string);
  2990.     Kick(pID);
  2991.     return 1;
  2992. }
  2993. //------------------------------------------------------------------------------
  2994. dcmd_ban(playerid,params[])
  2995. {
  2996.     new
  2997.         Reason[256],
  2998.         pID;
  2999.     if(Spieler[playerid][alvl] < 3){
  3000.         return SendClientMessage(playerid,grau,"You are not a Admin!");
  3001.         }
  3002.     if(sscanf(params,"us",pID,Reason)){
  3003.         return SendClientMessage(playerid,grau,"USAGE: /ban [playerid] [reason]");
  3004.         }
  3005.     if(!IsPlayerConnected(pID)) {
  3006.         return SendClientMessage(playerid,grau,"Nobody is connected with this ID!");
  3007.         }
  3008.     new
  3009.             name[MAX_PLAYER_NAME],
  3010.             string[256];
  3011.     GetPlayerName(pID,name,sizeof(name));
  3012.     new
  3013.             Aname[MAX_PLAYER_NAME];
  3014.     GetPlayerName(playerid,Aname,sizeof(Aname));
  3015.     format(string,sizeof(string)," %s has banned %s Reason: %s",Aname,name,Reason);
  3016.     SendClientMessageToAll(COLOR_GREEN,string);
  3017.     Ban(pID);
  3018.     return 1;
  3019. }
  3020. //------------------------------------------------------------------------------
  3021. dcmd_seestats(playerid,params[])
  3022. {
  3023.     new pID;
  3024.     if(sscanf(params,"u",pID)){
  3025.         return SendClientMessage(playerid,grau,"USAGE: /seestats [playerid]");
  3026.         }
  3027.     if(!IsPlayerConnected(pID)) {
  3028.     return SendClientMessage(playerid,grau,"Nobody is connected with this ID!");
  3029.         }
  3030.     new
  3031.     name[MAX_PLAYER_NAME],
  3032.     string[256],string2[256];
  3033.     GetPlayerName(pID,name,sizeof(name));
  3034.     format(string, sizeof(string), "| Stats of[%s] |", name);
  3035.     format(string2, sizeof(string2), "[Kills: %d] [Deaths: %d] [Ratio: %0.2f] [Score: %d]  ", Spieler[pID][Kills], Spieler[pID][Deaths],Float:Spieler[pID][Kills]/Float:Spieler[pID][Deaths],GetPlayerScore(pID));
  3036.     SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
  3037.     SendClientMessage(playerid,COLOR_WHITE,string2);
  3038.     SendClientMessage(playerid,COLOR_LIGHTBLUE,"|_____________________________________________|");
  3039.     new
  3040.         pname[MAX_PLAYER_NAME],string3[256];
  3041.     GetPlayerName(playerid,pname,sizeof(pname));
  3042.     format(string3, sizeof(string3), "%s has typed /seestas to see your stats", pname);
  3043.     SendClientMessage(pID,COLOR_YELLOW,string3);
  3044.     return 1;
  3045. }
  3046. //------------------------------------------------------------------------------
  3047. dcmd_admins(playerid,params[])
  3048. {
  3049.     #pragma unused params
  3050.     SendClientMessage(playerid, aqua, "Admins/Mods Online:");
  3051.     SendClientMessage(playerid, grau, "ServerGuard: JunkBuster");
  3052.     new i = 0, aname[256], string[256];
  3053.     for(; i < MAX_PLAYERS; i++)
  3054.     {
  3055.         if(IsPlayerConnected(i))
  3056.         {
  3057.             if(Spieler[i][alvl] == 1)
  3058.             {
  3059.                 GetPlayerName(i, aname, sizeof(aname));
  3060.                 format(string, 256, " Moderator: %s", aname);
  3061.                 SendClientMessage(playerid, grau, string);
  3062.             }
  3063.             else if(Spieler[i][alvl] == 2)
  3064.             {
  3065.                 GetPlayerName(i, aname, sizeof(aname));
  3066.                 format(string, 256, " Admin: %s", aname);
  3067.                 SendClientMessage(playerid, grau, string);
  3068.             }
  3069.             else if(Spieler[i][alvl] == 3)
  3070.             {
  3071.                 GetPlayerName(i, aname, sizeof(aname));
  3072.                 format(string, 256, " SuperAdmin: %s", aname);
  3073.                 SendClientMessage(playerid, grau, string);
  3074.             }
  3075.             else if(Spieler[i][alvl] == 4)
  3076.             {
  3077.                 GetPlayerName(i, aname, sizeof(aname));
  3078.                 format(string, 256, " ServerOwner: %s", aname);
  3079.                 SendClientMessage(playerid, grau, string);
  3080.             }
  3081.         }
  3082.     }
  3083.     return 1;
  3084. }
  3085. //------------------------------------------------------------------------------
  3086. dcmd_a(playerid,params[])
  3087. {
  3088.     if(Spieler[playerid][alvl] < 1) {
  3089.     return SendClientMessage(playerid,grau,"You must be a Mod/Admin to be able to write in admin chat");
  3090.         }
  3091.     new atext[128];
  3092.     if(sscanf(params,"s",atext)){
  3093.         return SendClientMessage(playerid,grau,"USAGE: /a [text]");
  3094.         }
  3095.     new name[MAX_PLAYER_NAME];
  3096.     new string[128];
  3097.     GetPlayerName(playerid,name,sizeof(name));
  3098.     format(string,sizeof(string),"Level %d Admin (%s): %s" ,Spieler[playerid][alvl],name,atext);
  3099.     SendAdminMessage(COLOR_YELLOW,string);
  3100.     return 1;
  3101. }
  3102. //------------------------------------------------------------------------------
  3103. dcmd_dec(playerid,params[])
  3104. {
  3105.     new dtext[128];
  3106.     if(Spieler[playerid][alvl] <1) {
  3107.         return SendClientMessage (playerid,grau,"You must be a Mod/Admin to write a declaration");
  3108.     }
  3109.     if(sscanf(params,"s",dtext)){
  3110.         return SendClientMessage(playerid,grau,"USAGE: /dec [text]");
  3111.     }
  3112.     GameTextForAll(dtext,3*1000,3);
  3113.     return 1;
  3114. }
  3115. //------------------------------------------------------------------------------
  3116. dcmd_makeadmin(playerid,params[])
  3117. {
  3118.     if(Spieler[playerid][alvl] < 4){
  3119.         return SendClientMessage (playerid,grau,"You must be a ServerOwner to set admin Levels");
  3120.     }
  3121.     new pID,alevel;
  3122.     if(sscanf(params,"ud",pID,alevel)){
  3123.         return SendClientMessage (playerid,grau,"USAGE: /makeadmin [playerid] [adminlevel]");
  3124.     }
  3125.     if(!IsPlayerConnected(pID)){
  3126.         return SendClientMessage (playerid,grau,"Nobody is connected with this ID!");
  3127.     }
  3128.     new string[128],string2[128],aname[MAX_PLAYER_NAME],name[MAX_PLAYER_NAME];
  3129.     Spieler[pID][alvl] = alevel;
  3130.     GetPlayerName(playerid,aname,sizeof(aname));
  3131.     GetPlayerName(pID,name,sizeof(name));
  3132.     format(string,sizeof(string),"You have set the admin level of %s to %d",name,alevel);
  3133.     format(string2,sizeof(string2),"ServerOwner %s has set your admin level to %d",aname,alevel);
  3134.     SendClientMessage(playerid,COLOR_GREEN,string);
  3135.     SendClientMessage(pID,COLOR_GREEN,string2);
  3136.     return 1;
  3137. }
  3138. //------------------------------------------------------------------------------
  3139. dcmd_freeze(playerid,params[])
  3140. {
  3141.     if(Spieler[playerid][alvl] < 1){
  3142.         return SendClientMessage (playerid,grau,"You must be a Mod/Admin to freeze Players");
  3143.     }
  3144.     new pID;
  3145.     if(sscanf(params,"u",pID)){
  3146.         return SendClientMessage(playerid,grau,"USAGE: /freeze [playerid]");
  3147.     }
  3148.     if(!IsPlayerConnected(pID)){
  3149.         return SendClientMessage(playerid,COLOR_RED,"Nobody is connected with this ID!");
  3150.     }
  3151.     new string[128],string2[128],adminname[MAX_PLAYER_NAME],name[MAX_PLAYER_NAME];
  3152.     GetPlayerName(playerid,adminname,sizeof(adminname));
  3153.     GetPlayerName(pID,name,sizeof(name));
  3154.     format(string,sizeof(string),"You have frozen %s",name);
  3155.     format(string2,sizeof(string2),"You was been frozen by %s",adminname);
  3156.     SendClientMessage(playerid,hellrot,string);
  3157.     SendClientMessage(pID,hellrot,string2);
  3158.     TogglePlayerControllable(pID, 0);
  3159.     return 1;
  3160. }
  3161. //------------------------------------------------------------------------------
  3162. dcmd_unfreeze(playerid,params[])
  3163. {
  3164.     if(Spieler[playerid][alvl] < 1){
  3165.         return SendClientMessage (playerid,grau,"You must be a Mod/Admin to freeze Players");
  3166.     }
  3167.     new pID;
  3168.     if(sscanf(params,"u",pID)){
  3169.         return SendClientMessage(playerid,grau,"USAGE: /freeze [playerid]");
  3170.     }
  3171.     if(!IsPlayerConnected(pID)){
  3172.         return SendClientMessage(playerid,grau,"Nobody is connected with this ID!");
  3173.     }
  3174.     new string[128],string2[128],adminname[MAX_PLAYER_NAME],name[MAX_PLAYER_NAME];
  3175.     GetPlayerName(playerid,adminname,sizeof(adminname));
  3176.     GetPlayerName(pID,name,sizeof(name));
  3177.     format(string,sizeof(string),"You have unfrozen %s",name);
  3178.     format(string2,sizeof(string2),"You was been unfrozen by %s",adminname);
  3179.     SendClientMessage(playerid,COLOR_GREEN,string);
  3180.     SendClientMessage(pID,COLOR_GREEN,string2);
  3181.     TogglePlayerControllable(pID, 1);
  3182.     return 1;
  3183. }
  3184. //------------------------------------------------------------------------------
  3185. dcmd_setkills(playerid,params[])
  3186. {
  3187.     if(Spieler[playerid][alvl] < 3){
  3188.         return SendClientMessage (playerid,grau,"You must be a SuperAdmin or ServerOwner to set Kills");
  3189.     }
  3190.     new pID,kills;
  3191.     if(sscanf(params,"ud",pID,kills)){
  3192.         return SendClientMessage(playerid,grau,"USAGE: /setkills [playerid] [kills]");
  3193.     }
  3194.     if(!IsPlayerConnected(pID)){
  3195.         return SendClientMessage(playerid,grau,"Nobody is connected with this ID!");
  3196.     }
  3197.     new string[128],string2[128],aname[MAX_PLAYER_NAME],name[MAX_PLAYER_NAME];
  3198.     Spieler[pID][Kills] = kills;
  3199.     GetPlayerName(playerid,aname,sizeof(aname));
  3200.     GetPlayerName(pID,name,sizeof(name));
  3201.     format(string,sizeof(string),"You have set the kills  of %s to %d",name,kills);
  3202.     format(string2,sizeof(string2),"Admin %s has set your kills to %d",aname,kills);
  3203.     SendClientMessage(playerid,COLOR_GREEN,string);
  3204.     SendClientMessage(pID,COLOR_GREEN,string2);
  3205.     return 1;
  3206. }
  3207. //------------------------------------------------------------------------------
  3208. dcmd_setdeaths(playerid,params[])
  3209. {
  3210.     if(Spieler[playerid][alvl] < 3){
  3211.         return SendClientMessage (playerid,grau,"You must be a SuperAdmin or ServerOwner to set Deaths");
  3212.     }
  3213.     new pID,deaths;
  3214.     if(sscanf(params,"ud",pID,deaths)){
  3215.         return SendClientMessage(playerid,grau,"USAGE: /setkills [playerid] [kills]");
  3216.     }
  3217.     if(!IsPlayerConnected(pID)){
  3218.         return SendClientMessage(playerid,COLOR_RED,"Nobody is connected with this ID!");
  3219.     }
  3220.     new string[128],string2[128],aname[MAX_PLAYER_NAME],name[MAX_PLAYER_NAME];
  3221.     Spieler[pID][Deaths] = deaths;
  3222.     GetPlayerName(playerid,aname,sizeof(aname));
  3223.     GetPlayerName(pID,name,sizeof(name));
  3224.     format(string,sizeof(string),"You have set the Deaths of %s to %d",name,deaths);
  3225.     format(string2,sizeof(string2),"Admin %s has set your Deaths to %d",aname,deaths);
  3226.     SendClientMessage(playerid,COLOR_GREEN,string);
  3227.     SendClientMessage(pID,COLOR_GREEN,string2);
  3228.     return 1;
  3229. }
  3230. //------------------------------------------------------------------------------
  3231. dcmd_setscore(playerid,params[])
  3232. {
  3233.     if(Spieler[playerid][alvl] < 3){
  3234.         return SendClientMessage (playerid,grau,"You must be a SuperAdmin or ServerOwner to set Scores");
  3235.     }
  3236.     new pID,scores;
  3237.     if(sscanf(params,"ud",pID,scores)){
  3238.         return SendClientMessage(playerid,grau,"USAGE: /setscore [playerid] [score]");
  3239.     }
  3240.     if(!IsPlayerConnected(pID)){
  3241.         return SendClientMessage(playerid,grau,"Nobody is connected with this ID!");
  3242.     }
  3243.     new string[128],string2[128],aname[MAX_PLAYER_NAME],name[MAX_PLAYER_NAME];
  3244.     SetPlayerScore(pID,scores);
  3245.     GetPlayerName(playerid,aname,sizeof(aname));
  3246.     GetPlayerName(pID,name,sizeof(name));
  3247.     format(string,sizeof(string),"You have set the Score of %s to %d",name,scores);
  3248.     format(string2,sizeof(string2),"Admin %s has set your Score to %d",aname,scores);
  3249.     SendClientMessage(playerid,COLOR_GREEN,string);
  3250.     SendClientMessage(pID,COLOR_GREEN,string2);
  3251.     return 1;
  3252. }
  3253. //------------------------------------------------------------------------------
  3254. dcmd_givecash(playerid,params[])
  3255. {
  3256.     if(Spieler[playerid][alvl] < 3){
  3257.         return SendClientMessage (playerid,grau,"You must be a SuperAdmin or a ServerOwner to give money");
  3258.     }
  3259.     new pID,cash;
  3260.     if(sscanf(params,"ud",pID,cash)){
  3261.         return SendClientMessage(playerid,grau,"USAGE: /givecash [playerid] [amount]");
  3262.     }
  3263.     if(!IsPlayerConnected(pID)){
  3264.         return SendClientMessage(playerid,grau,"Nobody is connected with this ID!");
  3265.     }
  3266.     new string[128],string2[128],aname[MAX_PLAYER_NAME],name[MAX_PLAYER_NAME];
  3267.     GivePlayerMoney(pID,cash);
  3268.     GetPlayerName(playerid,aname,sizeof(aname));
  3269.     GetPlayerName(pID,name,sizeof(name));
  3270.     format(string,sizeof(string),"You have given %s %d $",name,cash);
  3271.     format(string2,sizeof(string2),"Admin %s has given you %d $",aname,cash);
  3272.     SendClientMessage(playerid,COLOR_GREEN,string);
  3273.     SendClientMessage(pID,COLOR_GREEN,string2);
  3274.     return 1;
  3275. }
  3276. //------------------------------------------------------------------------------
  3277. dcmd_giveweapon(playerid,params[])
  3278. {
  3279.     if(Spieler[playerid][alvl] < 2){
  3280.         return SendClientMessage (playerid,grau,"You must be a Admin or higher to give weapons");
  3281.     }
  3282.     new pID,weapon,ammo;
  3283.     if(sscanf(params,"udd",pID,weapon,ammo)){
  3284.         return SendClientMessage(playerid,grau,"USAGE: /giveweapon [playerid][weaponID] [ammo]");
  3285.     }
  3286.     if(!IsPlayerConnected(pID)){
  3287.         return SendClientMessage(playerid,grau,"Nobody is connected with this ID!");
  3288.     }
  3289.     new string[128],string2[128],aname[MAX_PLAYER_NAME],name[MAX_PLAYER_NAME];
  3290.     GivePlayerWeapon(pID,weapon,ammo);
  3291.     GetPlayerName(playerid,aname,sizeof(aname));
  3292.     GetPlayerName(pID,name,sizeof(name));
  3293.     format(string,sizeof(string),"You have given the player %s weapon ID:%d with %d ammo",name,weapon,ammo);
  3294.     format(string2,sizeof(string2),"Admin %s has give you weapon ID:%d with %d ammo",aname,weapon,ammo);
  3295.     SendClientMessage(playerid,COLOR_GREEN,string);
  3296.     SendClientMessage(pID,COLOR_GREEN,string2);
  3297.     return 1;
  3298. }
  3299. //------------------------------------------------------------------------------
  3300. dcmd_explode(playerid,params[])
  3301. {
  3302.     if(Spieler[playerid][alvl] < 1){
  3303.         return SendClientMessage (playerid,COLOR_RED,"You must be a Moderator or higher to explode players");
  3304.     }
  3305.     new pID;
  3306.     if(sscanf(params,"u",pID)){
  3307.         return SendClientMessage (playerid,COLOR_RED,"USAGE: /explode [playerid]");
  3308.     }
  3309.     if(!IsPlayerConnected(pID)){
  3310.         return SendClientMessage (playerid,COLOR_RED,"Nobody is connected with this ID!");
  3311.     }
  3312.     new string[128],string2[128],aname[MAX_PLAYER_NAME],name[MAX_PLAYER_NAME];
  3313.     GetPlayerName(playerid,aname,sizeof(aname));
  3314.     GetPlayerName(pID,name,sizeof(name));
  3315.     format(string,sizeof(string),"You have explode %s  ",name);
  3316.     format(string2,sizeof(string2),"Admin %s has explode you",aname);
  3317.     new Float:x,Float:y,Float:z;
  3318.     GetPlayerPos(pID,x,y,z);
  3319.     CreateExplosion(x,y,z,7,15);
  3320.     CreateExplosion(x,y,z,7,15);
  3321.     CreateExplosion(x,y,z,7,15);
  3322.     CreateExplosion(x,y,z,7,15);
  3323.     CreateExplosion(x,y,z,7,15);
  3324.     SendClientMessage(playerid,COLOR_GREEN,string);
  3325.     SendClientMessage(pID,COLOR_GREEN,string2);
  3326.     return 1;
  3327. }
  3328. //------------------------------------------------------------------------------
  3329. dcmd_spectate(playerid,params[]) {
  3330.     if(Spieler[playerid][alvl] < 1){
  3331.         return SendClientMessage (playerid,grau,"You must be a Moderator or higher to spectate players");
  3332.     }
  3333.     new pID;
  3334.     if(sscanf(params,"u",pID)){
  3335.         return SendClientMessage (playerid,grau,"USAGE: /spectate [playerid]");
  3336.     }
  3337.     if(!IsPlayerConnected(pID)){
  3338.         return SendClientMessage (playerid,grau,"Nobody is connected with this ID!");
  3339.     }
  3340.     new string[128],name[MAX_PLAYER_NAME];
  3341.     GetPlayerName(pID,name,sizeof(name));
  3342.     format(string,sizeof(string),"You are spectating %s",name);
  3343.     SetCameraBehindPlayer(pID);
  3344.     SendClientMessage(playerid,COLOR_GREEN,string);
  3345.     return 1;
  3346. }
  3347. //------------------------------------------------------------------------------
  3348. dcmd_tele(playerid,params[])
  3349. {
  3350.     if(Spieler[playerid][alvl] < 2){
  3351.         return SendClientMessage (playerid,grau,"You must be a Admin or higher to teleport to players");
  3352.     }
  3353.     new pID;
  3354.     if(sscanf(params,"u",pID)){
  3355.         return SendClientMessage (playerid,grau,"USAGE: /tele [playerid]");
  3356.     }
  3357.     if(!IsPlayerConnected(pID)){
  3358.         return SendClientMessage (playerid,grau,"Nobody is connected with this ID!");
  3359.     }
  3360.     new string[128],name[MAX_PLAYER_NAME];
  3361.     GetPlayerName(pID,name,sizeof(name));
  3362.     format(string,sizeof(string),"You have been teleported to %s",name);
  3363.     new Float:x,Float:y,Float:z;
  3364.     GetPlayerPos(pID,x,y,z);
  3365.     SetPlayerPos(playerid,x,y,z);
  3366.     SendClientMessage(playerid,COLOR_GREEN,string);
  3367.     return 1;
  3368. }
  3369. //------------------------------------------------------------------------------
  3370. dcmd_gethere(playerid,params[])
  3371. {
  3372.     if(Spieler[playerid][alvl] < 2){
  3373.         return SendClientMessage (playerid,grau,"You must be a Admin to teleport players ");
  3374.     }
  3375.     new pID;
  3376.     if(sscanf(params,"u",pID)){
  3377.         return SendClientMessage (playerid,grau,"USAGE: /gethere [playerid]");
  3378.     }
  3379.     if(!IsPlayerConnected(pID)){
  3380.         return SendClientMessage (playerid,grau,"Nobody is connected with this ID!");
  3381.     }
  3382.     new string[128],string2[128],aname[MAX_PLAYER_NAME],name[MAX_PLAYER_NAME];
  3383.     GetPlayerName(pID,name,sizeof(name));
  3384.     GetPlayerName(playerid,aname,sizeof(aname));
  3385.     format(string,sizeof(string),"You have been teleported to %s",aname);
  3386.     format(string2,sizeof(string2),"You have been teleported to %s",name);
  3387.     new Float:x,Float:y,Float:z;
  3388.     GetPlayerPos(playerid,x,y,z);
  3389.     SetPlayerPos(pID,x,y,z);
  3390.     SendClientMessage(pID,COLOR_GREEN,string);
  3391.     SendClientMessage(playerid,COLOR_GREEN,string2);
  3392.     return 1;
  3393. }
  3394. //------------------------------------------------------------------------------
  3395. dcmd_pm(playerid,params[])
  3396. {
  3397.     new
  3398.         pmtext[128],
  3399.         pID;
  3400.     if(sscanf(params,"ds",pID,pmtext)) {
  3401.             return  SendClientMessage(playerid,grau,"USAGE: /pm [playerid] [text]");
  3402.  
  3403.         }
  3404.     if(!IsPlayerConnected(pID)) {
  3405.             return SendClientMessage(playerid,grau,"Nobody is connected with this ID");
  3406.         }
  3407.     new
  3408.         name[MAX_PLAYER_NAME],pmname[MAX_PLAYER_NAME],
  3409.         string[128],string2[128];
  3410.     GetPlayerName(playerid,name,sizeof(name));
  3411.     GetPlayerName(pID,pmname,sizeof(pmname));
  3412.     format(string,sizeof(string),"PM from %s : %s ",name,pmtext);
  3413.     format(string2,sizeof(string2),"You have sent the PM to %s ",pmname);
  3414.     SendClientMessage(pID,COLOR_YELLOW,string);
  3415.     SendClientMessage(playerid,COLOR_YELLOW,string2);
  3416.     return 1;
  3417. }
  3418. //------------------------------------------------------------------------------
  3419. dcmd_setskin(playerid,params[])
  3420. {
  3421.     if(Spieler[playerid][alvl] < 2){
  3422.         return SendClientMessage (playerid,grau,"You must be a Admin or higher to set Skins");
  3423.     }
  3424.     new pID,skinid;
  3425.     if(sscanf(params,"ud",pID,skinid)){
  3426.         return SendClientMessage(playerid,grau,"USAGE: /setskin [playerid] [skinID(0-299!)]*");
  3427.     }
  3428.     if(!IsPlayerConnected(pID)){
  3429.         return SendClientMessage(playerid,grau,"Nobody is connected with this ID!");
  3430.     }
  3431.     if(skinid < 0){
  3432.         return SendClientMessage(playerid,grau,"INVALID ID!");
  3433.     }
  3434.     if(skinid > 299){
  3435.         return SendClientMessage(playerid,grau,"INVALID ID!");
  3436.     }
  3437.     new string[128],string2[128],aname[MAX_PLAYER_NAME],name[MAX_PLAYER_NAME];
  3438.     SetPlayerSkin(pID,skinid);
  3439.     GetPlayerName(playerid,aname,sizeof(aname));
  3440.     GetPlayerName(pID,name,sizeof(name));
  3441.     format(string,sizeof(string),"You have set the SkinID of %s to %d",name,skinid);
  3442.     format(string2,sizeof(string2),"Admin %s has set your SkinID to %d",aname,skinid);
  3443.     SendClientMessage(playerid,COLOR_GREEN,string);
  3444.     SendClientMessage(pID,COLOR_GREEN,string2);
  3445.     return 1;
  3446. }
  3447. //------------------------------------------------------------------------------
  3448. dcmd_heal(playerid,params[])
  3449. {
  3450.     if(Spieler[playerid][alvl] < 2){
  3451.         return SendClientMessage (playerid,grau,"You must be a Admin or higher to set Health");
  3452.     }
  3453.     new pID,life;
  3454.     if(sscanf(params,"ud",pID,life)){
  3455.         return SendClientMessage(playerid,grau,"USAGE: /heal [playerid] [float(0-100!)]*");
  3456.     }
  3457.     if(!IsPlayerConnected(pID)){
  3458.         return SendClientMessage(playerid,grau,"Nobody is connected with this ID!");
  3459.     }
  3460.     if(life < 0){
  3461.         return SendClientMessage(playerid,grau,"INVALID FLOAT!");
  3462.     }
  3463.     if(life > 100){
  3464.         return SendClientMessage(playerid,grau,"INVALID FLOAT!");
  3465.     }
  3466.     new string[128],string2[128],aname[MAX_PLAYER_NAME],name[MAX_PLAYER_NAME];
  3467.     SetPlayerHealth(pID,life);
  3468.     GetPlayerName(playerid,aname,sizeof(aname));
  3469.     GetPlayerName(pID,name,sizeof(name));
  3470.     format(string,sizeof(string),"You have set the Health of %s to %d",name,life);
  3471.     format(string2,sizeof(string2),"Admin %s has set your Health to %d",aname,life);
  3472.     SendClientMessage(playerid,COLOR_GREEN,string);
  3473.     SendClientMessage(pID,COLOR_GREEN,string2);
  3474.     return 1;
  3475. }
  3476. //------------------------------------------------------------------------------
  3477. dcmd_takeweaps(playerid,params[])
  3478. {
  3479.     new
  3480.         Reason[256],
  3481.         pID;
  3482.     if(Spieler[playerid][alvl] < 1){
  3483.         return SendClientMessage(playerid,grau,"You must be a Moderator or higher to take weapons away");
  3484.         }
  3485.     if(sscanf(params,"us",pID,Reason)){
  3486.         return SendClientMessage(playerid,grau,"USAGE: /takeweaps [playerid] [reason]");
  3487.         }
  3488.     if(!IsPlayerConnected(pID)) {
  3489.         return SendClientMessage(playerid,grau,"Nobody is connected with this ID!");
  3490.         }
  3491.     new
  3492.             name[MAX_PLAYER_NAME],
  3493.             string[256];
  3494.     GetPlayerName(pID,name,sizeof(name));
  3495.     new
  3496.             Aname[MAX_PLAYER_NAME],string2[256];
  3497.     GetPlayerName(playerid,Aname,sizeof(Aname));
  3498.     format(string,sizeof(string),"Admin %s has taken your weapons with the reason: %s",Aname,Reason);
  3499.     format(string2,sizeof(string2),"You have taken the weapons of %s with the reason: %s",name,Reason);
  3500.     SendClientMessage(pID,COLOR_GREEN,string);
  3501.     ResetPlayerWeapons(pID);
  3502.     return 1;
  3503. }
  3504. //------------------------------------------------------------------------------
  3505. dcmd_setweather(playerid,params[])
  3506. {
  3507.     if(Spieler[playerid][alvl] < 2){
  3508.         return SendClientMessage (playerid,grau,"You must be a Admin or higher to change Weather");
  3509.     }
  3510.     new wetter;
  3511.     if(sscanf(params,"d",wetter)){
  3512.         return SendClientMessage(playerid,grau,"USAGE: /setweather [WeatherID]");
  3513.     }
  3514.     new string2[128],aname[MAX_PLAYER_NAME];
  3515.     SetWeather(wetter);
  3516.     GetPlayerName(playerid,aname,sizeof(aname));
  3517.     format(string2,sizeof(string2),"Admin %s has set the weather ID to %d",aname,wetter);
  3518.     SendClientMessageToAll(COLOR_GREEN,string2);
  3519.     return 1;
  3520. }
  3521. //------------------------------------------------------------------------------
  3522. dcmd_sethour(playerid,params[])
  3523. {
  3524.     if(Spieler[playerid][alvl] < 2){
  3525.         return SendClientMessage (playerid,grau,"You must be a Admin or higher to change time");
  3526.     }
  3527.     new hours;
  3528.     if(sscanf(params,"d",hours)){
  3529.         return SendClientMessage(playerid,grau,"USAGE: /sethour [hour]");
  3530.     }
  3531.     if(hours < 0){
  3532.         return SendClientMessage(playerid,grau,"INVALID HOUR![0-24]");
  3533.     }
  3534.     if(hours > 24){
  3535.         return SendClientMessage(playerid,grau,"INVALID HOUR![0-24]");
  3536.     }
  3537.     new string2[128],aname[MAX_PLAYER_NAME];
  3538.     SetWorldTime(hour);
  3539.     GetPlayerName(playerid,aname,sizeof(aname));
  3540.     format(string2,sizeof(string2),"Admin %s has set the time to %d",aname,hours);
  3541.     SendClientMessageToAll(COLOR_GREEN,string2);
  3542.     return 1;
  3543. }
  3544. //------------------------------------------------------------------------------
  3545. dcmd_veh(playerid,params[])
  3546. {
  3547.     if(Spieler[playerid][alvl] < 3){
  3548.         return SendClientMessage (playerid,grau,"You must be a SuperAdmin or higher to spawn cars");
  3549.     }
  3550.     new veh,color1,color2;
  3551.     if(sscanf(params,"ddd",veh,color1,color2)){
  3552.         return SendClientMessage(playerid,grau,"USAGE: /veh [vehicleID] [color1] [color2]");
  3553.     }
  3554.     if(veh < 400){
  3555.         return SendClientMessage(playerid,grau,"INVALID vehID![400-611]");
  3556.     }
  3557.     if(veh > 611){
  3558.         return SendClientMessage(playerid,grau,"INVALID vehID![400-611]");
  3559.     }
  3560.     if(color1 < 0){
  3561.         return SendClientMessage(playerid,grau,"INVALID color1ID![0-126]");
  3562.     }
  3563.     if(color1 > 126){
  3564.         return SendClientMessage(playerid,grau,"INVALID color1ID![0-126]");
  3565.     }
  3566.     if(color2 < 0){
  3567.         return SendClientMessage(playerid,grau,"INVALID color2ID![0-126]");
  3568.     }
  3569.     if(color2 > 126){
  3570.         return SendClientMessage(playerid,grau,"INVALID color2ID![0-126]");
  3571.     }
  3572.     new Float:x , Float:y , Float: z;
  3573.     GetPlayerPos(playerid,x,y,z);
  3574.     CreateVehicle(veh, x, y, z, 0, color1, color2, 123456789);
  3575.     return 1;
  3576. }
  3577. //------------------------------------------------------------------------------
  3578. dcmd_seecash(playerid,params[])
  3579. {
  3580.     if(Spieler[playerid][alvl] < 1){
  3581.         return SendClientMessage(playerid,grau,"You must be a Moderator or higher for this CMD");
  3582.     }
  3583.     new pID;
  3584.     if(sscanf(params,"u",pID)){
  3585.         return SendClientMessage(playerid,grau,"USAGE: /seecash [playerid]");
  3586.         }
  3587.     if(!IsPlayerConnected(pID)) {
  3588.     return SendClientMessage(playerid,grau,"Nobody is connected with this ID!");
  3589.         }
  3590.     new
  3591.     name[MAX_PLAYER_NAME],
  3592.     string2[256];
  3593.     GetPlayerName(pID,name,sizeof(name));
  3594.     format(string2, sizeof(string2), "[Cash of %s] : %d $",name,GetPlayerMoney(pID));
  3595.     SendClientMessage(playerid,COLOR_GREEN,string2);
  3596.     return 1;
  3597. }
  3598. //------------------------------------------------------------------------------
  3599. dcmd_armour(playerid,params[])
  3600. {
  3601.     if(Spieler[playerid][alvl] < 2){
  3602.         return SendClientMessage (playerid,grau,"You must be a Admin or higher to set Armour");
  3603.     }
  3604.     new pID,arm;
  3605.     if(sscanf(params,"ud",pID,arm)){
  3606.         return SendClientMessage(playerid,grau,"USAGE: /armour [playerid] [float(0-100!)]*");
  3607.     }
  3608.     if(!IsPlayerConnected(pID)){
  3609.         return SendClientMessage(playerid,grau,"Nobody is connected with this ID!");
  3610.     }
  3611.     if(arm < 0){
  3612.         return SendClientMessage(playerid,grau,"INVALID FLOAT!");
  3613.     }
  3614.     if(arm > 100){
  3615.         return SendClientMessage(playerid,grau,"INVALID FLOAT!");
  3616.     }
  3617.     new string[128],string2[128],aname[MAX_PLAYER_NAME],name[MAX_PLAYER_NAME];
  3618.     SetPlayerArmour(pID,arm);
  3619.     GetPlayerName(playerid,aname,sizeof(aname));
  3620.     GetPlayerName(pID,name,sizeof(name));
  3621.     format(string,sizeof(string),"You have set the Armour of %s to %d",name,arm);
  3622.     format(string2,sizeof(string2),"Admin %s has set your Armour to %d",aname,arm);
  3623.     SendClientMessage(playerid,COLOR_GREEN,string);
  3624.     SendClientMessage(pID,COLOR_GREEN,string2);
  3625.     return 1;
  3626. }
  3627. //------------------------------------------------------------------------------
  3628. dcmd_setcash(playerid,params[])
  3629. {
  3630.     if(Spieler[playerid][alvl] < 3){
  3631.         return SendClientMessage (playerid,grau,"You must be a SuperAdmin or a ServerOwner to set money");
  3632.     }
  3633.     new pID,cash;
  3634.     if(sscanf(params,"ud",pID,cash)){
  3635.         return SendClientMessage(playerid,grau,"USAGE: /setcash [playerid] [amount]");
  3636.     }
  3637.     if(!IsPlayerConnected(pID)){
  3638.         return SendClientMessage(playerid,grau,"Nobody is connected with this ID!");
  3639.     }
  3640.     new string[128],string2[128],aname[MAX_PLAYER_NAME],name[MAX_PLAYER_NAME];
  3641.     SetPlayerMoney(pID,cash);
  3642.     GetPlayerName(playerid,aname,sizeof(aname));
  3643.     GetPlayerName(pID,name,sizeof(name));
  3644.     format(string,sizeof(string),"You have set the money of %s to %d $",name,cash);
  3645.     format(string2,sizeof(string2),"Admin %s has set your money to %d $",aname,cash);
  3646.     SendClientMessage(playerid,COLOR_GREEN,string);
  3647.     SendClientMessage(pID,COLOR_GREEN,string2);
  3648.     return 1;
  3649. }
  3650. //==============================================================================
  3651. stock SendAdminMessage(farbe,msg[])
  3652. {
  3653. for(new i = 0; i < MAX_PLAYERS; i++)
  3654. {
  3655. if(Spieler[i][alvl] >= 1)
  3656. {
  3657. SendClientMessage(i,farbe,msg);
  3658. }
  3659. }
  3660. }
  3661. //==================================================SSCANF CODE ================
  3662. stock sscanf(string[], format[], {Float,_}:...)
  3663. {
  3664.     #if defined isnull
  3665.         if (isnull(string))
  3666.     #else
  3667.         if (string[0] == 0 || (string[0] == 1 && string[1] == 0))
  3668.     #endif
  3669.         {
  3670.             return format[0];
  3671.         }
  3672.     #pragma tabsize 4
  3673.     new
  3674.         formatPos = 0,
  3675.         stringPos = 0,
  3676.         paramPos = 2,
  3677.         paramCount = numargs(),
  3678.         delim = ' ';
  3679.     while (string[stringPos] && string[stringPos] <= ' ')
  3680.     {
  3681.         stringPos++;
  3682.     }
  3683.     while (paramPos < paramCount && string[stringPos])
  3684.     {
  3685.         switch (format[formatPos++])
  3686.         {
  3687.             case '\0':
  3688.             {
  3689.                 return 0;
  3690.             }
  3691.             case 'i', 'd':
  3692.             {
  3693.                 new
  3694.                     neg = 1,
  3695.                     num = 0,
  3696.                     ch = string[stringPos];
  3697.                 if (ch == '-')
  3698.                 {
  3699.                     neg = -1;
  3700.                     ch = string[++stringPos];
  3701.                 }
  3702.                 do
  3703.                 {
  3704.                     stringPos++;
  3705.                     if ('0' <= ch <= '9')
  3706.                     {
  3707.                         num = (num * 10) + (ch - '0');
  3708.                     }
  3709.                     else
  3710.                     {
  3711.                         return -1;
  3712.                     }
  3713.                 }
  3714.                 while ((ch = string[stringPos]) > ' ' && ch != delim);
  3715.                 setarg(paramPos, 0, num * neg);
  3716.             }
  3717.             case 'h', 'x':
  3718.             {
  3719.                 new
  3720.                     num = 0,
  3721.                     ch = string[stringPos];
  3722.                 do
  3723.                 {
  3724.                     stringPos++;
  3725.                     switch (ch)
  3726.                     {
  3727.                         case 'x', 'X':
  3728.                         {
  3729.                             num = 0;
  3730.                             continue;
  3731.                         }
  3732.                         case '0' .. '9':
  3733.                         {
  3734.                             num = (num << 4) | (ch - '0');
  3735.                         }
  3736.                         case 'a' .. 'f':
  3737.                         {
  3738.                             num = (num << 4) | (ch - ('a' - 10));
  3739.                         }
  3740.                         case 'A' .. 'F':
  3741.                         {
  3742.                             num = (num << 4) | (ch - ('A' - 10));
  3743.                         }
  3744.                         default:
  3745.                         {
  3746.                             return -1;
  3747.                         }
  3748.                     }
  3749.                 }
  3750.                 while ((ch = string[stringPos]) > ' ' && ch != delim);
  3751.                 setarg(paramPos, 0, num);
  3752.             }
  3753.             case 'c':
  3754.             {
  3755.                 setarg(paramPos, 0, string[stringPos++]);
  3756.             }
  3757.             case 'f':
  3758.             {
  3759.  
  3760.                 new changestr[16], changepos = 0, strpos = stringPos;
  3761.                 while(changepos < 16 && string[strpos] && string[strpos] != delim)
  3762.                 {
  3763.                     changestr[changepos++] = string[strpos++];
  3764.                     }
  3765.                 changestr[changepos] = '\0';
  3766.                 setarg(paramPos,0,_:floatstr(changestr));
  3767.             }
  3768.             case 'p':
  3769.             {
  3770.                 delim = format[formatPos++];
  3771.                 continue;
  3772.             }
  3773.             case '\'':
  3774.             {
  3775.                 new
  3776.                     end = formatPos - 1,
  3777.                     ch;
  3778.                 while ((ch = format[++end]) && ch != '\'') {}
  3779.                 if (!ch)
  3780.                 {
  3781.                     return -1;
  3782.                 }
  3783.                 format[end] = '\0';
  3784.                 if ((ch = strfind(string, format[formatPos], false, stringPos)) == -1)
  3785.                 {
  3786.                     if (format[end + 1])
  3787.                     {
  3788.                         return -1;
  3789.                     }
  3790.                     return 0;
  3791.                 }
  3792.                 format[end] = '\'';
  3793.                 stringPos = ch + (end - formatPos);
  3794.                 formatPos = end + 1;
  3795.             }
  3796.             case 'u':
  3797.             {
  3798.                 new
  3799.                     end = stringPos - 1,
  3800.                     id = 0,
  3801.                     bool:num = true,
  3802.                     ch;
  3803.                 while ((ch = string[++end]) && ch != delim)
  3804.                 {
  3805.                     if (num)
  3806.                     {
  3807.                         if ('0' <= ch <= '9')
  3808.                         {
  3809.                             id = (id * 10) + (ch - '0');
  3810.                         }
  3811.                         else
  3812.                         {
  3813.                             num = false;
  3814.                         }
  3815.                     }
  3816.                 }
  3817.                 if (num && IsPlayerConnected(id))
  3818.                 {
  3819.                     setarg(paramPos, 0, id);
  3820.                 }
  3821.                 else
  3822.                 {
  3823.                     #if !defined foreach
  3824.                         #define foreach(%1,%2) for (new %2 = 0; %2 < MAX_PLAYERS; %2++) if (IsPlayerConnected(%2))
  3825.                         #define __SSCANF_FOREACH__
  3826.                     #endif
  3827.                     string[end] = '\0';
  3828.                     num = false;
  3829.                     new
  3830.                         name[MAX_PLAYER_NAME];
  3831.                     id = end - stringPos;
  3832.                     foreach (Player, playerid)
  3833.                     {
  3834.                         GetPlayerName(playerid, name, sizeof (name));
  3835.                         if (!strcmp(name, string[stringPos], true, id))
  3836.                         {
  3837.                             setarg(paramPos, 0, playerid);
  3838.                             num = true;
  3839.                             break;
  3840.                         }
  3841.                     }
  3842.                     if (!num)
  3843.                     {
  3844.                         setarg(paramPos, 0, INVALID_PLAYER_ID);
  3845.                     }
  3846.                     string[end] = ch;
  3847.                     #if defined __SSCANF_FOREACH__
  3848.                         #undef foreach
  3849.                         #undef __SSCANF_FOREACH__
  3850.                     #endif
  3851.                 }
  3852.                 stringPos = end;
  3853.             }
  3854.             case 's', 'z':
  3855.             {
  3856.                 new
  3857.                     i = 0,
  3858.                     ch;
  3859.                 if (format[formatPos])
  3860.                 {
  3861.                     while ((ch = string[stringPos++]) && ch != delim)
  3862.                     {
  3863.                         setarg(paramPos, i++, ch);
  3864.                     }
  3865.                     if (!i)
  3866.                     {
  3867.                         return -1;
  3868.                     }
  3869.                 }
  3870.                 else
  3871.                 {
  3872.                     while ((ch = string[stringPos++]))
  3873.                     {
  3874.                         setarg(paramPos, i++, ch);
  3875.                     }
  3876.                 }
  3877.                 stringPos--;
  3878.                 setarg(paramPos, i, '\0');
  3879.             }
  3880.             default:
  3881.             {
  3882.                 continue;
  3883.             }
  3884.         }
  3885.         while (string[stringPos] && string[stringPos] != delim && string[stringPos] > ' ')
  3886.         {
  3887.             stringPos++;
  3888.         }
  3889.         while (string[stringPos] && (string[stringPos] == delim || string[stringPos] <= ' '))
  3890.         {
  3891.             stringPos++;
  3892.         }
  3893.         paramPos++;
  3894.     }
  3895.     do
  3896.     {
  3897.         if ((delim = format[formatPos++]) > ' ')
  3898.         {
  3899.             if (delim == '\'')
  3900.             {
  3901.                 while ((delim = format[formatPos++]) && delim != '\'') {}
  3902.             }
  3903.             else if (delim != 'z')
  3904.             {
  3905.                 return delim;
  3906.             }
  3907.         }
  3908.     }
  3909.     while (delim > ' ');
  3910.     return 0;
  3911. }
  3912. //================================================= SCANF CODE END =============
  3913. public IsPlayerAdminCall(playerid)
  3914.         {
  3915.             if(Spieler[playerid][alvl] == 4)
  3916.             return 1;
  3917.             else
  3918.             return 0;
  3919.         }
  3920. //CARS==========================================================================
  3921. public IsItLcnCar(carid)
  3922. {
  3923.     for(new i = 0; i < sizeof(LcnCar); i++)
  3924.     {
  3925.         if(carid == LcnCar[i])
  3926.         {
  3927.             return 1;
  3928.         }
  3929.     }
  3930.     return 0;
  3931. }
  3932. public IsItRusCar(carid)
  3933. {
  3934.     for(new i = 0; i < sizeof(RusCar); i++)
  3935.     {
  3936.         if(carid == RusCar[i])
  3937.         {
  3938.             return 1;
  3939.         }
  3940.     }
  3941.     return 0;
  3942. }
  3943. public IsItTriadCar(carid)
  3944. {
  3945.     for(new i = 0; i < sizeof(TriadCar); i++)
  3946.     {
  3947.         if(carid == TriadCar[i])
  3948.         {
  3949.             return 1;
  3950.         }
  3951.     }
  3952.     return 0;
  3953. }
  3954. public IsItYugoCar(carid)
  3955. {
  3956.     for(new i = 0; i < sizeof(YugoCar); i++)
  3957.     {
  3958.         if(carid == YugoCar[i])
  3959.         {
  3960.             return 1;
  3961.         }
  3962.     }
  3963.     return 0;
  3964. }
  3965. public IsItGermanCar(carid)
  3966. {
  3967.     for(new i = 0; i < sizeof(GermanCar); i++)
  3968.     {
  3969.         if(carid == GermanCar[i])
  3970.         {
  3971.             return 1;
  3972.         }
  3973.     }
  3974.     return 0;
  3975. }
  3976. public IsItCubanCar(carid)
  3977. {
  3978.     for(new i = 0; i < sizeof(CubanCar); i++)
  3979.     {
  3980.         if(carid == CubanCar[i])
  3981.         {
  3982.             return 1;
  3983.         }
  3984.     }
  3985.     return 0;
  3986. }
  3987. public IsItGamerCar(carid)
  3988. {
  3989.     for(new i = 0; i < sizeof(GamerCar); i++)
  3990.     {
  3991.         if(carid == GamerCar[i])
  3992.         {
  3993.             return 1;
  3994.         }
  3995.     }
  3996.     return 0;
  3997. }
  3998. //------------------------------------------------------------------------------
  3999. public zonecheck()
  4000. {
  4001.     for (new i = 0; i < MAX_PLAYERS; i++)
  4002.         {
  4003.             if(IsPlayerInRangeOfPoint(i,10.0,-2141.9912109375, 579.66644287109, 37.143802642822) && Gang[i] == TEAM_TRIADS)
  4004.             {
  4005.             SetTimer("TriadTimer",2000,0);
  4006.             }
  4007.             else if (IsPlayerInRangeOfPoint(i,10.0,-2655.1687011719, -220.49809265137, 5.9577760696411) && Gang[i] == TEAM_LCN)
  4008.             {
  4009.             SetTimer("LcnTimer",2000,0);
  4010.             }
  4011.             else if (IsPlayerInRangeOfPoint(i,10.0,-2127.2192382813, -80.924629211426, 36.953063964844) && Gang[i] == TEAM_RUS)
  4012.             {
  4013.             SetTimer("RusTimer",2000,0);
  4014.             }
  4015.             else if (IsPlayerInRangeOfPoint(i,10.0, -2607.9880371094, 1361.5688476563, 8.831916809082) && Gang[i] == TEAM_YUGO)
  4016.             {
  4017.             SetTimer("YugoTimer",2000,0);
  4018.             }
  4019.             else if (IsPlayerInRangeOfPoint(i,10.0, -2432.9150390625, 497.01708984375, 31.701232910156) && Gang[i] == TEAM_GERMAN)
  4020.             {
  4021.             SetTimer("GermanTimer",2000,0);
  4022.             }
  4023.             else if (IsPlayerInRangeOfPoint(i,10.0, -1851.3482666016, -226.4906463623, 19.694917678833) && Gang[i] == TEAM_CUBAN)
  4024.             {
  4025.             SetTimer("CubanTimer",2000,0);
  4026.             }
  4027.  
  4028.         }
  4029. }
  4030. //Triad-------------------------------------------------------------------------
  4031. forward TriadTimer();
  4032. public TriadTimer()
  4033. {
  4034.     MoveObject(Triadgate,-2241.9912109375,579.66644287109,37.143802642822,3.5);
  4035.     SetTimer("TriadTimer2",5000,false);
  4036. }
  4037. forward TriadTimer2();
  4038. public TriadTimer2(){MoveObject(Triadgate,-2141.9912109375,579.66644287109,37.143802642822,3.5);}
  4039. //LCN---------------------------------------------------------------------------
  4040. forward LcnTimer();
  4041. public LcnTimer()
  4042. {
  4043.     MoveObject(Lcngate,-2655.1687011719, -220.49809265137, -2.9577760696411,3.5);
  4044.     SetTimer("LcnTimer2",5000,false);
  4045. }
  4046. forward LcnTimer2();
  4047. public LcnTimer2(){MoveObject(Lcngate,-2655.1687011719, -220.49809265137, 5.9577760696411,3.5);}
  4048. //RUS---------------------------------------------------------------------------
  4049. forward RusTimer();
  4050. public RusTimer()
  4051. {
  4052.     MoveObject(Rusgate,-2117.2192382813, -80.924629211426, 36.953063964844,3.5);
  4053.     SetTimer("RusTimer2",5000,false);
  4054. }
  4055. forward RusTimer2();
  4056. public RusTimer2(){MoveObject(Rusgate,-2127.2192382813, -80.924629211426, 36.953063964844,3.5);}
  4057. //Yugo--------------------------------------------------------------------------
  4058. forward YugoTimer();
  4059. public YugoTimer()
  4060. {
  4061.     MoveObject(Yugogate,-2607.9880371094, 1361.5688476563, 1.831916809082,3.5);
  4062.     SetTimer("YugoTimer2",5000,false);
  4063. }
  4064. forward YugoTimer2();
  4065. public YugoTimer2(){MoveObject(Yugogate,-2607.9880371094, 1361.5688476563, 8.831916809082,3.5);}
  4066. //German------------------------------------------------------------------------
  4067. forward GermanTimer();
  4068. public GermanTimer()
  4069. {
  4070.     MoveObject(Germangate,-2432.9150390625, 497.01708984375, 23.701232910156,3.5);
  4071.     SetTimer("GermanTimer2",5000,false);
  4072. }
  4073. forward GermanTimer2();
  4074. public GermanTimer2(){MoveObject(Germangate,-2432.9150390625, 497.01708984375, 31.701232910156,3.5);}
  4075. //Cuban-------------------------------------------------------------------------
  4076. forward CubanTimer();
  4077. public CubanTimer()
  4078. {
  4079.     MoveObject(Cubangate,-1851.3482666016, -226.4906463623, 10.694917678833,3.5);
  4080.     SetTimer("CubanTimer2",5000,false);
  4081. }
  4082. forward CubanTimer2();
  4083. public CubanTimer2(){MoveObject(Cubangate,-1851.3482666016, -226.4906463623, 19.694917678833,3.5);}
  4084. forward GamerTimer();
  4085. public GamerTimer(){MoveObject(Gamergate,-2273.7644042969, 2352.1525878906, 6.5936045646667,3.5);}
  4086. //NotTImeDuel===================================================================
  4087. public CountDown(playerid, seconds)
  4088. {
  4089.     new string[256];
  4090.     if(seconds > 0)
  4091.     {
  4092.         new Float:X, Float:Y, Float:Z;
  4093.         GetPlayerPos(playerid, X, Y, Z);
  4094.         PlayerPlaySound(playerid, 1056, X, Y, Z);
  4095.         format(string, sizeof(string), "~R~%d", seconds);
  4096.         GameTextForPlayer(playerid, string, 1000, 3);
  4097.         seconds = seconds -1;
  4098.         SetTimerEx("CountDown", 1000, 0, "ii", playerid, seconds);
  4099.         return 1;
  4100.     }
  4101.     if(seconds == 0)
  4102.     {
  4103.         new Float:X, Float:Y, Float:Z;
  4104.         GetPlayerPos(playerid, X, Y, Z);
  4105.         PlayerPlaySound(playerid, 1057, X, Y, Z);
  4106.         GameTextForPlayer(playerid, "~G~Start!!!", 1000, 3);
  4107.         TogglePlayerControllable(playerid, 1);
  4108.         return 1;
  4109.     }
  4110.     return 1;
  4111. }
  4112. public inventationremove(playerid)
  4113. {
  4114.     if(Induel[playerid] == 0)
  4115.     {
  4116.         SendClientMessage(playerid, RED, "30 seconds passed after your duel inventation without a response");
  4117.         SendClientMessage(InventationSent[playerid], RED, "30 seconds passed after your duel inventation without a response");
  4118.         Inventation[InventationSent[playerid]] = -1;
  4119.         InventationSent[playerid] = -1;
  4120.         if(duelRoom1 == playerid)
  4121.         {
  4122.             duelRoom1 = -1;
  4123.         }
  4124.         if(duelRoom2 == playerid)
  4125.         {
  4126.             duelRoom2 = -1;
  4127.         }
  4128.         if(duelRoom3 == playerid)
  4129.         {
  4130.             duelRoom3 = -1;
  4131.         }
  4132.         if(duelRoom3 == playerid)
  4133.         {
  4134.             duelRoom4 = -1;
  4135.         }
  4136.         return 1;
  4137.     }
  4138.     return 1;
  4139. }
  4140. //noTimeDcmdDuel----------------------------------------------------------------
  4141. dcmd_watchduels(playerid, params[])
  4142. {
  4143.     #pragma unused params
  4144.     if(PlayerduelWatching[playerid] == 0)
  4145.     {
  4146.         SetPlayerPos(playerid, 1731.8315,-2864.7705,6.5554);
  4147.         SetPlayerFacingAngle(playerid, 1.8901);
  4148.         ResetPlayerWeapons(playerid);
  4149.         SetPlayerHealth(playerid, 1000000000);
  4150.         PlayerduelWatching[playerid] = 1;
  4151.         SendClientMessage(playerid, COLOR_YELLOW, "You are now watching the player duels, Death Match is NOT allowed in this area, /leavewatch to leave.");
  4152.         return 1;
  4153.     }
  4154.     else return SendClientMessage(playerid, RED, "[VT ERROR] You are already watching the duel fights, /leavewatch to leave this place.");
  4155. }
  4156.  
  4157. dcmd_leavewatch(playerid, params[])
  4158. {
  4159.     #pragma unused params
  4160.     if(PlayerduelWatching[playerid] == 1)
  4161.     {
  4162.         SetPlayerHealth(playerid, 100);
  4163.         SpawnPlayer(playerid);
  4164.         SendClientMessage(playerid, COLOR_YELLOW, "You left the player duel watching");
  4165.         PlayerduelWatching[playerid] = 0;
  4166.         return 1;
  4167.     }
  4168.     else return SendClientMessage(playerid, RED, "[VT ERROR] You are not watching the duel fights, /watchduels to watch.");
  4169. }
  4170.  
  4171. dcmd_duel(playerid, params[])
  4172. {
  4173.     new
  4174.         giveplayerid,
  4175.         weapon[128],
  4176.         price;
  4177.     new string[256];
  4178.     new sendername[MAX_PLAYER_NAME];
  4179.     new giveplayername[MAX_PLAYER_NAME];
  4180.     if (sscanf(params, "usd", giveplayerid,weapon,price))
  4181.     {
  4182.         SendClientMessage(playerid, COLOR_YELLOW, "[VT ERROR] Right Usage: /duel [playerid] [weapon] [amount]");
  4183.         SendClientMessage(playerid, COLOR_YELLOW, "Duel weapons: deagle, mp5, chainsaw, silpist, combatsg, shotgun");
  4184.         return 1;
  4185.     }
  4186.     else
  4187.     {
  4188.         if(playerid != giveplayerid)
  4189.         {
  4190.             GetPlayerName(playerid, sendername, sizeof(sendername));
  4191.             GetPlayerName(giveplayerid, giveplayername, sizeof(giveplayername));
  4192.             if(strcmp("deagle", weapon, true, 6) == 0)
  4193.             {
  4194.                 if(GetPlayerMoney(playerid) >= price)
  4195.                 {
  4196.                     if(price < -1){
  4197.                         return SendClientMessage(playerid,RED,"Ammount can`t be -");
  4198.                     }
  4199.                     if(Inventation[giveplayerid] == -1)
  4200.                     {
  4201.                         if(InventationSent[playerid] == -1)
  4202.                         {
  4203.                             if(Induel[playerid] == 0)
  4204.                             {
  4205.                                 if(Induel[giveplayerid] == 0)
  4206.                                 {
  4207.                                     if(duelRoom1 == -1)
  4208.                                     {
  4209.                                         SetTimerEx("inventationremove", 30000, 0, "i", playerid);
  4210.                                         format(string, sizeof(string), "%s has sent you a 1 vs. 1 duel with a desert eagle for $%d, /acceptduel or /declineduel", sendername, price);
  4211.                                         SendClientMessage(giveplayerid, GREEN, string);
  4212.                                         format(string, sizeof(string), "you sent %s a 1 vs. 1 duel with a desert eagle for $%d", giveplayername, price);
  4213.                                         SendClientMessage(playerid, GREEN, string);
  4214.                                         InventationSent[playerid] = giveplayerid;
  4215.                                         Inventation[giveplayerid] = playerid;
  4216.                                         Inventationprice[giveplayerid] = price;
  4217.                                         duelRoom1price = price;
  4218.                                         duelRoom1 = playerid;
  4219.                                         WeaponduelRoom1 = 24;
  4220.                                         return 1;
  4221.                                     }
  4222.                                     else if(duelRoom2 == -1)
  4223.                                     {
  4224.                                         SetTimerEx("inventationremove", 30000, 0, "i", playerid);
  4225.                                         format(string, sizeof(string), "%s has sent you a 1 vs. 1 duel with a desert eagle for $%d, /acceptduel or /declineduel", sendername, price);
  4226.                                         SendClientMessage(giveplayerid, GREEN, string);
  4227.                                         format(string, sizeof(string), "you sent %s a 1 vs. 1 duel with a desert eagle for $%d", giveplayername, price);
  4228.                                         SendClientMessage(playerid, GREEN, string);
  4229.                                         InventationSent[playerid] = giveplayerid;
  4230.                                         Inventation[giveplayerid] = playerid;
  4231.                                         duelRoom2price = price;
  4232.                                         duelRoom2 = playerid;
  4233.                                         WeaponduelRoom2 = 24;
  4234.                                         return 1;
  4235.                                     }
  4236.                                     else if(duelRoom3 == -1)
  4237.                                     {
  4238.                                         SetTimerEx("inventationremove", 30000, 0, "i", playerid);
  4239.                                         format(string, sizeof(string), "%s has sent you a 1 vs. 1 duel with a desert eagle for $%d, /acceptduel or /declineduel", sendername, price);
  4240.                                         SendClientMessage(giveplayerid, GREEN, string);
  4241.                                         format(string, sizeof(string), "you sent %s a 1 vs. 1 duel with a desert eagle for $%d", giveplayername, price);
  4242.                                         SendClientMessage(playerid, GREEN, string);
  4243.                                         InventationSent[playerid] = giveplayerid;
  4244.                                         Inventation[giveplayerid] = playerid;
  4245.                                         duelRoom3price = price;
  4246.                                         duelRoom3 = playerid;
  4247.                                         WeaponduelRoom3 = 24;
  4248.                                         return 1;
  4249.                                     }
  4250.                                     else if(duelRoom4 == -1)
  4251.                                     {
  4252.                                         SetTimerEx("inventationremove", 30000, 0, "i", playerid);
  4253.                                         format(string, sizeof(string), "%s has sent you a 1 vs. 1 duel with a desert eagle for $%d, /acceptduel or /declineduel", sendername, price);
  4254.                                         SendClientMessage(giveplayerid, GREEN, string);
  4255.                                         format(string, sizeof(string), "you sent %s a 1 vs. 1 duel with a desert eagle for $%d", giveplayername, price);
  4256.                                         SendClientMessage(playerid, GREEN, string);
  4257.                                         InventationSent[playerid] = giveplayerid;
  4258.                                         Inventation[giveplayerid] = playerid;
  4259.                                         duelRoom4price = price;
  4260.                                         duelRoom4 = playerid;
  4261.                                         WeaponduelRoom4 = 24;
  4262.                                         return 1;
  4263.                                     }
  4264.                                     else return SendClientMessage(playerid, RED, "there are no duel rooms free, wait till a duel ends");
  4265.                                 }
  4266.                                 else return SendClientMessage(playerid, RED, "This player is already in a duel");
  4267.                             }
  4268.                             else return SendClientMessage(playerid, RED, "you are still in a duel, end it first");
  4269.                         }
  4270.                         else return SendClientMessage(playerid, RED, "You already sent an inventation, wait 30 seconds or wait till the other player declines");
  4271.                     }
  4272.                     else return SendClientMessage(playerid, RED, "This player already got an inventation");
  4273.                 }
  4274.                 else return SendClientMessage(playerid, RED, "You can't afford the duel fee");
  4275.             }
  4276.             if(strcmp("mp5", weapon, true, 3) == 0)
  4277.             {
  4278.                 if(GetPlayerMoney(playerid) >= price)
  4279.                 {
  4280.                     if(price < -1){
  4281.                         return SendClientMessage(playerid,RED,"Ammount can`t be -");
  4282.                     }
  4283.                     if(Inventation[giveplayerid] == -1)
  4284.                     {
  4285.                         if(InventationSent[playerid] == -1)
  4286.                         {
  4287.                             if(Induel[playerid] == 0)
  4288.                             {
  4289.                                 if(Induel[giveplayerid] == 0)
  4290.                                 {
  4291.                                     if(duelRoom1 == -1)
  4292.                                     {
  4293.                                         SetTimerEx("inventationremove", 30000, 0, "i", playerid);
  4294.                                         format(string, sizeof(string), "%s has sent you a 1 vs. 1 duel with a mp5 for $%d, /acceptduel or /declineduel", sendername, price);
  4295.                                         SendClientMessage(giveplayerid, GREEN, string);
  4296.                                         format(string, sizeof(string), "you sent %s a 1 vs. 1 duel with a mp5 for $%d", giveplayername, price);
  4297.                                         SendClientMessage(playerid, GREEN, string);
  4298.                                         InventationSent[playerid] = giveplayerid;
  4299.                                         Inventation[giveplayerid] = playerid;
  4300.                                         Inventationprice[giveplayerid] = price;
  4301.                                         duelRoom1price = price;
  4302.                                         duelRoom1 = playerid;
  4303.                                         WeaponduelRoom1 = 29;
  4304.                                         return 1;
  4305.                                     }
  4306.                                     else if(duelRoom2 == -1)
  4307.                                     {
  4308.                                         SetTimerEx("inventationremove", 30000, 0, "i", playerid);
  4309.                                         format(string, sizeof(string), "%s has sent you a 1 vs. 1 duel with a mp5 for $%d, /acceptduel or /declineduel", sendername, price);
  4310.                                         SendClientMessage(giveplayerid, GREEN, string);
  4311.                                         format(string, sizeof(string), "you sent %s a 1 vs. 1 duel with a mp5 for $%d", giveplayername, price);
  4312.                                         SendClientMessage(playerid, GREEN, string);
  4313.                                         InventationSent[playerid] = giveplayerid;
  4314.                                         Inventation[giveplayerid] = playerid;
  4315.                                         duelRoom2price = price;
  4316.                                         duelRoom2 = playerid;
  4317.                                         WeaponduelRoom2 = 29;
  4318.                                         return 1;
  4319.                                     }
  4320.                                     else if(duelRoom3 == -1)
  4321.                                     {
  4322.                                         SetTimerEx("inventationremove", 30000, 0, "i", playerid);
  4323.                                         format(string, sizeof(string), "%s has sent you a 1 vs. 1 duel with a mp5 for $%d, /acceptduel or /declineduel", sendername, price);
  4324.                                         SendClientMessage(giveplayerid, GREEN, string);
  4325.                                         format(string, sizeof(string), "you sent %s a 1 vs. 1 duel with a mp5 for $%d", giveplayername, price);
  4326.                                         SendClientMessage(playerid, GREEN, string);
  4327.                                         InventationSent[playerid] = giveplayerid;
  4328.                                         Inventation[giveplayerid] = playerid;
  4329.                                         duelRoom3price = price;
  4330.                                         duelRoom3 = playerid;
  4331.                                         WeaponduelRoom3 = 29;
  4332.                                         return 1;
  4333.                                     }
  4334.                                     else if(duelRoom4 == -1)
  4335.                                     {
  4336.                                         SetTimerEx("inventationremove", 30000, 0, "i", playerid);
  4337.                                         format(string, sizeof(string), "%s has sent you a 1 vs. 1 duel with a mp5 for $%d, /acceptduel or /declineduel", sendername, price);
  4338.                                         SendClientMessage(giveplayerid, GREEN, string);
  4339.                                         format(string, sizeof(string), "you sent %s a 1 vs. 1 duel with a mp5 for $%d", giveplayername, price);
  4340.                                         SendClientMessage(playerid, GREEN, string);
  4341.                                         InventationSent[playerid] = giveplayerid;
  4342.                                         Inventation[giveplayerid] = playerid;
  4343.                                         duelRoom4price = price;
  4344.                                         duelRoom4 = playerid;
  4345.                                         WeaponduelRoom4 = 29;
  4346.                                         return 1;
  4347.                                     }
  4348.                                     else return SendClientMessage(playerid, RED, "there are no duel rooms free, wait till a duel ends");
  4349.                                 }
  4350.                                 else return SendClientMessage(playerid, RED, "This player is already in a duel");
  4351.                             }
  4352.                             else return SendClientMessage(playerid, RED, "you are still in a duel, end it first");
  4353.                         }
  4354.                         else return SendClientMessage(playerid, RED, "You already sent an inventation, wait 30 seconds or wait till the other player declines");
  4355.                     }
  4356.                     else return SendClientMessage(playerid, RED, "This player already got an inventation");
  4357.                 }
  4358.                 else return SendClientMessage(playerid, RED, "You can't afford the duel fee");
  4359.             }
  4360.             if(strcmp("chainsaw", weapon, true, 8) == 0)
  4361.             {
  4362.                 if(GetPlayerMoney(playerid) >= price)
  4363.                 {
  4364.                     if(price < -1){
  4365.                         return SendClientMessage(playerid,RED,"Ammount can`t be -");
  4366.                     }
  4367.                     if(Inventation[giveplayerid] == -1)
  4368.                     {
  4369.                         if(InventationSent[playerid] == -1)
  4370.                         {
  4371.                             if(Induel[playerid] == 0)
  4372.                             {
  4373.                                 if(Induel[giveplayerid] == 0)
  4374.                                 {
  4375.                                     if(duelRoom1 == -1)
  4376.                                     {
  4377.                                         SetTimerEx("inventationremove", 30000, 0, "i", playerid);
  4378.                                         format(string, sizeof(string), "%s has sent you a 1 vs. 1 duel with a chainsaw for $%d, /acceptduel or /declineduel", sendername, price);
  4379.                                         SendClientMessage(giveplayerid, GREEN, string);
  4380.                                         format(string, sizeof(string), "you sent %s a 1 vs. 1 duel with a chainsaw for $%d", giveplayername, price);
  4381.                                         SendClientMessage(playerid, GREEN, string);
  4382.                                         InventationSent[playerid] = giveplayerid;
  4383.                                         Inventation[giveplayerid] = playerid;
  4384.                                         Inventationprice[giveplayerid] = price;
  4385.                                         duelRoom1price = price;
  4386.                                         duelRoom1 = playerid;
  4387.                                         WeaponduelRoom1 = 9;
  4388.                                         return 1;
  4389.                                     }
  4390.                                     else if(duelRoom2 == -1)
  4391.                                     {
  4392.                                         SetTimerEx("inventationremove", 30000, 0, "i", playerid);
  4393.                                         format(string, sizeof(string), "%s has sent you a 1 vs. 1 duel with a chainsaw for $%d, /acceptduel or /declineduel", sendername, price);
  4394.                                         SendClientMessage(giveplayerid, GREEN, string);
  4395.                                         format(string, sizeof(string), "you sent %s a 1 vs. 1 duel with a chainsaw for $%d", giveplayername, price);
  4396.                                         SendClientMessage(playerid, GREEN, string);
  4397.                                         InventationSent[playerid] = giveplayerid;
  4398.                                         Inventation[giveplayerid] = playerid;
  4399.                                         duelRoom2price = price;
  4400.                                         duelRoom2 = playerid;
  4401.                                         WeaponduelRoom2 = 9;
  4402.                                         return 1;
  4403.                                     }
  4404.                                     else if(duelRoom3 == -1)
  4405.                                     {
  4406.                                         SetTimerEx("inventationremove", 30000, 0, "i", playerid);
  4407.                                         format(string, sizeof(string), "%s has sent you a 1 vs. 1 duel with a chainsaw for $%d, /acceptduel or /declineduel", sendername, price);
  4408.                                         SendClientMessage(giveplayerid, GREEN, string);
  4409.                                         format(string, sizeof(string), "you sent %s a 1 vs. 1 duel with a chainsaw for $%d", giveplayername, price);
  4410.                                         SendClientMessage(playerid, GREEN, string);
  4411.                                         InventationSent[playerid] = giveplayerid;
  4412.                                         Inventation[giveplayerid] = playerid;
  4413.                                         duelRoom3price = price;
  4414.                                         duelRoom3 = playerid;
  4415.                                         WeaponduelRoom3 = 9;
  4416.                                         return 1;
  4417.                                     }
  4418.                                     else if(duelRoom4 == -1)
  4419.                                     {
  4420.                                         SetTimerEx("inventationremove", 30000, 0, "i", playerid);
  4421.                                         format(string, sizeof(string), "%s has sent you a 1 vs. 1 duel with a chainsaw for $%d, /acceptduel or /declineduel", sendername, price);
  4422.                                         SendClientMessage(giveplayerid, GREEN, string);
  4423.                                         format(string, sizeof(string), "you sent %s a 1 vs. 1 duel with a chainsaw for $%d", giveplayername, price);
  4424.                                         SendClientMessage(playerid, GREEN, string);
  4425.                                         InventationSent[playerid] = giveplayerid;
  4426.                                         Inventation[giveplayerid] = playerid;
  4427.                                         duelRoom4price = price;
  4428.                                         duelRoom4 = playerid;
  4429.                                         WeaponduelRoom4 = 9;
  4430.                                         return 1;
  4431.                                     }
  4432.                                     else return SendClientMessage(playerid, RED, "there are no duel rooms free, wait till a duel ends");
  4433.                                 }
  4434.                                 else return SendClientMessage(playerid, RED, "This player is already in a duel");
  4435.                             }
  4436.                             else return SendClientMessage(playerid, RED, "you are still in a duel, end it first");
  4437.                         }
  4438.                         else return SendClientMessage(playerid, RED, "You already sent an inventation, wait 30 seconds or wait till the other player declines");
  4439.                     }
  4440.                     else return SendClientMessage(playerid, RED, "This player already got an inventation");
  4441.                 }
  4442.                 else return SendClientMessage(playerid, RED, "You can't afford the duel fee");
  4443.             }
  4444.             if(strcmp("silpist", weapon, true, 7) == 0)
  4445.             {
  4446.                 if(GetPlayerMoney(playerid) >= price)
  4447.                 {
  4448.                     if(price < -1){
  4449.                         return SendClientMessage(playerid,RED,"Ammount can`t be -");
  4450.                     }
  4451.                     if(Inventation[giveplayerid] == -1)
  4452.                     {
  4453.                         if(InventationSent[playerid] == -1)
  4454.                         {
  4455.                             if(Induel[playerid] == 0)
  4456.                             {
  4457.                                 if(Induel[giveplayerid] == 0)
  4458.                                 {
  4459.                                     SetTimerEx("inventationremove", 30000, 0, "i", playerid);
  4460.                                     if(duelRoom1 == -1)
  4461.                                     {
  4462.                                         SetTimerEx("inventationremove", 30000, 0, "i", playerid);
  4463.                                         format(string, sizeof(string), "%s has sent you a 1 vs. 1 duel with a slipist for $%d, /acceptduel or /declineduel", sendername, price);
  4464.                                         SendClientMessage(giveplayerid, GREEN, string);
  4465.                                         format(string, sizeof(string), "you sent %s a 1 vs. 1 duel with a slipist for $%d", giveplayername, price);
  4466.                                         SendClientMessage(playerid, GREEN, string);
  4467.                                         InventationSent[playerid] = giveplayerid;
  4468.                                         Inventation[giveplayerid] = playerid;
  4469.                                         Inventationprice[giveplayerid] = price;
  4470.                                         duelRoom1price = price;
  4471.                                         duelRoom1 = playerid;
  4472.                                         WeaponduelRoom1 = 23;
  4473.                                         return 1;
  4474.                                     }
  4475.                                     else if(duelRoom2 == -1)
  4476.                                     {
  4477.                                         SetTimerEx("inventationremove", 30000, 0, "i", playerid);
  4478.                                         format(string, sizeof(string), "%s has sent you a 1 vs. 1 duel with a slipist for $%d, /acceptduel or /declineduel", sendername, price);
  4479.                                         SendClientMessage(giveplayerid, GREEN, string);
  4480.                                         format(string, sizeof(string), "you sent %s a 1 vs. 1 duel with a slipist for $%d", giveplayername, price);
  4481.                                         SendClientMessage(playerid, GREEN, string);
  4482.                                         InventationSent[playerid] = giveplayerid;
  4483.                                         Inventation[giveplayerid] = playerid;
  4484.                                         duelRoom2price = price;
  4485.                                         duelRoom2 = playerid;
  4486.                                         WeaponduelRoom2 = 23;
  4487.                                         return 1;
  4488.                                     }
  4489.                                     else if(duelRoom3 == -1)
  4490.                                     {
  4491.                                         SetTimerEx("inventationremove", 30000, 0, "i", playerid);
  4492.                                         format(string, sizeof(string), "%s has sent you a 1 vs. 1 duel with a slipist for $%d, /acceptduel or /declineduel", sendername, price);
  4493.                                         SendClientMessage(giveplayerid, GREEN, string);
  4494.                                         format(string, sizeof(string), "you sent %s a 1 vs. 1 duel with a slipist for $%d", giveplayername, price);
  4495.                                         SendClientMessage(playerid, GREEN, string);
  4496.                                         InventationSent[playerid] = giveplayerid;
  4497.                                         Inventation[giveplayerid] = playerid;
  4498.                                         duelRoom3price = price;
  4499.                                         duelRoom3 = playerid;
  4500.                                         WeaponduelRoom3 = 23;
  4501.                                         return 1;
  4502.                                     }
  4503.                                     else if(duelRoom4 == -1)
  4504.                                     {
  4505.                                         SetTimerEx("inventationremove", 30000, 0, "i", playerid);
  4506.                                         format(string, sizeof(string), "%s has sent you a 1 vs. 1 duel with a slipist for $%d, /acceptduel or /declineduel", sendername, price);
  4507.                                         SendClientMessage(giveplayerid, GREEN, string);
  4508.                                         format(string, sizeof(string), "you sent %s a 1 vs. 1 duel with a slipist for $%d", giveplayername, price);
  4509.                                         SendClientMessage(playerid, GREEN, string);
  4510.                                         InventationSent[playerid] = giveplayerid;
  4511.                                         Inventation[giveplayerid] = playerid;
  4512.                                         duelRoom4price = price;
  4513.                                         duelRoom4 = playerid;
  4514.                                         WeaponduelRoom4 = 23;
  4515.                                         return 1;
  4516.                                     }
  4517.                                     else return SendClientMessage(playerid, RED, "there are no duel rooms free, wait till a duel ends");
  4518.                                 }
  4519.                                 else return SendClientMessage(playerid, RED, "This player is already in a duel");
  4520.                             }
  4521.                             else return SendClientMessage(playerid, RED, "you are still in a duel, end it first");
  4522.                         }
  4523.                         else return SendClientMessage(playerid, RED, "You already sent an inventation, wait 30 seconds or wait till the other player declines");
  4524.                     }
  4525.                     else return SendClientMessage(playerid, RED, "This player already got an inventation");
  4526.                 }
  4527.                 else return SendClientMessage(playerid, RED, "You can't afford the duel fee");
  4528.             }
  4529.             if(strcmp("combatsg", weapon, true, 8) == 0)
  4530.             {
  4531.                 if(GetPlayerMoney(playerid) >= price)
  4532.                 {
  4533.                     if(price < -1){
  4534.                         return SendClientMessage(playerid,RED,"Ammount can`t be -");
  4535.                     }
  4536.                     if(Inventation[giveplayerid] == -1)
  4537.                     {
  4538.                         if(InventationSent[playerid] == -1)
  4539.                         {
  4540.                             if(Induel[playerid] == 0)
  4541.                             {
  4542.                                 if(Induel[giveplayerid] == 0)
  4543.                                 {
  4544.                                     if(duelRoom1 == -1)
  4545.                                     {
  4546.                                         SetTimerEx("inventationremove", 30000, 0, "i", playerid);
  4547.                                         format(string, sizeof(string), "%s has sent you a 1 vs. 1 duel with a combatsg for $%d, /acceptduel or /declineduel", sendername, price);
  4548.                                         SendClientMessage(giveplayerid, GREEN, string);
  4549.                                         format(string, sizeof(string), "you sent %s a 1 vs. 1 duel with a combatsg for $%d", giveplayername, price);
  4550.                                         SendClientMessage(playerid, GREEN, string);
  4551.                                         InventationSent[playerid] = giveplayerid;
  4552.                                         Inventation[giveplayerid] = playerid;
  4553.                                         Inventationprice[giveplayerid] = price;
  4554.                                         duelRoom1price = price;
  4555.                                         duelRoom1 = playerid;
  4556.                                         WeaponduelRoom1 = 27;
  4557.                                         return 1;
  4558.                                     }
  4559.                                     else if(duelRoom2 == -1)
  4560.                                     {
  4561.                                         SetTimerEx("inventationremove", 30000, 0, "i", playerid);
  4562.                                         format(string, sizeof(string), "%s has sent you a 1 vs. 1 duel with a combatsg for $%d, /acceptduel or /declineduel", sendername, price);
  4563.                                         SendClientMessage(giveplayerid, GREEN, string);
  4564.                                         format(string, sizeof(string), "you sent %s a 1 vs. 1 duel with a combatsg for $%d", giveplayername, price);
  4565.                                         SendClientMessage(playerid, GREEN, string);
  4566.                                         InventationSent[playerid] = giveplayerid;
  4567.                                         Inventation[giveplayerid] = playerid;
  4568.                                         duelRoom2price = price;
  4569.                                         duelRoom2 = playerid;
  4570.                                         WeaponduelRoom2 = 27;
  4571.                                         return 1;
  4572.                                     }
  4573.                                     else if(duelRoom3 == -1)
  4574.                                     {
  4575.                                         SetTimerEx("inventationremove", 30000, 0, "i", playerid);
  4576.                                         format(string, sizeof(string), "%s has sent you a 1 vs. 1 duel with a combatsg for $%d, /acceptduel or /declineduel", sendername, price);
  4577.                                         SendClientMessage(giveplayerid, GREEN, string);
  4578.                                         format(string, sizeof(string), "you sent %s a 1 vs. 1 duel with a combatsg for $%d", giveplayername, price);
  4579.                                         SendClientMessage(playerid, GREEN, string);
  4580.                                         InventationSent[playerid] = giveplayerid;
  4581.                                         Inventation[giveplayerid] = playerid;
  4582.                                         duelRoom3price = price;
  4583.                                         duelRoom3 = playerid;
  4584.                                         WeaponduelRoom3 = 27;
  4585.                                         return 1;
  4586.                                     }
  4587.                                     else if(duelRoom4 == -1)
  4588.                                     {
  4589.                                         SetTimerEx("inventationremove", 30000, 0, "i", playerid);
  4590.                                         format(string, sizeof(string), "%s has sent you a 1 vs. 1 duel with a combatsg for $%d, /acceptduel or /declineduel", sendername, price);
  4591.                                         SendClientMessage(giveplayerid, GREEN, string);
  4592.                                         format(string, sizeof(string), "you sent %s a 1 vs. 1 duel with a combatsg for $%d", giveplayername, price);
  4593.                                         SendClientMessage(playerid, GREEN, string);
  4594.                                         InventationSent[playerid] = giveplayerid;
  4595.                                         Inventation[giveplayerid] = playerid;
  4596.                                         duelRoom4price = price;
  4597.                                         duelRoom4 = playerid;
  4598.                                         WeaponduelRoom4 = 27;
  4599.                                         return 1;
  4600.                                     }
  4601.                                     else return SendClientMessage(playerid, RED, "there are no duel rooms free, wait till a duel ends");
  4602.                                 }
  4603.                                 else return SendClientMessage(playerid, RED, "This player is already in a duel");
  4604.                             }
  4605.                             else return SendClientMessage(playerid, RED, "you are still in a duel, end it first");
  4606.                         }
  4607.                         else return SendClientMessage(playerid, RED, "You already sent an inventation, wait 30 seconds or wait till the other player declines");
  4608.                     }
  4609.                     else return SendClientMessage(playerid, RED, "This player already got an inventation");
  4610.                 }
  4611.                 else return SendClientMessage(playerid, RED, "You can't afford the duel fee");
  4612.             }
  4613.             if(strcmp("shotgun", weapon, true, 7) == 0)
  4614.             {
  4615.                 if(GetPlayerMoney(playerid) >= price)
  4616.                 {
  4617.                     if(price < -1){
  4618.                         return SendClientMessage(playerid,RED,"Ammount can`t be -");
  4619.                     }
  4620.                     if(Inventation[giveplayerid] == -1)
  4621.                     {
  4622.                         if(InventationSent[playerid] == -1)
  4623.                         {
  4624.                             if(Induel[playerid] == 0)
  4625.                             {
  4626.                                 if(Induel[giveplayerid] == 0)
  4627.                                 {
  4628.                                     if(duelRoom1 == -1)
  4629.                                     {
  4630.                                         SetTimerEx("inventationremove", 30000, 0, "i", playerid);
  4631.                                         format(string, sizeof(string), "%s has sent you a 1 vs. 1 duel with a shotgun for $%d, /acceptduel or /declineduel", sendername, price);
  4632.                                         SendClientMessage(giveplayerid, GREEN, string);
  4633.                                         format(string, sizeof(string), "you sent %s a 1 vs. 1 duel with a shotgun for $%d", giveplayername, price);
  4634.                                         SendClientMessage(playerid, GREEN, string);
  4635.                                         InventationSent[playerid] = giveplayerid;
  4636.                                         Inventation[giveplayerid] = playerid;
  4637.                                         Inventationprice[giveplayerid] = price;
  4638.                                         duelRoom1price = price;
  4639.                                         duelRoom1 = playerid;
  4640.                                         WeaponduelRoom1 = 25;
  4641.                                         return 1;
  4642.                                     }
  4643.                                     else if(duelRoom2 == -1)
  4644.                                     {
  4645.                                         SetTimerEx("inventationremove", 30000, 0, "i", playerid);
  4646.                                         format(string, sizeof(string), "%s has sent you a 1 vs. 1 duel with a shotgun for $%d, /acceptduel or /declineduel", sendername, price);
  4647.                                         SendClientMessage(giveplayerid, GREEN, string);
  4648.                                         format(string, sizeof(string), "you sent %s a 1 vs. 1 duel with a shotgun for $%d", giveplayername, price);
  4649.                                         SendClientMessage(playerid, GREEN, string);
  4650.                                         InventationSent[playerid] = giveplayerid;
  4651.                                         Inventation[giveplayerid] = playerid;
  4652.                                         duelRoom2price = price;
  4653.                                         duelRoom2 = playerid;
  4654.                                         WeaponduelRoom2 = 25;
  4655.                                         return 1;
  4656.                                     }
  4657.                                     else if(duelRoom3 == -1)
  4658.                                     {
  4659.                                         SetTimerEx("inventationremove", 30000, 0, "i", playerid);
  4660.                                         format(string, sizeof(string), "%s has sent you a 1 vs. 1 duel with a shotgun for $%d, /acceptduel or /declineduel", sendername, price);
  4661.                                         SendClientMessage(giveplayerid, GREEN, string);
  4662.                                         format(string, sizeof(string), "you sent %s a 1 vs. 1 duel with a shotgun for $%d", giveplayername, price);
  4663.                                         SendClientMessage(playerid, GREEN, string);
  4664.                                         InventationSent[playerid] = giveplayerid;
  4665.                                         Inventation[giveplayerid] = playerid;
  4666.                                         duelRoom3price = price;
  4667.                                         duelRoom3 = playerid;
  4668.                                         WeaponduelRoom3 = 25;
  4669.                                         return 1;
  4670.                                     }
  4671.                                     else if(duelRoom4 == -1)
  4672.                                     {
  4673.                                         SetTimerEx("inventationremove", 30000, 0, "i", playerid);
  4674.                                         format(string, sizeof(string), "%s has sent you a 1 vs. 1 duel with a shotgun for $%d, /acceptduel or /declineduel", sendername, price);
  4675.                                         SendClientMessage(giveplayerid, GREEN, string);
  4676.                                         format(string, sizeof(string), "you sent %s a 1 vs. 1 duel with a shotgun for $%d", giveplayername, price);
  4677.                                         SendClientMessage(playerid, GREEN, string);
  4678.                                         InventationSent[playerid] = giveplayerid;
  4679.                                         Inventation[giveplayerid] = playerid;
  4680.                                         duelRoom4price = price;
  4681.                                         duelRoom4 = playerid;
  4682.                                         WeaponduelRoom4 = 25;
  4683.                                         return 1;
  4684.                                     }
  4685.                                     else return SendClientMessage(playerid, RED, "there are no duel rooms free, wait till a duel ends");
  4686.                                 }
  4687.                                 else return SendClientMessage(playerid, RED, "This player is already in a duel");
  4688.                             }
  4689.                             else return SendClientMessage(playerid, RED, "you are still in a duel, end it first");
  4690.                         }
  4691.                         else return SendClientMessage(playerid, RED, "You already sent an inventation, wait 30 seconds or wait till the other player declines");
  4692.                     }
  4693.                     else return SendClientMessage(playerid, RED, "This player already got an inventation");
  4694.                 }
  4695.                 else return SendClientMessage(playerid, RED, "You can't afford the duel fee");
  4696.             }
  4697.             else return SendClientMessage(playerid, COLOR_YELLOW, "Right Usage: /duel [playerid] [weapon] [amount]");
  4698.         }
  4699.         else return SendClientMessage(playerid, RED, "You cant duel yourself");
  4700.     }
  4701. }
  4702.  
  4703. dcmd_acceptduel(playerid, params[])
  4704. {
  4705.     #pragma unused params
  4706.     if(Inventation[playerid] >= 0)
  4707.     {
  4708.         if(GetPlayerMoney(playerid) >= Inventationprice[playerid])
  4709.         {
  4710.             if(duelRoom1 == Inventation[playerid])
  4711.             {
  4712.                 SetPlayerTeam(playerid, 1);
  4713.                 SetPlayerTeam(Inventation[playerid], 2);
  4714.                 Induel[Inventation[playerid]] = 1;
  4715.                 Induel[playerid] = 1;
  4716.                 ResetPlayerWeapons(playerid);
  4717.                 ResetPlayerWeapons(Inventation[playerid]);
  4718.                 GivePlayerWeapon(playerid, WeaponduelRoom1, 500);
  4719.                 GivePlayerWeapon(Inventation[playerid], WeaponduelRoom1, 500);
  4720.                 SetPlayerPos(playerid, 1715.5034,-2865.0405,6.5554);
  4721.                 SetPlayerFacingAngle(playerid,317.1064);
  4722.                 SetPlayerPos(Inventation[playerid], 1723.2203,-2856.0315,6.5554);
  4723.                 SetPlayerFacingAngle(Inventation[playerid],140.0715);
  4724.                 SetPlayerHealth(playerid, 100);
  4725.                 SetPlayerArmour(playerid, 100);
  4726.                 SetPlayerHealth(Inventation[playerid], 100);
  4727.                 SetPlayerArmour(Inventation[playerid], 100);
  4728.                 GivePlayerMoney(playerid, -duelRoom1price);
  4729.                 GivePlayerMoney(Inventation[playerid], -duelRoom1price);
  4730.                 SendClientMessage(playerid, GREEN, "LET THE BATTLE BEGIN!");
  4731.                 SendClientMessage(Inventation[playerid], GREEN, "LET THE BATTLE BEGIN!");
  4732.                 TogglePlayerControllable(playerid, 0);
  4733.                 TogglePlayerControllable(Inventation[playerid], 0);
  4734.                 CountDown(playerid, 3);
  4735.                 CountDown(Inventation[playerid], 3);
  4736.             }
  4737.             if(duelRoom2 == Inventation[playerid])
  4738.             {
  4739.                 SetPlayerTeam(playerid, 1);
  4740.                 SetPlayerTeam(Inventation[playerid], 2);
  4741.                 Induel[Inventation[playerid]] = 1;
  4742.                 Induel[playerid] = 1;
  4743.                 ResetPlayerWeapons(playerid);
  4744.                 ResetPlayerWeapons(Inventation[playerid]);
  4745.                 GivePlayerWeapon(playerid, WeaponduelRoom2, 500);
  4746.                 GivePlayerWeapon(Inventation[playerid], WeaponduelRoom2, 500);
  4747.                 SetPlayerPos(playerid, 1747.7878,-2864.6843,6.5554);
  4748.                 SetPlayerFacingAngle(playerid,47.0340);
  4749.                 SetPlayerPos(Inventation[playerid], 1740.1650,-2858.3879,6.5554);
  4750.                 SetPlayerFacingAngle(Inventation[playerid],228.1190);
  4751.                 SetPlayerHealth(playerid, 100);
  4752.                 SetPlayerArmour(playerid, 100);
  4753.                 SetPlayerHealth(Inventation[playerid], 100);
  4754.                 SetPlayerArmour(Inventation[playerid], 100);
  4755.                 GivePlayerMoney(playerid, -duelRoom2price);
  4756.                 GivePlayerMoney(Inventation[playerid], -duelRoom2price);
  4757.                 SendClientMessage(playerid, GREEN, "LET THE BATTLE BEGIN!");
  4758.                 SendClientMessage(Inventation[playerid], GREEN, "LET THE BATTLE BEGIN!");
  4759.                 TogglePlayerControllable(playerid, 0);
  4760.                 TogglePlayerControllable(Inventation[playerid], 0);
  4761.                 CountDown(playerid, 3);
  4762.                 CountDown(Inventation[playerid], 3);
  4763.                 return 1;
  4764.             }
  4765.             if(duelRoom3 == Inventation[playerid])
  4766.             {
  4767.                 SetPlayerTeam(playerid, 1);
  4768.                 SetPlayerTeam(Inventation[playerid], 2);
  4769.                 Induel[Inventation[playerid]] = 1;
  4770.                 Induel[playerid] = 1;
  4771.                 ResetPlayerWeapons(playerid);
  4772.                 ResetPlayerWeapons(Inventation[playerid]);
  4773.                 GivePlayerWeapon(playerid, WeaponduelRoom3, 500);
  4774.                 GivePlayerWeapon(Inventation[playerid], WeaponduelRoom3, 500);
  4775.                 SetPlayerPos(playerid, 1748.3942,-2832.6250,6.5554);
  4776.                 SetPlayerFacingAngle(playerid,141.3482);
  4777.                 SetPlayerPos(Inventation[playerid], 1741.1982,-2839.9243,6.5554);
  4778.                 SetPlayerFacingAngle(Inventation[playerid],315.8531);
  4779.                 SetPlayerHealth(playerid, 100);
  4780.                 SetPlayerArmour(playerid, 100);
  4781.                 SetPlayerHealth(Inventation[playerid], 100);
  4782.                 SetPlayerArmour(Inventation[playerid], 100);
  4783.                 GivePlayerMoney(playerid, -duelRoom3price);
  4784.                 GivePlayerMoney(Inventation[playerid], -duelRoom3price);
  4785.                 SendClientMessage(playerid, GREEN, "LET THE BATTLE BEGIN!");
  4786.                 SendClientMessage(Inventation[playerid], GREEN, "LET THE BATTLE BEGIN!");
  4787.                 TogglePlayerControllable(playerid, 0);
  4788.                 TogglePlayerControllable(Inventation[playerid], 0);
  4789.                 CountDown(playerid, 3);
  4790.                 CountDown(Inventation[playerid], 3);
  4791.                 return 1;
  4792.             }
  4793.             if(duelRoom4 == Inventation[playerid])
  4794.             {
  4795.                 SetPlayerTeam(playerid, 1);
  4796.                 SetPlayerTeam(Inventation[playerid], 2);
  4797.                 Induel[Inventation[playerid]] = 1;
  4798.                 Induel[playerid] = 1;
  4799.                 ResetPlayerWeapons(playerid);
  4800.                 ResetPlayerWeapons(Inventation[playerid]);
  4801.                 GivePlayerWeapon(playerid, WeaponduelRoom4, 500);
  4802.                 GivePlayerWeapon(Inventation[playerid], WeaponduelRoom4, 500);
  4803.                 SetPlayerPos(playerid, 1716.7450,-2832.7969,6.5554);
  4804.                 SetPlayerFacingAngle(playerid,229.7091);
  4805.                 SetPlayerPos(Inventation[playerid], 1722.3630,-2840.2034,6.5554);
  4806.                 SetPlayerFacingAngle(Inventation[playerid],45.7807);
  4807.                 SetPlayerHealth(playerid, 100);
  4808.                 SetPlayerArmour(playerid, 100);
  4809.                 SetPlayerHealth(Inventation[playerid], 100);
  4810.                 SetPlayerArmour(Inventation[playerid], 100);
  4811.                 GivePlayerMoney(playerid, -duelRoom4price);
  4812.                 GivePlayerMoney(Inventation[playerid], -duelRoom4price);
  4813.                 SendClientMessage(playerid, GREEN, "LET THE BATTLE BEGIN!");
  4814.                 SendClientMessage(Inventation[playerid], GREEN, "LET THE BATTLE BEGIN!");
  4815.                 TogglePlayerControllable(playerid, 0);
  4816.                 TogglePlayerControllable(Inventation[playerid], 0);
  4817.                 CountDown(playerid, 3);
  4818.                 CountDown(Inventation[playerid], 3);
  4819.                 return 1;
  4820.             }
  4821.             return 1;
  4822.         }
  4823.         else return SendClientMessage(playerid, RED, "You dont have enough money to accept the duel use /declineduel please.");
  4824.     }
  4825.     else return SendClientMessage(playerid, RED, "You didnt receive a duel inventation");
  4826. }
  4827.  
  4828. dcmd_declineduel(playerid, params[])
  4829. {
  4830.     #pragma unused params
  4831.     SendClientMessage(playerid, RED, "You decline the duel inventation");
  4832.     SendClientMessage(Inventation[playerid], RED, "your duel inventation got declined.");
  4833.     Inventation[InventationSent[playerid]] = -1;
  4834.     InventationSent[playerid] = -1;
  4835.     if(duelRoom1 == playerid)
  4836.     {
  4837.         duelRoom1 = -1;
  4838.     }
  4839.     if(duelRoom2 == playerid)
  4840.     {
  4841.         duelRoom2 = -1;
  4842.     }
  4843.     if(duelRoom3 == playerid)
  4844.     {
  4845.         duelRoom3 = -1;
  4846.     }
  4847.     if(duelRoom3 == playerid)
  4848.     {
  4849.         duelRoom4 = -1;
  4850.     }
  4851.     return 1;
  4852. }
  4853. dcmd_givemoney(playerid, params[])
  4854. {
  4855.     new pID,cash;
  4856.     if(sscanf(params,"ud",pID,cash)){
  4857.         return SendClientMessage(playerid,grau,"USAGE: /givemoney [playerid] [amount]");
  4858.     }
  4859.     if(!IsPlayerConnected(pID)){
  4860.         return SendClientMessage(playerid,grau,"Nobody is connected with this ID!");
  4861.     }
  4862.     if(GetPlayerMoney(playerid) < cash) return SendClientMessage(playerid,COLOR_RED,"You have not enough money!");
  4863.     if(playerid == pID) return SendClientMessage(playerid,COLOR_RED,"You cant give money to yourself!");
  4864.     new string[128],string2[128],aname[MAX_PLAYER_NAME],name[MAX_PLAYER_NAME];
  4865.     GivePlayerMoney(pID,cash);
  4866.     GivePlayerMoney(playerid,-cash);
  4867.     GetPlayerName(playerid,aname,sizeof(aname));
  4868.     GetPlayerName(pID,name,sizeof(name));
  4869.     format(string,sizeof(string),"You have given %s %d $",name,cash);
  4870.     format(string2,sizeof(string2),"Player %s has given you %d $",aname,cash);
  4871.     SendClientMessage(playerid,COLOR_YELLOW,string);
  4872.     SendClientMessage(pID,COLOR_LIGHTBLUE,string2);
  4873.     return 1;
  4874. }
  4875. //------------------------------------------------------------------------------
  4876. public DrugTimer()
  4877. {
  4878.     SendClientMessageToAll(COLOR_RED,"You can rob drugs now /druginfo ");
  4879.     DrugsStolen = 0;
  4880.     return 1;
  4881. }
  4882. public EnableAtack()
  4883. {
  4884.     SendClientMessageToAll(COLOR_ORANGE,"|______MAFIA-WAR-NEWS______|");
  4885.     SendClientMessageToAll(COLOR_ORANGE,"You can atack Gangzones now");
  4886.     EnableAtack1 = 0;
  4887.     KillTimer(Enable);
  4888.     return 1;
  4889. }
  4890. //DM STOCKS=====================================================================
  4891. stock SniperDm(playerid)
  4892. {
  4893.                 new sniper = random(8);
  4894.                 switch(sniper)
  4895.                     {
  4896.                     case 0: SetPlayerPos(playerid,2682.5110,2783.8494,61.7891);
  4897.                     case 1: SetPlayerPos(playerid,2614.2383,2728.3306,36.5386);
  4898.                     case 2: SetPlayerPos(playerid,2575.7756,2840.6538,19.9922);
  4899.                     case 3: SetPlayerPos(playerid,2627.6262,2809.0125,36.3222);
  4900.                     case 4: SetPlayerPos(playerid,2630.0256,2829.7188,64.3359);
  4901.                     case 5: SetPlayerPos(playerid,2580.8792,2714.9214,28.1953);
  4902.                     case 6: SetPlayerPos(playerid,2576.3464,2826.2939,10.8203);
  4903.                     case 7: SetPlayerPos(playerid,2618.8142,2707.7351,25.8222);
  4904.                     }
  4905.                 new name[MAX_PLAYER_NAME],string[128];
  4906.                 GetPlayerName(playerid,name,sizeof(name));
  4907.                 SendClientMessage(playerid,COLOR_WHITE,"/leave to leave the Arena.Feel free in DM Arena ,you can kill your own Team-Members");
  4908.                 format(string,sizeof(string)," %s has been teleported to Sniper-DM  type /dm to join him",name);
  4909.                 SendClientMessageToAll(COLOR_LIGHTBLUE,string);
  4910.                 ResetPlayerWeapons(playerid);
  4911.                 GivePlayerWeapon(playerid,34,777);
  4912.                 GivePlayerWeapon(playerid,46,1);
  4913.                 SetPlayerHealth(playerid,100);
  4914.                 SetPlayerArmour(playerid,100);
  4915.                 IsDm[playerid] = 1;
  4916.                 return 1;
  4917. }
  4918. stock DeagleDm(playerid)
  4919. {
  4920.                 new deagle = random(10);
  4921.                 switch(deagle)
  4922.                     {
  4923.                     case 0: SetPlayerPos(playerid,-1356.2256,2497.0430,87.6755);
  4924.                     case 1: SetPlayerPos(playerid,-1338.0901,2521.8582,87.0469);
  4925.                     case 2: SetPlayerPos(playerid,-1319.9596,2546.1216,87.4976);
  4926.                     case 3: SetPlayerPos(playerid,-1275.1669,2548.0293,87.2330);
  4927.                     case 4: SetPlayerPos(playerid,-1280.8994,2508.5693,87.0355);
  4928.                     case 5: SetPlayerPos(playerid,-1280.2076,2470.8438,87.5280);
  4929.                     case 6: SetPlayerPos(playerid,-1318.3882,2486.6592,87.0469);
  4930.                     case 7: SetPlayerPos(playerid,-1345.1329,2458.4866,87.1831);
  4931.                     case 8: SetPlayerPos(playerid,-1335.5486,2506.2288,87.0469);
  4932.                     case 9: SetPlayerPos(playerid,-1312.5459,2526.7815,87.5624);
  4933.                     }
  4934.                 new name[MAX_PLAYER_NAME],string[128];
  4935.                 GetPlayerName(playerid,name,sizeof(name));
  4936.                 SendClientMessage(playerid,COLOR_WHITE,"/leave to leave the Arena.Feel free in DM Arena ,you can kill your own Team-Members");
  4937.                 format(string,sizeof(string)," %s has been teleported to Deagle-DM  type /dm to join him",name);
  4938.                 SendClientMessageToAll(COLOR_LIGHTBLUE,string);
  4939.                 ResetPlayerWeapons(playerid);
  4940.                 SetPlayerHealth(playerid,100);
  4941.                 SetPlayerArmour(playerid,100);
  4942.                 GivePlayerWeapon(playerid,24,777);
  4943.                 IsDm[playerid] = 2;
  4944.                 return 1;
  4945. }
  4946. stock GrenadeDm(playerid)
  4947. {
  4948.                 new grenade = random(8);
  4949.                 switch(grenade)
  4950.                     {
  4951.                     case 0: SetPlayerPos(playerid,-2494.2400,2512.1038,18.4071);
  4952.                     case 1: SetPlayerPos(playerid,-2454.8713,2499.4910,15.7657);
  4953.                     case 2: SetPlayerPos(playerid,-2397.9727,2499.2690,11.6562);
  4954.                     case 3: SetPlayerPos(playerid,-2397.3997,2476.0596,10.1992);
  4955.                     case 4: SetPlayerPos(playerid,-2436.9753,2476.8511,13.7891);
  4956.                     case 5: SetPlayerPos(playerid,-2484.4177,2476.6230,18.0284);
  4957.                     case 6: SetPlayerPos(playerid,-2461.5310,2513.2615,18.2554);
  4958.                     case 7: SetPlayerPos(playerid,-2449.5845,2510.7532,18.2554);
  4959.                     }
  4960.                 new name[MAX_PLAYER_NAME],string[128];
  4961.                 GetPlayerName(playerid,name,sizeof(name));
  4962.                 SendClientMessage(playerid,COLOR_WHITE,"/leave to leave the Arena.Feel free in DM Arena ,you can kill your own Team-Members");
  4963.                 format(string,sizeof(string)," %s has been teleported to Grenade-DM  type /dm to join him",name);
  4964.                 SendClientMessageToAll(COLOR_LIGHTBLUE,string);
  4965.                 ResetPlayerWeapons(playerid);
  4966.                 SetPlayerHealth(playerid,100);
  4967.                 SetPlayerArmour(playerid,100);
  4968.                 GivePlayerWeapon(playerid,16,777);
  4969.                 IsDm[playerid] = 3;
  4970.                 return 1;
  4971. }
  4972. stock AllinDm(playerid)
  4973. {
  4974.                 new allin = random(10);
  4975.                 switch(allin)
  4976.                     {
  4977.                     case 0: SetPlayerPos(playerid,283.9653,1477.9188,10.5859);
  4978.                     case 1: SetPlayerPos(playerid,279.5573,1343.6293,10.5859);
  4979.                     case 2: SetPlayerPos(playerid,115.5945,1343.6865,10.5859);
  4980.                     case 3: SetPlayerPos(playerid,113.7964,1482.5033,10.6296);
  4981.                     case 4: SetPlayerPos(playerid,170.3064,1414.4402,10.5859);
  4982.                     case 5: SetPlayerPos(playerid,217.4453,1453.3802,10.5859);
  4983.                     case 6: SetPlayerPos(playerid,215.3884,1385.6682,10.5859);
  4984.                     case 7: SetPlayerPos(playerid,154.7420,1376.5007,10.5859);
  4985.                     case 8: SetPlayerPos(playerid,151.3914,1450.0488,10.5912);
  4986.                     case 9: SetPlayerPos(playerid,247.9790,1410.0133,23.3703);
  4987.                     }
  4988.                 new name[MAX_PLAYER_NAME],string[128];
  4989.                 GetPlayerName(playerid,name,sizeof(name));
  4990.                 SendClientMessage(playerid,COLOR_WHITE,"/leave to leave the Arena.Feel free in DM Arena ,you can kill your own Team-Members");
  4991.                 format(string,sizeof(string)," %s has been teleported to All Inclusive-DM  type /dm to join him",name);
  4992.                 SendClientMessageToAll(COLOR_LIGHTBLUE,string);
  4993.                 ResetPlayerWeapons(playerid);
  4994.                 SetPlayerHealth(playerid,100);
  4995.                 SetPlayerArmour(playerid,100);
  4996.                 GivePlayerWeapon(playerid,24,777);
  4997.                 GivePlayerWeapon(playerid,29,777);
  4998.                 GivePlayerWeapon(playerid,34,777);
  4999.                 GivePlayerWeapon(playerid,31,777);
  5000.                 IsDm[playerid] = 4;
  5001.                 return 1;
  5002. }
  5003. stock StreetfightDm(playerid)
  5004. {
  5005.                 new Streetfight = random(8);
  5006.                 switch(Streetfight)
  5007.                     {
  5008.                     case 0: SetPlayerPos(playerid,2491.2002,2396.9971,10.8203);
  5009.                     case 1: SetPlayerPos(playerid,2513.8740,2353.3318,10.8203);
  5010.                     case 2: SetPlayerPos(playerid,2516.3733,2400.8567,10.8203);
  5011.                     case 3: SetPlayerPos(playerid,2477.5942,2382.7888,7.9531);
  5012.                     case 4: SetPlayerPos(playerid,2484.5007,2357.4360,4.2109);
  5013.                     case 5: SetPlayerPos(playerid,2540.8926,2375.5400,4.2109);
  5014.                     case 6: SetPlayerPos(playerid,2491.0117,2396.4392,4.2109);
  5015.                     case 7: SetPlayerPos(playerid,2522.4294,2377.6006,4.2109);
  5016.                     }
  5017.                 new name[MAX_PLAYER_NAME],string[128];
  5018.                 GetPlayerName(playerid,name,sizeof(name));
  5019.                 SendClientMessage(playerid,COLOR_WHITE,"Type /fstyle to choose the fighting style,/leave to leave the Arena.Feel free in DM Arena ,you can kill your own Team-Members");
  5020.                 format(string,sizeof(string)," %s has been teleported to StreetFight-DM  type /dm to join him",name);
  5021.                 SendClientMessageToAll(COLOR_LIGHTBLUE,string);
  5022.                 ResetPlayerWeapons(playerid);
  5023.                 SetPlayerArmour(playerid,0);
  5024.                 SetPlayerHealth(playerid,100);
  5025.                 IsDm[playerid] = 5;
  5026.                 return 1;
  5027. }
  5028. stock TacticDm(playerid)
  5029. {
  5030.                 new tactic = random(5);
  5031.                 switch(tactic)
  5032.                     {
  5033.                     case 0: SetPlayerPos(playerid,-395.0324,1250.5519,6.8073);
  5034.                     case 1: SetPlayerPos(playerid,-402.6543,1299.0596,10.4422);
  5035.                     case 2: SetPlayerPos(playerid,-414.3020,1349.9525,12.9641);
  5036.                     case 3: SetPlayerPos(playerid,-424.7974,1387.2543,14.6024);
  5037.                     case 4: SetPlayerPos(playerid,-439.7584,1435.5499,20.5175);
  5038.                     }
  5039.                 new name[MAX_PLAYER_NAME],string[128];
  5040.                 GetPlayerName(playerid,name,sizeof(name));
  5041.                 SendClientMessage(playerid,COLOR_WHITE,"/leave to leave the Arena.Feel free in DM Arena ,you can kill your own Team-Members");
  5042.                 format(string,sizeof(string)," %s has been teleported to Tactic-DM  type /dm to join him",name);
  5043.                 SendClientMessageToAll(COLOR_LIGHTBLUE,string);
  5044.                 ResetPlayerWeapons(playerid);
  5045.                 SetPlayerArmour(playerid,100);
  5046.                 SetPlayerHealth(playerid,100);
  5047.                 GivePlayerWeapon(playerid,29,7777);
  5048.                 IsDm[playerid] = 6;
  5049.                 return 1;
  5050. }
  5051. //ZONE STOCKES==================================================================
  5052. stock ZoneAtackLcn(playerid)
  5053. {
  5054.                 new name[MAX_PLAYER_NAME],string[128];
  5055.                 GetPlayerName(playerid,name,sizeof(name));
  5056.                 if(Gang[playerid]==TEAM_LCN) return SendClientMessage(playerid,COLOR_RED,"You can`t attack a friendly Zone!");
  5057.                 SendClientMessageToAll(COLOR_ORANGE,"|______MAFIA-WAR-NEWS______|");
  5058.                 SendClientMessageToAll(COLOR_ORANGE," ");
  5059.                 format(string, sizeof(string),"%s has started a MafiaWar against LaCosaNostra",name);
  5060.                 SendClientMessageToAll(COLOR_ORANGE,string);
  5061.                 SendClientMessage(playerid,COLOR_BLUE,"MESSAGE: You have started a Mafia-War!You must be in this zone for 4 Minutes");
  5062.                 SendClientMessage(playerid,COLOR_BLUE,"MESSAGE: If you die in the zone your team will loose the Mafia war");
  5063.                 SendLcnMessage(COLOR_RED,"TEAMMESSAGE: One of our Zones is under attack, defend the FlashingZone!");
  5064.                 SendClientMessageToAll(COLOR_ORANGE," ");
  5065.                 SendClientMessageToAll(COLOR_ORANGE,"|______MAFIA-WAR-NEWS______|");
  5066.                 ZoneTimer1 = SetTimer("ZoneAtack",2000,1);
  5067.                 PlayerAtacker[playerid] = 1;
  5068.                 return 1;
  5069. }
  5070. stock ZoneAtackRus(playerid)
  5071. {
  5072.                 new name[MAX_PLAYER_NAME],string[128];
  5073.                 GetPlayerName(playerid,name,sizeof(name));
  5074.                 if(Gang[playerid]==TEAM_RUS) return SendClientMessage(playerid,COLOR_RED,"You can`t attack a friendly Zone!");
  5075.                 SendClientMessageToAll(COLOR_ORANGE,"|______MAFIA-WAR-NEWS______|");
  5076.                 SendClientMessageToAll(COLOR_ORANGE," ");
  5077.                 format(string, sizeof(string),"%s has started a MafiaWar against Russian Mafia",name);
  5078.                 SendClientMessageToAll(COLOR_ORANGE,string);
  5079.                 SendClientMessage(playerid,COLOR_BLUE,"MESSAGE: You have started a Mafia-War!You must be in this zone for 4 Minutes");
  5080.                 SendClientMessage(playerid,COLOR_BLUE,"MESSAGE: If you die in the zone your team will loose the Mafia war");
  5081.                 SendRusMessage(COLOR_RED,"TEAMMESSAGE: One of our Zones is under attack, defend the FlashingZone!");
  5082.                 SendClientMessageToAll(COLOR_ORANGE," ");
  5083.                 SendClientMessageToAll(COLOR_ORANGE,"|______MAFIA-WAR-NEWS______|");
  5084.                 ZoneTimer1 = SetTimer("ZoneAtack",2000,1);
  5085.                 PlayerAtacker[playerid] = 1;
  5086.                 return 1;
  5087. }
  5088. stock ZoneAtackTriad(playerid)
  5089. {
  5090.                 new name[MAX_PLAYER_NAME],string[128];
  5091.                 GetPlayerName(playerid,name,sizeof(name));
  5092.                 if(Gang[playerid]==TEAM_TRIADS) return SendClientMessage(playerid,COLOR_RED,"You can`t attack a friendly Zone!");
  5093.                 SendClientMessageToAll(COLOR_ORANGE,"|______MAFIA-WAR-NEWS______|");
  5094.                 SendClientMessageToAll(COLOR_ORANGE," ");
  5095.                 format(string, sizeof(string),"%s has started a MafiaWar against Triads",name);
  5096.                 SendClientMessageToAll(COLOR_ORANGE,string);
  5097.                 SendClientMessage(playerid,COLOR_BLUE,"MESSAGE: You have started a Mafia-War!You must be in this zone for 4 Minutes");
  5098.                 SendClientMessage(playerid,COLOR_BLUE,"MESSAGE: If you die in the zone your team will loose the Mafia war");
  5099.                 SendTriadMessage(COLOR_RED,"TEAMMESSAGE: One of our Zones is under attack, defend the FlashingZone!");
  5100.                 SendClientMessageToAll(COLOR_ORANGE," ");
  5101.                 SendClientMessageToAll(COLOR_ORANGE,"|______MAFIA-WAR-NEWS______|");
  5102.                 ZoneTimer1 = SetTimer("ZoneAtack",2000,1);
  5103.                 PlayerAtacker[playerid] = 1;
  5104.                 return 1;
  5105. }
  5106. stock ZoneAtackYugo(playerid)
  5107. {
  5108.                 new name[MAX_PLAYER_NAME],string[128];
  5109.                 GetPlayerName(playerid,name,sizeof(name));
  5110.                 if(Gang[playerid]==TEAM_YUGO) return SendClientMessage(playerid,COLOR_RED,"You can`t attack a friendly Zone!");
  5111.                 SendClientMessageToAll(COLOR_ORANGE,"|______MAFIA-WAR-NEWS______|");
  5112.                 SendClientMessageToAll(COLOR_ORANGE," ");
  5113.                 format(string, sizeof(string),"%s has started a MafiaWar against Yugoslawian Mafia",name);
  5114.                 SendClientMessageToAll(COLOR_ORANGE,string);
  5115.                 SendClientMessage(playerid,COLOR_BLUE,"MESSAGE: You have started a Mafia-War!You must be in this zone for 4 Minutes");
  5116.                 SendClientMessage(playerid,COLOR_BLUE,"MESSAGE: If you die in the zone your team will loose the Mafia war");
  5117.                 SendYugoMessage(COLOR_RED,"TEAMMESSAGE: One of our Zones is under attack, defend the FlashingZone!");
  5118.                 SendClientMessageToAll(COLOR_ORANGE," ");
  5119.                 SendClientMessageToAll(COLOR_ORANGE,"|______MAFIA-WAR-NEWS______|");
  5120.                 ZoneTimer1 = SetTimer("ZoneAtack",2000,1);
  5121.                 PlayerAtacker[playerid] = 1;
  5122.                 return 1;
  5123. }
  5124. stock ZoneAtackGerman(playerid)
  5125. {
  5126.                 new name[MAX_PLAYER_NAME],string[128];
  5127.                 GetPlayerName(playerid,name,sizeof(name));
  5128.                 if(Gang[playerid]==TEAM_GERMAN) return SendClientMessage(playerid,COLOR_RED,"You can`t attack a friendly Zone!");
  5129.                 SendClientMessageToAll(COLOR_ORANGE,"|______MAFIA-WAR-NEWS______|");
  5130.                 SendClientMessageToAll(COLOR_ORANGE," ");
  5131.                 format(string, sizeof(string),"%s has started a MafiaWar against German Mafia",name);
  5132.                 SendClientMessageToAll(COLOR_ORANGE,string);
  5133.                 SendClientMessage(playerid,COLOR_BLUE,"MESSAGE: You have started a Mafia-War!You must be in this zone for 4 Minutes");
  5134.                 SendClientMessage(playerid,COLOR_BLUE,"MESSAGE: If you die in the zone your team will loose the Mafia war");
  5135.                 SendGermanMessage(COLOR_RED,"TEAMMESSAGE: One of our Zones is under attack, defend the FlashingZone!");
  5136.                 SendClientMessageToAll(COLOR_ORANGE," ");
  5137.                 SendClientMessageToAll(COLOR_ORANGE,"|______MAFIA-WAR-NEWS______|");
  5138.                 ZoneTimer1 = SetTimer("ZoneAtack",2000,1);
  5139.                 PlayerAtacker[playerid] = 1;
  5140.                 return 1;
  5141. }
  5142. stock ZoneAtackCuban(playerid)
  5143. {
  5144.                 new name[MAX_PLAYER_NAME],string[128];
  5145.                 GetPlayerName(playerid,name,sizeof(name));
  5146.                 if(Gang[playerid]==TEAM_CUBAN) return SendClientMessage(playerid,COLOR_RED,"You can`t attack a friendly Zone!");
  5147.                 SendCubanMessage(COLOR_RED,"One of our ZONES is under attack, defend the Zone!");
  5148.                 SendClientMessageToAll(COLOR_ORANGE,"|______MAFIA-WAR-NEWS______|");
  5149.                 format(string, sizeof(string),"%s has started a MafiaWar against the Cuban-Mafia",name);
  5150.                 SendClientMessage(playerid,COLOR_BLUE,"MESSAGE: You have started a Mafia-War!You must be in this zone for 4 Minutes");
  5151.                 SendClientMessage(playerid,COLOR_BLUE,"MESSAGE: If you die in the zone your team will loose the Mafia war");
  5152.                 SendClientMessageToAll(COLOR_ORANGE,string);
  5153.                 SendCubanMessage(COLOR_RED,"TEAMMESSAGE: One of our ZONES is under attack, defend the FlashinZone!");
  5154.                 ZoneTimer1 = SetTimer("ZoneAtack",2000,1);
  5155.                 PlayerAtacker[playerid] = 1;
  5156.                 return 1;
  5157. }
  5158. //Messages----------------------------------------------------------------------
  5159. stock SendLcnMessage(color,const message[])
  5160. {
  5161.     for(new i = 0; i < GetMaxPlayers(); i++)
  5162.     {
  5163.         if(IsPlayerConnected(i) && Gang[i]==TEAM_LCN)
  5164.         {
  5165.             SendClientMessage(i,color,message);
  5166.         }
  5167.     }
  5168. }
  5169. stock SendRusMessage(color,const message[])
  5170. {
  5171.     for(new i = 0; i < GetMaxPlayers(); i++)
  5172.     {
  5173.         if(IsPlayerConnected(i) && Gang[i]==TEAM_RUS)
  5174.         {
  5175.             SendClientMessage(i,color,message);
  5176.         }
  5177.     }
  5178. }
  5179. stock SendTriadMessage(color,const message[])
  5180. {
  5181.     for(new i = 0; i < GetMaxPlayers(); i++)
  5182.     {
  5183.         if(IsPlayerConnected(i) && Gang[i]==TEAM_TRIADS)
  5184.         {
  5185.             SendClientMessage(i,color,message);
  5186.         }
  5187.     }
  5188. }
  5189. stock SendYugoMessage(color,const message[])
  5190. {
  5191.     for(new i = 0; i < GetMaxPlayers(); i++)
  5192.     {
  5193.         if(IsPlayerConnected(i) && Gang[i]==TEAM_YUGO)
  5194.         {
  5195.             SendClientMessage(i,color,message);
  5196.         }
  5197.     }
  5198. }
  5199. stock SendGermanMessage(color,const message[])
  5200. {
  5201.     for(new i = 0; i < GetMaxPlayers(); i++)
  5202.     {
  5203.         if(IsPlayerConnected(i) && Gang[i]==TEAM_GERMAN)
  5204.         {
  5205.             SendClientMessage(i,color,message);
  5206.         }
  5207.     }
  5208. }
  5209. stock SendCubanMessage(color,const message[])
  5210. {
  5211.     for(new i = 0; i < GetMaxPlayers(); i++)
  5212.     {
  5213.         if(IsPlayerConnected(i) && Gang[i]==TEAM_CUBAN)
  5214.         {
  5215.             SendClientMessage(i,color,message);
  5216.         }
  5217.     }
  5218. }
  5219. stock GiveLcnMoney(amount)
  5220. {
  5221.     for(new i = 0; i < GetMaxPlayers(); i++)
  5222.     {
  5223.         if(IsPlayerConnected(i) && Gang[i]==TEAM_LCN)
  5224.         {
  5225.             GivePlayerMoney(i,amount);
  5226.         }
  5227.     }
  5228. }
  5229. stock GiveRusMoney(amount)
  5230. {
  5231.     for(new i = 0; i < GetMaxPlayers(); i++)
  5232.     {
  5233.         if(IsPlayerConnected(i) && Gang[i]==TEAM_RUS)
  5234.         {
  5235.             GivePlayerMoney(i,amount);
  5236.         }
  5237.     }
  5238. }
  5239. stock GiveTriadMoney(amount)
  5240. {
  5241.     for(new i = 0; i < GetMaxPlayers(); i++)
  5242.     {
  5243.         if(IsPlayerConnected(i) && Gang[i]==TEAM_TRIADS)
  5244.         {
  5245.             GivePlayerMoney(i,amount);
  5246.         }
  5247.     }
  5248. }
  5249. stock GiveYugoMoney(amount)
  5250. {
  5251.     for(new i = 0; i < GetMaxPlayers(); i++)
  5252.     {
  5253.         if(IsPlayerConnected(i) && Gang[i]==TEAM_YUGO)
  5254.         {
  5255.             GivePlayerMoney(i,amount);
  5256.         }
  5257.     }
  5258. }
  5259. stock GiveGermanMoney(amount)
  5260. {
  5261.     for(new i = 0; i < GetMaxPlayers(); i++)
  5262.     {
  5263.         if(IsPlayerConnected(i) && Gang[i]==TEAM_GERMAN)
  5264.         {
  5265.             GivePlayerMoney(i,amount);
  5266.         }
  5267.     }
  5268. }
  5269. stock GiveCubanMoney(amount)
  5270. {
  5271.     for(new i = 0; i < GetMaxPlayers(); i++)
  5272.     {
  5273.         if(IsPlayerConnected(i) && Gang[i]==TEAM_CUBAN)
  5274.         {
  5275.             GivePlayerMoney(i,amount);
  5276.         }
  5277.     }
  5278. }
  5279. //==============================================================================
  5280. stock ZoneTextLcn(i)
  5281. {
  5282.         new str[64];
  5283.         format(str, sizeof(str), "mafiazone of: ~g~La Cosa Nostra");
  5284.         TextDrawSetString(ZonesTextdraw[i],str);
  5285.         TextDrawShowForPlayer(i,ZonesTextdraw[i]);
  5286. }
  5287. stock ZoneTextRus(i)
  5288. {
  5289.         new str[64];
  5290.         format(str, sizeof(str), "mafiazone of: ~r~Russian Mafia");
  5291.         TextDrawSetString(ZonesTextdraw[i],str);
  5292.         TextDrawShowForPlayer(i,ZonesTextdraw[i]);
  5293.  
  5294. }
  5295. stock ZoneTextTriad(i)
  5296. {
  5297.         new str[64];
  5298.         format(str, sizeof(str), "mafiazone of: ~w~Triads");
  5299.         TextDrawSetString(ZonesTextdraw[i],str);
  5300.         TextDrawShowForPlayer(i,ZonesTextdraw[i]);
  5301. }
  5302. stock ZoneTextYugo(i)
  5303. {
  5304.         new str[64];
  5305.         format(str, sizeof(str), "mafiazone of: ~b~Yugoslawian-Maifa");
  5306.         TextDrawSetString(ZonesTextdraw[i],str);
  5307.         TextDrawShowForPlayer(i,ZonesTextdraw[i]);
  5308. }
  5309. stock ZoneTextGerman(i)
  5310. {
  5311.         new str[64];
  5312.         format(str, sizeof(str), "mafiazone of: ~y~German-Mafia");
  5313.         TextDrawSetString(ZonesTextdraw[i],str);
  5314.         TextDrawShowForPlayer(i,ZonesTextdraw[i]);
  5315. }
  5316. stock ZoneTextCuban(i)
  5317. {
  5318.         new str[64];
  5319.         format(str, sizeof(str), "mafiazone of: ~p~Cuban-Mafia");
  5320.         TextDrawSetString(ZonesTextdraw[i],str);
  5321.         TextDrawShowForPlayer(i,ZonesTextdraw[i]);
  5322. }
  5323. //------------------------------------------------------------------------------
  5324. public ZoneAtack()
  5325. {
  5326.     TakeOverTime += 2;
  5327.     EnableAtack1 = 1;
  5328.     for(new i=0; i<MAX_PLAYERS; i++)
  5329.     {
  5330.         if(IsPlayerConnected(i))
  5331.             {
  5332.                 if(PlayerAtacker[i]== 1)
  5333.                     {
  5334.                         new FlashColor = GetPlayerColor(i);
  5335.                         new name[MAX_PLAYER_NAME],string[128];
  5336.                         GetPlayerName(i,name,sizeof(name));
  5337.                         {
  5338.                             if(Zone1Atack == 1){
  5339.                             GangZoneFlashForAll(Zone1,FlashColor);
  5340.                             if(!IsPlayerInArea(i,-2799.996093, -173.397064, -2463.996093, 154.602935)){LeftArea();}
  5341.                             }
  5342.                             else if(Zone2Atack == 1){
  5343.                             GangZoneFlashForAll(Zone2,FlashColor);
  5344.                             if(!IsPlayerInArea(i,-2799.354492, 232.376708, -2615.354492, 696.376708)){LeftArea();}
  5345.                             }
  5346.                             else if(Zone3Atack == 1){
  5347.                             GangZoneFlashForAll(Zone3,FlashColor);
  5348.                             if(!IsPlayerInArea(i,-2276.547119, -86.489639, -2004.547119, 169.510360)){LeftArea();}
  5349.                             }
  5350.                             else if(Zone4Atack == 1){
  5351.                             GangZoneFlashForAll(Zone4,FlashColor);
  5352.                             if(!IsPlayerInArea(i,-2445.138183, -232.113327, -2293.138183, 223.886672)){LeftArea();}
  5353.                             }
  5354.                             else if(Zone5Atack == 1){
  5355.                             GangZoneFlashForAll(Zone5,FlashColor);
  5356.                             if(!IsPlayerInArea(i,-2328.167480, 337.696594, -1944.167480, 681.696594)){LeftArea();}
  5357.                             }
  5358.                             else if(Zone6Atack == 1){
  5359.                             GangZoneFlashForAll(Zone6,FlashColor);
  5360.                             if(!IsPlayerInArea(i,-1824.531494, 624.765625, -1496.531494, 920.765625)){LeftArea();}
  5361.                             }
  5362.                             else if(Zone7Atack == 1){
  5363.                             GangZoneFlashForAll(Zone7,FlashColor);
  5364.                             if(!IsPlayerInArea(i,-2439.947753, 1035.557861, -2119.947753, 1307.557861)){LeftArea();}
  5365.                             }
  5366.                             else if(Zone8Atack == 1){
  5367.                             GangZoneFlashForAll(Zone8,FlashColor);
  5368.                             if(!IsPlayerInArea(i,-1854.087280, 1178.869628, -1622.087280, 1410.869628)){LeftArea();}
  5369.                             }
  5370.                             else if(Zone9Atack == 1){
  5371.                             GangZoneFlashForAll(Zone9,FlashColor);
  5372.                             if(!IsPlayerInArea(i,-2213.718750, 710.110534, -1949.718750, 982.110534)){LeftArea();}
  5373.                             }
  5374.                             else if(Zone10Atack == 1){
  5375.                             GangZoneFlashForAll(Zone10,FlashColor);
  5376.                             if(!IsPlayerInArea(i,-2765.796386, 784.332397, -2437.796386, 1104.332397)){LeftArea();}
  5377.                             }
  5378.                             else if(Zone11Atack == 1){
  5379.                             GangZoneFlashForAll(Zone11,FlashColor);
  5380.                             if(!IsPlayerInArea(i,-1922.631958, -28.333175, -1706.631958, 403.666809)){LeftArea();}
  5381.                             }
  5382.                             else if(Zone12Atack == 1){
  5383.                             GangZoneFlashForAll(Zone12,FlashColor);
  5384.                             if(!IsPlayerInArea(i,-1957.691406, -758.583618, -1645.691406, -430.5836182)){LeftArea();}
  5385.                             }
  5386.                             else if(Zone13Atack == 1){
  5387.                             GangZoneFlashForAll(Zone13,FlashColor);
  5388.                             if(!IsPlayerInArea(i,-2518.000000, -602.239868, -2246.000000, -306.239868)){LeftArea();}
  5389.                             }
  5390.                         }
  5391.                         if(GetPlayerState(i) == PLAYER_STATE_WASTED)
  5392.                         {
  5393.                             return
  5394.                             SendClientMessageToAll(COLOR_ORANGE,"|______MAFIA-WAR-NEWS______|"),
  5395.                             format(string, sizeof(string),"%s failed because he died in the Mafia-War",name),
  5396.                             SendClientMessageToAll(COLOR_ORANGE,string),
  5397.                             SendClientMessage(i,COLOR_RED,"You died in the Mafia-War..."),
  5398.                             LooseWar(),
  5399.                             PlayerAtacker[i] = 0,
  5400.                             TakeOverTime = 0,
  5401.                             KillTimer(ZoneTimer1);
  5402.                         }
  5403.                         else if(TakeOverTime > 180)
  5404.                         {
  5405.                             return
  5406.                             SendClientMessageToAll(COLOR_ORANGE,"|______MAFIA-WAR-NEWS______|"),
  5407.                             format(string, sizeof(string),"%s and his team have won the Mafia-War",name),
  5408.                             SendClientMessageToAll(COLOR_ORANGE,string),
  5409.                             SendClientMessage(i,COLOR_GREEN,"You have sucsessfull taken the Zone +5000$"),
  5410.                             GivePlayerMoney(i,4000),
  5411.                             WonMessage(),
  5412.                             PlayerAtacker[i] = 0,
  5413.                             TakeOverTime = 0,
  5414.                             KillTimer(ZoneTimer1);
  5415.  
  5416.                         }
  5417.                     }
  5418.             }
  5419.     }
  5420.     return 1;
  5421. }
  5422. forward LeftArea();
  5423. public LeftArea()
  5424. {
  5425.     for(new i=0; i<MAX_PLAYERS; i++)
  5426.     {
  5427.         if(IsPlayerConnected(i))
  5428.             {
  5429.                 if(PlayerAtacker[i]== 1)
  5430.                 {
  5431.                 new name[MAX_PLAYER_NAME],string[128];
  5432.                 GetPlayerName(i,name,sizeof(name));
  5433.                 return
  5434.                 SendClientMessageToAll(COLOR_ORANGE,"|______MAFIA-WAR-NEWS______|"),
  5435.                 format(string, sizeof(string),"%s failed because he left the Mafia-War",name),
  5436.                 SendClientMessageToAll(COLOR_ORANGE,string),
  5437.                 SendClientMessage(i,COLOR_RED,"You have left the zone...fail!"),
  5438.                 LooseWar(),
  5439.                 PlayerAtacker[i] = 0,
  5440.                 TakeOverTime = 0,
  5441.                 KillTimer(ZoneTimer1);
  5442.                 }
  5443.             }
  5444.     }
  5445.     return 1;
  5446. }
  5447. forward WonMessage();
  5448. public WonMessage()
  5449. {
  5450.     for(new i=0; i<MAX_PLAYERS; i++)
  5451.     {
  5452.         if(IsPlayerConnected(i))
  5453.             {
  5454.                 if(PlayerAtacker[i]== 1)
  5455.                     {
  5456.                         if(Gang[i] == TEAM_LCN){SendLcnMessage(COLOR_GREEN,"We won have won a Mafia-War every member gets 1000$!");GiveLcnMoney(1000); }
  5457.                         else if(Gang[i] == TEAM_RUS){SendRusMessage(COLOR_GREEN,"We won have won a Mafia-War every member gets 1000$!");GiveRusMoney(1000); }
  5458.                         else if(Gang[i] == TEAM_TRIADS){SendTriadMessage(COLOR_GREEN,"We won have won a Mafia-War every member gets 1000$!");GiveTriadMoney(1000); }
  5459.                         else if(Gang[i] == TEAM_YUGO){SendYugoMessage(COLOR_GREEN,"We won have won a Mafia-War every member gets 1000$!");GiveYugoMoney(1000); }
  5460.                         else if(Gang[i] == TEAM_GERMAN){SendGermanMessage(COLOR_GREEN,"We won have won a Mafia-War every member gets 1000$!");GiveGermanMoney(1000); }
  5461.                         else if(Gang[i] == TEAM_CUBAN){SendCubanMessage(COLOR_GREEN,"We won have won a Mafia-War every member gets 1000$!");GiveCubanMoney(1000); }
  5462.                         new color = GetPlayerColor(i);
  5463.                         if(Zone1Atack == 1)
  5464.                         {
  5465.                             dini_IntSet("/zones/zones.ini", "Zone1",color);
  5466.                             GangZoneStopFlashForAll(Zone1);
  5467.                             GangZoneShowForAll(Zone1,color);
  5468.                             Zone1Atack = 0;
  5469.                         }
  5470.                         else if(Zone2Atack == 1)
  5471.                         {
  5472.                             dini_IntSet("/zones/zones.ini", "Zone2",color);
  5473.                             GangZoneStopFlashForAll(Zone1);
  5474.                             GangZoneShowForAll(Zone2,color);
  5475.                             Zone2Atack = 0;
  5476.                         }
  5477.                         else if(Zone3Atack == 1)
  5478.                         {
  5479.                             dini_IntSet("/zones/zones.ini", "Zone3",color);
  5480.                             GangZoneStopFlashForAll(Zone1);
  5481.                             GangZoneShowForAll(Zone3,color);
  5482.                             Zone3Atack = 0;
  5483.                         }
  5484.                         else if(Zone4Atack == 1)
  5485.                         {
  5486.                             dini_IntSet("/zones/zones.ini", "Zone4",color);
  5487.                             GangZoneStopFlashForAll(Zone1);
  5488.                             GangZoneShowForAll(Zone4,color);
  5489.                             Zone4Atack = 0;
  5490.                         }
  5491.                         else if(Zone5Atack == 1)
  5492.                         {
  5493.                             dini_IntSet("/zones/zones.ini", "Zone5",color);
  5494.                             GangZoneStopFlashForAll(Zone1);
  5495.                             GangZoneShowForAll(Zone5,color);
  5496.                             Zone5Atack = 0;
  5497.                         }
  5498.                         else if(Zone6Atack == 1)
  5499.                         {
  5500.                             dini_IntSet("/zones/zones.ini", "Zone6",color);
  5501.                             GangZoneStopFlashForAll(Zone1);
  5502.                             GangZoneShowForAll(Zone6,color);
  5503.                             Zone1Atack = 0;
  5504.                         }
  5505.                         else if(Zone7Atack == 1)
  5506.                         {
  5507.                             dini_IntSet("/zones/zones.ini", "Zone7",color);
  5508.                             GangZoneStopFlashForAll(Zone1);
  5509.                             GangZoneShowForAll(Zone7,color);
  5510.                             Zone7Atack = 0;
  5511.                         }
  5512.                         else if(Zone8Atack == 1)
  5513.                         {
  5514.                             dini_IntSet("/zones/zones.ini", "Zone8",color);
  5515.                             GangZoneStopFlashForAll(Zone1);
  5516.                             GangZoneShowForAll(Zone8,color);
  5517.                             Zone8Atack = 0;
  5518.                         }
  5519.                         else if(Zone9Atack == 1)
  5520.                         {
  5521.                             dini_IntSet("/zones/zones.ini", "Zone9",color);
  5522.                             GangZoneStopFlashForAll(Zone1);
  5523.                             GangZoneShowForAll(Zone9,color);
  5524.                             Zone9Atack = 0;
  5525.                         }
  5526.                         else if(Zone10Atack == 1)
  5527.                         {
  5528.                             dini_IntSet("/zones/zones.ini", "Zone10",color);
  5529.                             GangZoneStopFlashForAll(Zone1);
  5530.                             GangZoneShowForAll(Zone10,color);
  5531.                             Zone10Atack = 0;
  5532.                         }
  5533.                         else if(Zone11Atack == 1)
  5534.                         {
  5535.                             dini_IntSet("/zones/zones.ini", "Zone11",color);
  5536.                             GangZoneStopFlashForAll(Zone1);
  5537.                             GangZoneShowForAll(Zone11,color);
  5538.                             Zone11Atack = 0;
  5539.                         }
  5540.                         else if(Zone12Atack == 1)
  5541.                         {
  5542.                             dini_IntSet("/zones/zones.ini", "Zone12",color);
  5543.                             GangZoneStopFlashForAll(Zone1);
  5544.                             GangZoneShowForAll(Zone12,color);
  5545.                             Zone12Atack = 0;
  5546.                         }
  5547.                         else if(Zone13Atack == 1)
  5548.                         {
  5549.                             dini_IntSet("/zones/zones.ini", "Zone13",color);
  5550.                             GangZoneStopFlashForAll(Zone1);
  5551.                             GangZoneShowForAll(Zone13,color);
  5552.                             Zone13Atack = 0;
  5553.                         }
  5554.                         Enable = SetTimer("EnableAtack",1800000,1);
  5555.                     }
  5556.             }
  5557.  
  5558.     }
  5559.     return 1;
  5560. }
  5561. forward LooseWar();
  5562. public LooseWar()
  5563. {
  5564.     if(Zone1Atack == 1)
  5565.     {
  5566.         new color = dini_Int("/zones/zones.ini","Zone1");
  5567.         GangZoneStopFlashForAll(Zone1);
  5568.         GangZoneShowForAll(Zone1,color);
  5569.         Zone1Atack = 0;
  5570.     }
  5571.     else if(Zone2Atack == 1)
  5572.     {
  5573.         GangZoneStopFlashForAll(Zone2);
  5574.         new color = dini_Int("/zones/zones.ini","Zone2");
  5575.         GangZoneShowForAll(Zone2,color);
  5576.         Zone2Atack = 0;
  5577.     }
  5578.     else if(Zone3Atack == 1)
  5579.     {
  5580.         GangZoneStopFlashForAll(Zone3);
  5581.         new color = dini_Int("/zones/zones.ini","Zone3");
  5582.         GangZoneShowForAll(Zone3,color);
  5583.         Zone3Atack = 0;
  5584.     }
  5585.     else if(Zone4Atack == 1)
  5586.     {
  5587.         GangZoneStopFlashForAll(Zone4);
  5588.         new color = dini_Int("/zones/zones.ini","Zone4");
  5589.         GangZoneShowForAll(Zone4,color);
  5590.         Zone4Atack = 0;
  5591.     }
  5592.     else if(Zone5Atack == 1)
  5593.     {
  5594.         GangZoneStopFlashForAll(Zone5);
  5595.         new color = dini_Int("/zones/zones.ini","Zone5");
  5596.         GangZoneShowForAll(Zone5,color);
  5597.         Zone5Atack = 0;
  5598.     }
  5599.     else if(Zone6Atack == 1)
  5600.     {
  5601.         GangZoneStopFlashForAll(Zone6);
  5602.         new color = dini_Int("/zones/zones.ini","Zone6");
  5603.         GangZoneShowForAll(Zone6,color);
  5604.         Zone1Atack = 0;
  5605.     }
  5606.     else if(Zone7Atack == 1)
  5607.     {
  5608.         GangZoneStopFlashForAll(Zone7);
  5609.         new color = dini_Int("/zones/zones.ini","Zone7");
  5610.         GangZoneShowForAll(Zone7,color);
  5611.         Zone7Atack = 0;
  5612.     }
  5613.     else if(Zone8Atack == 1)
  5614.     {
  5615.         GangZoneStopFlashForAll(Zone8);
  5616.         new color = dini_Int("/zones/zones.ini","Zone8");
  5617.         GangZoneShowForAll(Zone8,color);
  5618.         Zone8Atack = 0;
  5619.     }
  5620.     else if(Zone9Atack == 1)
  5621.     {
  5622.         GangZoneStopFlashForAll(Zone9);
  5623.         new color = dini_Int("/zones/zones.ini","Zone9");
  5624.         GangZoneShowForAll(Zone9,color);
  5625.         Zone9Atack = 0;
  5626.     }
  5627.     else if(Zone10Atack == 1)
  5628.     {
  5629.         GangZoneStopFlashForAll(Zone10);
  5630.         new color = dini_Int("/zones/zones.ini","Zone10");
  5631.         GangZoneShowForAll(Zone10,color);
  5632.         Zone10Atack = 0;
  5633.     }
  5634.     else if(Zone11Atack == 1)
  5635.     {
  5636.         GangZoneStopFlashForAll(Zone11);
  5637.         new color = dini_Int("/zones/zones.ini","Zone11");
  5638.         GangZoneShowForAll(Zone11,color);
  5639.         Zone11Atack = 0;
  5640.     }
  5641.     else if(Zone12Atack == 1)
  5642.     {
  5643.         GangZoneStopFlashForAll(Zone12);
  5644.         new color = dini_Int("/zones/zones.ini","Zone12");
  5645.         GangZoneShowForAll(Zone12,color);
  5646.         Zone12Atack = 0;
  5647.     }
  5648.     else if(Zone13Atack == 1)
  5649.     {
  5650.         GangZoneStopFlashForAll(Zone13);
  5651.         new color = dini_Int("/zones/zones.ini","Zone13");
  5652.         GangZoneShowForAll(Zone13,color);
  5653.         Zone13Atack = 0;
  5654.     }
  5655.     Enable = SetTimer("EnableAtack",1800000,1);
  5656.     return 1;
  5657. }
  5658. //RealTime
  5659. public UpdateTime()
  5660. {
  5661.     gettime(hour, minute);
  5662.     format(timestr,32,"%02d:%02d",hour,minute);
  5663.     TextDrawSetString(txtTimeDisp,timestr);
  5664.     SetWorldTime(hour);
  5665.     new x=0;
  5666.     while(x!=MAX_PLAYERS) {
  5667.     if(IsPlayerConnected(x) && GetPlayerState(x) != PLAYER_STATE_NONE) {
  5668.     SetPlayerTime(x,hour,minute);
  5669.     }
  5670.     x++;
  5671.     }
  5672. }
  5673. stock PlayerToSkinSelect(playerid)
  5674. {
  5675.     ForceClassSelection(playerid);
  5676.     SetPlayerHealth(playerid,0);
  5677. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement