[FilterScript] Forest Arena DM
#1

Forest Arena
Forest Arena й um Evento aonde seu objetivo й sobreviver, ache as armas espalhadas pela arena, mate seus oponentes, e seja feliz.

Comandos
/abrirfa - Abre o Evento (LOGADO NA RCON)
/fecharfa - Fecha o Arena (LOGADO NA RCON)
/fa - Entra no Evento
/sairfa - Sai do Evento


Armas
As armas sгo spawnadas Aleatoriamentes sempre quando o Evento й aberto
AK-47
MP5
Desert Eagle
Shotgun
Katana
Silenced Pistol
Country Rifle
Sniper Rifle
Thermal Goggles


Spawn
O Player pode Spawnar em 6 lugares aleatуrios,
Quando Spawna, os nicks sгo desativados.


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

Download
pawn Код:
// --------------------------------------------------- //
// ----------- FILTER SCRIPT: FOREST ARENA ----------- //
// --------------- Mapa: 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(" ---------------- Por: Totola(Jumper) ---------------- ");
    print(" --------------------------------------------------- \n");
    TotolaForest = 0; // FECHANDO A ARENA, QUANDO O FS Й CARREGADO
   
    // --------------------{<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)
{
    // QUANDO O PLAYER CONECTA, PARA EVITAR SETBUGS, RESETAMOS AS INFOS !
    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:abrirfa(playerid)
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFF0000,"Erro: Vocк nгo tem permissгo para usar este comando.");
    if(TotolaForest == 1) return SendClientMessage(playerid, 0xFF0000,"ERRO: o Forest Arena ja esta Aberto");
    TotolaForest = 1;
    SendClientMessageToAll(0x228B22FF , "[INFO] O Forest Arena foi aberto!! [{FFFFFF}Digite /FA para participar{228B22}]");
    SendClientMessage(playerid, -1, "|| ATENЗГO ADM! Feche o Evento com /fecharfa");
   
    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:fecharfa(playerid)
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xFF0000,"Erro: Vocк nгo tem permissгo para usar este comando.");
    if(TotolaForest == 0) return SendClientMessage(playerid,0xFF0000,"ERRO: o Forest Arena ja esta Fechado");
    TotolaForest = 0;
    SendClientMessageToAll(0x228B22FF , "[INFO] O Evento {FFFFFF}FOREST ARENA{228B22} foi Fechado!");
    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,"ERRO: o Forest Arena esta Fechado");
    if(noTotForest[playerid] == 1) return SendClientMessage(playerid,0xFF0000,"ERRO: Vocк ja esta no 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 foi para a {FF0000}Forest Arena{FFA07A} [/FA]",Nome(playerid));
    SendClientMessageToAll(0xFFA07AFF, string);
    SendClientMessage(playerid, 0xCECEFF7D, "Forest Arena por: Totola(Jumper)");
    SendClientMessage(playerid, 0xCECEFF7D, "Seu Objetivo й Sobreviver");
    SendClientMessage(playerid, 0xCECEFF7D, "As armas estгo escondidas no mapa !");
    SendClientMessage(playerid, 0xCECEFF7D, "Consiga Armas e mate seus Opnoentes, si por si !");
    SendClientMessage(playerid, 0xCECEFF7D, "Obs: Aqui os Nicks sгo desativados !");
    SendClientMessage(playerid, 0xCECEFF7D, "Se quiser Sair use: /sairfa, Boa Sorte!");
    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:sairfa(playerid)
{
    if(noTotForest[playerid] == 0) return SendClientMessage(playerid,0xFF0000,"ERRO: Vocк nгo esta no Forrest Arena !");
    SpawnPlayer(playerid);
    noTotForest[playerid] = 0;
    for(new i = 0; i < MAX_PLAYERS; i++)
        if(IsPlayerConnected(i))
            ShowPlayerNameTagForPlayer(playerid, i, true);
    return 1;
}
Crйditos
Cуdigo: Lucas Totola(Jumper)
Mapa: Lucas Totola(Jumper)

Reply
#2

Bom o FS.
Acho que vocк poderia atualiza-lo, ele estб уtimo, mas pode melhorar meu jovem.

Gostei da maneira que utilizou na entrada do Evento.
+REP
Reply
#3

Mapa: 10/10
Script: 7/10

Parabйns
Reply
#4

Mapa excelente. O script esta otimo tb, parabens =)

+3reps.
Reply
#5

Quote:
Originally Posted by SampSampa
Посмотреть сообщение
Mapa: 10/10
Script: 7/10

Parabйns
Quote:
Originally Posted by Kuddy
Посмотреть сообщение
Mapa excelente. O script esta otimo tb, parabens =)

+3reps.
Obrigado


Quote:
Originally Posted by AlucardSnow
Посмотреть сообщение
Bom o FS.
Acho que vocк poderia atualiza-lo, ele estб уtimo, mas pode melhorar meu jovem.

Gostei da maneira que utilizou na entrada do Evento.
+REP
Primeiramente obrigado, vocк disse que posso melhorar, pode falar o que posso acrescentar nesse fs?
Reply
#6

hum eu sei um server que tem isso
Reply
#7

Quote:
Originally Posted by Naja
Посмотреть сообщение
hum eu sei um server que tem isso
fiz este script para a extreme brasil, atual gta facзхes, mas nгo utilizaram, passei o mesmo para outras pessoas do server, que nгo sгo de minha inteira confianзa, o que pode ter levado a cair nas mгos de outra pessoa, mas fui eu que fiz, vc acreditando ou nгo, nгo ligo.
Reply
#8

Jumper, quando o player morre ele nao spawna na forest arena novamente, como eu faзo para isso acontecer? tentei de varias formas mas nao consegui
Reply
#9

Um exemplo...
pawn Код:
public OnPlayerSpawn(playerid){
    if (noTotForest[playerid] == 1){
        SetPlayerInForestMAP(playerid);
        return 1;
    }
    return 1;
}

SetPlayerInForestMAP(playerid){
    new rand = random(sizeof(RandomTotola));
    SetPlayerPos(playerid, RandomTotola[rand][0], RandomTotola[rand][1],RandomTotola[rand][2]);

    ResetPlayerWeapons(playerid);

    SendClientMessage(playerid, 0xCECEFF7D, "Digite /sairforest para sair do evento DM.");

    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);
}

CMD:sairforest(playerid,params[]){
    noTotForest[playerid] = 0;
    SendClientMessage(playerid, 0xCECEFF7D, "Vocк saiu do evento bla bla bla. !");
    return 1;
}
Nгo sei se ta certo, fiz aqui pelo fуrum.
flw.
Reply
#10

Quote:
Originally Posted by Deli
Посмотреть сообщение
Jumper, quando o player morre ele nao spawna na forest arena novamente, como eu faзo para isso acontecer? tentei de varias formas mas nao consegui
Quando eu fiz esse FS, minha ideia era que quando o player й morto ele sai do evento, mas o que o schooc fez me parece estar correto.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)