SHARE
TWEET

SAMP - Gang Tester V2.7 - by DjAndy

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