[FilterScript] Forest Arena DM
#1

Forest Arena
Forest Arena is an Arena where you have to survive, find your weapons and kill the other players, on this arena, you can not see other people name, so it is harder to survive.

Commands
/openfa - Open the Arena (ONLY RCON)
/closefa - Close the Arena (ONLY RCON)
/fa - Join Arena
/quitfa - quit Arena


Weapons
Weapons are Spawned randomly every time the arena is open
AK-47
MP5
Desert Eagle
Shotgun
Katana
Silenced Pistol
Country Rifle
Sniper Rifle
Thermal Goggles


Spawn
You can Spawn on 6 randomly places,
when you spawn your nick is disable.


Video
[ame]http://www.youtube.com/watch?v=pIOUYn6UmHA[/ame]
Music: Ellie Goulding - High For This (Omega Dubstep Bootleg)

Download
pawn Код:
// --------------------------------------------------- //
// ----------- FILTER SCRIPT: FOREST ARENA ----------- //
// --------------- Map: Totola(Jumper) -------------- //
// --------------- Code: Totola(Jumper) -------------- //
// --------------------------------------------------- //

// ---------------------{INCLUDE'S}------------------- //
#include <a_samp>
#include <ZCMD>


// -----------------------{NEW'S}--------------------- //
new TotolaForest;
new noTotForest[MAX_PLAYERS];

new Float:RandomTotola[][3] =
{
    {-1089.2100,-933.9091,129.2188},  // SPAWN 1
    {-1089.4825,-1044.7700,129.2119}, // SPAWN 2
    {-1194.7784,-1045.4269,129.2188}, // SPAWN 3
    {-1180.6783,-923.7373,129.2119},  // SPAWN 4
    {-1007.3196,-915.4716,129.2188},  // SPAWN 5
    {-1010.9894,-1060.1567,129.2188}  // SPAWN 6
};

new armas[] =
{
    355,
    353,
    348,
    349,
    339,
    347,
    358,
    357,
    369
};

new pickup1, pickup2, pickup3, pickup4, pickup5, pickup6, pickup7, pickup8, pickup9, pickup10, pickup11, pickup12, pickup13, pickup14, pickup15, pickup16;

