SHARE
TWEET

Forest Arena DM - HomeHots

a guest Jun 10th, 2014 447 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // --------------------------------------------------- //
  2. // ----------- FILTER SCRIPT: FOREST ARENA ----------- //
  3. // --------------- Mapa: Totola(Jumper) -------------- //
  4. // --------------- Code: Totola(Jumper) -------------- //
  5. // --------------------------------------------------- //
  6.  
  7. // ---------------------{INCLUDE'S}------------------- //
  8. #include <a_samp>
  9. #include <ZCMD>
  10.  
  11.  
  12. // -----------------------{NEW'S}--------------------- //
  13. new TotolaForest;
  14. new noTotForest[MAX_PLAYERS];
  15.  
  16. new Float:RandomTotola[][3] =
  17. {
  18.     {-1089.2100,-933.9091,129.2188},  // SPAWN 1
  19.     {-1089.4825,-1044.7700,129.2119}, // SPAWN 2
  20.     {-1194.7784,-1045.4269,129.2188}, // SPAWN 3
  21.     {-1180.6783,-923.7373,129.2119},  // SPAWN 4
  22.     {-1007.3196,-915.4716,129.2188},  // SPAWN 5
  23.     {-1010.9894,-1060.1567,129.2188}  // SPAWN 6
  24. };
  25.  
  26. new armas[] =
  27. {
  28.     355,
  29.     353,
  30.     348,
  31.     349,
  32.     339,
  33.     347,
  34.     358,
  35.     357,
  36.     369
  37. };
  38.  
  39. new pickup1, pickup2, pickup3, pickup4, pickup5, pickup6, pickup7, pickup8, pickup9, pickup10, pickup11, pickup12, pickup13, pickup14, pickup15, pickup16;
  40.  
  41. // --------------------{CALL BACK'S}------------------ //
  42. public OnFilterScriptInit()
  43. {
  44.     print("\n --------------------------------------------------- ");
  45.     print(" --------------- FOREST ARENA CARREGADA -------------- ");
  46.     print(" ---------------- Por: Totola(Jumper) ---------------- ");
  47.     print(" --------------------------------------------------- \n");
  48.     TotolaForest = 0; // FECHANDO A ARENA, QUANDO O FS É CARREGADO
  49.    
  50.     // --------------------{<MAPA>}------------------ //
  51.     AddStaticVehicleEx(522,-1191.9000244,-976.9000244,137.6999969,268.0000000,132,4,15); //NRG-500
  52.     CreateObject(972,-1005.0000000,-923.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (1)
  53.     CreateObject(972,-1005.0000000,-948.2000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (2)
  54.     CreateObject(972,-1005.0000000,-973.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (3)
  55.     CreateObject(972,-1005.0000000,-997.7999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (4)
  56.     CreateObject(972,-1005.0999756,-1022.2999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (5)
  57.     CreateObject(972,-1005.0000000,-1047.1999512,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (6)
  58.     CreateObject(972,-1005.0999756,-1056.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (7)
  59.     CreateObject(972,-1016.2000122,-1062.9000244,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (8)
  60.     CreateObject(972,-1041.0000000,-1063.0000000,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (9)
  61.     CreateObject(972,-1065.6999512,-1062.9000244,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (10)
  62.     CreateObject(972,-1090.6999512,-1062.8000488,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (11)
  63.     CreateObject(972,-1115.5000000,-1062.9000244,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (12)
  64.     CreateObject(972,-1140.4000244,-1063.0000000,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (13)
  65.     CreateObject(972,-1165.1999512,-1062.9000244,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (14)
  66.     CreateObject(972,-1189.1999512,-1063.0999756,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (15)
  67.     CreateObject(972,-1195.6999512,-1052.0000000,128.1999969,0.0000000,0.0000000,180.0000000); //object(tunnelentrance) (16)
  68.     CreateObject(972,-1195.6999512,-1027.1999512,128.1999969,0.0000000,0.0000000,179.9945068); //object(tunnelentrance) (17)
  69.     CreateObject(972,-1195.6999512,-1002.4000244,128.1999969,0.0000000,0.0000000,179.9945068); //object(tunnelentrance) (18)
  70.     CreateObject(972,-1195.8000488,-977.7999878,128.1999969,0.0000000,0.0000000,179.9945068); //object(tunnelentrance) (19)
  71.     CreateObject(972,-1195.8000488,-953.0999756,128.1999969,0.0000000,0.0000000,179.9945068); //object(tunnelentrance) (20)
  72.     CreateObject(972,-1187.5000000,-933.4000244,128.1999969,0.0000000,0.0000000,141.9945068); //object(tunnelentrance) (21)
  73.     CreateObject(972,-1169.6999512,-918.9000244,128.1999969,0.0000000,0.0000000,119.9927979); //object(tunnelentrance) (22)
  74.     CreateObject(972,-1148.0000000,-914.0000000,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (23)
  75.     CreateObject(972,-1123.0999756,-914.0000000,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (24)
  76.     CreateObject(972,-1098.3000488,-913.9000244,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (25)
  77.     CreateObject(972,-1073.5999756,-913.7999878,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (26)
  78.     CreateObject(972,-1048.8000488,-913.9000244,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (27)
  79.     CreateObject(972,-1023.9000244,-913.9000244,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (28)
  80.     CreateObject(972,-1004.5000000,-913.9000244,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (29)
  81.     CreateObject(11095,-1108.5999756,-995.7000122,133.3999939,0.0000000,0.0000000,0.0000000); //object(stadbridge_sfs) (1)
  82.     CreateObject(11095,-1040.5000000,-945.5999756,133.1999969,0.0000000,0.0000000,50.0000000); //object(stadbridge_sfs) (2)
  83.     CreateObject(790,-1179.3000488,-943.7999878,127.5000000,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (1)
  84.     CreateObject(790,-1113.3000488,-1012.4000244,127.0000000,0.0000000,0.0000000,171.3824463); //object(sm_fir_tallgroup) (2)
  85.     CreateObject(790,-1050.9000244,-945.0000000,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (3)
  86.     CreateObject(791,-1052.5999756,-974.2999878,127.5000000,0.0000000,0.0000000,0.0000000); //object(vbg_fir_copse) (1)
  87.     CreateObject(791,-1160.8000488,-1007.9000244,123.5000000,352.0000000,0.0000000,0.0000000); //object(vbg_fir_copse) (2)
  88.     CreateObject(790,-1165.6999512,-1053.1999512,128.1999969,0.0000000,0.0000000,171.3812256); //object(sm_fir_tallgroup) (4)
  89.     CreateObject(790,-1143.0999756,-1035.0999756,128.1999969,0.0000000,0.0000000,141.3812256); //object(sm_fir_tallgroup) (5)
  90.     CreateObject(790,-1088.5999756,-931.2000122,128.1999969,0.0000000,0.0000000,141.3775635); //object(sm_fir_tallgroup) (6)
  91.     CreateObject(790,-1029.0000000,-1054.5999756,128.1999969,0.0000000,0.0000000,141.3775635); //object(sm_fir_tallgroup) (7)
  92.     CreateObject(790,-1040.6999512,-1051.0000000,128.1999969,0.0000000,0.0000000,121.3775635); //object(sm_fir_tallgroup) (8)
  93.     CreateObject(17324,-1076.9000244,-1037.6999512,128.0000000,0.0000000,0.0000000,142.0000000); //object(cw_combbarn) (1)
  94.     CreateObject(3279,-1151.5999756,-999.0999756,128.1999969,0.0000000,0.0000000,0.0000000); //object(a51_spottower) (1)
  95.     CreateObject(3279,-1049.0999756,-968.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(a51_spottower) (2)
  96.     CreateObject(3279,-1039.5999756,-1041.3000488,128.1999969,0.0000000,0.0000000,0.0000000); //object(a51_spottower) (3)
  97.     CreateObject(727,-1011.7999878,-951.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (1)
  98.     CreateObject(727,-1019.9000244,-917.7999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (2)
  99.     CreateObject(727,-1019.0999756,-946.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (3)
  100.     CreateObject(727,-1008.4000244,-919.7999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (4)
  101.     CreateObject(727,-1028.4000244,-936.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (5)
  102.     CreateObject(727,-1019.9000244,-927.7999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (6)
  103.     CreateObject(727,-1009.0000000,-938.7000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (7)
  104.     CreateObject(727,-1049.4000244,-922.7000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (8)
  105.     CreateObject(727,-1037.0000000,-929.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (9)
  106.     CreateObject(727,-1035.9000244,-917.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (10)
  107.     CreateObject(727,-1177.5999756,-921.2000122,132.5000000,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (11)
  108.     CreateObject(727,-1150.1999512,-920.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (12)
  109.     CreateObject(727,-1168.6999512,-925.7000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (13)
  110.     CreateObject(727,-1134.8000488,-930.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (14)
  111.     CreateObject(727,-1115.3000488,-927.2999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (15)
  112.     CreateObject(727,-1131.5000000,-919.2999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (16)
  113.     CreateObject(727,-1122.0000000,-934.7999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (17)
  114.     CreateObject(727,-1100.5999756,-915.7000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (18)
  115.     CreateObject(727,-1103.4000244,-943.5999756,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (19)
  116.     CreateObject(727,-1071.9000244,-947.9000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (20)
  117.     CreateObject(727,-1103.0000000,-928.5000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (21)
  118.     CreateObject(727,-1160.5999756,-932.2999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (22)
  119.     CreateObject(727,-1137.0999756,-942.9000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (23)
  120.     CreateObject(727,-1150.3000488,-931.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (24)
  121.     CreateObject(727,-1125.1999512,-944.5999756,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (25)
  122.     CreateObject(727,-1172.5000000,-940.5000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (26)
  123.     CreateObject(727,-1160.6999512,-939.0999756,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (27)
  124.     CreateObject(727,-1183.0999756,-946.5000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (28)
  125.     CreateObject(727,-1191.0999756,-953.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (29)
  126.     CreateObject(790,-1103.3000488,-1053.3000488,128.1999969,0.0000000,0.0000000,121.3812256); //object(sm_fir_tallgroup) (9)
  127.     CreateObject(790,-1059.8000488,-1048.9000244,128.1999969,0.0000000,0.0000000,121.3769531); //object(sm_fir_tallgroup) (10)
  128.     CreateObject(3268,-1189.0999756,-977.0000000,128.1999969,0.0000000,0.0000000,180.0000000); //object(mil_hangar1_) (1)
  129.     CreateObject(790,-1189.3000488,-1028.1999512,128.1999969,0.0000000,0.0000000,171.3812256); //object(sm_fir_tallgroup) (11)
  130.     CreateObject(790,-1126.4000244,-933.4000244,128.1999969,0.0000000,0.0000000,171.3812256); //object(sm_fir_tallgroup) (12)
  131.     CreateObject(790,-1057.9000244,-1014.0000000,128.8999939,0.0000000,0.0000000,171.3812256); //object(sm_fir_tallgroup) (13)
  132.     CreateObject(790,-1159.1999512,-960.4000244,128.1999969,0.0000000,0.0000000,171.3812256); //object(sm_fir_tallgroup) (14)
  133.     CreateObject(5262,-1193.5000000,-987.4000244,131.0000000,0.0000000,0.0000000,270.0000000); //object(las2dkwar04) (1)
  134.     CreateObject(5269,-1186.4000244,-966.2000122,130.5000000,0.0000000,0.0000000,0.0000000); //object(las2dkwar05) (1)
  135.     CreateObject(5269,-1197.8000488,-978.5000000,130.5000000,0.0000000,0.0000000,0.0000000); //object(las2dkwar05) (2)
  136.     CreateObject(7040,-1086.6999512,-935.9000244,131.6000061,0.0000000,0.0000000,0.0000000); //object(vgnplcehldbox01) (1)
  137.     CreateObject(3374,-1105.0000000,-977.5999756,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (1)
  138.     CreateObject(3374,-1105.5000000,-982.5000000,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (2)
  139.     CreateObject(10814,-1086.3000488,-989.2000122,132.3000031,0.0000000,0.0000000,0.0000000); //object(apfuel2_sfse) (1)
  140.     CreateObject(13489,-1021.9000244,-1023.5000000,130.8000031,0.0000000,0.0000000,0.0000000); //object(sw_fueldrum04) (1)
  141.     CreateObject(13489,-1021.2999878,-1012.7999878,130.8000031,0.0000000,0.0000000,0.0000000); //object(sw_fueldrum04) (2)
  142.     CreateObject(727,-1038.5000000,-1031.1999512,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (30)
  143.     CreateObject(727,-1018.0999756,-1030.6999512,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (31)
  144.     CreateObject(727,-1035.1999512,-1018.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (32)
  145.     CreateObject(727,-1025.5999756,-985.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (33)
  146.     CreateObject(727,-1009.9000244,-1013.5000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (34)
  147.     CreateObject(727,-1028.5000000,-999.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (35)
  148.     CreateObject(790,-1143.5000000,-982.7999878,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (15)
  149.     CreateObject(790,-1085.8000488,-965.2000122,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (16)
  150.     CreateObject(790,-1052.5000000,-1038.0999756,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (17)
  151.     CreateObject(790,-1128.3000488,-999.5999756,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (18)
  152.     CreateObject(790,-1118.0999756,-1053.0000000,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (19)
  153.     CreateObject(16599,-1146.5000000,-1052.4000244,133.0000000,0.0000000,0.0000000,0.0000000); //object(by_fuel06) (1)
  154.     CreateObject(16599,-1140.8000488,-1052.0999756,133.0000000,0.0000000,0.0000000,0.0000000); //object(by_fuel06) (2)
  155.     CreateObject(8493,-1176.4000244,-1027.5999756,142.1000061,0.0000000,0.0000000,336.0000000); //object(pirtshp01_lvs) (1)
  156.     CreateObject(972,-1195.6999512,-1052.0000000,135.3999939,0.0000000,0.0000000,179.9945068); //object(tunnelentrance) (30)
  157.     CreateObject(972,-1189.0999756,-1063.0999756,135.5000000,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (31)
  158.     CreateObject(11440,-1130.5999756,-1016.9000244,127.5999985,0.0000000,0.0000000,0.0000000); //object(des_pueblo1) (1)
  159.     CreateObject(11440,-1075.5999756,-973.4000244,127.6999969,0.0000000,0.0000000,0.0000000); //object(des_pueblo1) (2)
  160.     CreateObject(11440,-1137.0000000,-956.9000244,127.6999969,0.0000000,0.0000000,40.0000000); //object(des_pueblo1) (3)
  161.     CreateObject(11457,-1011.4000244,-993.2999878,127.8000031,0.0000000,0.0000000,0.0000000); //object(des_pueblo09) (1)
  162.     CreateObject(972,-1005.2000122,-1004.0000000,135.0000000,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (32)
  163.     CreateObject(11459,-1150.1999512,-1035.9000244,128.1000061,0.0000000,0.0000000,0.0000000); //object(des_pueblo11) (1)
  164.     CreateObject(11459,-1049.5999756,-1048.6999512,128.1000061,0.0000000,0.0000000,0.0000000); //object(des_pueblo11) (2)
  165.     CreateObject(18256,-1092.9000244,-988.5999756,132.8999939,0.0000000,0.0000000,4.7039795); //object(w7bark01) (1)
  166.     CreateObject(11544,-1107.6999512,-992.0999756,139.0000000,0.0000000,0.0000000,0.0000000); //object(des_ntfrescape2) (1)
  167.     CreateObject(5269,-1184.0000000,-978.4000244,130.5000000,0.0000000,0.0000000,268.0000000); //object(las2dkwar05) (3)
  168.     CreateObject(727,-1171.0999756,-963.5000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (36)
  169.     CreateObject(727,-1164.3000488,-983.2000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (37)
  170.     CreateObject(727,-1158.0000000,-969.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (38)
  171.     CreateObject(17007,-1042.4000244,-1013.9000244,128.0000000,0.0000000,0.0000000,0.0000000); //object(wt6supps01) (1)
  172.     CreateObject(17067,-1123.8000488,-1039.0000000,128.0000000,0.0000000,0.0000000,98.0000000); //object(cw2_logcabins) (1)
  173.     CreateObject(3374,-1100.5999756,-980.5000000,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (3)
  174.     CreateObject(3374,-1102.5000000,-980.7000122,132.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (4)
  175.     CreateObject(3374,-1118.9000244,-929.9000244,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (5)
  176.     CreateObject(3374,-1112.4000244,-931.4000244,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (6)
  177.     CreateObject(3374,-1112.5000000,-931.2000122,132.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (7)
  178.     CreateObject(3374,-1166.3000488,-993.2000122,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (8)
  179.     CreateObject(3374,-1162.5999756,-990.4000244,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (9)
  180.     CreateObject(3374,-1018.5999756,-1047.8000488,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (10)
  181.     CreateObject(3374,-1018.7000122,-1043.4000244,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (11)
  182.     CreateObject(3374,-1018.7999878,-1044.9000244,132.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (12)
  183.     CreateObject(3374,-1164.5000000,-1029.8000488,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (13)
  184.     CreateObject(3374,-1160.5000000,-1029.6999512,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (14)
  185.     CreateObject(3374,-1162.4000244,-1029.8000488,132.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (15)
  186.     return 1;
  187. }
  188.  
  189. public OnPlayerConnect(playerid)
  190. {
  191.     // QUANDO O PLAYER CONECTA, PARA EVITAR SETBUGS, RESETAMOS AS INFOS !
  192.     noTotForest[playerid] = 0;
  193.     return 1;
  194. }
  195.  
  196. public OnPlayerDeath(playerid, killerid, reason)
  197. {
  198.     noTotForest[playerid] = 0;
  199.     for(new i = 0; i < MAX_PLAYERS; i++)
  200.         if(IsPlayerConnected(i))
  201.             ShowPlayerNameTagForPlayer(playerid, i, true);
  202.     return 1;
  203. }
  204.  
  205. stock Nome(playerid)
  206. {
  207.     new name[MAX_PLAYER_NAME];
  208.     GetPlayerName(playerid, name, MAX_PLAYER_NAME);
  209.     return name;
  210. }
  211.  
  212. // -----------------------{COMANDOS}--------------------- //
  213. CMD:abrirfa(playerid)
  214. {
  215.     if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFF0000,"Erro: Você não tem permissão para usar este comando.");
  216.     if(TotolaForest == 1) return SendClientMessage(playerid, 0xFF0000,"ERRO: o Forest Arena ja esta Aberto");
  217.     TotolaForest = 1;
  218.     SendClientMessageToAll(0x228B22FF , "[INFO] O Forest Arena foi aberto!! [{FFFFFF}Digite /FA para participar{228B22}]");
  219.     SendClientMessage(playerid, -1, "|| ATENÇÃO ADM! Feche o Evento com /fecharfa");
  220.    
  221.     pickup1 = CreatePickup(armas[random(sizeof(armas))], 2, -1039.7949,-1040.9695,136.8782, -1);
  222.     pickup2 = CreatePickup(armas[random(sizeof(armas))], 2, -1016.2387,-1000.2385,129.2126, -1);
  223.     pickup3 = CreatePickup(armas[random(sizeof(armas))], 2, -1048.8966,-968.5367,136.8782, -1);
  224.     pickup4 = CreatePickup(armas[random(sizeof(armas))], 2, -1071.1217,-965.7619,129.2188, -1);
  225.     pickup5 = CreatePickup(armas[random(sizeof(armas))], 2, -1067.1025,-925.1772,137.7380, -1);
  226.     pickup6 = CreatePickup(armas[random(sizeof(armas))], 2, -1017.8635,-968.2134,137.7380, -1);
  227.     pickup7 = CreatePickup(armas[random(sizeof(armas))], 2, -1115.4080,-929.7350,129.2188, -1);
  228.     pickup8 = CreatePickup(armas[random(sizeof(armas))], 2, -1138.1083,-949.5615,129.2188, -1);
  229.     pickup9 = CreatePickup(armas[random(sizeof(armas))], 2, -1110.4128,-961.2980,137.9380, -1);
  230.     pickup10 = CreatePickup(armas[random(sizeof(armas))], 2, -1083.3379,-1007.6152,137.8681, -1);
  231.     pickup11 = CreatePickup(armas[random(sizeof(armas))], 2, -1082.4080,-1044.4351,129.2188, -1);
  232.     pickup12 = CreatePickup(armas[random(sizeof(armas))], 2, -1127.6932,-1010.8391,129.2188, -1);
  233.     pickup13 = CreatePickup(armas[random(sizeof(armas))], 2, -1116.6295,-1039.6604,129.2119, -1);
  234.     pickup14 = CreatePickup(armas[random(sizeof(armas))], 2, -1152.5444,-999.4540,136.8782, -1);
  235.     pickup15 = CreatePickup(armas[random(sizeof(armas))], 2, -1177.8857,-1028.4845,131.6466, -1);
  236.     pickup16 = CreatePickup(armas[random(sizeof(armas))], 2, -1192.3844,-987.4376,129.2188, -1);
  237.     return 1;
  238. }
  239.  
  240. CMD:fecharfa(playerid)
  241. {
  242.     if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFF0000,"Erro: Você não tem permissão para usar este comando.");
  243.     if(TotolaForest == 0) return SendClientMessage(playerid,0xFF0000,"ERRO: o Forest Arena ja esta Fechado");
  244.     TotolaForest = 0;
  245.     SendClientMessageToAll(0x228B22FF , "[INFO] O Evento {FFFFFF}FOREST ARENA{228B22} foi Fechado!");
  246.     DestroyPickup(pickup1);
  247.     DestroyPickup(pickup2);
  248.     DestroyPickup(pickup3);
  249.     DestroyPickup(pickup4);
  250.     DestroyPickup(pickup5);
  251.     DestroyPickup(pickup6);
  252.     DestroyPickup(pickup7);
  253.     DestroyPickup(pickup8);
  254.     DestroyPickup(pickup9);
  255.     DestroyPickup(pickup10);
  256.     DestroyPickup(pickup11);
  257.     DestroyPickup(pickup12);
  258.     DestroyPickup(pickup13);
  259.     DestroyPickup(pickup14);
  260.     DestroyPickup(pickup15);
  261.     DestroyPickup(pickup16);
  262.     return 1;
  263. }
  264.  
  265. CMD:fa(playerid)
  266. {
  267.     if(TotolaForest == 0) return SendClientMessage(playerid,0xFF0000,"ERRO: o Forest Arena esta Fechado");
  268.     if(noTotForest[playerid] == 1) return SendClientMessage(playerid,0xFF0000,"ERRO: Você ja esta no Forest Arena !");
  269.     new rand = random(sizeof(RandomTotola));
  270.     SetPlayerPos(playerid, RandomTotola[rand][0], RandomTotola[rand][1],RandomTotola[rand][2]);
  271.     ResetPlayerWeapons(playerid);
  272.     new string[100];
  273.     format(string,sizeof(string), "[INFO] %s foi para a {FF0000}Forest Arena{FFA07A} [/FA]",Nome(playerid));
  274.     SendClientMessageToAll(0xFFA07AFF, string);
  275.     SendClientMessage(playerid, 0xCECEFF7D, "Forest Arena por: Totola(Jumper)");
  276.     SendClientMessage(playerid, 0xCECEFF7D, "Seu Objetivo é Sobreviver");
  277.     SendClientMessage(playerid, 0xCECEFF7D, "As armas estão escondidas no mapa !");
  278.     SendClientMessage(playerid, 0xCECEFF7D, "Consiga Armas e mate seus Opnoentes, si por si !");
  279.     SendClientMessage(playerid, 0xCECEFF7D, "Obs: Aqui os Nicks são desativados !");
  280.     SendClientMessage(playerid, 0xCECEFF7D, "Se quiser Sair use: /sairfa, Boa Sorte!");
  281.     GivePlayerWeapon(playerid, 29, 60);
  282.     SetPlayerHealth(playerid, 40);
  283.     SetPlayerArmour(playerid, 0);
  284.     noTotForest[playerid] = 1;
  285.     for(new i = 0; i < MAX_PLAYERS; i++)
  286.         if(IsPlayerConnected(i))
  287.             ShowPlayerNameTagForPlayer(playerid, i, false);
  288.     return 1;
  289.  }
  290.  
  291. CMD:sairfa(playerid)
  292. {
  293.     if(noTotForest[playerid] == 0) return SendClientMessage(playerid,0xFF0000,"ERRO: Você não esta no Forrest Arena !");
  294.     SpawnPlayer(playerid);
  295.     noTotForest[playerid] = 0;
  296.     for(new i = 0; i < MAX_PLAYERS; i++)
  297.         if(IsPlayerConnected(i))
  298.             ShowPlayerNameTagForPlayer(playerid, i, true);
  299.     return 1;
  300. }
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