SHARE
TWEET

SAMP - Gang Tester V2.6 - by DjAndy

a guest Apr 20th, 2019 114 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include    <a_samp>                //
  2. #include    <streamer>              //
  3. #define     EDITGANG      1001      //
  4. #define     GANGBASE      1002      //
  5. #define     TELEPORTS     1003      //
  6. #define     VEHICLES      1004      //
  7. #define     TERRITORY     1005      //
  8. //----------------------------------//
  9. //----------------------------------//
  10. new tp;             //              //
  11. new tp1;            //              //
  12. new tp2;            //              //
  13. new tp3;            //              //
  14. new tp4;            //              //
  15. new tp5;            //   TELEPORTS  //
  16. new tp6;            //              //
  17. new tp7;            //              //
  18. new tp8;            //              //
  19. new tp9;            //              //
  20. new tp10;           //              //
  21. //----------------------------------//
  22. //----------------------------------//
  23. new Text3D:ltp;     //              //
  24. new Text3D:ltp1;    //              //
  25. new Text3D:ltp2;    //              //
  26. new Text3D:ltp3;    //              //
  27. new Text3D:ltp4;    //              //
  28. new Text3D:ltp5;    //   TELEPORT   //
  29. new Text3D:ltp6;    //    TEXTS     //
  30. new Text3D:ltp7;    //              //
  31. new Text3D:ltp8;    //              //
  32. new Text3D:ltp9;    //              //
  33. new Text3D:ltp10;   //              //
  34. //----------------------------------//
  35. //----------------------------------//
  36. new hp;             //   Health     //
  37. new ar;             //  Pickups     //
  38. //----------------------------------//
  39. //----------------------------------//
  40. new mg;             //   Weapon     //
  41. new rk;             //  Pickups     //
  42. //----------------------------------//
  43. //----------------------------------//
  44. new Text3D:thouse;  //  Gang House  //
  45. new ghouse;         //    Pickup    //
  46. //----------------------------------//
  47. //----------------------------------//
  48. new Text3D:textloot;//    Loot      //
  49. new loot;           //   Pickup     //
  50. //------------------------------------------------------//
  51. //------------------------------------------------------//
  52. new heal_timer;                 //     Heal Pickups     //
  53. new armour_timer;               //      Cooldown        //
  54. //------------------------------------------------------//
  55. //------------------------------------------------------//
  56. new minigun_timer;              //   Weapons Pickups    //
  57. new rocket_timer;               //     Cooldown         //
  58. //------------------------------------------------------//
  59. //------------------------------------------------------//
  60. new ghouse_timer;       //    Gang Pickup Protection    //
  61. //------------------------------------------------------//
  62. //------------------------------------------------------//
  63. new base_timer;                 //   Base Protection    //
  64. //------------------------------------------------------//
  65. //------------------------------------------------------//
  66. new wp_timer;                   //  Weapons Protection  //
  67. //------------------------------------------------------//
  68. //------------------------------------------------------//
  69. new gate;                               // Gate Creator //
  70. new Text3D:ganggate;                    //   Gate Text  //
  71. //------------------------------------------------------//
  72. //------------------------------------------------------//
  73. new teleport;         // Create Teleport Protection #0  //
  74. new teleport1;        // Create Teleport Protection #1  //
  75. new teleport2;        // Create Teleport Protection #2  //
  76. new teleport3;        // Create Teleport Protection #3  //
  77. new teleport4;        // Create Teleport Protection #4  //
  78. new teleport5;        // Create Teleport Protection #5  //
  79. new teleport6;        // Create Teleport Protection #6  //
  80. new teleport7;        // Create Teleport Protection #7  //
  81. new teleport8;        // Create Teleport Protection #8  //
  82. new teleport9;        // Create Teleport Protection #9  //
  83. new teleport10;       // Create Teleport Protection #10 //
  84. //--------------------------------------------------------------//
  85. //--------------------------------------------------------------//
  86. new Float:posX;                                 //              //
  87. new Float:posY;                                 //              //
  88. new Float:posZ;                                 //     Gang     //
  89. new Float:posA;                                 //     Spawn    //
  90. new GangSpawn;                                      //              //
  91. //--------------------------------------------------------------//
  92. //--------------------------------------------------------------//
  93. new Float:posX0;                                //              //
  94. new Float:posY0;                                //              //
  95. new Float:posZ0;                                //   Teleport   //
  96. new Float:posA0;                                //      #0      //
  97. new Saved0;                                     //              //
  98. //--------------------------------------------------------------//
  99. //--------------------------------------------------------------//
  100. new Float:posX1;                                //              //
  101. new Float:posY1;                                //              //
  102. new Float:posZ1;                                //   Teleport   //
  103. new Float:posA1;                                //      #1      //
  104. new Saved1;                                     //              //
  105. //--------------------------------------------------------------//
  106. //--------------------------------------------------------------//
  107. new Float:posX2;                                //              //
  108. new Float:posY2;                                //              //
  109. new Float:posZ2;                                //   Teleport   //
  110. new Float:posA2;                                //      #2      //
  111. new Saved2;                                     //              //
  112. //--------------------------------------------------------------//
  113. //--------------------------------------------------------------//
  114. new Float:posX3;                                //              //
  115. new Float:posY3;                                //              //
  116. new Float:posZ3;                                //   Teleport   //
  117. new Float:posA3;                                //      #3      //
  118. new Saved3;                                     //              //
  119. //--------------------------------------------------------------//
  120. //--------------------------------------------------------------//
  121. new Float:posX4;                                //              //
  122. new Float:posY4;                                //              //
  123. new Float:posZ4;                                //   Teleport   //
  124. new Float:posA4;                                //      #4      //
  125. new Saved4;                                     //              //
  126. //--------------------------------------------------------------//
  127. //--------------------------------------------------------------//
  128. new Float:posX5;                                //              //
  129. new Float:posY5;                                //              //
  130. new Float:posZ5;                                //   Teleport   //
  131. new Float:posA5;                                //      #5      //
  132. new Saved5;                                     //              //
  133. //--------------------------------------------------------------//
  134. //--------------------------------------------------------------//
  135. new Float:posX6;                                //              //
  136. new Float:posY6;                                //              //
  137. new Float:posZ6;                                //   Teleport   //
  138. new Float:posA6;                                //      #6      //
  139. new Saved6;                                     //              //
  140. //--------------------------------------------------------------//
  141. //--------------------------------------------------------------//
  142. new Float:posX7;                                //              //
  143. new Float:posY7;                                //              //
  144. new Float:posZ7;                                //   Teleport   //
  145. new Float:posA7;                                //      #7      //
  146. new Saved7;                                     //              //
  147. //--------------------------------------------------------------//
  148. //--------------------------------------------------------------//
  149. new Float:posX8;                                //              //
  150. new Float:posY8;                                //              //
  151. new Float:posZ8;                                //   Teleport   //
  152. new Float:posA8;                                //      #8      //
  153. new Saved8;                                     //              //
  154. //--------------------------------------------------------------//
  155. //--------------------------------------------------------------//
  156. new Float:posX9;                                //              //
  157. new Float:posY9;                                //              //
  158. new Float:posZ9;                                //   Teleport   //
  159. new Float:posA9;                                //      #9      //
  160. new Saved9;                                     //              //
  161. //--------------------------------------------------------------//
  162. //--------------------------------------------------------------//
  163. new Float:posX10;                               //              //
  164. new Float:posY10;                               //              //
  165. new Float:posZ10;                               //   Teleport   //
  166. new Float:posA10;                               //     #10      //
  167. new Saved10;                                    //              //
  168. //--------------------------------------------------------------//
  169. //--------------------------------------------------------------//
  170. new Float:posX11;                               //              //
  171. new Float:posY11;                               //              //
  172. new Float:posZ11;                               //    BASE      //
  173. new Float:posA11;                               //              //
  174. new Saved11;                                    //              //
  175. //--------------------------------------------------------------//
  176. //--------------------------------------------------------------//
  177. new Makingzone;                                 //              //
  178. new Float:ZMinX;                                //              //
  179. new Float:ZMaxX;                                //              //
  180. new Float:ZMinY;                                //    Create    //
  181. new Float:ZMaxY;                                //   Territory  //
  182. new GangZone;                                   //              //
  183. new Create;                                     //              //
  184. new Tprotection;
  185. //--------------------------------------------------------------//
  186. //--------------------------------------------------------------//
  187. public OnFilterScriptInit()
  188. {
  189.     new string[128], Year, Month, Day, Hour, Minute, Second;
  190.     gettime(Hour, Minute, Second);
  191.     getdate(Year, Month, Day);
  192.     print("\n´´´´´´´´´´´´´´´´´´´´´´´´´¶´´´´´´´´´¶´´´´´´´´´´´´´´´´´´´´´´´´´");
  193.     print("´´´´´´´´´´´´´´´´´´´´´´´´´¶´´´´´´´´´¶´´´´´´´´´´´´´´´´´´´´´´´´´");
  194.     print("´´´´´´´´´´´´´´´´´´´´´¶´´´¶´´´´´´´´´¶´´´¶´´´´´´´´´´´´´´´´´´´´´");
  195.     print("´´´´´´´´´´´´´´´´´´´´´¶´´¶¶´´´´´´´´´¶¶´´¶´´´´´´´´´´´´´´´´´´´´´");
  196.     print("´´´´´´´´´´´´´´´´´´´´´¶¶´¶¶¶´´´´´´´¶¶¶´¶¶´´´´´´´´´´´´´´´´´´´´´");
  197.     print("´´´´´´´´´´´´´¶´´´´´´¶¶´´´¶¶¶´´´´´¶¶¶´´´¶¶´´´´´´¶´´´´´´´´´´´´´");
  198.     print("´´´´´´´´´´´´¶¶´´´´´´¶¶´´´¶¶¶´´´´´¶¶¶´´´¶¶´´´´´´¶¶´´´´´´´´´´´´");
  199.     print("´´´´´´´´´´´¶¶´´´´´´¶¶´´´´¶¶¶¶´´´¶¶¶¶´´´´¶¶´´´´´´¶¶´´´´´´´´´´´");
  200.     print("´´´´´´´´´´´¶¶´´´´´¶¶¶´´´´¶¶¶¶´´¶¶¶¶¶´´´´¶¶¶´´´´´¶¶¶´´´´´´´´´´");
  201.     print("´´´´´´´¶´´¶¶¶´´´´¶¶¶¶´´´´¶¶¶¶´´´¶¶¶¶´´´´¶¶¶¶´´´¶¶¶¶´´¶´´´´´´´");
  202.     print("´´´´´´´¶¶´¶¶¶¶¶´´¶¶¶¶´´´¶¶¶¶¶´´´¶¶¶¶¶´´´¶¶¶¶´´¶¶¶¶¶´¶¶´´´´´´´");
  203.     print("´´´´´´´¶¶´¶¶¶¶¶´´¶¶¶¶¶¶¶¶¶¶¶´´´´´¶¶¶¶¶¶¶¶¶¶¶´´¶¶¶¶¶´¶´´´´´´´´");
  204.     print("´´´´´´´¶¶´¶¶¶¶¶´´¶¶¶¶¶¶¶¶¶¶¶´´´´´¶¶¶¶¶¶¶¶¶¶¶´´¶¶¶¶¶´¶¶´´´´´´´");
  205.     print("´´´´´´¶¶¶´´¶¶¶¶´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´¶¶¶¶´´¶¶¶´´´´´´");
  206.     print("´´´´´¶¶¶¶´´¶¶¶¶´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´¶¶¶¶´´¶¶¶¶´´´´´");
  207.     print("´´´´¶¶¶¶´´´¶¶¶¶¶´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´¶¶¶¶¶´´´¶¶¶¶´´´´");
  208.     print("´´´¶¶¶¶´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´¶¶¶¶´´´´");
  209.     print("´´´¶¶¶¶¶´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´¶¶¶¶´´´´");
  210.     print("´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´");
  211.     print("´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´");
  212.     print("´´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´´");
  213.     print("´´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´´");
  214.     print("´´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´´");
  215.     print("´´´´´¶¶¶¶¶´´´´´´´´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´´´´´´´´¶¶¶¶¶´´´´´");
  216.     print("´´´´´¶¶¶¶¶¶´´´´´´´´´´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´´´´´´´´´´¶¶¶¶¶¶´´´´´");
  217.     print("´´´´´´¶¶¶¶¶¶¶´´´´´´´..´´´´´¶¶¶¶¶¶¶¶´´´´´´..´´´´¶¶¶¶¶¶¶´´´´´´´");
  218.     print("´´´´´´´¶¶¶¶¶¶¶¶´´´´´´´´´´´´´¶¶¶¶¶´´´´´´´´´´´´´¶¶¶¶¶¶¶¶´´´´´´´");
  219.     print("´´´´´´´´¶¶¶¶¶¶¶¶¶¶´´´´´´´´´´´¶¶¶´´´´´´´´´´´¶¶¶¶¶¶¶¶¶¶´´´´´´´´");
  220.     print("´´´´´´´´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´´´´´´´´");
  221.     print("´´´´´´´´´´´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´´´´´´´´´´´");
  222.     print("´´´´´´´´´´´´´´´´´´¶¶¶¶¶¶¶¶¶¶´´´´´¶¶¶¶¶¶¶¶¶¶´´´´´´´´´´´´´´´´´´");
  223.     print("´´´´´´´´´´´´´´´´´´´¶¶¶¶¶¶¶¶´´´´´´´¶¶¶¶¶¶¶¶´´´´´´´´´´´´´´´´´´´");
  224.     print("´´´´´´´´´´´´´´´´´´¶¶¶¶¶¶¶¶¶´´´´´´´¶¶¶¶¶¶¶¶¶´´´´´´´´´´´´´´´´´´");
  225.     print("´´´´´´´´´´´´´´´´´´¶¶¶¶¶¶¶¶¶´¶¶¶¶¶´¶¶¶¶¶¶¶¶¶´´´´´´´´´´´´´´´´´´");
  226.     print("´´´´´´´´´´´´´´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´´´´´´´´´´´´´´");
  227.     print("´´´´´´´´´´´´´´´´´¶¶¶´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´¶¶¶´´´´´´´´´´´´´´´´´");
  228.     print("´´´´´´´´´´´´´´´´´´¶¶´´¶¶¶¶´´¶¶¶¶¶´´¶¶¶¶´´¶¶´´´´´´´´´´´´´´´´´´");
  229.     print("´´´´´´´´´´´´´´´´´´´´´´¶¶¶¶´´¶¶¶¶¶´´¶¶¶¶´´´´´´´´´´´´´´´´´´´´´´");
  230.     format(string,sizeof(string),"[%02d/%02d/%d | %02d:%02d:%02d] Gang System V2.7 successfully loaded!\n", Day, Month, Year, Hour, Minute, Second);
  231.     print(string);
  232.     return 1;
  233. }
  234.  
  235. public OnFilterScriptExit()
  236. {
  237.     new string[128], Year, Month, Day, Hour, Minute, Second;
  238.     gettime(Hour, Minute, Second);
  239.     getdate(Year, Month, Day);
  240.     DestroyDynamicCP(tp);                   //--------------------------------//
  241.     DestroyDynamicCP(tp1);                  //                                //
  242.     DestroyDynamicCP(tp2);                  //                                //
  243.     DestroyDynamicCP(tp3);                  //                                //
  244.     DestroyDynamicCP(tp4);                  //                                //
  245.     DestroyDynamicCP(tp5);                  //                                //
  246.     DestroyDynamicCP(tp6);                  //                                //
  247.     DestroyDynamicCP(tp7);                  //                                //
  248.     DestroyDynamicCP(tp8);                  //                                //
  249.     DestroyDynamicCP(tp9);                  //                                //
  250.     DestroyDynamicCP(tp10);                 //                                //
  251.     Delete3DTextLabel(ltp1);                //                                //
  252.     Delete3DTextLabel(ltp2);                //                                //
  253.     Delete3DTextLabel(ltp3);                //                                //
  254.     Delete3DTextLabel(ltp4);                //--------------------------------//
  255.     Delete3DTextLabel(ltp5);                //        Destroy everythink      //
  256.     Delete3DTextLabel(ltp6);                //           after reload         //
  257.     Delete3DTextLabel(ltp7);                //--------------------------------//
  258.     Delete3DTextLabel(ltp8);                //                                //
  259.     Delete3DTextLabel(ltp9);                //                                //
  260.     Delete3DTextLabel(ltp10);               //                                //
  261.     Delete3DTextLabel(ganggate);            //                                //
  262.     Delete3DTextLabel(textloot);            //                                //
  263.     Delete3DTextLabel(thouse);              //                                //
  264.     DestroyDynamicPickup(hp);               //                                //
  265.     DestroyDynamicPickup(ar);               //                                //
  266.     DestroyDynamicPickup(loot);             //                                //
  267.     DestroyDynamicPickup(ghouse);           //                                //
  268.     DestroyDynamicPickup(mg);               //                                //
  269.     DestroyDynamicPickup(rk);               //                                //
  270.     DestroyDynamicPickup(mg);               //                                //
  271.     DestroyDynamicObject(gate);             //                                //
  272.     DestroyDynamicPickup(rk);               //                                //
  273.     GangZoneHideForAll(GangZone);           //--------------------------------//
  274.     print("\n´´´´´´´´´´´´´´´´´´´´´´´´´¶´´´´´´´´´¶´´´´´´´´´´´´´´´´´´´´´´´´´");
  275.     print("´´´´´´´´´´´´´´´´´´´´´´´´´¶´´´´´´´´´¶´´´´´´´´´´´´´´´´´´´´´´´´´");
  276.     print("´´´´´´´´´´´´´´´´´´´´´¶´´´¶´´´´´´´´´¶´´´¶´´´´´´´´´´´´´´´´´´´´´");
  277.     print("´´´´´´´´´´´´´´´´´´´´´¶´´¶¶´´´´´´´´´¶¶´´¶´´´´´´´´´´´´´´´´´´´´´");
  278.     print("´´´´´´´´´´´´´´´´´´´´´¶¶´¶¶¶´´´´´´´¶¶¶´¶¶´´´´´´´´´´´´´´´´´´´´´");
  279.     print("´´´´´´´´´´´´´¶´´´´´´¶¶´´´¶¶¶´´´´´¶¶¶´´´¶¶´´´´´´¶´´´´´´´´´´´´´");
  280.     print("´´´´´´´´´´´´¶¶´´´´´´¶¶´´´¶¶¶´´´´´¶¶¶´´´¶¶´´´´´´¶¶´´´´´´´´´´´´");
  281.     print("´´´´´´´´´´´¶¶´´´´´´¶¶´´´´¶¶¶¶´´´¶¶¶¶´´´´¶¶´´´´´´¶¶´´´´´´´´´´´");
  282.     print("´´´´´´´´´´´¶¶´´´´´¶¶¶´´´´¶¶¶¶´´¶¶¶¶¶´´´´¶¶¶´´´´´¶¶¶´´´´´´´´´´");
  283.     print("´´´´´´´¶´´¶¶¶´´´´¶¶¶¶´´´´¶¶¶¶´´´¶¶¶¶´´´´¶¶¶¶´´´¶¶¶¶´´¶´´´´´´´");
  284.     print("´´´´´´´¶¶´¶¶¶¶¶´´¶¶¶¶´´´¶¶¶¶¶´´´¶¶¶¶¶´´´¶¶¶¶´´¶¶¶¶¶´¶¶´´´´´´´");
  285.     print("´´´´´´´¶¶´¶¶¶¶¶´´¶¶¶¶¶¶¶¶¶¶¶´´´´´¶¶¶¶¶¶¶¶¶¶¶´´¶¶¶¶¶´¶´´´´´´´´");
  286.     print("´´´´´´´¶¶´¶¶¶¶¶´´¶¶¶¶¶¶¶¶¶¶¶´´´´´¶¶¶¶¶¶¶¶¶¶¶´´¶¶¶¶¶´¶¶´´´´´´´");
  287.     print("´´´´´´¶¶¶´´¶¶¶¶´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´¶¶¶¶´´¶¶¶´´´´´´");
  288.     print("´´´´´¶¶¶¶´´¶¶¶¶´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´¶¶¶¶´´¶¶¶¶´´´´´");
  289.     print("´´´´¶¶¶¶´´´¶¶¶¶¶´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´¶¶¶¶¶´´´¶¶¶¶´´´´");
  290.     print("´´´¶¶¶¶´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´¶¶¶¶´´´´");
  291.     print("´´´¶¶¶¶¶´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´¶¶¶¶´´´´");
  292.     print("´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´");
  293.     print("´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´");
  294.     print("´´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´´");
  295.     print("´´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´´");
  296.     print("´´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´´");
  297.     print("´´´´´¶¶¶¶¶´´´´´´´´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´´´´´´´´¶¶¶¶¶´´´´´");
  298.     print("´´´´´¶¶¶¶¶¶´´´´´´´´´´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´´´´´´´´´´¶¶¶¶¶¶´´´´´");
  299.     print("´´´´´´¶¶¶¶¶¶¶´´´´´´´..´´´´´¶¶¶¶¶¶¶¶´´´´´´..´´´´¶¶¶¶¶¶¶´´´´´´´");
  300.     print("´´´´´´´¶¶¶¶¶¶¶¶´´´´´´´´´´´´´¶¶¶¶¶´´´´´´´´´´´´´¶¶¶¶¶¶¶¶´´´´´´´");
  301.     print("´´´´´´´´¶¶¶¶¶¶¶¶¶¶´´´´´´´´´´´¶¶¶´´´´´´´´´´´¶¶¶¶¶¶¶¶¶¶´´´´´´´´");
  302.     print("´´´´´´´´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´´´´´´´´");
  303.     print("´´´´´´´´´´´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´´´´´´´´´´´");
  304.     print("´´´´´´´´´´´´´´´´´´¶¶¶¶¶¶¶¶¶¶´´´´´¶¶¶¶¶¶¶¶¶¶´´´´´´´´´´´´´´´´´´");
  305.     print("´´´´´´´´´´´´´´´´´´´¶¶¶¶¶¶¶¶´´´´´´´¶¶¶¶¶¶¶¶´´´´´´´´´´´´´´´´´´´");
  306.     print("´´´´´´´´´´´´´´´´´´¶¶¶¶¶¶¶¶¶´´´´´´´¶¶¶¶¶¶¶¶¶´´´´´´´´´´´´´´´´´´");
  307.     print("´´´´´´´´´´´´´´´´´´¶¶¶¶¶¶¶¶¶´¶¶¶¶¶´¶¶¶¶¶¶¶¶¶´´´´´´´´´´´´´´´´´´");
  308.     print("´´´´´´´´´´´´´´´´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´´´´´´´´´´´´´´´´");
  309.     print("´´´´´´´´´´´´´´´´´¶¶¶´´¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶¶´´¶¶¶´´´´´´´´´´´´´´´´´");
  310.     print("´´´´´´´´´´´´´´´´´´¶¶´´¶¶¶¶´´¶¶¶¶¶´´¶¶¶¶´´¶¶´´´´´´´´´´´´´´´´´´");
  311.     print("´´´´´´´´´´´´´´´´´´´´´´¶¶¶¶´´¶¶¶¶¶´´¶¶¶¶´´´´´´´´´´´´´´´´´´´´´´");
  312.     format(string,sizeof(string),"[%02d/%02d/%d | %02d:%02d:%02d] Gang System V2.4 successfully unloaded!\n", Day, Month, Year, Hour, Minute, Second);
  313.     print(string);
  314.     return 1;
  315. }
  316. public OnPlayerSpawn(playerid)
  317. {
  318.     if(GangSpawn == 0) SetPlayerPos(playerid,-2226.6367, 95.9487, 1036.0600),SetPlayerInterior(playerid, 1),SetPlayerFacingAngle(playerid, 0),SetCameraBehindPlayer(playerid),SetPlayerInterior(playerid, 0);
  319.     if(GangSpawn == 1) SetPlayerPos(playerid, posX, posY, posZ+0.10),SetPlayerFacingAngle(playerid, posA),SetCameraBehindPlayer(playerid),ResetPlayerWeapons(playerid),GivePlayerWeapon(playerid,9,1),GivePlayerWeapon(playerid,24,6000),GivePlayerWeapon(playerid,26,6000),GivePlayerWeapon(playerid,32,6000),GivePlayerWeapon(playerid,31,6000),GivePlayerWeapon(playerid,34,6000);
  320.     return 1;
  321. }
  322.  
  323. public OnPlayerCommandText(playerid, cmdtext[])
  324. {
  325.     if (strcmp("/editgang", cmdtext, true, 10) == 0)
  326.     {
  327.     if(IsPlayerAdmin(playerid))
  328.     {
  329.     ShowPlayerDialog(playerid, EDITGANG ,DIALOG_STYLE_LIST,"{FF0000}EDIT GANG {FFFFFF}panel","{FF0000}Set Spawn\n{FF0000}Set Gang House\n{FF0000}Set Base\n{FF0000}Set Loot\n{FF0000}Set Health\n{FF0000}Set Armour\n{FF0000}Set Minigun\n{FF0000}Set Rocket\n{FF0000}Remove Weapons\n{FF0000}Remove Vehicles\n{FF0000}Set Vehicle\n{FF0000}Remove Teleports\n{FF0000}Set Teleport\n{FF0000}Set Territory\n{FF0000}Reload Gate\n{FF0000}Respawn Vehicles\n{00FF00}Export File","Select","Close");
  330.     }
  331.     else
  332.     {
  333.     }
  334.     return 1;
  335. }
  336.     if (strcmp("/base", cmdtext, true, 10) == 0)
  337.     {
  338.     ShowPlayerDialog(playerid, GANGBASE ,DIALOG_STYLE_LIST,"Base Teleports","{FFFF00}Gang Name","Teleport","Close");
  339.     return 1;
  340. }
  341.     if (strcmp("/gtloc 0", cmdtext, true, 10) == 0)
  342.     {
  343.     if(IsPlayerAdmin(playerid))
  344.     {
  345.     new string[128];
  346.     if(Saved0 > 0)return format(string, sizeof(string), "ERROR: You can use this command only once!"),SendClientMessage(playerid, 0xFF0000FF, string);
  347.     GetPlayerPos(playerid, posX0, posY0, posZ0),GetPlayerFacingAngle(playerid, posA1);
  348.     Saved0 = 1;
  349.     SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Teleport saved!");
  350.     }
  351.     else
  352.     {
  353.     }
  354.     return 1;
  355. }
  356.     if (strcmp("/gtloc 1", cmdtext, true, 10) == 0)
  357.     {
  358.     if(IsPlayerAdmin(playerid))
  359.     {
  360.     new string[128];
  361.     if(Saved1 > 0)return format(string, sizeof(string), "ERROR: You can use this command only once!"),SendClientMessage(playerid, 0xFF0000FF, string);
  362.     GetPlayerPos(playerid, posX1, posY1, posZ1),GetPlayerFacingAngle(playerid, posA1);
  363.     Saved1 = 1;
  364.     SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Teleport saved!");
  365.     }
  366.     else
  367.     {
  368.     }
  369.     return 1;
  370. }
  371.     if (strcmp("/gtloc 2", cmdtext, true, 10) == 0)
  372.     {
  373.     if(IsPlayerAdmin(playerid))
  374.     {
  375.     new string[128];
  376.     if(Saved2 > 0)return format(string, sizeof(string), "ERROR: You can use this command only once!"),SendClientMessage(playerid, 0xFF0000FF, string);
  377.     GetPlayerPos(playerid, posX2, posY2, posZ2),GetPlayerFacingAngle(playerid, posA2);
  378.     Saved2 = 1;
  379.     SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Teleport saved!");
  380.     }
  381.     else
  382.     {
  383.     }
  384.     return 1;
  385. }
  386.     if (strcmp("/gtloc 3", cmdtext, true, 10) == 0)
  387.     {
  388.     if(IsPlayerAdmin(playerid))
  389.     {
  390.     new string[128];
  391.     if(Saved3 > 0)return format(string, sizeof(string), "ERROR: You can use this command only once!"),SendClientMessage(playerid, 0xFF0000FF, string);
  392.     GetPlayerPos(playerid, posX3, posY3, posZ3),GetPlayerFacingAngle(playerid, posA3);
  393.     Saved3 = 1;
  394.     SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Teleport saved!");
  395.     }
  396.     else
  397.     {
  398.     }
  399.     return 1;
  400. }
  401.     if (strcmp("/gtloc 4", cmdtext, true, 10) == 0)
  402.     {
  403.     if(IsPlayerAdmin(playerid))
  404.     {
  405.     new string[128];
  406.     if(Saved4 > 0)return format(string, sizeof(string), "ERROR: You can use this command only once!"),SendClientMessage(playerid, 0xFF0000FF, string);
  407.     GetPlayerPos(playerid, posX4, posY4, posZ4),GetPlayerFacingAngle(playerid, posA4);
  408.     Saved4 = 1;
  409.     SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Teleport saved!");
  410.     }
  411.     else
  412.     {
  413.     }
  414.     return 1;
  415. }
  416.     if (strcmp("/gtloc 5", cmdtext, true, 10) == 0)
  417.     {
  418.     if(IsPlayerAdmin(playerid))
  419.     {
  420.     new string[128];
  421.     if(Saved5 > 0)return format(string, sizeof(string), "ERROR: You can use this command only once!"),SendClientMessage(playerid, 0xFF0000FF, string);
  422.     GetPlayerPos(playerid, posX5, posY5, posZ5),GetPlayerFacingAngle(playerid, posA5);
  423.     Saved5 = 1;
  424.     SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Teleport saved!");
  425.     }
  426.     else
  427.     {
  428.     }
  429.     return 1;
  430. }
  431.     if (strcmp("/gtloc 6", cmdtext, true, 10) == 0)
  432.     {
  433.     if(IsPlayerAdmin(playerid))
  434.     {
  435.     new string[128];
  436.     if(Saved6 > 0)return format(string, sizeof(string), "ERROR: You can use this command only once!"),SendClientMessage(playerid, 0xFF0000FF, string);
  437.     GetPlayerPos(playerid, posX6, posY6, posZ6),GetPlayerFacingAngle(playerid, posA6);
  438.     Saved6 = 1;
  439.     SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Teleport saved!");
  440.     }
  441.     else
  442.     {
  443.     }
  444.     return 1;
  445. }
  446.     if (strcmp("/gtloc 7", cmdtext, true, 10) == 0)
  447.     {
  448.     if(IsPlayerAdmin(playerid))
  449.     {
  450.     new string[128];
  451.     if(Saved7 > 0)return format(string, sizeof(string), "ERROR: You can use this command only once!"),SendClientMessage(playerid, 0xFF0000FF, string);
  452.     SetPlayerPos(playerid, posX7, posY7, posZ7),GetPlayerFacingAngle(playerid, posA7);
  453.     Saved7 = 1;
  454.     SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Teleport saved!");
  455.     }
  456.     else
  457.     {
  458.     }
  459.     return 1;
  460. }
  461.     if (strcmp("/gtloc 8", cmdtext, true, 10) == 0)
  462.     {
  463.     if(IsPlayerAdmin(playerid))
  464.     {
  465.     new string[128];
  466.     if(Saved8 > 0)return format(string, sizeof(string), "ERROR: You can use this command only once!"),SendClientMessage(playerid, 0xFF0000FF, string);
  467.     GetPlayerPos(playerid, posX8, posY8, posZ8),GetPlayerFacingAngle(playerid, posA8);
  468.     Saved8 = 1;
  469.     SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Teleport saved!");
  470.     }
  471.     else
  472.     {
  473.     }
  474.     return 1;
  475. }
  476.     if (strcmp("/gtloc 9", cmdtext, true, 10) == 0)
  477.     {
  478.     if(IsPlayerAdmin(playerid))
  479.     {
  480.     new string[128];
  481.     if(Saved9 > 0)return format(string, sizeof(string), "ERROR: You can use this command only once!"),SendClientMessage(playerid, 0xFF0000FF, string);
  482.     GetPlayerPos(playerid, posX9, posY9, posZ9),GetPlayerFacingAngle(playerid, posA9);
  483.     Saved9 = 1;
  484.     SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Teleport saved!");
  485.     }
  486.     else
  487.     {
  488.     }
  489.     return 1;
  490. }
  491.     if (strcmp("/gtloc 10", cmdtext, true, 10) == 0)
  492.     {
  493.     if(IsPlayerAdmin(playerid))
  494.     {
  495.     new string[128];
  496.     if(Saved10 > 0)return format(string, sizeof(string), "ERROR: You can use this command only once!"),SendClientMessage(playerid, 0xFF0000FF, string);
  497.     GetPlayerPos(playerid, posX10, posY10, posZ10),GetPlayerFacingAngle(playerid, posA10);
  498.     Saved10 = 1;
  499.     SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Teleport saved!");
  500.     }
  501.     else
  502.     {
  503.     }
  504.     return 1;
  505. }
  506.     if (strcmp("/world", cmdtext, true, 10) == 0)
  507.     {
  508.     new string[32];
  509.     format(string, sizeof(string), "Current World: %i", GetPlayerVirtualWorld(playerid));
  510.     SendClientMessage(playerid, 0xCCCCCCCC, string);
  511.     return 1;
  512.     }
  513.     if (strcmp("/angle", cmdtext, true, 10) == 0)
  514.     {
  515.     new Float:Angle, string[26];
  516.     GetPlayerFacingAngle(playerid, Angle);
  517.     format(string, sizeof(string), "Current Facing Angle: %0.2f", Angle);
  518.     SendClientMessage(playerid, 0xCCCCCCCC, string);
  519.     return 1;
  520.     }
  521. // You have to manualy update gate direction once you add a new one everytime //
  522. /*
  523.     if(strcmp("/og", cmdtext, true, 10) == 0)
  524.     {
  525.     if(IsPlayerInRangeOfPoint(playerid, 10, 957.1023, 2402.1531, 12.5997))
  526.     {
  527.     MoveDynamicObject(gate, 957.1023, 2402.1531, 18.1267, 3, 0, 0, 180);
  528.     }
  529.     else
  530.     {
  531.     SendClientMessage(playerid, 0xFF0000FF, "ERROR: You are not near any gate");
  532.     }
  533.     return 1;
  534.     }
  535.     if(strcmp("/cg", cmdtext, true, 10) == 0)
  536.     {
  537.     if(IsPlayerInRangeOfPoint(playerid, 10, 957.1023, 2402.1531, 12.5997))
  538.     {
  539.     MoveDynamicObject(gate, 957.1023, 2402.1531, 12.5997, 3, 0, 0, 180);
  540.     }
  541.     else
  542.     {
  543.     SendClientMessage(playerid, 0xFF0000FF, "ERROR: You are not near any gate");
  544.     }
  545.     return 1;
  546. }
  547. */
  548.     return 0;
  549. }
  550.  
  551. public OnPlayerPickUpDynamicPickup(playerid, pickupid)
  552. {
  553.     if(pickupid == hp)
  554.     {
  555.     if(heal_timer > 0)return SendClientMessage(playerid, 0xFF0000FF, "ERROR: You can heal only once every 2 minutes!");
  556.     SetPlayerHealth(playerid,100),GameTextForPlayer(playerid, "~r~~h~Hp Filled", 2500, 3),heal_timer = SetTimerEx("heal_timer",200000,false,"i",playerid);
  557.     }
  558.     if(pickupid == ar)
  559.     {
  560.     if(armour_timer > 0)return SendClientMessage(playerid, 0xFF0000FF, "ERROR: You can heal only once every 2 minutes!");
  561.     SetPlayerArmour(playerid,100),GameTextForPlayer(playerid, "~b~~h~Armour Filled", 2500, 3),armour_timer = SetTimerEx("armour_timer",200000,false,"i",playerid);
  562.     }
  563.     if(pickupid == mg)
  564.     {
  565.     if(minigun_timer > 0)return SendClientMessage(playerid, 0xFF0000FF, "ERROR: You can load this gun only once every 10 minutes!");
  566.     GivePlayerWeapon(playerid, 38, 50),GameTextForPlayer(playerid, "~g~Gun loaded", 2500, 3),minigun_timer = SetTimerEx("minigun_timer",200000,false,"i",playerid);
  567.     }
  568.     if(pickupid == rk)
  569.     {
  570.     if(rocket_timer > 0)return SendClientMessage(playerid, 0xFF0000FF, "ERROR: You can load this gun only once every 10 minutes!");
  571.     GivePlayerWeapon(playerid, 35, 10),GameTextForPlayer(playerid, "~g~Gun loaded", 2500, 3),rocket_timer = SetTimerEx("rocket_timer",200000,false,"i",playerid);
  572.     }
  573.     if(pickupid == ghouse)
  574.     {
  575.     }
  576.     if(pickupid == loot)
  577.     {
  578.     }
  579.     return 1;
  580. }
  581. public OnPlayerEnterDynamicCP(playerid, checkpointid)
  582. {
  583.     if(checkpointid == tp)
  584.     {
  585.     if(Saved0 == 1) SetPlayerPos(playerid, posX0, posY0, posZ0),SetPlayerFacingAngle(playerid, posA0),SetCameraBehindPlayer(playerid),SetPlayerInterior(playerid,0);
  586.     }
  587.     if(checkpointid == tp1)
  588.     {
  589.     if(Saved1 == 1) SetPlayerPos(playerid, posX1, posY1, posZ1),SetPlayerFacingAngle(playerid, posA1),SetCameraBehindPlayer(playerid),SetPlayerInterior(playerid,0);
  590.     }
  591.     if(checkpointid == tp2)
  592.     {
  593.     if(Saved2 == 1)SetPlayerPos(playerid, posX2, posY2, posZ2),SetPlayerFacingAngle(playerid, posA2),SetCameraBehindPlayer(playerid),SetPlayerInterior(playerid,0);
  594.     }
  595.     if(checkpointid == tp3)
  596.     {
  597.     if(Saved3 == 1)SetPlayerPos(playerid, posX3, posY3, posZ3),SetPlayerFacingAngle(playerid, posA3),SetCameraBehindPlayer(playerid),SetPlayerInterior(playerid,0);
  598.     }
  599.     if(checkpointid == tp4)
  600.     {
  601.     if(Saved4 == 1)SetPlayerPos(playerid, posX4, posY4, posZ4),SetPlayerFacingAngle(playerid, posA4),SetCameraBehindPlayer(playerid),SetPlayerInterior(playerid,0);
  602.     }
  603.     if(checkpointid == tp5)
  604.     {
  605.     if(Saved5 == 1)SetPlayerPos(playerid, posX5, posY5, posZ5),SetPlayerFacingAngle(playerid, posA5),SetCameraBehindPlayer(playerid),SetPlayerInterior(playerid,0);
  606.     }
  607.     if(checkpointid == tp6)
  608.     {
  609.     if(Saved6 == 1)SetPlayerPos(playerid, posX6, posY6, posZ6),SetPlayerFacingAngle(playerid, posA6),SetCameraBehindPlayer(playerid),SetPlayerInterior(playerid,0);
  610.     }
  611.     if(checkpointid == tp7)
  612.     {
  613.     if(Saved7 == 1)SetPlayerPos(playerid, posX7, posY7, posZ7),SetPlayerFacingAngle(playerid, posA7),SetCameraBehindPlayer(playerid),SetPlayerInterior(playerid,0);
  614.     }
  615.     if(checkpointid == tp8)
  616.     {
  617.     if(Saved8 == 1)SetPlayerPos(playerid, posX8, posY8, posZ8),SetPlayerFacingAngle(playerid, posA8),SetCameraBehindPlayer(playerid),SetPlayerInterior(playerid,0);
  618.     }
  619.     if(checkpointid == tp9)
  620.     {
  621.     if(Saved9 == 1)SetPlayerPos(playerid, posX9, posY9, posZ9),SetPlayerFacingAngle(playerid, posA9),SetCameraBehindPlayer(playerid),SetPlayerInterior(playerid,0);
  622.     }
  623.     if(checkpointid == tp10)
  624.     {
  625.     if(Saved10 == 1)SetPlayerPos(playerid, posX10, posY10, posZ10),SetPlayerFacingAngle(playerid, posA10),SetCameraBehindPlayer(playerid),SetPlayerInterior(playerid,0);
  626.     }
  627.     return 1;
  628. }
  629.  
  630. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  631. {
  632.     if(dialogid ==  EDITGANG)
  633.     {
  634.         if(response)
  635.         {
  636.             if(listitem == 0)//GANG SPAWN
  637.             {
  638.             GetPlayerPos(playerid, posX, posY, posZ),GetPlayerFacingAngle(playerid, posA),SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Spawn saved!"),GangSpawn = 1;
  639.             }
  640.             if(listitem == 1)//GANG HOUSE
  641.             {
  642.             if(ghouse_timer > 0) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: Gang House can be saved only once!");
  643.             new Float:x1, Float:y1, Float:z1;
  644.             GetPlayerPos(playerid, x1, y1, z1);
  645.             ghouse = CreateDynamicPickup(1239, 1, x1, y1, z1, -1);
  646.             thouse = Create3DTextLabel("{FFFF00}/enter\n{FFFFFF}Gang House", -1, x1, y1, z1, 25.0, 0);
  647.             SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Gang House saved!");
  648.             ghouse_timer = 1;
  649.             }
  650.             if(listitem == 2)//GANG BASE
  651.             {
  652.             if(base_timer > 1) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: Base can by set only once!");
  653.             GetPlayerPos(playerid, posX11, posY11, posZ11),GetPlayerFacingAngle(playerid, posA11),SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Base saved!"),Saved11 = 1;
  654.             }
  655.             if(listitem == 3)//GANG LOOT
  656.             {
  657.             Delete3DTextLabel(textloot);
  658.             DestroyDynamicPickup(loot);
  659.             new Float:x, Float:y, Float:z;
  660.             GetPlayerPos(playerid, x, y, z);
  661.             loot = CreateDynamicPickup(1550, 1, x, y, z, -1);
  662.             textloot = Create3DTextLabel("{CC9900}Gang Loot \n{FFFFFF}Money: {FF0000}999999999{FFFFFF}, Coins: {FF0000}123456789{FFFFFF}, Gems: {FF0000}1337\n{FFFFFF}/loot", -1, x, y, z, 25.0, 0);
  663.             SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Loot saved!");
  664.             }
  665.             if(listitem == 4)//GANG HEALTH
  666.             {
  667.             DestroyDynamicPickup(hp);
  668.             new Float:x, Float:y, Float:z;
  669.             GetPlayerPos(playerid, x, y, z);
  670.             hp = CreateDynamicPickup(1240, 1, x, y, z, -1);
  671.             SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Health saved!");
  672.             }
  673.             if(listitem == 5)//GANG ARMOUR
  674.             {
  675.             DestroyDynamicPickup(ar);
  676.             new Float:x, Float:y, Float:z;
  677.             GetPlayerPos(playerid, x, y, z);
  678.             ar = CreateDynamicPickup(1242, 1, x, y, z, -1);
  679.             SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Armour saved!");
  680.             }
  681.             if(listitem == 6)//GANG MINIGUN
  682.             {
  683.             DestroyDynamicPickup(mg);
  684.             new Float:x, Float:y, Float:z;
  685.             GetPlayerPos(playerid, x, y, z);
  686.             mg = CreateDynamicPickup(362, 1, x, y, z, -1);
  687.             SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Minigun saved!");
  688.             }
  689.             if(listitem == 7)//GANG ROCKET
  690.             {
  691.             DestroyDynamicPickup(rk);
  692.             new Float:x, Float:y, Float:z;
  693.             GetPlayerPos(playerid, x, y, z);
  694.             rk = CreateDynamicPickup(359, 1, x, y, z, -1);
  695.             SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Rocket saved!");
  696.             }
  697.             if(listitem == 8)//REMOVE WEAPONS
  698.             {
  699.             if(wp_timer > 0) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: Gang Weapons are not created!");
  700.             DestroyDynamicPickup(mg);
  701.             DestroyDynamicPickup(rk);
  702.             Delete3DTextLabel(textloot);
  703.             Delete3DTextLabel(thouse);
  704.             DestroyDynamicPickup(hp);
  705.             DestroyDynamicPickup(ar);
  706.             DestroyDynamicPickup(loot);
  707.             DestroyDynamicPickup(ghouse);
  708.             DestroyDynamicObject(gate);
  709.             Delete3DTextLabel(ganggate);
  710.             SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Weapons removed!");
  711.             }
  712.             if(listitem == 9)//REMOVE VEHICLES
  713.             {
  714.             SendClientMessage(playerid, 0xFF0000FF, "ERROR: This function is under development");
  715.             }
  716.             if(listitem == 10)//SET VEHICLES
  717.             {
  718.             if(IsPlayerInAnyVehicle(playerid))
  719.             {
  720.             ShowPlayerDialog(playerid, VEHICLES, DIALOG_STYLE_INPUT ,"{FF0000}Set Vehicle","Insert vehicle color bellow\n{FFFFFF}Example. carcolor1{FF0000}[colorid], {FFFFFF}carcolor2{FF0000}[colorid]","Create","Close");
  721.             }
  722.             else
  723.             {
  724.             SendClientMessage(playerid, 0xFF0000FF, "ERROR: You are not in a vehicle");
  725.             }
  726.             }
  727.             if(listitem == 11)//REMOVE TELEPORTS
  728.             {
  729.             DestroyDynamicCP(tp);
  730.             DestroyDynamicCP(tp1);
  731.             DestroyDynamicCP(tp2);
  732.             DestroyDynamicCP(tp3);
  733.             DestroyDynamicCP(tp4);
  734.             DestroyDynamicCP(tp5);
  735.             DestroyDynamicCP(tp6);
  736.             DestroyDynamicCP(tp7);
  737.             DestroyDynamicCP(tp8);
  738.             DestroyDynamicCP(tp9);
  739.             DestroyDynamicCP(tp10);
  740.             Delete3DTextLabel(ltp);
  741.             Delete3DTextLabel(ltp1);
  742.             Delete3DTextLabel(ltp2);
  743.             Delete3DTextLabel(ltp3);
  744.             Delete3DTextLabel(ltp4);
  745.             Delete3DTextLabel(ltp5);
  746.             Delete3DTextLabel(ltp6);
  747.             Delete3DTextLabel(ltp7);
  748.             Delete3DTextLabel(ltp8);
  749.             Delete3DTextLabel(ltp9);
  750.             Delete3DTextLabel(ltp10);
  751.             SendClientMessage(playerid, 0x00CC3300, "SUCCESS: Teleports removed!");
  752.             }
  753.             if(listitem == 12)//SET TELEPORTS
  754.             {
  755.             ShowPlayerDialog(playerid, TELEPORTS ,DIALOG_STYLE_LIST ,"{FF0000}Set Teleport","{FF0000}#0\n{FF0000}#1\n{FF0000}#2\n{FF0000}#3\n{FF0000}#4\n{FF0000}#5\n{FF0000}#6\n{FF0000}#7\n{FF0000}#8\n{FF0000}#9\n{FF0000}#10","Create","Close");
  756.             }
  757.             if(listitem == 13)//SET TERRITORY
  758.             {
  759.             ShowPlayerDialog(playerid, TERRITORY, 2,"{FF0000}Set Territory List","{FF0000}Create Territory\n{FF0000}Save Territory\n{FF0000}Destroy Territory","Select","Cancel");
  760.             return 1;
  761.             }
  762.             if(listitem == 14)//RELOAD GATE
  763.             {
  764.             SendClientMessage(playerid, 0xFF0000FF, "ERROR: There is no gate loaded!");
  765.             /*DestroyDynamicObject(gate);
  766.             Delete3DTextLabel(ganggate);
  767.             ganggate = Create3DTextLabel("If you are in this gang use {FFFF00}/opengate(/og) {FFFFFF}to open gate \nand {FFFF00}/closegate(/cg) {FFFFFF}to close gate! \n{FF0000}/Blowgate", -1, x, y, z, distance, 0);
  768.             gate = CreateDynamicObject(objectid, x, y, z, rx, ry, rz);
  769.             SendClientMessage(playerid, 0x00CC3300, "SUCCES: Gate reloaded!");*/
  770.             }
  771.             if(listitem == 15)//RESPAWN VEHICLES
  772.             {
  773.             SendClientMessage(playerid, 0xFF0000FF, "ERROR: This function is under development");
  774.             }
  775.             if(listitem == 16)//EXPORT FILE
  776.             {
  777.             SendClientMessage(playerid, 0xFF0000FF, "ERROR: This new function is under development");
  778.             }
  779.         }
  780.         return 1;
  781.     }
  782.     if(dialogid == GANGBASE)//              Save Base Teleport                //
  783.     {
  784.         if(response)
  785.         {
  786.             if(Saved11 == 1)
  787.             {
  788.             SetPlayerPos(playerid, posX11, posY11, posZ11),SetPlayerFacingAngle(playerid, posA11),SetPlayerInterior(playerid, 0),SetCameraBehindPlayer(playerid),GameTextForPlayer(playerid,"~g~~h~Teleported",2000,3);
  789.             }
  790.             else
  791.             {
  792.             SendClientMessage(playerid, 0xFF0000FF, "ERROR: Gang Base is not saved!");
  793.             }
  794.         }
  795.         return 1;
  796.     }
  797.     if(dialogid == 1010)//              Create Teleport #0                    //
  798.     {
  799.     if(response)
  800.     {
  801.             if(teleport > 0) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: This teleport is already created!");
  802.             new Float:x,Float:y,Float:z;
  803.             GetPlayerPos(playerid,x,y,z);
  804.             tp = CreateDynamicCP(x, y, z-0.90, 1, -1, -1, -1, 25, -1, 0);
  805.             ltp = Create3DTextLabel("", -1, x, y, z, 25, 0);
  806.             Update3DTextLabelText(ltp, -1, inputtext);
  807.             SendClientMessage(playerid,0x00CC3300, "SUCCESS: Teleport createad! - Use /gtloc 0 to save teleport direction!");
  808.             teleport = 1;
  809.     }
  810.     return 1;
  811.     }
  812.     if(dialogid == 1011)//              Create Teleport #1                    //
  813.     {
  814.     if(response)
  815.     {
  816.             if(teleport1 > 0) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: This teleport is already created!");
  817.             new Float:x,Float:y,Float:z;
  818.             GetPlayerPos(playerid,x,y,z);
  819.             tp1 = CreateDynamicCP(x, y, z-0.90, 1, -1, -1, -1, 25, -1, 0);
  820.             ltp1 = Create3DTextLabel("", -1, x, y, z, 25, 0);
  821.             Update3DTextLabelText(ltp1, -1, inputtext);
  822.             SendClientMessage(playerid,0x00CC3300, "SUCCESS: Teleport createad! - Use /gtloc 1 to save teleport direction!");
  823.             teleport1 = 1;
  824.     }
  825.     return 1;
  826.     }
  827.     if(dialogid == 1012)//              Create Teleport #2                    //
  828.     {
  829.     if(response)
  830.     {
  831.             if(teleport2 > 0) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: This teleport is already created!");
  832.             new Float:x,Float:y,Float:z;
  833.             GetPlayerPos(playerid,x,y,z);
  834.             tp2 = CreateDynamicCP(x, y, z-0.90, 1, -1, -1, -1, 5, -1, 0);
  835.             ltp2 = Create3DTextLabel("", -1, x, y, z, 25, 0);
  836.             Update3DTextLabelText(ltp2, -1, inputtext);
  837.             SendClientMessage(playerid,0x00CC3300, "SUCCESS: Teleport createad! - Use /gtloc 2 to save teleport direction!");
  838.             teleport2 = 1;
  839.     }
  840.     return 1;
  841.     }
  842.     if(dialogid == 1013)//              Create Teleport #3                    //
  843.     {
  844.     if(response)
  845.     {
  846.             if(teleport3 > 0) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: This teleport is already created!");
  847.             new Float:x,Float:y,Float:z;
  848.             GetPlayerPos(playerid,x,y,z);
  849.             tp3 = CreateDynamicCP(x, y, z-0.90, 1, -1, -1, -1, 5, -1, 0);
  850.             ltp3 = Create3DTextLabel("", -1, x, y, z, 25, 0);
  851.             Update3DTextLabelText(ltp3, -1, inputtext);
  852.             SendClientMessage(playerid,0x00CC3300, "SUCCESS: Teleport createad! - Use /gtloc 3 to save teleport direction!");
  853.             teleport3 = 1;
  854.     }
  855.     return 1;
  856.     }
  857.     if(dialogid == 1014)//              Create Teleport #4                    //
  858.     {
  859.     if(response)
  860.     {
  861.             if(teleport4 > 0) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: This teleport is already created!");
  862.             new Float:x,Float:y,Float:z;
  863.             GetPlayerPos(playerid,x,y,z);
  864.             tp4 = CreateDynamicCP(x, y, z-0.90, 1, -1, -1, -1, 5, -1, 0);
  865.             ltp4 = Create3DTextLabel("", -1, x, y, z, 25, 0);
  866.             Update3DTextLabelText(ltp4, -1, inputtext);
  867.             SendClientMessage(playerid,0x00CC3300, "SUCCESS: Teleport createad! - Use /gtloc 4 to save teleport direction!");
  868.             teleport4 = 1;
  869.     }
  870.     return 1;
  871.     }
  872.     if(dialogid == 1015)//              Create Teleport #5                    //
  873.     {
  874.     if(response)
  875.     {
  876.             if(teleport5 > 0) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: This teleport is already created!");
  877.             new Float:x,Float:y,Float:z;
  878.             GetPlayerPos(playerid,x,y,z);
  879.             tp5 = CreateDynamicCP(x, y, z-0.90, 1, -1, -1, -1, 5, -1, 0);
  880.             ltp5 = Create3DTextLabel("", -1, x, y, z, 25, 0);
  881.             Update3DTextLabelText(ltp5, -1, inputtext);
  882.             SendClientMessage(playerid,0x00CC3300, "SUCCESS: Teleport createad! - Use /gtloc 5 to save teleport direction!");
  883.             teleport5 = 1;
  884.     }
  885.     return 1;
  886.     }
  887.     if(dialogid == 1016)//              Create Teleport #6                    //
  888.     {
  889.     if(response)
  890.     {
  891.             if(teleport6 > 0) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: This teleport is already created!");
  892.             new Float:x,Float:y,Float:z;
  893.             GetPlayerPos(playerid,x,y,z);
  894.             tp6 = CreateDynamicCP(x, y, z-0.90, 1, -1, -1, -1, 5, -1, 0);
  895.             ltp6 = Create3DTextLabel("", -1, x, y, z, 25, 0);
  896.             Update3DTextLabelText(ltp6, -1, inputtext);
  897.             SendClientMessage(playerid,0x00CC3300, "SUCCESS: Teleport createad! - Use /gtloc 6 to save teleport direction!");
  898.             teleport6 = 1;
  899.     }
  900.     return 1;
  901.     }
  902.     if(dialogid == 1017)//              Create Teleport #7                    //
  903.     {
  904.     if(response)
  905.     {
  906.             if(teleport7 > 0) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: This teleport is already created!");
  907.             new Float:x,Float:y,Float:z;
  908.             GetPlayerPos(playerid,x,y,z);
  909.             tp7 = CreateDynamicCP(x, y, z-0.90, 1, -1, -1, -1, 5, -1, 0);
  910.             ltp7 = Create3DTextLabel("", -1, x, y, z, 25, 0);
  911.             Update3DTextLabelText(ltp7, -1, inputtext);
  912.             SendClientMessage(playerid,0x00CC3300, "SUCCESS: Teleport createad! - Use /gtloc 7 to save teleport direction!");
  913.             teleport7 = 1;
  914.     }
  915.     return 1;
  916.     }
  917.     if(dialogid == 1018)//              Create Teleport #8                    //
  918.     {
  919.     if(response)
  920.     {
  921.             if(teleport8 > 0) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: This teleport is already created!");
  922.             new Float:x,Float:y,Float:z;
  923.             GetPlayerPos(playerid,x,y,z);
  924.             tp8 = CreateDynamicCP(x, y, z-0.90, 1, -1, -1, -1, 5, -1, 0);
  925.             ltp8 = Create3DTextLabel("", -1, x, y, z, 25, 0);
  926.             Update3DTextLabelText(ltp8, -1, inputtext);
  927.             SendClientMessage(playerid,0x00CC3300, "SUCCESS: Teleport createad! - Use /gtloc 8 to save teleport direction!");
  928.             teleport8 = 1;
  929.     }
  930.     return 1;
  931.     }
  932.     if(dialogid == 1019)//              Create Teleport #9                    //
  933.     {
  934.     if(response)
  935.     {
  936.             if(teleport9 > 0) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: This teleport is already created!");
  937.             new Float:x,Float:y,Float:z;
  938.             GetPlayerPos(playerid,x,y,z);
  939.             tp9 = CreateDynamicCP(x, y, z-0.90, 1, -1, -1, -1, 5, -1, 0);
  940.             ltp9 = Create3DTextLabel("", -1, x, y, z, 25, 0);
  941.             Update3DTextLabelText(ltp9, -1, inputtext);
  942.             SendClientMessage(playerid,0x00CC3300, "SUCCESS: Teleport createad! - Use /gtloc 9 to save teleport direction!");
  943.             teleport9 = 1;
  944.     }
  945.     return 1;
  946.     }
  947.     if(dialogid == 1020)//              Create Teleport #10                   //
  948.     {
  949.     if(response)
  950.     {
  951.             if(teleport10 > 0) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: This teleport is already created!");
  952.             new Float:x,Float:y,Float:z;
  953.             GetPlayerPos(playerid,x,y,z);
  954.             tp10 = CreateDynamicCP(x, y, z-0.90, 1, -1, -1, -1, 5, -1, 0);
  955.             ltp10 = Create3DTextLabel("", -1, x, y, z, 25, 0);
  956.             Update3DTextLabelText(ltp10, -1, inputtext);
  957.             SendClientMessage(playerid,0x00CC3300, "SUCCESS: Teleport createad! - Use /gtloc 10 to save teleport direction!");
  958.             teleport10 = 1;
  959.     }
  960.     return 1;
  961.     }
  962.     if(dialogid == TELEPORTS)//                 Teleports List                //
  963.     {
  964.     if(response)
  965.         {
  966.             if(listitem == 0)//         Teleport 0 - Dialog Menu              //
  967.             {
  968.             ShowPlayerDialog(playerid, 1010 ,DIALOG_STYLE_INPUT,"{FF0000}Teleport Name","Insert an teleport name bellow","Create","Close");
  969.             }
  970.             if(listitem == 1)//         Teleport 1 - Dialog Menu              //
  971.             {
  972.             ShowPlayerDialog(playerid, 1011 ,DIALOG_STYLE_INPUT,"{FF0000}Teleport Name","Insert an teleport name bellow","Create","Close");
  973.             }
  974.             if(listitem == 2)//         Teleport 2 - Dialog Menu              //
  975.             {
  976.             ShowPlayerDialog(playerid, 1012 ,DIALOG_STYLE_INPUT,"{FF0000}Teleport Name","Insert an teleport name bellow","Create","Close");
  977.             }
  978.             if(listitem == 3)//         Teleport 3 - Dialog Menu              //
  979.             {
  980.             ShowPlayerDialog(playerid, 1013 ,DIALOG_STYLE_INPUT,"{FF0000}Teleport Name","Insert an teleport name bellow","Create","Close");
  981.             }
  982.             if(listitem == 4)//         Teleport 4 - Dialog Menu              //
  983.             {
  984.             ShowPlayerDialog(playerid, 1014 ,DIALOG_STYLE_INPUT,"{FF0000}Teleport Name","Insert an teleport name bellow","Create","Close");
  985.             }
  986.             if(listitem == 5)//         Teleport 5 - Dialog Menu              //
  987.             {
  988.             ShowPlayerDialog(playerid, 1015 ,DIALOG_STYLE_INPUT,"{FF0000}Teleport Name","Insert an teleport name bellow","Create","Close");
  989.             }
  990.             if(listitem == 6)//         Teleport 6 - Dialog Menu              //
  991.             {
  992.             ShowPlayerDialog(playerid, 1016 ,DIALOG_STYLE_INPUT,"{FF0000}Teleport Name","Insert an teleport name bellow","Create","Close");
  993.             }
  994.             if(listitem == 7)//         Teleport 7 - Dialog Menu              //
  995.             {
  996.             ShowPlayerDialog(playerid, 1017 ,DIALOG_STYLE_INPUT,"{FF0000}Teleport Name","Insert an teleport name bellow","Create","Close");
  997.             }
  998.             if(listitem == 8)//         Teleport 8 - Dialog Menu              //
  999.             {
  1000.             ShowPlayerDialog(playerid, 1018 ,DIALOG_STYLE_INPUT,"{FF0000}Teleport Name","Insert an teleport name bellow","Create","Close");
  1001.             }
  1002.             if(listitem == 9)//         Teleport 9 - Dialog Menu              //
  1003.             {
  1004.             ShowPlayerDialog(playerid, 1019 ,DIALOG_STYLE_INPUT,"{FF0000}Teleport Name","Insert an teleport name bellow","Create","Close");
  1005.             }
  1006.             if(listitem == 10)//        Teleport 10 - Dialog Menu             //
  1007.             {
  1008.             ShowPlayerDialog(playerid, 1020 ,DIALOG_STYLE_INPUT,"{FF0000}Teleport Name","Insert an teleport name bellow","Create","Close");
  1009.             }
  1010.         }
  1011.     return 1;
  1012.     }
  1013.     if(dialogid == VEHICLES)
  1014.     {
  1015.         if(response)
  1016.         {
  1017.             new CarSpawned[MAX_PLAYERS],currentveh;
  1018.             new Float: Pos[4];
  1019.             new vid = GetVehicleModel(GetPlayerVehicleID(playerid));
  1020.             GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
  1021.             GetPlayerFacingAngle(playerid, Pos[3]);
  1022.             currentveh = GetPlayerVehicleID(playerid);
  1023.             DestroyVehicle(currentveh);
  1024.             CarSpawned[playerid] = AddStaticVehicleEx(vid, Pos[0], Pos[1], Pos[2], Pos[3], strval(inputtext),strval(inputtext), 0);
  1025.             LinkVehicleToInterior(CarSpawned[playerid], 0);
  1026.             SendClientMessage(playerid,0x00CC3300, "SUCCESS: Vehicle created!");
  1027.             }
  1028.         return 1;
  1029.     }
  1030.     if(dialogid == TERRITORY)
  1031.     {
  1032.         if(response)
  1033.         {
  1034.             if(listitem == 0)
  1035.             {
  1036.                 if(Tprotection > 0) return SendClientMessage(playerid, 0xFF0000FF, "ERROR: You already create an territory!");
  1037.                 if(Makingzone == 1) return SendClientMessage(playerid,0xFF0000FF,"ERROR: You already created an zone! Remove it and try again!");
  1038.                 ShowPlayerDialog(playerid,1,2,"{FF0000}Territory Colors","Blue\nRed\nGreen\nPurple\nYellow\nGrey\nLightblue\nWhite\nBlack","Select","Cancel");
  1039.                 Makingzone = 1;
  1040.                 Tprotection = 1;
  1041.             }
  1042.             if(listitem == 1)
  1043.             {
  1044.                 if(Makingzone == 0) return SendClientMessage(playerid,0xFF0000FF,"ERROR: Create one first and try again!");
  1045.                 new string[128];
  1046.                 KillTimer(Create);
  1047.                 format(string,sizeof(string),"GangZoneCreate(%f,%f,%f,%f);\r\n",ZMinX,ZMinY,ZMaxX,ZMaxY);
  1048.                 SendClientMessage(playerid,0x00CC3300,"SUCCESS: Territory saved!");
  1049.                 Makingzone = 0;
  1050.             }
  1051.             if(listitem == 2)
  1052.             {
  1053.                 if(Makingzone == 0) return SendClientMessage(playerid,0xFF0000FF,"ERROR: You can remove an territory only while you editing!");
  1054.                 KillTimer(Create);
  1055.                 GangZoneDestroy(GangZone);
  1056.                 Makingzone = 0;
  1057.                 SendClientMessage(playerid,0x00CC3300,"SUCCESS: Territory removed!");
  1058.             }
  1059.         }
  1060.     }
  1061.     if(dialogid == 01)
  1062.     {
  1063.         if(response)
  1064.         {
  1065.             if(listitem == 0)
  1066.             {
  1067.                 new Float:Z;
  1068.                 new color;
  1069.                 GetPlayerPos(playerid,ZMinX,ZMinY,Z);
  1070.                 color = 0x0000FFAA;
  1071.                 GangZone = GangZoneCreate(ZMinX,ZMinY,ZMaxX,ZMaxY);
  1072.                 GangZoneShowForAll(GangZone,color);
  1073.                 Create = SetTimerEx("Createzone",100,1,"ud",playerid,color);
  1074.             }
  1075.             if(listitem == 1)
  1076.             {
  1077.                 new Float:Z;
  1078.                 new color;
  1079.                 GetPlayerPos(playerid,ZMinX,ZMinY,Z);
  1080.                 color = 0xFF0000AA;
  1081.                 GangZone = GangZoneCreate(ZMinX,ZMinY,ZMaxX,ZMaxY);
  1082.                 GangZoneShowForAll(GangZone,color);
  1083.                 Create = SetTimerEx("Createzone",100,1,"ud",playerid,color);
  1084.             }
  1085.             if(listitem == 2)
  1086.             {
  1087.                 new Float:Z;
  1088.                 new color;
  1089.                 GetPlayerPos(playerid,ZMinX,ZMinY,Z);
  1090.                 color = 0x00FF00AA;
  1091.                 GangZone = GangZoneCreate(ZMinX,ZMinY,ZMaxX,ZMaxY);
  1092.                 GangZoneShowForAll(GangZone,color);
  1093.                 Create = SetTimerEx("Createzone",100,1,"ud",playerid,color);
  1094.             }
  1095.             if(listitem == 3)
  1096.             {
  1097.                 new Float:Z;
  1098.                 new color;
  1099.                 GetPlayerPos(playerid,ZMinX,ZMinY,Z);
  1100.                 color = 0xFF00FFAA;
  1101.                 GangZone = GangZoneCreate(ZMinX,ZMinY,ZMaxX,ZMaxY);
  1102.                 GangZoneShowForAll(GangZone,color);
  1103.                 Create = SetTimerEx("Createzone",100,1,"ud",playerid,color);
  1104.             }
  1105.             if(listitem == 4)
  1106.             {
  1107.                 new Float:Z;
  1108.                 new color;
  1109.                 GetPlayerPos(playerid,ZMinX,ZMinY,Z);
  1110.                 color = 0xFFFF00AA;
  1111.                 GangZone = GangZoneCreate(ZMinX,ZMinY,ZMaxX,ZMaxY);
  1112.                 GangZoneShowForAll(GangZone,color);
  1113.                 Create = SetTimerEx("Createzone",100,1,"ud",playerid,color);
  1114.             }
  1115.             if(listitem == 5)
  1116.             {
  1117.                 new Float:Z;
  1118.                 new color;
  1119.                 GetPlayerPos(playerid,ZMinX,ZMinY,Z);
  1120.                 color = 0x888888AA;
  1121.                 GangZone = GangZoneCreate(ZMinX,ZMinY,ZMaxX,ZMaxY);
  1122.                 GangZoneShowForAll(GangZone,color);
  1123.                 Create = SetTimerEx("Createzone",100,1,"ud",playerid,color);
  1124.             }
  1125.             if(listitem == 6)
  1126.             {
  1127.                 new Float:Z;
  1128.                 new color;
  1129.                 GetPlayerPos(playerid,ZMinX,ZMinY,Z);
  1130.                 color = 0x00FFFFAA;
  1131.                 GangZone = GangZoneCreate(ZMinX,ZMinY,ZMaxX,ZMaxY);
  1132.                 GangZoneShowForAll(GangZone,color);
  1133.                 Create = SetTimerEx("Createzone",100,1,"ud",playerid,color);
  1134.             }
  1135.             if(listitem == 7)
  1136.             {
  1137.                 new Float:Z;
  1138.                 new color;
  1139.                 GetPlayerPos(playerid,ZMinX,ZMinY,Z);
  1140.                 color = 0xFFFFFFAA;
  1141.                 GangZone = GangZoneCreate(ZMinX,ZMinY,ZMaxX,ZMaxY);
  1142.                 GangZoneShowForAll(GangZone,color);
  1143.                 Create = SetTimerEx("Createzone",100,1,"ud",playerid,color);
  1144.             }
  1145.             if(listitem == 8)
  1146.             {
  1147.                 new Float:Z;
  1148.                 new color;
  1149.                 GetPlayerPos(playerid,ZMinX,ZMinY,Z);
  1150.                 color = 0x000000AA;
  1151.                 GangZone = GangZoneCreate(ZMinX,ZMinY,ZMaxX,ZMaxY);
  1152.                 GangZoneShowForAll(GangZone,color);
  1153.                 Create = SetTimerEx("Createzone",100,1,"ud",playerid,color);
  1154.             }
  1155.             SendClientMessage(playerid,0x00CC3300,"SUCCESS: Territory created! Now check the minimap and use /editgang to save the size of the territory!");
  1156.         }
  1157.         else if(!response)
  1158.         {
  1159.             Makingzone = 0;
  1160.         }
  1161.     }
  1162.     return 0;
  1163. }
  1164. forward Createzone(playerid,color);
  1165. public Createzone(playerid,color)
  1166. {
  1167.     GangZoneHideForAll(GangZone);
  1168.     GangZoneDestroy(GangZone);
  1169.     new Float:Z;
  1170.     GetPlayerPos(playerid,ZMaxX,ZMaxY,Z);
  1171.     GangZone = GangZoneCreate(ZMinX,ZMinY,ZMaxX,ZMaxY);
  1172.     GangZoneShowForAll(GangZone,color);
  1173.     return 1;
  1174. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top