// --------------------{CALL BACK'S}------------------ //
public OnFilterScriptInit()
{
    print("\n --------------------------------------------------- ");
    print(" --------------- FOREST ARENA CARREGADA -------------- ");
    print(" ---------------- By: Totola(Jumper) ---------------- ");
    print(" --------------------------------------------------- \n");
    TotolaForest = 0;

    // --------------------{<MAPA>}------------------ //
    AddStaticVehicleEx(522,-1191.9000244,-976.9000244,137.6999969,268.0000000,132,4,15); //NRG-500
    CreateObject(972,-1005.0000000,-923.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (1)
    CreateObject(972,-1005.0000000,-948.2000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (2)
    CreateObject(972,-1005.0000000,-973.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (3)
    CreateObject(972,-1005.0000000,-997.7999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (4)
    CreateObject(972,-1005.0999756,-1022.2999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (5)
    CreateObject(972,-1005.0000000,-1047.1999512,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (6)
    CreateObject(972,-1005.0999756,-1056.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (7)
    CreateObject(972,-1016.2000122,-1062.9000244,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (8)
    CreateObject(972,-1041.0000000,-1063.0000000,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (9)
    CreateObject(972,-1065.6999512,-1062.9000244,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (10)
    CreateObject(972,-1090.6999512,-1062.8000488,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (11)
    CreateObject(972,-1115.5000000,-1062.9000244,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (12)
    CreateObject(972,-1140.4000244,-1063.0000000,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (13)
    CreateObject(972,-1165.1999512,-1062.9000244,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (14)
    CreateObject(972,-1189.1999512,-1063.0999756,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (15)
    CreateObject(972,-1195.6999512,-1052.0000000,128.1999969,0.0000000,0.0000000,180.0000000); //object(tunnelentrance) (16)
    CreateObject(972,-1195.6999512,-1027.1999512,128.1999969,0.0000000,0.0000000,179.9945068); //object(tunnelentrance) (17)
    CreateObject(972,-1195.6999512,-1002.4000244,128.1999969,0.0000000,0.0000000,179.9945068); //object(tunnelentrance) (18)
    CreateObject(972,-1195.8000488,-977.7999878,128.1999969,0.0000000,0.0000000,179.9945068); //object(tunnelentrance) (19)
    CreateObject(972,-1195.8000488,-953.0999756,128.1999969,0.0000000,0.0000000,179.9945068); //object(tunnelentrance) (20)
    CreateObject(972,-1187.5000000,-933.4000244,128.1999969,0.0000000,0.0000000,141.9945068); //object(tunnelentrance) (21)
    CreateObject(972,-1169.6999512,-918.9000244,128.1999969,0.0000000,0.0000000,119.9927979); //object(tunnelentrance) (22)
    CreateObject(972,-1148.0000000,-914.0000000,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (23)
    CreateObject(972,-1123.0999756,-914.0000000,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (24)
    CreateObject(972,-1098.3000488,-913.9000244,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (25)
    CreateObject(972,-1073.5999756,-913.7999878,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (26)
    CreateObject(972,-1048.8000488,-913.9000244,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (27)
    CreateObject(972,-1023.9000244,-913.9000244,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (28)
    CreateObject(972,-1004.5000000,-913.9000244,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (29)
    CreateObject(11095,-1108.5999756,-995.7000122,133.3999939,0.0000000,0.0000000,0.0000000); //object(stadbridge_sfs) (1)
    CreateObject(11095,-1040.5000000,-945.5999756,133.1999969,0.0000000,0.0000000,50.0000000); //object(stadbridge_sfs) (2)
    CreateObject(790,-1179.3000488,-943.7999878,127.5000000,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (1)
    CreateObject(790,-1113.3000488,-1012.4000244,127.0000000,0.0000000,0.0000000,171.3824463); //object(sm_fir_tallgroup) (2)
    CreateObject(790,-1050.9000244,-945.0000000,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (3)
    CreateObject(791,-1052.5999756,-974.2999878,127.5000000,0.0000000,0.0000000,0.0000000); //object(vbg_fir_copse) (1)
    CreateObject(791,-1160.8000488,-1007.9000244,123.5000000,352.0000000,0.0000000,0.0000000); //object(vbg_fir_copse) (2)
    CreateObject(790,-1165.6999512,-1053.1999512,128.1999969,0.0000000,0.0000000,171.3812256); //object(sm_fir_tallgroup) (4)
    CreateObject(790,-1143.0999756,-1035.0999756,128.1999969,0.0000000,0.0000000,141.3812256); //object(sm_fir_tallgroup) (5)
    CreateObject(790,-1088.5999756,-931.2000122,128.1999969,0.0000000,0.0000000,141.3775635); //object(sm_fir_tallgroup) (6)
    CreateObject(790,-1029.0000000,-1054.5999756,128.1999969,0.0000000,0.0000000,141.3775635); //object(sm_fir_tallgroup) (7)
    CreateObject(790,-1040.6999512,-1051.0000000,128.1999969,0.0000000,0.0000000,121.3775635); //object(sm_fir_tallgroup) (8)
    CreateObject(17324,-1076.9000244,-1037.6999512,128.0000000,0.0000000,0.0000000,142.0000000); //object(cw_combbarn) (1)
    CreateObject(3279,-1151.5999756,-999.0999756,128.1999969,0.0000000,0.0000000,0.0000000); //object(a51_spottower) (1)
    CreateObject(3279,-1049.0999756,-968.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(a51_spottower) (2)
    CreateObject(3279,-1039.5999756,-1041.3000488,128.1999969,0.0000000,0.0000000,0.0000000); //object(a51_spottower) (3)
    CreateObject(727,-1011.7999878,-951.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (1)
    CreateObject(727,-1019.9000244,-917.7999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (2)
    CreateObject(727,-1019.0999756,-946.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (3)
    CreateObject(727,-1008.4000244,-919.7999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (4)
    CreateObject(727,-1028.4000244,-936.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (5)
    CreateObject(727,-1019.9000244,-927.7999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (6)
    CreateObject(727,-1009.0000000,-938.7000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (7)
    CreateObject(727,-1049.4000244,-922.7000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (8)
    CreateObject(727,-1037.0000000,-929.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (9)
    CreateObject(727,-1035.9000244,-917.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (10)
    CreateObject(727,-1177.5999756,-921.2000122,132.5000000,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (11)
    CreateObject(727,-1150.1999512,-920.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (12)
    CreateObject(727,-1168.6999512,-925.7000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (13)
    CreateObject(727,-1134.8000488,-930.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (14)
    CreateObject(727,-1115.3000488,-927.2999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (15)
    CreateObject(727,-1131.5000000,-919.2999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (16)
    CreateObject(727,-1122.0000000,-934.7999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (17)
    CreateObject(727,-1100.5999756,-915.7000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (18)
    CreateObject(727,-1103.4000244,-943.5999756,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (19)
    CreateObject(727,-1071.9000244,-947.9000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (20)
    CreateObject(727,-1103.0000000,-928.5000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (21)
    CreateObject(727,-1160.5999756,-932.2999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (22)
    CreateObject(727,-1137.0999756,-942.9000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (23)
    CreateObject(727,-1150.3000488,-931.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (24)
    CreateObject(727,-1125.1999512,-944.5999756,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (25)
    CreateObject(727,-1172.5000000,-940.5000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (26)
    CreateObject(727,-1160.6999512,-939.0999756,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (27)
    CreateObject(727,-1183.0999756,-946.5000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (28)
    CreateObject(727,-1191.0999756,-953.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (29)
    CreateObject(790,-1103.3000488,-1053.3000488,128.1999969,0.0000000,0.0000000,121.3812256); //object(sm_fir_tallgroup) (9)
    CreateObject(790,-1059.8000488,-1048.9000244,128.1999969,0.0000000,0.0000000,121.3769531); //object(sm_fir_tallgroup) (10)
    CreateObject(3268,-1189.0999756,-977.0000000,128.1999969,0.0000000,0.0000000,180.0000000); //object(mil_hangar1_) (1)
    CreateObject(790,-1189.3000488,-1028.1999512,128.1999969,0.0000000,0.0000000,171.3812256); //object(sm_fir_tallgroup) (11)
    CreateObject(790,-1126.4000244,-933.4000244,128.1999969,0.0000000,0.0000000,171.3812256); //object(sm_fir_tallgroup) (12)
    CreateObject(790,-1057.9000244,-1014.0000000,128.8999939,0.0000000,0.0000000,171.3812256); //object(sm_fir_tallgroup) (13)
    CreateObject(790,-1159.1999512,-960.4000244,128.1999969,0.0000000,0.0000000,171.3812256); //object(sm_fir_tallgroup) (14)
    CreateObject(5262,-1193.5000000,-987.4000244,131.0000000,0.0000000,0.0000000,270.0000000); //object(las2dkwar04) (1)
    CreateObject(5269,-1186.4000244,-966.2000122,130.5000000,0.0000000,0.0000000,0.0000000); //object(las2dkwar05) (1)
    CreateObject(5269,-1197.8000488,-978.5000000,130.5000000,0.0000000,0.0000000,0.0000000); //object(las2dkwar05) (2)
    CreateObject(7040,-1086.6999512,-935.9000244,131.6000061,0.0000000,0.0000000,0.0000000); //object(vgnplcehldbox01) (1)
    CreateObject(3374,-1105.0000000,-977.5999756,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (1)
    CreateObject(3374,-1105.5000000,-982.5000000,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (2)
    CreateObject(10814,-1086.3000488,-989.2000122,132.3000031,0.0000000,0.0000000,0.0000000); //object(apfuel2_sfse) (1)
    CreateObject(13489,-1021.9000244,-1023.5000000,130.8000031,0.0000000,0.0000000,0.0000000); //object(sw_fueldrum04) (1)
    CreateObject(13489,-1021.2999878,-1012.7999878,130.8000031,0.0000000,0.0000000,0.0000000); //object(sw_fueldrum04) (2)
    CreateObject(727,-1038.5000000,-1031.1999512,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (30)
    CreateObject(727,-1018.0999756,-1030.6999512,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (31)
    CreateObject(727,-1035.1999512,-1018.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (32)
    CreateObject(727,-1025.5999756,-985.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (33)
    CreateObject(727,-1009.9000244,-1013.5000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (34)
    CreateObject(727,-1028.5000000,-999.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (35)
    CreateObject(790,-1143.5000000,-982.7999878,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (15)
    CreateObject(790,-1085.8000488,-965.2000122,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (16)
    CreateObject(790,-1052.5000000,-1038.0999756,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (17)
    CreateObject(790,-1128.3000488,-999.5999756,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (18)
    CreateObject(790,-1118.0999756,-1053.0000000,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (19)
    CreateObject(16599,-1146.5000000,-1052.4000244,133.0000000,0.0000000,0.0000000,0.0000000); //object(by_fuel06) (1)
    CreateObject(16599,-1140.8000488,-1052.0999756,133.0000000,0.0000000,0.0000000,0.0000000); //object(by_fuel06) (2)
    CreateObject(8493,-1176.4000244,-1027.5999756,142.1000061,0.0000000,0.0000000,336.0000000); //object(pirtshp01_lvs) (1)
    CreateObject(972,-1195.6999512,-1052.0000000,135.3999939,0.0000000,0.0000000,179.9945068); //object(tunnelentrance) (30)
    CreateObject(972,-1189.0999756,-1063.0999756,135.5000000,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (31)
    CreateObject(11440,-1130.5999756,-1016.9000244,127.5999985,0.0000000,0.0000000,0.0000000); //object(des_pueblo1) (1)
    CreateObject(11440,-1075.5999756,-973.4000244,127.6999969,0.0000000,0.0000000,0.0000000); //object(des_pueblo1) (2)
    CreateObject(11440,-1137.0000000,-956.9000244,127.6999969,0.0000000,0.0000000,40.0000000); //object(des_pueblo1) (3)
    CreateObject(11457,-1011.4000244,-993.2999878,127.8000031,0.0000000,0.0000000,0.0000000); //object(des_pueblo09) (1)
    CreateObject(972,-1005.2000122,-1004.0000000,135.0000000,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (32)
    CreateObject(11459,-1150.1999512,-1035.9000244,128.1000061,0.0000000,0.0000000,0.0000000); //object(des_pueblo11) (1)
    CreateObject(11459,-1049.5999756,-1048.6999512,128.1000061,0.0000000,0.0000000,0.0000000); //object(des_pueblo11) (2)
    CreateObject(18256,-1092.9000244,-988.5999756,132.8999939,0.0000000,0.0000000,4.7039795); //object(w7bark01) (1)
    CreateObject(11544,-1107.6999512,-992.0999756,139.0000000,0.0000000,0.0000000,0.0000000); //object(des_ntfrescape2) (1)
    CreateObject(5269,-1184.0000000,-978.4000244,130.5000000,0.0000000,0.0000000,268.0000000); //object(las2dkwar05) (3)
    CreateObject(727,-1171.0999756,-963.5000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (36)
    CreateObject(727,-1164.3000488,-983.2000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (37)
    CreateObject(727,-1158.0000000,-969.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (38)
    CreateObject(17007,-1042.4000244,-1013.9000244,128.0000000,0.0000000,0.0000000,0.0000000); //object(wt6supps01) (1)
    CreateObject(17067,-1123.8000488,-1039.0000000,128.0000000,0.0000000,0.0000000,98.0000000); //object(cw2_logcabins) (1)
    CreateObject(3374,-1100.5999756,-980.5000000,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (3)
    CreateObject(3374,-1102.5000000,-980.7000122,132.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (4)
    CreateObject(3374,-1118.9000244,-929.9000244,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (5)
    CreateObject(3374,-1112.4000244,-931.4000244,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (6)
    CreateObject(3374,-1112.5000000,-931.2000122,132.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (7)
    CreateObject(3374,-1166.3000488,-993.2000122,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (8)
    CreateObject(3374,-1162.5999756,-990.4000244,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (9)
    CreateObject(3374,-1018.5999756,-1047.8000488,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (10)
    CreateObject(3374,-1018.7000122,-1043.4000244,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (11)
    CreateObject(3374,-1018.7999878,-1044.9000244,132.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (12)
    CreateObject(3374,-1164.5000000,-1029.8000488,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (13)
    CreateObject(3374,-1160.5000000,-1029.6999512,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (14)
    CreateObject(3374,-1162.4000244,-1029.8000488,132.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (15)
    return 1;
}

public OnPlayerConnect(playerid)
{
    noTotForest[playerid] = 0;
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    noTotForest[playerid] = 0;
    for(new i = 0; i < MAX_PLAYERS; i++)
        if(IsPlayerConnected(i))
            ShowPlayerNameTagForPlayer(playerid, i, true);
    return 1;
}

stock Nome(playerid)
{
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, MAX_PLAYER_NAME);
    return name;
}

// -----------------------{COMANDOS}--------------------- //
CMD:openfa(playerid)
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFF0000,"ERROR: You can not do this.");
    if(TotolaForest == 1) return SendClientMessage(playerid, 0xFF0000,"ERROR: Forest Arena is already Opened");
    TotolaForest = 1;
    SendClientMessageToAll(0x228B22FF , "[INFO]Forest Arena is Open!! [{FFFFFF}Type /FA to Join{228B22}]");
    SendClientMessage(playerid, -1, "|| WARNING ADM! Close it with: /closefa");

    pickup1 = CreatePickup(armas[random(sizeof(armas))], 2, -1039.7949,-1040.9695,136.8782, -1);
    pickup2 = CreatePickup(armas[random(sizeof(armas))], 2, -1016.2387,-1000.2385,129.2126, -1);
    pickup3 = CreatePickup(armas[random(sizeof(armas))], 2, -1048.8966,-968.5367,136.8782, -1);
    pickup4 = CreatePickup(armas[random(sizeof(armas))], 2, -1071.1217,-965.7619,129.2188, -1);
    pickup5 = CreatePickup(armas[random(sizeof(armas))], 2, -1067.1025,-925.1772,137.7380, -1);
    pickup6 = CreatePickup(armas[random(sizeof(armas))], 2, -1017.8635,-968.2134,137.7380, -1);
    pickup7 = CreatePickup(armas[random(sizeof(armas))], 2, -1115.4080,-929.7350,129.2188, -1);
    pickup8 = CreatePickup(armas[random(sizeof(armas))], 2, -1138.1083,-949.5615,129.2188, -1);
    pickup9 = CreatePickup(armas[random(sizeof(armas))], 2, -1110.4128,-961.2980,137.9380, -1);
    pickup10 = CreatePickup(armas[random(sizeof(armas))], 2, -1083.3379,-1007.6152,137.8681, -1);
    pickup11 = CreatePickup(armas[random(sizeof(armas))], 2, -1082.4080,-1044.4351,129.2188, -1);
    pickup12 = CreatePickup(armas[random(sizeof(armas))], 2, -1127.6932,-1010.8391,129.2188, -1);
    pickup13 = CreatePickup(armas[random(sizeof(armas))], 2, -1116.6295,-1039.6604,129.2119, -1);
    pickup14 = CreatePickup(armas[random(sizeof(armas))], 2, -1152.5444,-999.4540,136.8782, -1);
    pickup15 = CreatePickup(armas[random(sizeof(armas))], 2, -1177.8857,-1028.4845,131.6466, -1);
    pickup16 = CreatePickup(armas[random(sizeof(armas))], 2, -1192.3844,-987.4376,129.2188, -1);
    return 1;
}

CMD:closefa(playerid)
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFF0000,"ERROR: You can not do this");
    if(TotolaForest == 0) return SendClientMessage(playerid,0xFF0000,"ERROR: Forest Arena is already Closed");
    TotolaForest = 0;
    SendClientMessageToAll(0x228B22FF , "[INFO] The {FFFFFF}FOREST ARENA{228B22} is Closed!");
    DestroyPickup(pickup1);
    DestroyPickup(pickup2);
    DestroyPickup(pickup3);
    DestroyPickup(pickup4);
    DestroyPickup(pickup5);
    DestroyPickup(pickup6);
    DestroyPickup(pickup7);
    DestroyPickup(pickup8);
    DestroyPickup(pickup9);
    DestroyPickup(pickup10);
    DestroyPickup(pickup11);
    DestroyPickup(pickup12);
    DestroyPickup(pickup13);
    DestroyPickup(pickup14);
    DestroyPickup(pickup15);
    DestroyPickup(pickup16);
    return 1;
}

CMD:fa(playerid)
{
    if(TotolaForest == 0) return SendClientMessage(playerid,0xFF0000,"ERROR: Forest Arena is Closed");
    if(noTotForest[playerid] == 1) return SendClientMessage(playerid,0xFF0000,"ERROR: You are already in Forest Arena !");
    new rand = random(sizeof(RandomTotola));
    SetPlayerPos(playerid, RandomTotola[rand][0], RandomTotola[rand][1],RandomTotola[rand][2]);
    ResetPlayerWeapons(playerid);
    new string[100];
    format(string,sizeof(string), "[INFO] %s went to {FF0000}Forest Arena{FFA07A} [/FA]",Nome(playerid));
    SendClientMessageToAll(0xFFA07AFF, string);
    SendClientMessage(playerid, 0xCECEFF7D, "Forest Arena by: Totola(Jumper)");
    SendClientMessage(playerid, 0xCECEFF7D, "You Have To survive !");
    SendClientMessage(playerid, 0xCECEFF7D, "Weapons are hidden on the map !");
    SendClientMessage(playerid, 0xCECEFF7D, "Find Guns and Kill the other Players !");
    SendClientMessage(playerid, 0xCECEFF7D, "PS: Here, The NickNames are Invisible !");
    SendClientMessage(playerid, 0xCECEFF7D, "If you want to Quit: /quitfa, Good Luck!");
    GivePlayerWeapon(playerid, 29, 60);
    SetPlayerHealth(playerid, 40);
    SetPlayerArmour(playerid, 0);
    noTotForest[playerid] = 1;
    for(new i = 0; i < MAX_PLAYERS; i++)
        if(IsPlayerConnected(i))
            ShowPlayerNameTagForPlayer(playerid, i, false);
    return 1;
 }

CMD:quitfa(playerid)
{
    if(noTotForest[playerid] == 0) return SendClientMessage(playerid,0xFF0000,"ERROR: You are not in Forrest Arena !");
    SpawnPlayer(playerid);
    noTotForest[playerid] = 0;
    for(new i = 0; i < MAX_PLAYERS; i++)
        if(IsPlayerConnected(i))
            ShowPlayerNameTagForPlayer(playerid, i, true);
    return 1;
}
Reply
#2

Very nice!
Keep up the good work.
+Rep
Reply
#3

No deleting objects when unloading the FS that is not good.
Reply
#4

Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
No deleting objects when unloading the FS that is not good.
When you unload the FS it won't work lol, If you want to run it without the FS just put all the stuff in the FS in your GM.
Reply
#5

Quote:
Originally Posted by Zues
Посмотреть сообщение
When you unload the FS it won't work lol, If you want to run it without the FS just put all the stuff in the FS in your GM.
You seem to not understand the whole point, the FS creates objects when loaded but does not destroy them when unloaded. It should delete all these objects when it unloads doesn't make sense to me that it doesn't do this.
Reply
#6

Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
You seem to not understand the whole point, the FS creates objects when loaded but does not destroy them when unloaded. It should delete all these objects when it unloads doesn't make sense to me that it doesn't do this.
that's a problem, but i like to let all the FS's "loaded" while the gamemode is running, i'm sorry about that, next filterscript i'll do better.
Reply
#7

Awesome
Keep this spirit up, +REP!
Reply
#8

Quote:
Originally Posted by [uL]Pottus
Посмотреть сообщение
You seem to not understand the whole point, the FS creates objects when loaded but does not destroy them when unloaded. It should delete all these objects when it unloads doesn't make sense to me that it doesn't do this.
Ohhh...Sorry I did not understand but anyways here :

Код:
// --------------------------------------------------- //
// ----------- FILTER SCRIPT: FOREST ARENA ----------- //
// --------------- Map: Totola(Jumper) -------------- //
// --------------- Code: Totola(Jumper) -------------- //
// --------------------------------------------------- //

// ---------------------{INCLUDE'S}------------------- //
#include <a_samp>
#include <ZCMD>


// -----------------------{NEW'S}--------------------- //
new TotolaForest;
new noTotForest[MAX_PLAYERS];
new bool:ScriptObject[MAX_OBJECTS];

new Float:RandomTotola[][3] =
{
    {-1089.2100,-933.9091,129.2188},  // SPAWN 1
    {-1089.4825,-1044.7700,129.2119}, // SPAWN 2
    {-1194.7784,-1045.4269,129.2188}, // SPAWN 3
    {-1180.6783,-923.7373,129.2119},  // SPAWN 4
    {-1007.3196,-915.4716,129.2188},  // SPAWN 5
    {-1010.9894,-1060.1567,129.2188}  // SPAWN 6
};

new armas[] =
{
    355,
    353,
    348,
    349,
    339,
    347,
    358,
    357,
    369
};

new pickup1, pickup2, pickup3, pickup4, pickup5, pickup6, pickup7, pickup8, pickup9, pickup10, pickup11, pickup12, pickup13, pickup14, pickup15, pickup16;

stock CreateScriptObject(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ)
{
    new objectid = CreateObject(modelid, X, Y, Z, rX, rY, rZ);
    ScriptObject[objectid] = true;
}

stock DestroyScriptObjects()
{
    for(new o=0; o<sizeof(ScriptObject); o++)
    {
        if(ScriptObject[o])
        {
            DestroyObject(o);
            ScriptObject[o]=false;
        }
    }
}


// --------------------{CALL BACK'S}------------------ //
public OnFilterScriptInit()
{
    print("\n --------------------------------------------------- ");
    print(" --------------- FOREST ARENA CARREGADA -------------- ");
    print(" ---------------- By: Totola(Jumper) ---------------- ");
    print(" --------------------------------------------------- \n");
    TotolaForest = 0;
    
    // --------------------{<MAPA>}------------------ //
    AddStaticVehicleEx(522,-1191.9000244,-976.9000244,137.6999969,268.0000000,132,4,15); //NRG-500
    CreateScriptObject(972,-1005.0000000,-923.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (1)
    CreateScriptObject(972,-1005.0000000,-948.2000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (2)
    CreateScriptObject(972,-1005.0000000,-973.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (3)
    CreateScriptObject(972,-1005.0000000,-997.7999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (4)
    CreateScriptObject(972,-1005.0999756,-1022.2999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (5)
    CreateScriptObject(972,-1005.0000000,-1047.1999512,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (6)
    CreateScriptObject(972,-1005.0999756,-1056.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (7)
    CreateScriptObject(972,-1016.2000122,-1062.9000244,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (8)
    CreateScriptObject(972,-1041.0000000,-1063.0000000,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (9)
    CreateScriptObject(972,-1065.6999512,-1062.9000244,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (10)
    CreateScriptObject(972,-1090.6999512,-1062.8000488,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (11)
    CreateScriptObject(972,-1115.5000000,-1062.9000244,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (12)
    CreateScriptObject(972,-1140.4000244,-1063.0000000,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (13)
    CreateScriptObject(972,-1165.1999512,-1062.9000244,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (14)
    CreateScriptObject(972,-1189.1999512,-1063.0999756,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (15)
    CreateScriptObject(972,-1195.6999512,-1052.0000000,128.1999969,0.0000000,0.0000000,180.0000000); //object(tunnelentrance) (16)
    CreateScriptObject(972,-1195.6999512,-1027.1999512,128.1999969,0.0000000,0.0000000,179.9945068); //object(tunnelentrance) (17)
    CreateScriptObject(972,-1195.6999512,-1002.4000244,128.1999969,0.0000000,0.0000000,179.9945068); //object(tunnelentrance) (18)
    CreateScriptObject(972,-1195.8000488,-977.7999878,128.1999969,0.0000000,0.0000000,179.9945068); //object(tunnelentrance) (19)
    CreateScriptObject(972,-1195.8000488,-953.0999756,128.1999969,0.0000000,0.0000000,179.9945068); //object(tunnelentrance) (20)
    CreateScriptObject(972,-1187.5000000,-933.4000244,128.1999969,0.0000000,0.0000000,141.9945068); //object(tunnelentrance) (21)
    CreateScriptObject(972,-1169.6999512,-918.9000244,128.1999969,0.0000000,0.0000000,119.9927979); //object(tunnelentrance) (22)
    CreateScriptObject(972,-1148.0000000,-914.0000000,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (23)
    CreateScriptObject(972,-1123.0999756,-914.0000000,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (24)
    CreateScriptObject(972,-1098.3000488,-913.9000244,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (25)
    CreateScriptObject(972,-1073.5999756,-913.7999878,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (26)
    CreateScriptObject(972,-1048.8000488,-913.9000244,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (27)
    CreateScriptObject(972,-1023.9000244,-913.9000244,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (28)
    CreateScriptObject(972,-1004.5000000,-913.9000244,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (29)
    CreateScriptObject(11095,-1108.5999756,-995.7000122,133.3999939,0.0000000,0.0000000,0.0000000); //object(stadbridge_sfs) (1)
    CreateScriptObject(11095,-1040.5000000,-945.5999756,133.1999969,0.0000000,0.0000000,50.0000000); //object(stadbridge_sfs) (2)
    CreateScriptObject(790,-1179.3000488,-943.7999878,127.5000000,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (1)
    CreateScriptObject(790,-1113.3000488,-1012.4000244,127.0000000,0.0000000,0.0000000,171.3824463); //object(sm_fir_tallgroup) (2)
    CreateScriptObject(790,-1050.9000244,-945.0000000,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (3)
    CreateScriptObject(791,-1052.5999756,-974.2999878,127.5000000,0.0000000,0.0000000,0.0000000); //object(vbg_fir_copse) (1)
    CreateScriptObject(791,-1160.8000488,-1007.9000244,123.5000000,352.0000000,0.0000000,0.0000000); //object(vbg_fir_copse) (2)
    CreateScriptObject(790,-1165.6999512,-1053.1999512,128.1999969,0.0000000,0.0000000,171.3812256); //object(sm_fir_tallgroup) (4)
    CreateScriptObject(790,-1143.0999756,-1035.0999756,128.1999969,0.0000000,0.0000000,141.3812256); //object(sm_fir_tallgroup) (5)
    CreateScriptObject(790,-1088.5999756,-931.2000122,128.1999969,0.0000000,0.0000000,141.3775635); //object(sm_fir_tallgroup) (6)
    CreateScriptObject(790,-1029.0000000,-1054.5999756,128.1999969,0.0000000,0.0000000,141.3775635); //object(sm_fir_tallgroup) (7)
    CreateScriptObject(790,-1040.6999512,-1051.0000000,128.1999969,0.0000000,0.0000000,121.3775635); //object(sm_fir_tallgroup) (8)
    CreateScriptObject(17324,-1076.9000244,-1037.6999512,128.0000000,0.0000000,0.0000000,142.0000000); //object(cw_combbarn) (1)
    CreateScriptObject(3279,-1151.5999756,-999.0999756,128.1999969,0.0000000,0.0000000,0.0000000); //object(a51_spottower) (1)
    CreateScriptObject(3279,-1049.0999756,-968.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(a51_spottower) (2)
    CreateScriptObject(3279,-1039.5999756,-1041.3000488,128.1999969,0.0000000,0.0000000,0.0000000); //object(a51_spottower) (3)
    CreateScriptObject(727,-1011.7999878,-951.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (1)
    CreateScriptObject(727,-1019.9000244,-917.7999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (2)
    CreateScriptObject(727,-1019.0999756,-946.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (3)
    CreateScriptObject(727,-1008.4000244,-919.7999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (4)
    CreateScriptObject(727,-1028.4000244,-936.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (5)
    CreateScriptObject(727,-1019.9000244,-927.7999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (6)
    CreateScriptObject(727,-1009.0000000,-938.7000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (7)
    CreateScriptObject(727,-1049.4000244,-922.7000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (8)
    CreateScriptObject(727,-1037.0000000,-929.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (9)
    CreateScriptObject(727,-1035.9000244,-917.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (10)
    CreateScriptObject(727,-1177.5999756,-921.2000122,132.5000000,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (11)
    CreateScriptObject(727,-1150.1999512,-920.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (12)
    CreateScriptObject(727,-1168.6999512,-925.7000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (13)
    CreateScriptObject(727,-1134.8000488,-930.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (14)
    CreateScriptObject(727,-1115.3000488,-927.2999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (15)
    CreateScriptObject(727,-1131.5000000,-919.2999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (16)
    CreateScriptObject(727,-1122.0000000,-934.7999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (17)
    CreateScriptObject(727,-1100.5999756,-915.7000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (18)
    CreateScriptObject(727,-1103.4000244,-943.5999756,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (19)
    CreateScriptObject(727,-1071.9000244,-947.9000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (20)
    CreateScriptObject(727,-1103.0000000,-928.5000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (21)
    CreateScriptObject(727,-1160.5999756,-932.2999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (22)
    CreateScriptObject(727,-1137.0999756,-942.9000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (23)
    CreateScriptObject(727,-1150.3000488,-931.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (24)
    CreateScriptObject(727,-1125.1999512,-944.5999756,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (25)
    CreateScriptObject(727,-1172.5000000,-940.5000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (26)
    CreateScriptObject(727,-1160.6999512,-939.0999756,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (27)
    CreateScriptObject(727,-1183.0999756,-946.5000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (28)
    CreateScriptObject(727,-1191.0999756,-953.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (29)
    CreateScriptObject(790,-1103.3000488,-1053.3000488,128.1999969,0.0000000,0.0000000,121.3812256); //object(sm_fir_tallgroup) (9)
    CreateScriptObject(790,-1059.8000488,-1048.9000244,128.1999969,0.0000000,0.0000000,121.3769531); //object(sm_fir_tallgroup) (10)
    CreateScriptObject(3268,-1189.0999756,-977.0000000,128.1999969,0.0000000,0.0000000,180.0000000); //object(mil_hangar1_) (1)
    CreateScriptObject(790,-1189.3000488,-1028.1999512,128.1999969,0.0000000,0.0000000,171.3812256); //object(sm_fir_tallgroup) (11)
    CreateScriptObject(790,-1126.4000244,-933.4000244,128.1999969,0.0000000,0.0000000,171.3812256); //object(sm_fir_tallgroup) (12)
    CreateScriptObject(790,-1057.9000244,-1014.0000000,128.8999939,0.0000000,0.0000000,171.3812256); //object(sm_fir_tallgroup) (13)
    CreateScriptObject(790,-1159.1999512,-960.4000244,128.1999969,0.0000000,0.0000000,171.3812256); //object(sm_fir_tallgroup) (14)
    CreateScriptObject(5262,-1193.5000000,-987.4000244,131.0000000,0.0000000,0.0000000,270.0000000); //object(las2dkwar04) (1)
    CreateScriptObject(5269,-1186.4000244,-966.2000122,130.5000000,0.0000000,0.0000000,0.0000000); //object(las2dkwar05) (1)
    CreateScriptObject(5269,-1197.8000488,-978.5000000,130.5000000,0.0000000,0.0000000,0.0000000); //object(las2dkwar05) (2)
    CreateScriptObject(7040,-1086.6999512,-935.9000244,131.6000061,0.0000000,0.0000000,0.0000000); //object(vgnplcehldbox01) (1)
    CreateScriptObject(3374,-1105.0000000,-977.5999756,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (1)
    CreateScriptObject(3374,-1105.5000000,-982.5000000,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (2)
    CreateScriptObject(10814,-1086.3000488,-989.2000122,132.3000031,0.0000000,0.0000000,0.0000000); //object(apfuel2_sfse) (1)
    CreateScriptObject(13489,-1021.9000244,-1023.5000000,130.8000031,0.0000000,0.0000000,0.0000000); //object(sw_fueldrum04) (1)
    CreateScriptObject(13489,-1021.2999878,-1012.7999878,130.8000031,0.0000000,0.0000000,0.0000000); //object(sw_fueldrum04) (2)
    CreateScriptObject(727,-1038.5000000,-1031.1999512,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (30)
    CreateScriptObject(727,-1018.0999756,-1030.6999512,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (31)
    CreateScriptObject(727,-1035.1999512,-1018.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (32)
    CreateScriptObject(727,-1025.5999756,-985.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (33)
    CreateScriptObject(727,-1009.9000244,-1013.5000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (34)
    CreateScriptObject(727,-1028.5000000,-999.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (35)
    CreateScriptObject(790,-1143.5000000,-982.7999878,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (15)
    CreateScriptObject(790,-1085.8000488,-965.2000122,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (16)
    CreateScriptObject(790,-1052.5000000,-1038.0999756,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (17)
    CreateScriptObject(790,-1128.3000488,-999.5999756,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (18)
    CreateScriptObject(790,-1118.0999756,-1053.0000000,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (19)
    CreateScriptObject(16599,-1146.5000000,-1052.4000244,133.0000000,0.0000000,0.0000000,0.0000000); //object(by_fuel06) (1)
    CreateScriptObject(16599,-1140.8000488,-1052.0999756,133.0000000,0.0000000,0.0000000,0.0000000); //object(by_fuel06) (2)
    CreateScriptObject(8493,-1176.4000244,-1027.5999756,142.1000061,0.0000000,0.0000000,336.0000000); //object(pirtshp01_lvs) (1)
    CreateScriptObject(972,-1195.6999512,-1052.0000000,135.3999939,0.0000000,0.0000000,179.9945068); //object(tunnelentrance) (30)
    CreateScriptObject(972,-1189.0999756,-1063.0999756,135.5000000,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (31)
    CreateScriptObject(11440,-1130.5999756,-1016.9000244,127.5999985,0.0000000,0.0000000,0.0000000); //object(des_pueblo1) (1)
    CreateScriptObject(11440,-1075.5999756,-973.4000244,127.6999969,0.0000000,0.0000000,0.0000000); //object(des_pueblo1) (2)
    CreateScriptObject(11440,-1137.0000000,-956.9000244,127.6999969,0.0000000,0.0000000,40.0000000); //object(des_pueblo1) (3)
    CreateScriptObject(11457,-1011.4000244,-993.2999878,127.8000031,0.0000000,0.0000000,0.0000000); //object(des_pueblo09) (1)
    CreateScriptObject(972,-1005.2000122,-1004.0000000,135.0000000,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (32)
    CreateScriptObject(11459,-1150.1999512,-1035.9000244,128.1000061,0.0000000,0.0000000,0.0000000); //object(des_pueblo11) (1)
    CreateScriptObject(11459,-1049.5999756,-1048.6999512,128.1000061,0.0000000,0.0000000,0.0000000); //object(des_pueblo11) (2)
    CreateScriptObject(18256,-1092.9000244,-988.5999756,132.8999939,0.0000000,0.0000000,4.7039795); //object(w7bark01) (1)
    CreateScriptObject(11544,-1107.6999512,-992.0999756,139.0000000,0.0000000,0.0000000,0.0000000); //object(des_ntfrescape2) (1)
    CreateScriptObject(5269,-1184.0000000,-978.4000244,130.5000000,0.0000000,0.0000000,268.0000000); //object(las2dkwar05) (3)
    CreateScriptObject(727,-1171.0999756,-963.5000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (36)
    CreateScriptObject(727,-1164.3000488,-983.2000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (37)
    CreateScriptObject(727,-1158.0000000,-969.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (38)
    CreateScriptObject(17007,-1042.4000244,-1013.9000244,128.0000000,0.0000000,0.0000000,0.0000000); //object(wt6supps01) (1)
    CreateScriptObject(17067,-1123.8000488,-1039.0000000,128.0000000,0.0000000,0.0000000,98.0000000); //object(cw2_logcabins) (1)
    CreateScriptObject(3374,-1100.5999756,-980.5000000,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (3)
    CreateScriptObject(3374,-1102.5000000,-980.7000122,132.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (4)
    CreateScriptObject(3374,-1118.9000244,-929.9000244,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (5)
    CreateScriptObject(3374,-1112.4000244,-931.4000244,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (6)
    CreateScriptObject(3374,-1112.5000000,-931.2000122,132.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (7)
    CreateScriptObject(3374,-1166.3000488,-993.2000122,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (8)
    CreateScriptObject(3374,-1162.5999756,-990.4000244,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (9)
    CreateScriptObject(3374,-1018.5999756,-1047.8000488,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (10)
    CreateScriptObject(3374,-1018.7000122,-1043.4000244,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (11)
    CreateScriptObject(3374,-1018.7999878,-1044.9000244,132.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (12)
    CreateScriptObject(3374,-1164.5000000,-1029.8000488,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (13)
    CreateScriptObject(3374,-1160.5000000,-1029.6999512,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (14)
    CreateScriptObject(3374,-1162.4000244,-1029.8000488,132.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (15)
    return 1;
}

public OnFilterScriptExit()
{
  DestroyScriptObjects();
  return 1;
}

public OnPlayerConnect(playerid)
{
    noTotForest[playerid] = 0;
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    noTotForest[playerid] = 0;
    for(new i = 0; i < MAX_PLAYERS; i++)
        if(IsPlayerConnected(i))
            ShowPlayerNameTagForPlayer(playerid, i, true);
    return 1;
}

stock Nome(playerid)
{
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, MAX_PLAYER_NAME);
    return name;
}

// -----------------------{COMANDOS}--------------------- //
CMD:openfa(playerid)
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFF0000,"ERROR: You can not do this.");
    if(TotolaForest == 1) return SendClientMessage(playerid, 0xFF0000,"ERROR: Forest Arena is already Opened");
    TotolaForest = 1;
    SendClientMessageToAll(0x228B22FF , "[INFO]Forest Arena is Open!! [{FFFFFF}Type /FA to Join{228B22}]");
    SendClientMessage(playerid, -1, "|| WARNING ADM! Close it with: /closefa");

    pickup1 = CreatePickup(armas[random(sizeof(armas))], 2, -1039.7949,-1040.9695,136.8782, -1);
    pickup2 = CreatePickup(armas[random(sizeof(armas))], 2, -1016.2387,-1000.2385,129.2126, -1);
    pickup3 = CreatePickup(armas[random(sizeof(armas))], 2, -1048.8966,-968.5367,136.8782, -1);
    pickup4 = CreatePickup(armas[random(sizeof(armas))], 2, -1071.1217,-965.7619,129.2188, -1);
    pickup5 = CreatePickup(armas[random(sizeof(armas))], 2, -1067.1025,-925.1772,137.7380, -1);
    pickup6 = CreatePickup(armas[random(sizeof(armas))], 2, -1017.8635,-968.2134,137.7380, -1);
    pickup7 = CreatePickup(armas[random(sizeof(armas))], 2, -1115.4080,-929.7350,129.2188, -1);
    pickup8 = CreatePickup(armas[random(sizeof(armas))], 2, -1138.1083,-949.5615,129.2188, -1);
    pickup9 = CreatePickup(armas[random(sizeof(armas))], 2, -1110.4128,-961.2980,137.9380, -1);
    pickup10 = CreatePickup(armas[random(sizeof(armas))], 2, -1083.3379,-1007.6152,137.8681, -1);
    pickup11 = CreatePickup(armas[random(sizeof(armas))], 2, -1082.4080,-1044.4351,129.2188, -1);
    pickup12 = CreatePickup(armas[random(sizeof(armas))], 2, -1127.6932,-1010.8391,129.2188, -1);
    pickup13 = CreatePickup(armas[random(sizeof(armas))], 2, -1116.6295,-1039.6604,129.2119, -1);
    pickup14 = CreatePickup(armas[random(sizeof(armas))], 2, -1152.5444,-999.4540,136.8782, -1);
    pickup15 = CreatePickup(armas[random(sizeof(armas))], 2, -1177.8857,-1028.4845,131.6466, -1);
    pickup16 = CreatePickup(armas[random(sizeof(armas))], 2, -1192.3844,-987.4376,129.2188, -1);
    return 1;
}

CMD:closefa(playerid)
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFF0000,"ERROR: You can not do this");
    if(TotolaForest == 0) return SendClientMessage(playerid,0xFF0000,"ERROR: Forest Arena is already Closed");
    TotolaForest = 0;
    SendClientMessageToAll(0x228B22FF , "[INFO] The {FFFFFF}FOREST ARENA{228B22} is Closed!");
    DestroyPickup(pickup1);
    DestroyPickup(pickup2);
    DestroyPickup(pickup3);
    DestroyPickup(pickup4);
    DestroyPickup(pickup5);
    DestroyPickup(pickup6);
    DestroyPickup(pickup7);
    DestroyPickup(pickup8);
    DestroyPickup(pickup9);
    DestroyPickup(pickup10);
    DestroyPickup(pickup11);
    DestroyPickup(pickup12);
    DestroyPickup(pickup13);
    DestroyPickup(pickup14);
    DestroyPickup(pickup15);
    DestroyPickup(pickup16);
    return 1;
}

CMD:fa(playerid)
{
    if(TotolaForest == 0) return SendClientMessage(playerid,0xFF0000,"ERROR: Forest Arena is Closed");
    if(noTotForest[playerid] == 1) return SendClientMessage(playerid,0xFF0000,"ERROR: You are already in Forest Arena !");
    new rand = random(sizeof(RandomTotola));
    SetPlayerPos(playerid, RandomTotola[rand][0], RandomTotola[rand][1],RandomTotola[rand][2]);
    ResetPlayerWeapons(playerid);
    new string[100];
    format(string,sizeof(string), "[INFO] %s went to {FF0000}Forest Arena{FFA07A} [/FA]",Nome(playerid));
    SendClientMessageToAll(0xFFA07AFF, string);
    SendClientMessage(playerid, 0xCECEFF7D, "Forest Arena by: Totola(Jumper)");
    SendClientMessage(playerid, 0xCECEFF7D, "You Have To survive !");
    SendClientMessage(playerid, 0xCECEFF7D, "Weapons are hidden on the map !");
    SendClientMessage(playerid, 0xCECEFF7D, "Find Guns and Kill the other Players !");
    SendClientMessage(playerid, 0xCECEFF7D, "PS: Here, The NickNames are Invisible !");
    SendClientMessage(playerid, 0xCECEFF7D, "If you want to Quit: /quitfa, Good Luck!");
    GivePlayerWeapon(playerid, 29, 60);
    SetPlayerHealth(playerid, 40);
    SetPlayerArmour(playerid, 0);
    noTotForest[playerid] = 1;
    for(new i = 0; i < MAX_PLAYERS; i++)
        if(IsPlayerConnected(i))
            ShowPlayerNameTagForPlayer(playerid, i, false);
    return 1;
 }

CMD:quitfa(playerid)
{
    if(noTotForest[playerid] == 0) return SendClientMessage(playerid,0xFF0000,"ERROR: You are not in Forrest Arena !");
    SpawnPlayer(playerid);
    noTotForest[playerid] = 0;
    for(new i = 0; i < MAX_PLAYERS; i++)
        if(IsPlayerConnected(i))
            ShowPlayerNameTagForPlayer(playerid, i, true);
    return 1;
}
Reply
#9

Quote:
Originally Posted by BpVanshVk
Посмотреть сообщение
Awesome
Keep this spirit up, +REP!
Thank you Dude !

Quote:
Originally Posted by Zues
Посмотреть сообщение
Ohhh...Sorry I did not understand but anyways here :

Код:
// --------------------------------------------------- //
// ----------- FILTER SCRIPT: FOREST ARENA ----------- //
// --------------- Map: Totola(Jumper) -------------- //
// --------------- Code: Totola(Jumper) -------------- //
// --------------------------------------------------- //

// ---------------------{INCLUDE'S}------------------- //
#include <a_samp>
#include <ZCMD>


// -----------------------{NEW'S}--------------------- //
new TotolaForest;
new noTotForest[MAX_PLAYERS];
new bool:ScriptObject[MAX_OBJECTS];

new Float:RandomTotola[][3] =
{
    {-1089.2100,-933.9091,129.2188},  // SPAWN 1
    {-1089.4825,-1044.7700,129.2119}, // SPAWN 2
    {-1194.7784,-1045.4269,129.2188}, // SPAWN 3
    {-1180.6783,-923.7373,129.2119},  // SPAWN 4
    {-1007.3196,-915.4716,129.2188},  // SPAWN 5
    {-1010.9894,-1060.1567,129.2188}  // SPAWN 6
};

new armas[] =
{
    355,
    353,
    348,
    349,
    339,
    347,
    358,
    357,
    369
};

new pickup1, pickup2, pickup3, pickup4, pickup5, pickup6, pickup7, pickup8, pickup9, pickup10, pickup11, pickup12, pickup13, pickup14, pickup15, pickup16;

stock CreateScriptObject(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ)
{
    new objectid = CreateObject(modelid, X, Y, Z, rX, rY, rZ);
    ScriptObject[objectid] = true;
}

stock DestroyScriptObjects()
{
    for(new o=0; o<sizeof(ScriptObject); o++)
    {
        if(ScriptObject[o])
        {
            DestroyObject(o);
            ScriptObject[o]=false;
        }
    }
}


// --------------------{CALL BACK'S}------------------ //
public OnFilterScriptInit()
{
    print("\n --------------------------------------------------- ");
    print(" --------------- FOREST ARENA CARREGADA -------------- ");
    print(" ---------------- By: Totola(Jumper) ---------------- ");
    print(" --------------------------------------------------- \n");
    TotolaForest = 0;
    
    // --------------------{<MAPA>}------------------ //
    AddStaticVehicleEx(522,-1191.9000244,-976.9000244,137.6999969,268.0000000,132,4,15); //NRG-500
    CreateScriptObject(972,-1005.0000000,-923.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (1)
    CreateScriptObject(972,-1005.0000000,-948.2000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (2)
    CreateScriptObject(972,-1005.0000000,-973.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (3)
    CreateScriptObject(972,-1005.0000000,-997.7999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (4)
    CreateScriptObject(972,-1005.0999756,-1022.2999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (5)
    CreateScriptObject(972,-1005.0000000,-1047.1999512,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (6)
    CreateScriptObject(972,-1005.0999756,-1056.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (7)
    CreateScriptObject(972,-1016.2000122,-1062.9000244,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (8)
    CreateScriptObject(972,-1041.0000000,-1063.0000000,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (9)
    CreateScriptObject(972,-1065.6999512,-1062.9000244,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (10)
    CreateScriptObject(972,-1090.6999512,-1062.8000488,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (11)
    CreateScriptObject(972,-1115.5000000,-1062.9000244,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (12)
    CreateScriptObject(972,-1140.4000244,-1063.0000000,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (13)
    CreateScriptObject(972,-1165.1999512,-1062.9000244,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (14)
    CreateScriptObject(972,-1189.1999512,-1063.0999756,128.1999969,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (15)
    CreateScriptObject(972,-1195.6999512,-1052.0000000,128.1999969,0.0000000,0.0000000,180.0000000); //object(tunnelentrance) (16)
    CreateScriptObject(972,-1195.6999512,-1027.1999512,128.1999969,0.0000000,0.0000000,179.9945068); //object(tunnelentrance) (17)
    CreateScriptObject(972,-1195.6999512,-1002.4000244,128.1999969,0.0000000,0.0000000,179.9945068); //object(tunnelentrance) (18)
    CreateScriptObject(972,-1195.8000488,-977.7999878,128.1999969,0.0000000,0.0000000,179.9945068); //object(tunnelentrance) (19)
    CreateScriptObject(972,-1195.8000488,-953.0999756,128.1999969,0.0000000,0.0000000,179.9945068); //object(tunnelentrance) (20)
    CreateScriptObject(972,-1187.5000000,-933.4000244,128.1999969,0.0000000,0.0000000,141.9945068); //object(tunnelentrance) (21)
    CreateScriptObject(972,-1169.6999512,-918.9000244,128.1999969,0.0000000,0.0000000,119.9927979); //object(tunnelentrance) (22)
    CreateScriptObject(972,-1148.0000000,-914.0000000,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (23)
    CreateScriptObject(972,-1123.0999756,-914.0000000,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (24)
    CreateScriptObject(972,-1098.3000488,-913.9000244,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (25)
    CreateScriptObject(972,-1073.5999756,-913.7999878,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (26)
    CreateScriptObject(972,-1048.8000488,-913.9000244,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (27)
    CreateScriptObject(972,-1023.9000244,-913.9000244,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (28)
    CreateScriptObject(972,-1004.5000000,-913.9000244,128.1999969,0.0000000,0.0000000,90.0000000); //object(tunnelentrance) (29)
    CreateScriptObject(11095,-1108.5999756,-995.7000122,133.3999939,0.0000000,0.0000000,0.0000000); //object(stadbridge_sfs) (1)
    CreateScriptObject(11095,-1040.5000000,-945.5999756,133.1999969,0.0000000,0.0000000,50.0000000); //object(stadbridge_sfs) (2)
    CreateScriptObject(790,-1179.3000488,-943.7999878,127.5000000,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (1)
    CreateScriptObject(790,-1113.3000488,-1012.4000244,127.0000000,0.0000000,0.0000000,171.3824463); //object(sm_fir_tallgroup) (2)
    CreateScriptObject(790,-1050.9000244,-945.0000000,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (3)
    CreateScriptObject(791,-1052.5999756,-974.2999878,127.5000000,0.0000000,0.0000000,0.0000000); //object(vbg_fir_copse) (1)
    CreateScriptObject(791,-1160.8000488,-1007.9000244,123.5000000,352.0000000,0.0000000,0.0000000); //object(vbg_fir_copse) (2)
    CreateScriptObject(790,-1165.6999512,-1053.1999512,128.1999969,0.0000000,0.0000000,171.3812256); //object(sm_fir_tallgroup) (4)
    CreateScriptObject(790,-1143.0999756,-1035.0999756,128.1999969,0.0000000,0.0000000,141.3812256); //object(sm_fir_tallgroup) (5)
    CreateScriptObject(790,-1088.5999756,-931.2000122,128.1999969,0.0000000,0.0000000,141.3775635); //object(sm_fir_tallgroup) (6)
    CreateScriptObject(790,-1029.0000000,-1054.5999756,128.1999969,0.0000000,0.0000000,141.3775635); //object(sm_fir_tallgroup) (7)
    CreateScriptObject(790,-1040.6999512,-1051.0000000,128.1999969,0.0000000,0.0000000,121.3775635); //object(sm_fir_tallgroup) (8)
    CreateScriptObject(17324,-1076.9000244,-1037.6999512,128.0000000,0.0000000,0.0000000,142.0000000); //object(cw_combbarn) (1)
    CreateScriptObject(3279,-1151.5999756,-999.0999756,128.1999969,0.0000000,0.0000000,0.0000000); //object(a51_spottower) (1)
    CreateScriptObject(3279,-1049.0999756,-968.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(a51_spottower) (2)
    CreateScriptObject(3279,-1039.5999756,-1041.3000488,128.1999969,0.0000000,0.0000000,0.0000000); //object(a51_spottower) (3)
    CreateScriptObject(727,-1011.7999878,-951.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (1)
    CreateScriptObject(727,-1019.9000244,-917.7999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (2)
    CreateScriptObject(727,-1019.0999756,-946.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (3)
    CreateScriptObject(727,-1008.4000244,-919.7999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (4)
    CreateScriptObject(727,-1028.4000244,-936.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (5)
    CreateScriptObject(727,-1019.9000244,-927.7999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (6)
    CreateScriptObject(727,-1009.0000000,-938.7000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (7)
    CreateScriptObject(727,-1049.4000244,-922.7000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (8)
    CreateScriptObject(727,-1037.0000000,-929.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (9)
    CreateScriptObject(727,-1035.9000244,-917.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (10)
    CreateScriptObject(727,-1177.5999756,-921.2000122,132.5000000,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (11)
    CreateScriptObject(727,-1150.1999512,-920.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (12)
    CreateScriptObject(727,-1168.6999512,-925.7000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (13)
    CreateScriptObject(727,-1134.8000488,-930.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (14)
    CreateScriptObject(727,-1115.3000488,-927.2999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (15)
    CreateScriptObject(727,-1131.5000000,-919.2999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (16)
    CreateScriptObject(727,-1122.0000000,-934.7999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (17)
    CreateScriptObject(727,-1100.5999756,-915.7000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (18)
    CreateScriptObject(727,-1103.4000244,-943.5999756,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (19)
    CreateScriptObject(727,-1071.9000244,-947.9000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (20)
    CreateScriptObject(727,-1103.0000000,-928.5000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (21)
    CreateScriptObject(727,-1160.5999756,-932.2999878,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (22)
    CreateScriptObject(727,-1137.0999756,-942.9000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (23)
    CreateScriptObject(727,-1150.3000488,-931.4000244,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (24)
    CreateScriptObject(727,-1125.1999512,-944.5999756,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (25)
    CreateScriptObject(727,-1172.5000000,-940.5000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (26)
    CreateScriptObject(727,-1160.6999512,-939.0999756,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (27)
    CreateScriptObject(727,-1183.0999756,-946.5000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (28)
    CreateScriptObject(727,-1191.0999756,-953.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (29)
    CreateScriptObject(790,-1103.3000488,-1053.3000488,128.1999969,0.0000000,0.0000000,121.3812256); //object(sm_fir_tallgroup) (9)
    CreateScriptObject(790,-1059.8000488,-1048.9000244,128.1999969,0.0000000,0.0000000,121.3769531); //object(sm_fir_tallgroup) (10)
    CreateScriptObject(3268,-1189.0999756,-977.0000000,128.1999969,0.0000000,0.0000000,180.0000000); //object(mil_hangar1_) (1)
    CreateScriptObject(790,-1189.3000488,-1028.1999512,128.1999969,0.0000000,0.0000000,171.3812256); //object(sm_fir_tallgroup) (11)
    CreateScriptObject(790,-1126.4000244,-933.4000244,128.1999969,0.0000000,0.0000000,171.3812256); //object(sm_fir_tallgroup) (12)
    CreateScriptObject(790,-1057.9000244,-1014.0000000,128.8999939,0.0000000,0.0000000,171.3812256); //object(sm_fir_tallgroup) (13)
    CreateScriptObject(790,-1159.1999512,-960.4000244,128.1999969,0.0000000,0.0000000,171.3812256); //object(sm_fir_tallgroup) (14)
    CreateScriptObject(5262,-1193.5000000,-987.4000244,131.0000000,0.0000000,0.0000000,270.0000000); //object(las2dkwar04) (1)
    CreateScriptObject(5269,-1186.4000244,-966.2000122,130.5000000,0.0000000,0.0000000,0.0000000); //object(las2dkwar05) (1)
    CreateScriptObject(5269,-1197.8000488,-978.5000000,130.5000000,0.0000000,0.0000000,0.0000000); //object(las2dkwar05) (2)
    CreateScriptObject(7040,-1086.6999512,-935.9000244,131.6000061,0.0000000,0.0000000,0.0000000); //object(vgnplcehldbox01) (1)
    CreateScriptObject(3374,-1105.0000000,-977.5999756,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (1)
    CreateScriptObject(3374,-1105.5000000,-982.5000000,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (2)
    CreateScriptObject(10814,-1086.3000488,-989.2000122,132.3000031,0.0000000,0.0000000,0.0000000); //object(apfuel2_sfse) (1)
    CreateScriptObject(13489,-1021.9000244,-1023.5000000,130.8000031,0.0000000,0.0000000,0.0000000); //object(sw_fueldrum04) (1)
    CreateScriptObject(13489,-1021.2999878,-1012.7999878,130.8000031,0.0000000,0.0000000,0.0000000); //object(sw_fueldrum04) (2)
    CreateScriptObject(727,-1038.5000000,-1031.1999512,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (30)
    CreateScriptObject(727,-1018.0999756,-1030.6999512,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (31)
    CreateScriptObject(727,-1035.1999512,-1018.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (32)
    CreateScriptObject(727,-1025.5999756,-985.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (33)
    CreateScriptObject(727,-1009.9000244,-1013.5000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (34)
    CreateScriptObject(727,-1028.5000000,-999.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (35)
    CreateScriptObject(790,-1143.5000000,-982.7999878,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (15)
    CreateScriptObject(790,-1085.8000488,-965.2000122,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (16)
    CreateScriptObject(790,-1052.5000000,-1038.0999756,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (17)
    CreateScriptObject(790,-1128.3000488,-999.5999756,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (18)
    CreateScriptObject(790,-1118.0999756,-1053.0000000,128.1999969,0.0000000,0.0000000,211.3824463); //object(sm_fir_tallgroup) (19)
    CreateScriptObject(16599,-1146.5000000,-1052.4000244,133.0000000,0.0000000,0.0000000,0.0000000); //object(by_fuel06) (1)
    CreateScriptObject(16599,-1140.8000488,-1052.0999756,133.0000000,0.0000000,0.0000000,0.0000000); //object(by_fuel06) (2)
    CreateScriptObject(8493,-1176.4000244,-1027.5999756,142.1000061,0.0000000,0.0000000,336.0000000); //object(pirtshp01_lvs) (1)
    CreateScriptObject(972,-1195.6999512,-1052.0000000,135.3999939,0.0000000,0.0000000,179.9945068); //object(tunnelentrance) (30)
    CreateScriptObject(972,-1189.0999756,-1063.0999756,135.5000000,0.0000000,0.0000000,270.0000000); //object(tunnelentrance) (31)
    CreateScriptObject(11440,-1130.5999756,-1016.9000244,127.5999985,0.0000000,0.0000000,0.0000000); //object(des_pueblo1) (1)
    CreateScriptObject(11440,-1075.5999756,-973.4000244,127.6999969,0.0000000,0.0000000,0.0000000); //object(des_pueblo1) (2)
    CreateScriptObject(11440,-1137.0000000,-956.9000244,127.6999969,0.0000000,0.0000000,40.0000000); //object(des_pueblo1) (3)
    CreateScriptObject(11457,-1011.4000244,-993.2999878,127.8000031,0.0000000,0.0000000,0.0000000); //object(des_pueblo09) (1)
    CreateScriptObject(972,-1005.2000122,-1004.0000000,135.0000000,0.0000000,0.0000000,0.0000000); //object(tunnelentrance) (32)
    CreateScriptObject(11459,-1150.1999512,-1035.9000244,128.1000061,0.0000000,0.0000000,0.0000000); //object(des_pueblo11) (1)
    CreateScriptObject(11459,-1049.5999756,-1048.6999512,128.1000061,0.0000000,0.0000000,0.0000000); //object(des_pueblo11) (2)
    CreateScriptObject(18256,-1092.9000244,-988.5999756,132.8999939,0.0000000,0.0000000,4.7039795); //object(w7bark01) (1)
    CreateScriptObject(11544,-1107.6999512,-992.0999756,139.0000000,0.0000000,0.0000000,0.0000000); //object(des_ntfrescape2) (1)
    CreateScriptObject(5269,-1184.0000000,-978.4000244,130.5000000,0.0000000,0.0000000,268.0000000); //object(las2dkwar05) (3)
    CreateScriptObject(727,-1171.0999756,-963.5000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (36)
    CreateScriptObject(727,-1164.3000488,-983.2000122,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (37)
    CreateScriptObject(727,-1158.0000000,-969.0000000,128.1999969,0.0000000,0.0000000,0.0000000); //object(tree_hipoly04) (38)
    CreateScriptObject(17007,-1042.4000244,-1013.9000244,128.0000000,0.0000000,0.0000000,0.0000000); //object(wt6supps01) (1)
    CreateScriptObject(17067,-1123.8000488,-1039.0000000,128.0000000,0.0000000,0.0000000,98.0000000); //object(cw2_logcabins) (1)
    CreateScriptObject(3374,-1100.5999756,-980.5000000,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (3)
    CreateScriptObject(3374,-1102.5000000,-980.7000122,132.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (4)
    CreateScriptObject(3374,-1118.9000244,-929.9000244,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (5)
    CreateScriptObject(3374,-1112.4000244,-931.4000244,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (6)
    CreateScriptObject(3374,-1112.5000000,-931.2000122,132.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (7)
    CreateScriptObject(3374,-1166.3000488,-993.2000122,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (8)
    CreateScriptObject(3374,-1162.5999756,-990.4000244,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (9)
    CreateScriptObject(3374,-1018.5999756,-1047.8000488,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (10)
    CreateScriptObject(3374,-1018.7000122,-1043.4000244,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (11)
    CreateScriptObject(3374,-1018.7999878,-1044.9000244,132.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (12)
    CreateScriptObject(3374,-1164.5000000,-1029.8000488,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (13)
    CreateScriptObject(3374,-1160.5000000,-1029.6999512,129.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (14)
    CreateScriptObject(3374,-1162.4000244,-1029.8000488,132.6999969,0.0000000,0.0000000,0.0000000); //object(sw_haybreak02) (15)
    return 1;
}

public OnFilterScriptExit()
{
  DestroyScriptObjects();
  return 1;
}

public OnPlayerConnect(playerid)
{
    noTotForest[playerid] = 0;
    return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
    noTotForest[playerid] = 0;
    for(new i = 0; i < MAX_PLAYERS; i++)
        if(IsPlayerConnected(i))
            ShowPlayerNameTagForPlayer(playerid, i, true);
    return 1;
}

stock Nome(playerid)
{
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, MAX_PLAYER_NAME);
    return name;
}

// -----------------------{COMANDOS}--------------------- //
CMD:openfa(playerid)
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFF0000,"ERROR: You can not do this.");
    if(TotolaForest == 1) return SendClientMessage(playerid, 0xFF0000,"ERROR: Forest Arena is already Opened");
    TotolaForest = 1;
    SendClientMessageToAll(0x228B22FF , "[INFO]Forest Arena is Open!! [{FFFFFF}Type /FA to Join{228B22}]");
    SendClientMessage(playerid, -1, "|| WARNING ADM! Close it with: /closefa");

    pickup1 = CreatePickup(armas[random(sizeof(armas))], 2, -1039.7949,-1040.9695,136.8782, -1);
    pickup2 = CreatePickup(armas[random(sizeof(armas))], 2, -1016.2387,-1000.2385,129.2126, -1);
    pickup3 = CreatePickup(armas[random(sizeof(armas))], 2, -1048.8966,-968.5367,136.8782, -1);
    pickup4 = CreatePickup(armas[random(sizeof(armas))], 2, -1071.1217,-965.7619,129.2188, -1);
    pickup5 = CreatePickup(armas[random(sizeof(armas))], 2, -1067.1025,-925.1772,137.7380, -1);
    pickup6 = CreatePickup(armas[random(sizeof(armas))], 2, -1017.8635,-968.2134,137.7380, -1);
    pickup7 = CreatePickup(armas[random(sizeof(armas))], 2, -1115.4080,-929.7350,129.2188, -1);
    pickup8 = CreatePickup(armas[random(sizeof(armas))], 2, -1138.1083,-949.5615,129.2188, -1);
    pickup9 = CreatePickup(armas[random(sizeof(armas))], 2, -1110.4128,-961.2980,137.9380, -1);
    pickup10 = CreatePickup(armas[random(sizeof(armas))], 2, -1083.3379,-1007.6152,137.8681, -1);
    pickup11 = CreatePickup(armas[random(sizeof(armas))], 2, -1082.4080,-1044.4351,129.2188, -1);
    pickup12 = CreatePickup(armas[random(sizeof(armas))], 2, -1127.6932,-1010.8391,129.2188, -1);
    pickup13 = CreatePickup(armas[random(sizeof(armas))], 2, -1116.6295,-1039.6604,129.2119, -1);
    pickup14 = CreatePickup(armas[random(sizeof(armas))], 2, -1152.5444,-999.4540,136.8782, -1);
    pickup15 = CreatePickup(armas[random(sizeof(armas))], 2, -1177.8857,-1028.4845,131.6466, -1);
    pickup16 = CreatePickup(armas[random(sizeof(armas))], 2, -1192.3844,-987.4376,129.2188, -1);
    return 1;
}

CMD:closefa(playerid)
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFF0000,"ERROR: You can not do this");
    if(TotolaForest == 0) return SendClientMessage(playerid,0xFF0000,"ERROR: Forest Arena is already Closed");
    TotolaForest = 0;
    SendClientMessageToAll(0x228B22FF , "[INFO] The {FFFFFF}FOREST ARENA{228B22} is Closed!");
    DestroyPickup(pickup1);
    DestroyPickup(pickup2);
    DestroyPickup(pickup3);
    DestroyPickup(pickup4);
    DestroyPickup(pickup5);
    DestroyPickup(pickup6);
    DestroyPickup(pickup7);
    DestroyPickup(pickup8);
    DestroyPickup(pickup9);
    DestroyPickup(pickup10);
    DestroyPickup(pickup11);
    DestroyPickup(pickup12);
    DestroyPickup(pickup13);
    DestroyPickup(pickup14);
    DestroyPickup(pickup15);
    DestroyPickup(pickup16);
    return 1;
}

CMD:fa(playerid)
{
    if(TotolaForest == 0) return SendClientMessage(playerid,0xFF0000,"ERROR: Forest Arena is Closed");
    if(noTotForest[playerid] == 1) return SendClientMessage(playerid,0xFF0000,"ERROR: You are already in Forest Arena !");
    new rand = random(sizeof(RandomTotola));
    SetPlayerPos(playerid, RandomTotola[rand][0], RandomTotola[rand][1],RandomTotola[rand][2]);
    ResetPlayerWeapons(playerid);
    new string[100];
    format(string,sizeof(string), "[INFO] %s went to {FF0000}Forest Arena{FFA07A} [/FA]",Nome(playerid));
    SendClientMessageToAll(0xFFA07AFF, string);
    SendClientMessage(playerid, 0xCECEFF7D, "Forest Arena by: Totola(Jumper)");
    SendClientMessage(playerid, 0xCECEFF7D, "You Have To survive !");
    SendClientMessage(playerid, 0xCECEFF7D, "Weapons are hidden on the map !");
    SendClientMessage(playerid, 0xCECEFF7D, "Find Guns and Kill the other Players !");
    SendClientMessage(playerid, 0xCECEFF7D, "PS: Here, The NickNames are Invisible !");
    SendClientMessage(playerid, 0xCECEFF7D, "If you want to Quit: /quitfa, Good Luck!");
    GivePlayerWeapon(playerid, 29, 60);
    SetPlayerHealth(playerid, 40);
    SetPlayerArmour(playerid, 0);
    noTotForest[playerid] = 1;
    for(new i = 0; i < MAX_PLAYERS; i++)
        if(IsPlayerConnected(i))
            ShowPlayerNameTagForPlayer(playerid, i, false);
    return 1;
 }

CMD:quitfa(playerid)
{
    if(noTotForest[playerid] == 0) return SendClientMessage(playerid,0xFF0000,"ERROR: You are not in Forrest Arena !");
    SpawnPlayer(playerid);
    noTotForest[playerid] = 0;
    for(new i = 0; i < MAX_PLAYERS; i++)
        if(IsPlayerConnected(i))
            ShowPlayerNameTagForPlayer(playerid, i, true);
    return 1;
}
I didn't know that function, so thank you. +rep
Reply
#10

decent job.. tho map lags for all the playr in server.. i shall suggest u to remove some useless things from map.. anyways its awesome u deserve a rep
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)