09.09.2010, 12:24
Quote:
Hello Zuc ,
I have translate ^^ The script is in the spoiler : Код:
/******************************************************************************* * * * __ __ _____ _______ _ _____ _____ _ _ ___ * * | | | | / ___ \ | __ \ | | | __ \ |__ | | | | | / ___| * * | | | | | | | | | |__| || | | | | | / / | | | || | * * \ /\ | | |___| | | |\ \ | |___ | |__| | / /_ | |__| || |___ * * \__/\__/ \_____/ |__| \_\ |_____||_____/ |_____| \____/ \____| * * * * v1.0 By [ZFM]Zuc * *******************************************************************************/ #include <a_samp> #include <dudb> #include <Zadmin2.0> AntiDeAMX(){ new a[][] ={ "Unarmed (Fist)", "Brass K"}; #pragma unused a } /******************************************************************************* * <=[Variabili e defines]=> * *******************************************************************************/ #define dcmd(%1,%2,%3) if((strcmp((%3)[1],#%1,true,(%2))==0)&&((((%3)[(%2)+1]==0)&&(dcmd_%1(playerid,"")))||(((%3)[(%2)+1]==32)&&(dcmd_%1(playerid,(%3)[(%2)+2]))))) return 1 #define VITA_AUTO #define INFO_GIOCATORE #define MenuDialog 1 #define TEMPO_RESPAWN_AUTO 10 #define MAX-PLAYERS 50 #define TEMPO_DM 1 #define TEMPO_DRIFT 5 #define TEMPO_STUNT 13 #define TEMPO_WAR 5 #define ORARIO_DM 12 #define ORARIO_DRIFT 5 #define ORARIO_STUNT 12 #define ORARIO_WAR 5 #define TEAM_GROVE 1 #define TEAM_VAGOS 2 #define TEAM_BALLAS 3 #define TEAM_BIKERS 4 #define TEAM_AZTECAS 5 #define TEAM_MAFIA 6 #define CAR_HEALTH #define PLAYER_INFO /******************************************************************************* * <=[ARMI]=> * *******************************************************************************/ #define BASEBALL_BAT 5 #define COLT 22 #define SILENCED_COLT 23 #define DEAGLE 24 #define AK47 30 #define M4 31 #define TEC9 32 #define MICRO_UZI 28 #define MP5 29 #define GRENADES 16 #define KNIFE 4 #define SHOTGUN 25 #define SAWNOFF_SHOTGUN 26 #define COMBAT_SHOTGUN 27 #define SNIPER_RIFLE 34 #define MINIGUN 38 #define SPRAY_PAINT 41 #define FIRE_EXTINGUER 42 /******************************************************************************* * <=[COLORI]=> * *******************************************************************************/ #define COLOR_VERDEMILITARE 0x9ACD32AA //verde militare #define COLOR_GRIGIO 0xAFAFAFAA //grigio #define COLOR_GRIGIOSCURO 0x5F5251AA //grigio scuro #define COLOR_VERDECHIARO 0x81F628AA //verde chiaro #define COLOR_GIALLO 0xFFFF00AA //giallo #define COLOR_BLU 0x0050F6AA //blu #define COLOR_VERDE 0x33AA33AA //verde #define COLOR_ROSSO 0xF60000AA //rosso #define COLOR_ARANCIONE 0xFF9900AA //arancione #define COLOR_ROSSOCHIARO 0xF60000AA //rosso acceso #define COLOR_BIANCO 0xFFFFFFFF //bianco #define COLOR_NERO 0x000000AA //nero #define COLOR_BLUCHIARO 0x33CCFFAA //azzurro #define COLOR_MARRONE 0x663300AA //marrone #define COLOR_VIOLA 0x990099AA //viola /******************************************************************************* * <=[VARIABILI]=> * *******************************************************************************/ new NomeGiocatore1[24], string[256], veicolo; enum OpzioniGiocatore{ SquadraGiocatore[MAX-PLAYERS], BuoneUccisioni[MAX-PLAYERS], CattiveUccisioni[MAX-PLAYERS], Punteggio[MAX-PLAYERS], Morti[MAX-PLAYERS], Float:Vita[MAX-PLAYERS], Mondo[MAX-PLAYERS], PlayerSpawnato[MAX-PLAYERS], gTeam[MAX-PLAYERS]}; new InfoGiocatore[MAX-PLAYERS][OpzioniGiocatore]; new GangZoneGrove; new GangZoneVagos; new GangZoneMafia; new GangZoneBikers; new GangZoneBallas; new GangZoneAztecas; new GroveKills, BallasKills, VagosKills, AztecasKills, BikersKills, MafiaKills; new Text:VitaVeicolo[MAX-PLAYERS]; #if defined INFO_GIOCATORE new Text:PlayerInfo2[MAX-PLAYERS]; #endif new Text:tdraw; new Float:VitaVeicolo2; new tempo1, tempo2, tempo3, tempo4, tempo5; new elegy_d1_1, elegy_d1_2, elegy_d1_3, elegy_d1_4, elegy_d1_5, elegy_d1_6, // auto drift 1 sultan_d2_1, sultan_d2_2, flash_d2_1, flash_d2_2, // auto drift 2 elegy_d3_1, elegy_d3_2, elegy_d3_3, elegy_d3_4, // auto drift 3 elegy_d4_1, elegy_d4_2, elegy_d4_3, elegy_d4_4, // auto drift4 elegy_d5_1, elegy_d5_2, elegy_d5_3, elegy_d5_4, elegy_d5_5, elegy_d5_6, // auto drift 5 elegy_d6_1, elegy_d6_2, elegy_d6_3; // veicoli MONDO DM (2) // new a1,a2,a3,a4,a5,a6,a7,a8,a9,a10,a11,a12,a13,a14,a15,a16,a17,a18,a19,a20,a21,a22,a23,a24,a25,a26,a27,a28,a29,a30,a31,a32,a33,a34,a35,a36,a37,a38,a39; // veicoli MONDO WAR (4) // new b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11,b12,b13,b14,b15,b16,b17,b18,b19,b20,b21,b22,b23,b24,b25,b26,b27,b28,b29,b30,b31,b32,b33,b34,b35,b36,b37,b38,b39, b40,b41,b42,b43,b44,b45,b46,b47,b48,b49,b50,b51,b52,b53,b54,b55,b56,b57,b58,b59,b60,b61,b62,b63,b64,b65,b66,b67,b68,b69,b70,b71,b72,b73; // vehcoli jump1 // new c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16,c17,c18,c19,c20; new d1,d2,d3,d4,d5,d6,d7,d8,d9,d10,d11,d12,d13,d14,d15,d16,d17,d18,d19,d20,d21,d22,d23,d24,d25,d26,d27,d28,d29,d30,d31,d32; new Float:PuntiDiSpawn[4][4]={ // X, Y, Z, ROTAZIONE // {-304.1332,1527.7257,75.3594,185.0}, {-2381.5737,-579.5432,132.1172,118.0}, {1244.8322,-2036.8687,59.8600,270.0}, {833.7303,-1795.3284,14.3240,180.0}}; new Float:StuntSpawns[5][4]={ // X, Y, Z, ROTAZIONE // {1960.5044,-2456.3022,13.5391,270.0}, {-1717.2229,-314.5244,13.7286,318.0}, {377.2024,2551.0232,17.9733,90.0}, {-690.7571,821.6666,834.6039,135.5}, {-326.7627,2518.4670,406.9554}}; new Float:PlayerSpawns[8][4]={ {1297.6279,1343.1221,10.8203,270.0}, {1585.0704,1447.3429,10.8357,90.0}, {342.2527,2025.4828,22.6406,90.0}, {289.4953,1946.5419,17.6406,0.0}, {387.9521,2536.4685,16.5391,180.0}, {2574.1260,2780.7708,10.8203,90.0}, {2660.3418,2817.9771,38.3222,175.0}, {2623.8022,2746.9744,23.8222,0.0}}; new name[24],sniperzone,minigunzone,minigunzone2; new Text:CarHealth[MAX-PLAYERS]; new Messaggio; new SceltaMondiFatta[MAX-PLAYERS]; new Float:x3,Float:y3,Float:z3; #if defined PLAYER_INFO new Text:PlayerInfo3[MAX-PLAYERS]; #endif enum PlayerData{ GoodKillings[MAX-PLAYERS], Score[MAX-PLAYERS], Deaths[MAX-PLAYERS],}; new PlayerInfo[MAX-PLAYERS][PlayerData]; new atimer, atempo1, atempo2, atempo3, atempo4, atempo5; /******************************************************************************* * <=[FORWARDS]=> * *******************************************************************************/ forward VitaPlayerAuto(); forward PlayerInfoTimer(); forward InfoVeicolo(); forward Messaggi(); forward ResettatoreArmi(); forward NitroReset(); forward VitaPlayerAuto(); forward UpdateTime(); forward InAreas(); forward TempBlockPlayer(playerid); forward RemovePlayerBlock(playerid); stock IsPlayerInArea(playerID, Float:minx, Float:miny, Float:maxx, Float:maxy, Float:minz, Float:maxz){ new Float:x, Float:y, Float:z; GetPlayerPos(playerID,x,y,z); if(x>=minx && x<=maxx && y>=miny && y<=maxy && z>=minz && z<=maxz){ return 1;} return 0;} /******************************************************************************* * <=[GAMEMODE]=> * *******************************************************************************/ public OnGameModeInit(){ SetTimer("NitroReset", 1000, true); atempo1=SetTimer("VitaPlayerAuto",500,1); atempo2=SetTimer("CarInfo",100,1); atempo3=SetTimer("PlayerInfoTimer",200,1); atempo5=SetTimer("Messaggi",60000,1); #if defined PLAYER_INFO for(new i=0;i<MAX-PLAYERS;i++){ PlayerInfo3[i] = TextDrawCreate(10.000000,180.000000," "); TextDrawFont(Text:PlayerInfo3[i],1); TextDrawLetterSize(PlayerInfo3[i],0.5,1.5); TextDrawAlignment(PlayerInfo3[i],0);} #endif #if defined CAR_HEALTH for(new i = 0; i < MAX-PLAYERS; i++){ CarHealth[i] = TextDrawCreate(210.000000,390.000000," "); TextDrawFont(CarHealth[i],1); TextDrawLetterSize(CarHealth[i],0.810000,2.020000); TextDrawColor(CarHealth[i],COLOR_GIALLO);} #endif sniperzone = GangZoneCreate(95.1270,1799.3463,283.8586,1940.4288); // zona da sniper minigunzone = GangZoneCreate(470.4272,1990.8818,493.0548,2029.7832); // zona da minigun minigunzone2 = GangZoneCreate(393.9248,2668.9033,409.9981,2680.8328); // zona 2 da minigun atimer=SetTimer("InAreas",1000,1); // MAPPA // CreateObject(8040, -702.017029, 795.600281, 834.783508, 0.0000, 0.0000, 225.9278); //jump1 CreateObject(8040, -308.591156, 2517.795654, 406.549194, 0.0000, 0.0000, 358.2811); //jump2 CreateObject(18450, 2538.947754, 2780.295410, 7.338510, 0.0000, 14.6104, 0.0000); CreateObject(18450, 2461.384521, 2776.768555, 9.630175, 0.0000, 348.8273, 5.1566); CreateObject(18450, 2555.745117, 2753.446533, 10.713517, 0.0000, 342.8113, 0.0000); CreateObject(18450, 2638.314209, 2769.262207, 20.915411, 0.0000, 339.3735, 89.3814); CreateObject(18450, 2695.406982, 2816.469238, 27.115416, 0.0000, 56.7228, 89.3814); CreateObject(7291, 176.386215, 2232.538574, 86.878990, 0.0000, 0.0000, 0.0000); CreateObject(3885, 176.404724, 2232.532227, 138.909500, 0.0000, 0.0000, 75.6304); CreateObject(3885, 170.608780, 2232.504883, 138.923508, 0.0000, 0.0000, 255.2528); CreateObject(7291, 170.518402, 2232.320557, 86.879723, 0.0000, 0.0000, 0.0000); CreateObject(17013, 482.189484, 2010.363770, 55.058228, 0.0000, 0.0000, 0.0000); CreateObject(3279, 401.437988, 2674.163086, 58.114410, 0.0000, 0.0000, 0.0000); CreateObject(3361, 496.283630, 2026.932373, 57.573643, 0.0000, 0.0000, 0.0000); CreateObject(3361, 502.292450, 2026.907959, 53.559315, 0.0000, 0.0000, 0.0000); CreateObject(5130, 484.764374, 2010.527222, 60.965111, 0.0000, 0.0000, 315.3093); CreateObject(974, 476.690704, 2010.559570, 63.960037, 89.8335, 0.0000, 89.8335); CreateObject(1215, 470.199829, 2028.938843, 58.540272, 0.0000, 0.0000, 0.0000); CreateObject(1215, 492.444000, 2029.182861, 58.540272, 0.0000, 0.0000, 0.0000); CreateObject(1215, 492.430573, 1991.837158, 58.540272, 0.0000, 0.0000, 0.0000); CreateObject(1215, 470.094696, 1991.531860, 58.540272, 0.0000, 0.0000, 0.0000); CreateObject(1215, 173.369431, 2233.477783, 139.987823, 0.0000, 0.0000, 0.0000); CreateObject(1215, 173.440186, 2231.782959, 139.973816, 0.0000, 0.0000, 0.0000); // VEICOLI // b1=AddStaticVehicle(520,329.0167,1968.1473,17.3002,90.2662,6,0); // Hydra b2=AddStaticVehicle(520,328.7503,1954.0695,17.2993,92.4101,6,0); // Hydra b3=AddStaticVehicle(520,300.7502,2045.5149,18.3577,182.0805,0,0); // Hydra b4=AddStaticVehicle(520,315.0127,2045.4285,18.3644,178.2314,0,0); // Hydra b5=AddStaticVehicle(520,279.5898,1987.1644,18.3653,271.3350,0,0); // Hydra b6=AddStaticVehicle(520,278.8428,2024.1180,18.3564,271.4596,0,0); // Hydra b7=AddStaticVehicle(520,278.1877,1955.5408,18.3694,269.3195,0,0); // Hydra b8=AddStaticVehicle(520,2618.3464,2721.1465,36.5386,346.6828,0,0); // Hydra b9=AddStaticVehicle(520,347.9677,2538.1638,16.7497,180.7476,0,0); // Hydra b10=AddStaticVehicle(520,326.4308,2541.2136,16.8071,180.4760,0,0); // Hydra b11=AddStaticVehicle(520,291.0368,2541.7463,16.8205,178.8466,0,0); // Hydra b12=AddStaticVehicle(520,273.2721,2542.5374,16.8125,179.9328,0,0); // Hydra b13=AddStaticVehicle(520,260.3457,2533.3135,16.8047,180.4760,0,0); // Hydra b14=AddStaticVehicle(520,247.0742,2532.8535,16.8047,180.4760,0,0); // Hydra b15=AddStaticVehicle(520,232.8671,2532.2603,16.7594,180.4760,0,0); // Hydra b16=AddStaticVehicle(520,327.4832,1991.1764,17.6406,90.9478,0,0); // Hydra b17=AddStaticVehicle(432,2793.1440,-2417.9502,13.6484,90.8369,0,0); // Rhyno b18=AddStaticVehicle(432,2794.2158,-2456.1770,13.6481,90.2192,0,0); // Rhyno b19=AddStaticVehicle(432,2792.9753,-2494.8115,13.6600,89.0224,0,0); // Rhyno b20=AddStaticVehicle(432,2738.5068,-2485.0493,13.6693,270.6107,0,0); // Rhyno b21=AddStaticVehicle(432,2780.1348,-2471.3777,13.6516,90.0677,0,0); // Rhyno b22=AddStaticVehicle(432,2779.8335,-2477.1897,13.6543,89.8087,0,0); // Rhyno b23=AddStaticVehicle(432,2779.5125,-2439.1084,13.6515,88.6752,0,0); // Rhyno b24=AddStaticVehicle(432,2780.0032,-2433.3601,13.6512,90.2015,0,0); // Rhyno b25=AddStaticVehicle(476,-1357.1349,-478.0920,15.5878,204.3550,0,3); // rustler1 b26=AddStaticVehicle(476,-1375.1039,-489.5829,15.5998,207.9839,0,3); // rustler2 b27=AddStaticVehicle(476,306.0569,2474.6897,17.1971,0.5361,0,3); // rustler3 b28=AddStaticVehicle(476,294.0569,2474.6897,17.1971,0.5361,0,6); // rustler4 b29=AddStaticVehicle(476,282.0569,2474.6897,17.1971,0.5361,3,0); // rustler5 b30=AddStaticVehicle(476,270.0569,2474.6897,17.1971,0.5361,6,0); // rustler6 b31=AddStaticVehicle(476,258.0569,2474.6897,17.1971,0.5361,6,3); // rustler7 b32=AddStaticVehicle(476,246.0569,2474.6897,17.1971,0.5361,0,1); // rustler8 b33=AddStaticVehicle(476,234.0569,2474.6897,17.1971,0.5361,0,1); // rustler9 b34=AddStaticVehicle(476,420.6151,2484.7590,17.1981,88.5230,0,3); // rustler10 b35=AddStaticVehicle(476,420.3187,2502.4006,17.2049,89.0440,0,3); // rustler11 b36=AddStaticVehicle(476,420.7604,2517.9685,17.1978,88.7012,0,3); // rustler12 b37=AddStaticVehicle(425,365.3882,2537.1570,17.3890,178.3511,0,0); // hunter b38=AddStaticVehicle(520,1553.8940,1455.2955,11.5539,93.4769,0,0); // hydra1 b39=AddStaticVehicle(520,1553.8940,1443.2955,11.5539,93.4769,0,0); // hydra2 b40=AddStaticVehicle(520,1553.8940,1431.2955,11.5539,93.4769,0,0); // hydra3 b41=AddStaticVehicle(520,1553.8940,1419.2955,11.5539,93.4769,0,0); // hydra4 b42=AddStaticVehicle(520,1553.8940,1407.2955,11.5539,93.4769,0,0); // hydra5 b43=AddStaticVehicle(520,1553.8940,1395.2955,11.5539,93.4769,0,0); // hydra6 b44=AddStaticVehicle(476,1543.8940,1455.2955,11.5539,93.4769,0,4); // rustler1 b45=AddStaticVehicle(476,1543.8940,1443.2955,11.5539,93.4769,0,3); // rustler2 b46=AddStaticVehicle(476,1543.8940,1431.2955,11.5539,93.4769,0,6); // rustler3 b47=AddStaticVehicle(476,1543.8940,1419.2955,11.5539,93.4769,0,1); // rustler4 b48=AddStaticVehicle(476,1543.8940,1407.2955,11.5539,93.4769,1,3); // rustler5 b49=AddStaticVehicle(476,1543.8940,1395.2955,11.5539,93.4769,3,0); // rustler6 b50=AddStaticVehicle(520,1281.7423,1361.6439,11.5441,269.0107,0,0); // hydra7 b51=AddStaticVehicle(520,1281.6346,1324.2739,11.5279,270.2573,0,0); // hydra8 b52=AddStaticVehicle(520,1322.1439,1325.0677,11.5484,271.7925,0,0); // hydra9 b53=AddStaticVehicle(520,1334.1439,1325.0677,11.5484,271.7925,0,0); // hydra10 b54=AddStaticVehicle(520,1346.1439,1325.0677,11.5484,271.7925,0,0); // hydra11 b55=AddStaticVehicle(520,1358.1439,1325.0677,11.5484,271.7925,0,0); // hydra12 b56=AddStaticVehicle(425,2689.6348,2783.8997,59.5963,101.9302,37,1); // hunter1 b57=AddStaticVehicle(425,2650.0210,2818.7178,36.8844,179.2354,37,1); // hunter2 b58=AddStaticVehicle(425,2670.0325,2816.5818,36.9217,177.0872,37,1); // hunter3 b59=AddStaticVehicle(425,2690.1501,2816.4849,36.8972,177.0108,37,1); // hunter4 b60=AddStaticVehicle(425,2635.4705,2765.3850,26.3924,177.4629,37,1); // hunter5 b61=AddStaticVehicle(425,2616.8821,2758.4126,24.3912,90.2431,37,1); // hunter6 b62=AddStaticVehicle(432,2541.8101,2791.2732,10.8384,179.2964,0,3); // rhino1 b63=AddStaticVehicle(432,2546.8101,2791.2732,10.8384,179.2964,0,3); // rhino2 b64=AddStaticVehicle(432,2551.8101,2791.2732,10.8384,179.2964,0,3); // rhino3 b65=AddStaticVehicle(432,2556.8101,2791.2732,10.8384,179.2964,0,3); // rhino4 b66=AddStaticVehicle(432,2561.8101,2791.2732,10.8384,179.2964,0,3); // rhino5 b67=AddStaticVehicle(432,2566.8101,2791.2732,10.8384,179.2964,0,3); // rhino6 b68=AddStaticVehicle(432,2541.8101,2769.7527,10.8371,358.5837,0,3); // rhino7 b69=AddStaticVehicle(432,2546.8101,2769.7527,10.8371,358.5837,0,3); // rhino8 b70=AddStaticVehicle(432,2551.8101,2769.7527,10.8371,358.5837,0,3); // rhino9 b71=AddStaticVehicle(432,2556.8101,2769.7527,10.8371,358.5837,0,3); // rhino10 b72=AddStaticVehicle(432,2561.8101,2769.7527,10.8371,358.5837,0,3); // rhino11 b73=AddStaticVehicle(432,2566.8101,2769.7527,10.8371,358.5837,0,3); // rhino12 //============================================================================// c1=AddStaticVehicle(444,-689.5707,802.6511,835.4071,136.1318,6,3); // c2=AddStaticVehicle(444,-695.9046,796.0602,835.4078,136.1449,6,3); // c3=AddStaticVehicle(444,-703.6025,788.0471,835.3912,136.1818,6,3); // c4=AddStaticVehicle(444,-710.9246,780.4160,835.3895,136.2078,6,3); // c5=AddStaticVehicle(504,-691.3380,828.7825,834.8180,135.0043,0,1); // c6=AddStaticVehicle(504,-698.5326,821.5867,834.8131,135.0049,0,1); // c7=AddStaticVehicle(504,-705.2797,814.8366,834.8068,134.9136,0,1); // c8=AddStaticVehicle(504,-712.3544,807.7977,834.8391,134.9408,0,1); // c9=AddStaticVehicle(504,-718.9443,801.2258,834.8086,134.6199,0,1); // c10=AddStaticVehicle(504,-725.8113,794.4449,834.8103,134.6290,0,1); // c11=AddStaticVehicle(407,-693.6835,809.1295,835.2557,134.7148,3,3); // c12=AddStaticVehicle(437,-703.9482,799.1744,835.1488,135.8018,0,56); // c13=AddStaticVehicle(457,-712.8431,789.9028,834.6447,136.3914,6,1); // c14=AddStaticVehicle(411,-669.3221,807.8176,834.7450,135.9605,0,1); // c15=AddStaticVehicle(411,-676.0371,800.9902,834.7450,135.6227,0,1); // c16=AddStaticVehicle(411,-683.1287,793.7425,834.7449,135.6254,0,1); // c17=AddStaticVehicle(411,-689.7867,786.9430,834.7455,135.9364,0,1); // c18=AddStaticVehicle(411,-696.5167,779.9897,834.7441,135.9407,0,1); // c19=AddStaticVehicle(541,-702.1965,773.7459,834.6432,135.7802,0,6); // c20=AddStaticVehicle(541,-709.2735,766.4734,834.6464,135.7813,0,6); // d1=AddStaticVehicle(522,392.1692,2545.4463,17.5217,79.3635,0,6); // d2=AddStaticVehicle(522,390.7528,2554.5342,17.5332,116.3529,0,2); // d3=AddStaticVehicle(522,382.2634,2560.1577,17.5287,156.9555,2,0); // d4=AddStaticVehicle(522,372.0559,2560.2542,17.5359,202.6777,1,1); // d5=AddStaticVehicle(522,364.0718,2554.3933,17.5279,241.7525,1,3); // d6=AddStaticVehicle(522,362.0587,2545.6501,17.5279,283.3701,6,3); // d7=AddStaticVehicle(522,-1728.0220,-316.7668,14.0612,270.4347,0,0); // nrg stunt2 d8=AddStaticVehicle(522,-1728.0220,-312.7668,14.0612,270.4347,0,3); // nrg stunt2 d9=AddStaticVehicle(522,-1728.0220,-308.7668,14.0612,270.4347,0,86); // nrg stunt2 d10=AddStaticVehicle(522,-1728.0220,-304.7668,14.0612,270.4347,1,2); // nrg stunt2 d11=AddStaticVehicle(522,-1728.0220,-300.7668,14.0612,270.4347,6,3); // nrg stunt2 d12=AddStaticVehicle(522,1960.7471,-2447.6392,13.1168,219.2952,6,0); // d13=AddStaticVehicle(522,1957.4077,-2447.9146,13.1106,220.3233,6,1); // d14=AddStaticVehicle(522,1957.6963,-2461.0840,13.1069,315.9277,1,6); // d15=AddStaticVehicle(522,1961.4955,-2461.8557,13.1083,312.8473,1,3); // d16=AddStaticVehicle(451,-331.8052,2533.1853,406.4903,177.9209,1,54); // jump2 veh1 d17=AddStaticVehicle(451,-325.4096,2532.3545,406.4908,178.5246,0,86); // jump2 veh2 d18=AddStaticVehicle(451,-312.6373,2531.8196,406.4914,178.2419,6,29); // jump2 veh4 d19=AddStaticVehicle(557,-304.5346,2531.7324,407.1585,177.4825,1,1); // jump2 veh3 d20=AddStaticVehicle(557,-295.1190,2531.2852,407.1587,178.0388,0,3); // jump2 veh5 d21=AddStaticVehicle(557,-285.4703,2531.5706,407.1584,177.7743,6,1); // jump2 veh6 d22=AddStaticVehicle(573,-337.1325,2506.1636,407.4419,356.7882,1,3); // jump2 veh7 d23=AddStaticVehicle(573,-327.9750,2506.0532,407.4357,358.1539,2,0); // jump2 veh8 d24=AddStaticVehicle(411,-307.3216,2503.4526,406.5107,357.4240,3,6); // jump2 veh9 d25=AddStaticVehicle(411,-316.5373,2503.5159,406.5105,357.8569,6,3); // jump2 veh10 d26=AddStaticVehicle(411,-287.9658,2502.4731,406.5106,359.0237,0,6); // jump2 veh11 d27=AddStaticVehicle(541,387.0265,2450.8853,16.1251,355.4094,0,2); // stunt3 car1 d28=AddStaticVehicle(541,389.7783,2441.5491,16.1250,354.3293,0,2); // stunt3 car2 d29=AddStaticVehicle(429,414.3774,2440.9302,16.1797,358.0711,1,3); // stunt3 car3 d30=AddStaticVehicle(429,421.2147,2450.9038,16.1859,1.2813,3,1); // stunt3 car4 d31=AddStaticVehicle(556,407.3979,2438.9094,16.8750,356.2795,0,2); // stunt3 car5 d32=AddStaticVehicle(556,400.5885,2439.7148,16.8750,356.0679,0,1); // stunt3 car6 //=============================// GroveKills=0; BallasKills=0; VagosKills=0; AztecasKills=0; BikersKills=0; MafiaKills=0; #if defined INFO_GIOCATORE for(new i=0;i<MAX-PLAYERS;i++){ PlayerInfo2[i] = TextDrawCreate(5.000000,280.000000," "); // 10.0000, 425.0000 TextDrawFont(Text:PlayerInfo2[i],3); TextDrawLetterSize(PlayerInfo2[i],0.4,1.5); TextDrawAlignment(PlayerInfo2[i],0);} #endif SendRconCommand("maxplayers 50"); tdraw = TextDrawCreate(10.000000,425.000000," "); TextDrawColor(Text:tdraw,COLOR_BIANCO); TextDrawFont(Text:tdraw,3); TextDrawLetterSize(Text:tdraw,0.6,1.3); TextDrawAlignment(Text:tdraw,0); format(string,sizeof(string),"~r~*** ~w~Gamemode scripter par ~y~[ZFM]Zuc ~r~***"); TextDrawSetString(Text:tdraw,string); GangZoneGrove = GangZoneCreate(2200.996, -1946.361, 2619.307, -1480.527); // grove GangZoneBallas = GangZoneCreate(664.6498, -1768.712, 946.0596, -1196.29); // ballas GangZoneVagos = GangZoneCreate(2619.307, -1705.548, 2912.126, -1042.328); // vagos GangZoneAztecas = GangZoneCreate(1778.881, -2068.74, 2045.079, -1614.75); // aztecas GangZoneBikers = GangZoneCreate(185.4924, -1444.997, 679.8611, -1097.596); // bikers GangZoneMafia = GangZoneCreate(991.6937, -2199.016, 1820.712, -1867.406); // mafia tempo1=SetTimer("VitaPlayerAuto",500,1); tempo3=SetTimer("PlayerInfoTimer",100,1); tempo2=SetTimer("InfoVeicolo",100,1); tempo5=SetTimer("ResettatoreArmi",2000,1); #if defined VITA_AUTO for(new i=0;i<MAX-PLAYERS;i++){ VitaVeicolo[i] = TextDrawCreate(210.000000,390.000000," "); TextDrawFont(VitaVeicolo[i],1); TextDrawLetterSize(VitaVeicolo[i],0.810000,2.020000); TextDrawColor(VitaVeicolo[i],COLOR_GIALLO);} #endif AddPlayerClass(0,2495.0396,-1681.5645,13.3388,2.9431,COMBAT_SHOTGUN,1000,SPRAY_PAINT,500,TEC9,2000); //CJ AddPlayerClass(269,2495.0396,-1681.5645,13.3388,2.9431,COMBAT_SHOTGUN,1000,SPRAY_PAINT,500,TEC9,2000); //BS AddPlayerClass(270,2495.0396,-1681.5645,13.3388,2.9431,COMBAT_SHOTGUN,1000,SPRAY_PAINT,500,TEC9,2000); //Sweet AddPlayerClass(271,2495.0396,-1681.5645,13.3388,2.9431,COMBAT_SHOTGUN,1000,SPRAY_PAINT,500,TEC9,2000); //Rider AddPlayerClass(105,2495.0396,-1681.5645,13.3388,2.9431,COMBAT_SHOTGUN,1000,SPRAY_PAINT,500,TEC9,2000); //grove1 AddPlayerClass(106,2495.0396,-1681.5645,13.3388,2.9431,COMBAT_SHOTGUN,1000,SPRAY_PAINT,500,TEC9,2000); //grove2 AddPlayerClass(107,2495.0396,-1681.5645,13.3388,2.9431,COMBAT_SHOTGUN,1000,SPRAY_PAINT,500,TEC9,2000); //grove1 AddPlayerClass(272,1124.0625,-2029.8197,74.4297,270.0,AK47,1500,COLT,500,MICRO_UZI,2000); //Mafiaboss AddPlayerClass(248,297.3302,-1336.3334,53.4416,40.1599,M4,500,TEC9,3000,BASEBALL_BAT,1); //Biker1 AddPlayerClass(100,297.3302,-1336.3334,53.4416,40.1599,M4,500,TEC9,3000,BASEBALL_BAT,1); //Biker2 AddPlayerClass(247,297.3302,-1336.3334,53.4416,40.1599,M4,500,TEC9,3000,BASEBALL_BAT,1); //Biker3 AddPlayerClass(102,830.8262,-1100.4926,24.2969,270.1599,MICRO_UZI,2000,M4,90,BASEBALL_BAT,1); //Balla1 AddPlayerClass(103,830.8262,-1101.9926,24.2969,270.1599,MICRO_UZI,2000,M4,90,BASEBALL_BAT,1); //Balla2 AddPlayerClass(104,830.8262,-1103.4926,24.2969,270.1599,MICRO_UZI,2000,M4,90,BASEBALL_BAT,1); //Balla3 AddPlayerClass(114,1764.1902,-1937.8105,13.5768,270.1599,MICRO_UZI,2000,M4,90,BASEBALL_BAT,1); //Azteca1 AddPlayerClass(115,1764.1902,-1937.8105,13.5768,270.1599,MICRO_UZI,2000,M4,90,BASEBALL_BAT,1); //Azteca2 AddPlayerClass(116,1764.1902,-1937.8105,13.5768,270.1599,MICRO_UZI,2000,M4,90,BASEBALL_BAT,1); //Azteca3 AddPlayerClass(108,2812.5349,-1182.3782,25.2754,270.0,MICRO_UZI,2000,M4,90,BASEBALL_BAT,1); //Vago1 AddPlayerClass(109,2812.5349,-1183.8782,25.2754,270.0,MICRO_UZI,2000,M4,90,BASEBALL_BAT,1); //Vago2 AddPlayerClass(110,2812.5349,-1185.3782,25.2754,270.0,MICRO_UZI,2000,M4,90,BASEBALL_BAT,1); //Vago3 SetGameModeText("* Serveur aux multi-monde *"); ShowNameTags(1);SetWeather(5);ShowPlayerMarkers(1); SetNameTagDrawDistance(9999.0); SetWorldTime(5);UsePlayerPedAnims(); /******************************************************************************* * Vicoli Mondo DRIFT * *******************************************************************************/ elegy_d1_1=CreateVehicle(562,-314.8162,1514.9783,75.0173,0.4179,0,3,TEMPO_RESPAWN_AUTO); // elegy1 elegy_d1_2=CreateVehicle(562,-320.9365,1515.6160,75.0191,359.6992,0,3,TEMPO_RESPAWN_AUTO); // elegy2 elegy_d1_3=CreateVehicle(562,-327.4287,1515.3293,75.0193,0.1457,0,3,TEMPO_RESPAWN_AUTO); // elegy3 elegy_d1_4=CreateVehicle(562,-333.4426,1515.3110,75.0195,359.7414,0,3,TEMPO_RESPAWN_AUTO); // elegy4 elegy_d1_5=CreateVehicle(562,-339.7246,1515.3938,75.0180,359.7698,0,3,TEMPO_RESPAWN_AUTO); // elegy5 elegy_d1_6=CreateVehicle(562,-346.0086,1515.6414,75.0170,0.0015,0,3,TEMPO_RESPAWN_AUTO); // elegy6 sultan_d2_1=CreateVehicle(560,-2392.2998,-607.8143,132.3048,35.0354,1,1,TEMPO_RESPAWN_AUTO); // jester1 sultan_d2_2=CreateVehicle(560,-2397.2959,-611.2857,132.3048,34.7290,6,1,TEMPO_RESPAWN_AUTO); // jester2 flash_d2_1=CreateVehicle(565,-2392.8872,-599.4079,132.2728,125.0736,1,56,TEMPO_RESPAWN_AUTO); // flash1 flash_d2_2=CreateVehicle(565,-2401.7419,-587.5086,132.2711,126.0859,1,56,TEMPO_RESPAWN_AUTO); // flash2 elegy_d3_1=CreateVehicle(562,1246.2479,-2041.1329,59.4817,268.5010,0,3,TEMPO_RESPAWN_AUTO); // elegy d3 1 elegy_d3_2=CreateVehicle(562,1246.1248,-2030.7529,59.4826,270.2646,1,3,TEMPO_RESPAWN_AUTO); // elegy d3 2 elegy_d3_3=CreateVehicle(562,1246.5392,-2022.6560,59.4679,270.1208,3,3,TEMPO_RESPAWN_AUTO); // elegy d3 3 elegy_d3_4=CreateVehicle(562,1246.2544,-2015.7302,59.4750,270.2187,6,3,TEMPO_RESPAWN_AUTO); // elegy d3 4 elegy_d4_1=CreateVehicle(562,827.4843,-1779.2490,13.9424,195.1938,1,0,TEMPO_RESPAWN_AUTO); // elegy_d4_1 elegy_d4_2=CreateVehicle(562,819.0854,-1784.9222,13.9391,227.5191,3,0,TEMPO_RESPAWN_AUTO); // elegy_d4_2 elegy_d4_3=CreateVehicle(562,836.7298,-1781.4438,13.9386,153.5798,6,0,TEMPO_RESPAWN_AUTO); // elegy_d4_3 elegy_d4_4=CreateVehicle(562,842.5681,-1789.9498,13.9429,115.2471,57,0,TEMPO_RESPAWN_AUTO); // elegy_d4_4 elegy_d5_1=CreateVehicle(562,2277.8008,-2348.4231,13.2069,250.8365,3,0,TEMPO_RESPAWN_AUTO); // elegy_d5_1 elegy_d5_2=CreateVehicle(562,2282.3196,-2353.4907,13.2069,251.6033,3,0,TEMPO_RESPAWN_AUTO); // elegy_d5_2 elegy_d5_3=CreateVehicle(562,2286.9304,-2358.6106,13.2065,245.4723,3,0,TEMPO_RESPAWN_AUTO); // elegy_d5_3 elegy_d5_4=CreateVehicle(562,2287.6284,-2338.4109,13.2051,202.2799,3,0,TEMPO_RESPAWN_AUTO); // elegy_d5_4 elegy_d5_5=CreateVehicle(562,2293.0859,-2343.4016,13.2064,202.8372,3,0,TEMPO_RESPAWN_AUTO); // elegy_d5_5 elegy_d5_6=CreateVehicle(562,2298.3066,-2348.5408,13.2065,200.2808,3,0,TEMPO_RESPAWN_AUTO); // elegy_d5_6 elegy_d6_1=CreateVehicle(562,-1240.2104,-767.3622,63.9136,266.8747,0,6,TEMPO_RESPAWN_AUTO); // elegy1 elegy_d6_2=CreateVehicle(562,-1244.1521,-769.7728,64.4897,256.7923,1,56,TEMPO_RESPAWN_AUTO); // elegy2 elegy_d6_3=CreateVehicle(562,-1247.6555,-771.6098,64.9932,255.2628,6,3,TEMPO_RESPAWN_AUTO); // elegy3 AddStaticVehicle(411,1256.6528,-2010.6254,59.2430,179.5589,6,6); // infernus d3 1 AddStaticVehicle(411,1264.0372,-2010.6283,59.0320,179.9428,6,6); // infernus d3 2 AddStaticVehicle(411,1269.3359,-2010.9248,58.8805,180.1656,6,6); // infernus d3 3 AddStaticVehicle(411,1276.2338,-2010.1608,58.6841,180.5237,6,6); // infernus d3 4 AddStaticVehicle(562,-2414.3054,-587.3031,132.3066,214.8672,6,0); // AddStaticVehicle(562,-2409.2886,-583.3287,132.3082,214.8828,6,0); // AddStaticVehicle(559,-2494.2844,-602.1353,132.2189,180.3211,56,1); // AddStaticVehicle(559,-2505.6721,-601.6947,132.2188,179.3393,56,1); // AddStaticVehicle(559,-2513.1831,-601.7897,132.2187,179.9089,56,1); // AddStaticVehicle(559,-2531.9375,-601.5029,132.2187,179.9992,56,1); // AddStaticVehicle(559,-1886.8342,-817.5203,31.6798,90.1411,56,1); // AddStaticVehicle(559,-1871.8888,-836.9843,31.6798,90.0904,56,1); // AddStaticVehicle(536,-1872.7919,-850.0784,31.7612,90.3130,0,56); // AddStaticVehicle(536,-1887.2317,-890.5042,31.7618,89.7817,0,56); // AddStaticVehicle(439,-1871.7156,-853.2545,31.9194,89.9999,3,6); // AddStaticVehicle(439,-1887.2554,-801.9365,31.9191,89.6419,3,6); // AddStaticVehicle(439,-1897.2765,-936.5278,31.9188,270.7605,3,6); // AddStaticVehicle(535,-1871.2218,-871.1074,31.7874,90.1324,0,6); // AddStaticVehicle(535,-1871.4902,-936.5441,31.7877,89.8404,0,6); // AddStaticVehicle(402,-1897.1497,-884.1402,31.8550,269.8574,6,1); // AddStaticVehicle(402,-1897.3802,-843.5033,31.8549,271.2345,6,1); // AddStaticVehicle(402,-1871.9803,-781.1037,31.8551,269.5940,6,1); // AddStaticVehicle(429,-1897.0713,-933.6788,31.7031,268.9417,56,0); // AddStaticVehicle(429,-1886.9283,-963.7364,31.7031,88.7616,56,0); // AddStaticVehicle(429,-1897.3604,-874.3018,31.7031,269.1915,56,0); // AddStaticVehicle(477,-1897.9359,-787.0715,31.7783,269.7861,0,1); // AddStaticVehicle(477,-1897.5277,-753.9415,31.7760,89.6822,0,1); // AddStaticVehicle(451,-303.2271,1582.2648,75.1401,313.0697,0,1); // AddStaticVehicle(541,1254.1815,-2063.5388,59.4114,358.6187,1,0); // AddStaticVehicle(541,1261.2512,-2063.4253,59.2258,357.4277,1,0); // AddStaticVehicle(541,1239.3068,-1814.1129,13.0527,270.1432,1,0); // AddStaticVehicle(541,1238.8124,-1822.1113,13.0414,271.1531,1,0); // AddStaticVehicle(555,1207.6666,-1828.1239,13.0927,182.3405,56,56); // AddStaticVehicle(555,1197.6501,-1836.2804,13.0851,269.6407,56,56); // AddStaticVehicle(492,2508.1802,-1665.7750,13.2004,191.8329,1,0); // AddStaticVehicle(492,2468.5320,-1653.2859,13.1795,91.3547,1,0); // AddStaticVehicle(600,2473.7942,-1692.6951,13.2336,358.6398,1,0); // //****************************************************************************// AddVehicleComponent(elegy_d1_1,1010);AddVehicleComponent(elegy_d1_1,1087);AddVehicleComponent(elegy_d1_1,1039);AddVehicleComponent(elegy_d1_1,1146);AddVehicleComponent(elegy_d1_1,1148);AddVehicleComponent(elegy_d1_1,1172);AddVehicleComponent(elegy_d1_1,1098);ChangeVehiclePaintjob(elegy_d1_1,1);ChangeVehicleColor(elegy_d1_1,1,0); AddVehicleComponent(elegy_d1_2,1010);AddVehicleComponent(elegy_d1_2,1087);AddVehicleComponent(elegy_d1_2,1039);AddVehicleComponent(elegy_d1_2,1146);AddVehicleComponent(elegy_d1_2,1148);AddVehicleComponent(elegy_d1_2,1172);AddVehicleComponent(elegy_d1_2,1098);ChangeVehiclePaintjob(elegy_d1_2,1);ChangeVehicleColor(elegy_d1_2,3,0); AddVehicleComponent(elegy_d1_3,1010);AddVehicleComponent(elegy_d1_3,1087);AddVehicleComponent(elegy_d1_3,1039);AddVehicleComponent(elegy_d1_3,1146);AddVehicleComponent(elegy_d1_3,1148);AddVehicleComponent(elegy_d1_3,1172);AddVehicleComponent(elegy_d1_3,1098);ChangeVehiclePaintjob(elegy_d1_3,1);ChangeVehicleColor(elegy_d1_3,6,0); AddVehicleComponent(elegy_d1_4,1010);AddVehicleComponent(elegy_d1_4,1087);AddVehicleComponent(elegy_d1_4,1039);AddVehicleComponent(elegy_d1_4,1146);AddVehicleComponent(elegy_d1_4,1148);AddVehicleComponent(elegy_d1_4,1172);AddVehicleComponent(elegy_d1_4,1098);ChangeVehiclePaintjob(elegy_d1_4,1);ChangeVehicleColor(elegy_d1_4,1,1); AddVehicleComponent(elegy_d1_5,1010);AddVehicleComponent(elegy_d1_5,1087);AddVehicleComponent(elegy_d1_5,1039);AddVehicleComponent(elegy_d1_5,1146);AddVehicleComponent(elegy_d1_5,1148);AddVehicleComponent(elegy_d1_5,1172);AddVehicleComponent(elegy_d1_5,1098);ChangeVehiclePaintjob(elegy_d1_5,1);ChangeVehicleColor(elegy_d1_5,6,0); AddVehicleComponent(elegy_d1_6,1010);AddVehicleComponent(elegy_d1_6,1087);AddVehicleComponent(elegy_d1_6,1039);AddVehicleComponent(elegy_d1_6,1146);AddVehicleComponent(elegy_d1_6,1148);AddVehicleComponent(elegy_d1_6,1172);AddVehicleComponent(elegy_d1_6,1098);ChangeVehiclePaintjob(elegy_d1_6,1);ChangeVehicleColor(elegy_d1_6,3,0); AddVehicleComponent(flash_d2_1,1010);AddVehicleComponent(flash_d2_1,1087);AddVehicleComponent(flash_d2_1,1048);AddVehicleComponent(flash_d2_1,1052);AddVehicleComponent(flash_d2_1,1049);AddVehicleComponent(flash_d2_1,1151);AddVehicleComponent(flash_d2_1,1152);AddVehicleComponent(flash_d2_1,1083);ChangeVehiclePaintjob(flash_d2_1,3); AddVehicleComponent(flash_d2_2,1010);AddVehicleComponent(flash_d2_2,1087);AddVehicleComponent(flash_d2_2,1048);AddVehicleComponent(flash_d2_2,1052);AddVehicleComponent(flash_d2_2,1049);AddVehicleComponent(flash_d2_2,1151);AddVehicleComponent(flash_d2_2,1152);AddVehicleComponent(flash_d2_2,1083);ChangeVehiclePaintjob(flash_d2_2,3); AddVehicleComponent(sultan_d2_1,1010);AddVehicleComponent(sultan_d2_1,1087);AddVehicleComponent(sultan_d2_1,1030);AddVehicleComponent(sultan_d2_1,1139);AddVehicleComponent(sultan_d2_1,1140);AddVehicleComponent(sultan_d2_1,1170);AddVehicleComponent(sultan_d2_1,1085);ChangeVehiclePaintjob(sultan_d2_1,1); AddVehicleComponent(sultan_d2_2,1010);AddVehicleComponent(sultan_d2_2,1087);AddVehicleComponent(sultan_d2_2,1030);AddVehicleComponent(sultan_d2_2,1139);AddVehicleComponent(sultan_d2_2,1140);AddVehicleComponent(sultan_d2_2,1170);AddVehicleComponent(sultan_d2_2,1085);ChangeVehiclePaintjob(sultan_d2_2,2); AddVehicleComponent(elegy_d3_1,1010);AddVehicleComponent(elegy_d3_1,1087);AddVehicleComponent(elegy_d3_1,1039);AddVehicleComponent(elegy_d3_1,1146);AddVehicleComponent(elegy_d3_1,1148);AddVehicleComponent(elegy_d3_1,1172);AddVehicleComponent(elegy_d3_1,1098);ChangeVehiclePaintjob(elegy_d3_1,2);ChangeVehicleColor(elegy_d3_1,1,0); AddVehicleComponent(elegy_d3_2,1010);AddVehicleComponent(elegy_d3_2,1087);AddVehicleComponent(elegy_d3_2,1039);AddVehicleComponent(elegy_d3_2,1146);AddVehicleComponent(elegy_d3_2,1148);AddVehicleComponent(elegy_d3_2,1172);AddVehicleComponent(elegy_d3_2,1098);ChangeVehiclePaintjob(elegy_d3_2,1);ChangeVehicleColor(elegy_d3_2,1,0); AddVehicleComponent(elegy_d3_3,1010);AddVehicleComponent(elegy_d3_3,1087);AddVehicleComponent(elegy_d3_3,1039);AddVehicleComponent(elegy_d3_3,1146);AddVehicleComponent(elegy_d3_3,1148);AddVehicleComponent(elegy_d3_3,1172);AddVehicleComponent(elegy_d3_3,1098);ChangeVehiclePaintjob(elegy_d3_3,2);ChangeVehicleColor(elegy_d3_3,1,0); AddVehicleComponent(elegy_d3_4,1010);AddVehicleComponent(elegy_d3_4,1087);AddVehicleComponent(elegy_d3_4,1039);AddVehicleComponent(elegy_d3_4,1146);AddVehicleComponent(elegy_d3_4,1148);AddVehicleComponent(elegy_d3_4,1172);AddVehicleComponent(elegy_d3_4,1098);ChangeVehiclePaintjob(elegy_d3_4,1);ChangeVehicleColor(elegy_d3_4,1,0); AddVehicleComponent(elegy_d4_1,1010);AddVehicleComponent(elegy_d4_1,1087);AddVehicleComponent(elegy_d4_1,1039);AddVehicleComponent(elegy_d4_1,1146);AddVehicleComponent(elegy_d4_1,1148);AddVehicleComponent(elegy_d4_1,1172);AddVehicleComponent(elegy_d4_1,1098);ChangeVehiclePaintjob(elegy_d4_1,3);ChangeVehicleColor(elegy_d4_1,1,1); AddVehicleComponent(elegy_d4_2,1010);AddVehicleComponent(elegy_d4_2,1087);AddVehicleComponent(elegy_d4_2,1039);AddVehicleComponent(elegy_d4_2,1146);AddVehicleComponent(elegy_d4_2,1148);AddVehicleComponent(elegy_d4_2,1172);AddVehicleComponent(elegy_d4_2,1098);ChangeVehiclePaintjob(elegy_d4_2,2);ChangeVehicleColor(elegy_d4_2,3,1); AddVehicleComponent(elegy_d4_3,1010);AddVehicleComponent(elegy_d4_3,1087);AddVehicleComponent(elegy_d4_3,1039);AddVehicleComponent(elegy_d4_3,1146);AddVehicleComponent(elegy_d4_3,1148);AddVehicleComponent(elegy_d4_3,1172);AddVehicleComponent(elegy_d4_3,1098);ChangeVehiclePaintjob(elegy_d4_3,2);ChangeVehicleColor(elegy_d4_3,6,0); AddVehicleComponent(elegy_d4_4,1010);AddVehicleComponent(elegy_d4_4,1087);AddVehicleComponent(elegy_d4_4,1039);AddVehicleComponent(elegy_d4_4,1146);AddVehicleComponent(elegy_d4_4,1148);AddVehicleComponent(elegy_d4_4,1172);AddVehicleComponent(elegy_d4_4,1098);ChangeVehiclePaintjob(elegy_d4_4,1);ChangeVehicleColor(elegy_d4_4,58,0); AddVehicleComponent(elegy_d5_1,1010);AddVehicleComponent(elegy_d5_1,1087);AddVehicleComponent(elegy_d5_1,1039);AddVehicleComponent(elegy_d5_1,1146);AddVehicleComponent(elegy_d5_1,1148);AddVehicleComponent(elegy_d5_1,1172);AddVehicleComponent(elegy_d5_1,1098);ChangeVehiclePaintjob(elegy_d5_1,1);ChangeVehicleColor(elegy_d5_1,1,0); AddVehicleComponent(elegy_d5_2,1010);AddVehicleComponent(elegy_d5_2,1087);AddVehicleComponent(elegy_d5_2,1039);AddVehicleComponent(elegy_d5_2,1146);AddVehicleComponent(elegy_d5_2,1148);AddVehicleComponent(elegy_d5_2,1172);AddVehicleComponent(elegy_d5_2,1098);ChangeVehiclePaintjob(elegy_d5_2,1);ChangeVehicleColor(elegy_d5_2,3,0); AddVehicleComponent(elegy_d5_3,1010);AddVehicleComponent(elegy_d5_3,1087);AddVehicleComponent(elegy_d5_3,1039);AddVehicleComponent(elegy_d5_3,1146);AddVehicleComponent(elegy_d5_3,1148);AddVehicleComponent(elegy_d5_3,1172);AddVehicleComponent(elegy_d5_3,1098);ChangeVehiclePaintjob(elegy_d5_3,1);ChangeVehicleColor(elegy_d5_3,6,0); AddVehicleComponent(elegy_d5_4,1010);AddVehicleComponent(elegy_d5_4,1087);AddVehicleComponent(elegy_d5_4,1039);AddVehicleComponent(elegy_d5_4,1146);AddVehicleComponent(elegy_d5_4,1148);AddVehicleComponent(elegy_d5_4,1172);AddVehicleComponent(elegy_d5_4,1098);ChangeVehiclePaintjob(elegy_d5_4,1);ChangeVehicleColor(elegy_d5_4,1,1); AddVehicleComponent(elegy_d5_5,1010);AddVehicleComponent(elegy_d5_5,1087);AddVehicleComponent(elegy_d5_5,1039);AddVehicleComponent(elegy_d5_5,1146);AddVehicleComponent(elegy_d5_5,1148);AddVehicleComponent(elegy_d5_5,1172);AddVehicleComponent(elegy_d5_5,1098);ChangeVehiclePaintjob(elegy_d5_5,1);ChangeVehicleColor(elegy_d5_5,6,0); AddVehicleComponent(elegy_d5_6,1010);AddVehicleComponent(elegy_d5_6,1087);AddVehicleComponent(elegy_d5_6,1039);AddVehicleComponent(elegy_d5_6,1146);AddVehicleComponent(elegy_d5_6,1148);AddVehicleComponent(elegy_d5_6,1172);AddVehicleComponent(elegy_d5_6,1098);ChangeVehiclePaintjob(elegy_d5_6,1);ChangeVehicleColor(elegy_d5_6,3,0); AddVehicleComponent(elegy_d6_1,1010);AddVehicleComponent(elegy_d6_1,1087);AddVehicleComponent(elegy_d6_1,1039);AddVehicleComponent(elegy_d6_1,1146);AddVehicleComponent(elegy_d6_1,1148);AddVehicleComponent(elegy_d6_1,1172);AddVehicleComponent(elegy_d6_1,1098);ChangeVehiclePaintjob(elegy_d6_1,1);ChangeVehicleColor(elegy_d6_1,1,0); AddVehicleComponent(elegy_d6_2,1010);AddVehicleComponent(elegy_d6_2,1087);AddVehicleComponent(elegy_d6_2,1039);AddVehicleComponent(elegy_d6_2,1146);AddVehicleComponent(elegy_d6_2,1148);AddVehicleComponent(elegy_d6_2,1172);AddVehicleComponent(elegy_d6_2,1098);ChangeVehiclePaintjob(elegy_d6_2,1);ChangeVehicleColor(elegy_d6_2,3,0); AddVehicleComponent(elegy_d6_3,1010);AddVehicleComponent(elegy_d6_3,1087);AddVehicleComponent(elegy_d6_3,1039);AddVehicleComponent(elegy_d6_3,1146);AddVehicleComponent(elegy_d6_3,1148);AddVehicleComponent(elegy_d6_3,1172);AddVehicleComponent(elegy_d6_3,1098);ChangeVehiclePaintjob(elegy_d6_3,1);ChangeVehicleColor(elegy_d6_3,6,0); /******************************************************************************* * Vicoli Mondo DRIFT * *******************************************************************************/ a1=AddStaticVehicle(567,2505.0098,-1694.3311,13.4259,2.2904,86,3); // s1 (groove) a2=AddStaticVehicle(567,2489.9810,-1682.5962,13.2052,89.8062,86,3); // s2 (groove) a3=AddStaticVehicle(447,2507.8977,-1717.8137,18.5927,267.3832,0,3); // sea sparrow grove a4=AddStaticVehicle(522,2488.0176,-1654.7709,12.9135,145.9781,86,86); // nrg1 (groove) a5=AddStaticVehicle(522,2486.0364,-1654.8816,12.9016,152.4622,86,86); // nrg2 (groove) a6=AddStaticVehicle(522,2483.8230,-1654.9849,12.8813,148.7798,86,86); // nrg3 (groove) a7=AddStaticVehicle(522,2804.7180,-1177.7246,25.0504,225.6694,86,6); // nrg4 (vagos) a8=AddStaticVehicle(522,2804.6353,-1180.1395,25.0486,226.0119,6,0); // nrg5 (vagos) a9=AddStaticVehicle(522,2804.6860,-1188.9224,25.0139,305.0964,6,0); // nrg6 (vagos) a10=AddStaticVehicle(522,2804.7644,-1186.4161,25.0246,309.5659,6,0); // nrg7 (vagos) a11=AddStaticVehicle(474,2813.8716,-1179.3989,25.0398,270.4331,6,1); // ermes1 (vagos) a12=AddStaticVehicle(474,2813.9661,-1187.4839,25.0155,269.9157,6,0); // ermes2 (vagos) a13=AddStaticVehicle(474,2828.8984,-1200.2936,24.4678,3.2516,6,3); // ermes3 (vagos) a14=AddStaticVehicle(522,294.3363,-1338.4100,53.0096,35.5795,0,6); // nrg bikers1 a15=AddStaticVehicle(522,291.7659,-1340.2625,53.0107,34.4144,0,3); // nrg bikers2 a16=AddStaticVehicle(522,300.0016,-1334.3844,53.0001,34.1297,0,1); // nrg bikers3 a17=AddStaticVehicle(522,302.5065,-1332.2899,53.0109,38.2475,0,85); // nrg bikers4 a18=AddStaticVehicle(463,301.7482,-1319.9590,52.9860,216.6941,0,3); // a19=AddStaticVehicle(463,306.0108,-1318.7830,52.9855,170.4996,0,3); // a20=AddStaticVehicle(463,308.8305,-1321.3469,52.9827,119.1228,0,3); // a21=AddStaticVehicle(463,308.8880,-1326.1689,52.9898,72.2351,0,3); // a22=AddStaticVehicle(463,299.5509,-1323.6591,52.9855,255.9284,0,3); // a23=AddStaticVehicle(411,288.3019,-1341.5844,53.1650,37.2573,0,3); // a24=AddStaticVehicle(522,824.4659,-1108.0983,25.3671,272.0557,85,3); // nrg balla1 a25=AddStaticVehicle(522,824.6586,-1098.0831,25.3576,270.2567,85,3); // nrg balla2 a26=AddStaticVehicle(522,828.3910,-1093.3501,23.8459,268.0260,85,3); // nrg balla3 a27=AddStaticVehicle(522,828.9756,-1112.3806,23.7063,271.6220,85,3); // nrg balla4 a28=AddStaticVehicle(566,838.8126,-1109.5154,23.9858,270.5916,85,3); // tahoma1 a29=AddStaticVehicle(566,851.5013,-1109.3185,23.9968,271.4331,85,3); // tahoma2 a30=AddStaticVehicle(566,865.2902,-1108.8911,24.0083,272.5043,85,3); // tahoma3 a31=AddStaticVehicle(466,859.0558,-1090.9810,24.0386,268.7275,85,3); // glendale balla a32=AddStaticVehicle(466,1778.4890,-1908.6465,13.1301,270.5482,7,1); // glendale aztecas 1 a33=AddStaticVehicle(466,1778.2532,-1915.9114,13.1293,270.3923,7,1); // glendale aztecas 2 a34=AddStaticVehicle(466,1777.8219,-1927.3149,13.1296,270.1895,7,1); // glendale aztecas 3 a35=AddStaticVehicle(466,1803.6307,-1934.0259,13.1328,90.9486,7,1); // glendale aztecas 4 a36=AddStaticVehicle(466,1803.4069,-1905.0221,13.1415,90.7493,7,1); // glendale aztecas 5 a37=AddStaticVehicle(489,1132.5251,-2024.0563,69.1443,179.2111,0,3); // rancher mafia a38=AddStaticVehicle(429,1132.9072,-2057.2170,68.6875,359.1181,0,3); // banshee mafia a39=AddStaticVehicle(487,1116.2285,-2020.9191,74.6063,359.7095,0,3); // maveric mafia /******************************* * veicoli nei rispettivi MONDI * *******************************/ // veicoli MONDO DM // SetVehicleVirtualWorld(a1,1);SetVehicleVirtualWorld(a2,1);SetVehicleVirtualWorld(a3,1); SetVehicleVirtualWorld(a4,1);SetVehicleVirtualWorld(a5,1);SetVehicleVirtualWorld(a6,1); SetVehicleVirtualWorld(a7,1);SetVehicleVirtualWorld(a8,1);SetVehicleVirtualWorld(a9,1); SetVehicleVirtualWorld(a10,1);SetVehicleVirtualWorld(a11,1);SetVehicleVirtualWorld(a12,1); SetVehicleVirtualWorld(a13,1);SetVehicleVirtualWorld(a14,1);SetVehicleVirtualWorld(a15,1); SetVehicleVirtualWorld(a16,1);SetVehicleVirtualWorld(a17,1);SetVehicleVirtualWorld(a18,1);SetVehicleVirtualWorld(a19,1); SetVehicleVirtualWorld(a20,1);SetVehicleVirtualWorld(a21,1);SetVehicleVirtualWorld(a22,1); SetVehicleVirtualWorld(a23,1);SetVehicleVirtualWorld(a24,1);SetVehicleVirtualWorld(a25,1); SetVehicleVirtualWorld(a26,1);SetVehicleVirtualWorld(a27,1);SetVehicleVirtualWorld(a28,1);SetVehicleVirtualWorld(a29,1); SetVehicleVirtualWorld(a30,1);SetVehicleVirtualWorld(a31,1);SetVehicleVirtualWorld(a32,1); SetVehicleVirtualWorld(a33,1);SetVehicleVirtualWorld(a34,1);SetVehicleVirtualWorld(a35,1); SetVehicleVirtualWorld(a36,1);SetVehicleVirtualWorld(a37,1);SetVehicleVirtualWorld(a38,1);SetVehicleVirtualWorld(a39,1); // veicoli MONDO WAR // SetVehicleVirtualWorld(b1,3);SetVehicleVirtualWorld(b2,3);SetVehicleVirtualWorld(b3,3); SetVehicleVirtualWorld(b4,3);SetVehicleVirtualWorld(b5,3);SetVehicleVirtualWorld(b6,3); SetVehicleVirtualWorld(b7,3);SetVehicleVirtualWorld(b8,3);SetVehicleVirtualWorld(b9,3); SetVehicleVirtualWorld(b10,3);SetVehicleVirtualWorld(b11,3);SetVehicleVirtualWorld(b12,3); SetVehicleVirtualWorld(b13,3);SetVehicleVirtualWorld(b14,3);SetVehicleVirtualWorld(b15,3); SetVehicleVirtualWorld(b16,3);SetVehicleVirtualWorld(b17,3);SetVehicleVirtualWorld(b18,3); SetVehicleVirtualWorld(b19,3);SetVehicleVirtualWorld(b20,3);SetVehicleVirtualWorld(b21,3); SetVehicleVirtualWorld(b22,3);SetVehicleVirtualWorld(b23,3);SetVehicleVirtualWorld(b24,3); SetVehicleVirtualWorld(b25,3);SetVehicleVirtualWorld(b26,3);SetVehicleVirtualWorld(b27,3); SetVehicleVirtualWorld(b28,3);SetVehicleVirtualWorld(b29,3);SetVehicleVirtualWorld(b30,3); SetVehicleVirtualWorld(b31,3);SetVehicleVirtualWorld(b32,3);SetVehicleVirtualWorld(b33,3); SetVehicleVirtualWorld(b34,3);SetVehicleVirtualWorld(b35,3);SetVehicleVirtualWorld(b36,3); SetVehicleVirtualWorld(b37,3);SetVehicleVirtualWorld(b38,3);SetVehicleVirtualWorld(b39,3); SetVehicleVirtualWorld(b40,3);SetVehicleVirtualWorld(b41,3);SetVehicleVirtualWorld(b42,3); SetVehicleVirtualWorld(b43,3);SetVehicleVirtualWorld(b44,3);SetVehicleVirtualWorld(b45,3); SetVehicleVirtualWorld(b46,3);SetVehicleVirtualWorld(b47,3);SetVehicleVirtualWorld(b48,3); SetVehicleVirtualWorld(b49,3);SetVehicleVirtualWorld(b50,3);SetVehicleVirtualWorld(b51,3); SetVehicleVirtualWorld(b52,3);SetVehicleVirtualWorld(b53,3);SetVehicleVirtualWorld(b54,3); SetVehicleVirtualWorld(b55,3);SetVehicleVirtualWorld(b56,3);SetVehicleVirtualWorld(b57,3); SetVehicleVirtualWorld(b58,3);SetVehicleVirtualWorld(b59,3);SetVehicleVirtualWorld(b60,3); SetVehicleVirtualWorld(b61,3);SetVehicleVirtualWorld(b62,3);SetVehicleVirtualWorld(b63,3); SetVehicleVirtualWorld(b64,3);SetVehicleVirtualWorld(b65,3);SetVehicleVirtualWorld(b66,3); SetVehicleVirtualWorld(b67,3);SetVehicleVirtualWorld(b68,3);SetVehicleVirtualWorld(b69,3); SetVehicleVirtualWorld(b70,3);SetVehicleVirtualWorld(b71,3);SetVehicleVirtualWorld(b72,3); SetVehicleVirtualWorld(b73,3); // veicoli mondo stunt // SetVehicleVirtualWorld(c1,2);SetVehicleVirtualWorld(c2,2);SetVehicleVirtualWorld(c3,2); SetVehicleVirtualWorld(c4,2);SetVehicleVirtualWorld(c5,2);SetVehicleVirtualWorld(c6,2); SetVehicleVirtualWorld(c7,2);SetVehicleVirtualWorld(c8,2);SetVehicleVirtualWorld(c9,2); SetVehicleVirtualWorld(c10,2);SetVehicleVirtualWorld(c11,2);SetVehicleVirtualWorld(c12,2); SetVehicleVirtualWorld(c13,2);SetVehicleVirtualWorld(c14,2);SetVehicleVirtualWorld(c15,2); SetVehicleVirtualWorld(c16,2);SetVehicleVirtualWorld(c17,2);SetVehicleVirtualWorld(c18,2); SetVehicleVirtualWorld(c19,2);SetVehicleVirtualWorld(c20,2); SetVehicleVirtualWorld(d1,2);SetVehicleVirtualWorld(d2,2);SetVehicleVirtualWorld(d3,2); SetVehicleVirtualWorld(d4,2);SetVehicleVirtualWorld(d5,2);SetVehicleVirtualWorld(d6,2); SetVehicleVirtualWorld(d7,2);SetVehicleVirtualWorld(d8,2);SetVehicleVirtualWorld(d9,2); SetVehicleVirtualWorld(d10,2);SetVehicleVirtualWorld(d11,2);SetVehicleVirtualWorld(d12,2); SetVehicleVirtualWorld(d13,2);SetVehicleVirtualWorld(d14,2);SetVehicleVirtualWorld(d15,2); SetVehicleVirtualWorld(d16,2);SetVehicleVirtualWorld(d17,2);SetVehicleVirtualWorld(d18,2); SetVehicleVirtualWorld(d19,2);SetVehicleVirtualWorld(d20,2);SetVehicleVirtualWorld(d21,2); SetVehicleVirtualWorld(d22,2);SetVehicleVirtualWorld(d23,2);SetVehicleVirtualWorld(d24,2); SetVehicleVirtualWorld(d25,2);SetVehicleVirtualWorld(d26,2);SetVehicleVirtualWorld(d27,2); SetVehicleVirtualWorld(d28,2);SetVehicleVirtualWorld(d29,2);SetVehicleVirtualWorld(d30,2); SetVehicleVirtualWorld(d31,2);SetVehicleVirtualWorld(d32,2); return 1;} /******************************************************************************* * <=[OnVehicleSpawn]=> * *******************************************************************************/ public OnVehicleSpawn(vehicleid){ if(vehicleid==elegy_d1_1){AddVehicleComponent(elegy_d1_1,1010);AddVehicleComponent(elegy_d1_1,1087);AddVehicleComponent(elegy_d1_1,1039);AddVehicleComponent(elegy_d1_1,1146);AddVehicleComponent(elegy_d1_1,1148);AddVehicleComponent(elegy_d1_1,1172);AddVehicleComponent(elegy_d1_1,1098);ChangeVehiclePaintjob(elegy_d1_1,1);ChangeVehicleColor(elegy_d1_1,1,0);} if(vehicleid==elegy_d1_2){AddVehicleComponent(elegy_d1_2,1010);AddVehicleComponent(elegy_d1_2,1087);AddVehicleComponent(elegy_d1_2,1039);AddVehicleComponent(elegy_d1_2,1146);AddVehicleComponent(elegy_d1_2,1148);AddVehicleComponent(elegy_d1_2,1172);AddVehicleComponent(elegy_d1_2,1098);ChangeVehiclePaintjob(elegy_d1_2,1);ChangeVehicleColor(elegy_d1_2,3,0);} if(vehicleid==elegy_d1_3){AddVehicleComponent(elegy_d1_3,1010);AddVehicleComponent(elegy_d1_3,1087);AddVehicleComponent(elegy_d1_3,1039);AddVehicleComponent(elegy_d1_3,1146);AddVehicleComponent(elegy_d1_3,1148);AddVehicleComponent(elegy_d1_3,1172);AddVehicleComponent(elegy_d1_3,1098);ChangeVehiclePaintjob(elegy_d1_3,1);ChangeVehicleColor(elegy_d1_3,6,0);} if(vehicleid==elegy_d1_4){AddVehicleComponent(elegy_d1_4,1010);AddVehicleComponent(elegy_d1_4,1087);AddVehicleComponent(elegy_d1_4,1039);AddVehicleComponent(elegy_d1_4,1146);AddVehicleComponent(elegy_d1_4,1148);AddVehicleComponent(elegy_d1_4,1172);AddVehicleComponent(elegy_d1_4,1098);ChangeVehiclePaintjob(elegy_d1_4,1);ChangeVehicleColor(elegy_d1_4,1,1);} if(vehicleid==elegy_d1_5){AddVehicleComponent(elegy_d1_5,1010);AddVehicleComponent(elegy_d1_5,1087);AddVehicleComponent(elegy_d1_5,1039);AddVehicleComponent(elegy_d1_5,1146);AddVehicleComponent(elegy_d1_5,1148);AddVehicleComponent(elegy_d1_5,1172);AddVehicleComponent(elegy_d1_5,1098);ChangeVehiclePaintjob(elegy_d1_5,1);ChangeVehicleColor(elegy_d1_5,6,0);} if(vehicleid==elegy_d1_6){AddVehicleComponent(elegy_d1_6,1010);AddVehicleComponent(elegy_d1_6,1087);AddVehicleComponent(elegy_d1_6,1039);AddVehicleComponent(elegy_d1_6,1146);AddVehicleComponent(elegy_d1_6,1148);AddVehicleComponent(elegy_d1_6,1172);AddVehicleComponent(elegy_d1_6,1098);ChangeVehiclePaintjob(elegy_d1_6,1);ChangeVehicleColor(elegy_d1_6,3,0);} if(vehicleid==sultan_d2_1){AddVehicleComponent(sultan_d2_1,1010);AddVehicleComponent(sultan_d2_1,1087);AddVehicleComponent(sultan_d2_1,1030);AddVehicleComponent(sultan_d2_1,1139);AddVehicleComponent(sultan_d2_1,1140);AddVehicleComponent(sultan_d2_1,1170);AddVehicleComponent(sultan_d2_1,1085);ChangeVehiclePaintjob(sultan_d2_1,1);} if(vehicleid==sultan_d2_2){AddVehicleComponent(sultan_d2_2,1010);AddVehicleComponent(sultan_d2_2,1087);AddVehicleComponent(sultan_d2_2,1030);AddVehicleComponent(sultan_d2_2,1139);AddVehicleComponent(sultan_d2_2,1140);AddVehicleComponent(sultan_d2_2,1170);AddVehicleComponent(sultan_d2_2,1085);ChangeVehiclePaintjob(sultan_d2_2,2);} if(vehicleid==flash_d2_1){AddVehicleComponent(flash_d2_1,1010);AddVehicleComponent(flash_d2_1,1087);AddVehicleComponent(flash_d2_1,1048);AddVehicleComponent(flash_d2_1,1052);AddVehicleComponent(flash_d2_1,1049);AddVehicleComponent(flash_d2_1,1151);AddVehicleComponent(flash_d2_1,1152);AddVehicleComponent(flash_d2_1,1083);ChangeVehiclePaintjob(flash_d2_1,3);} if(vehicleid==flash_d2_2){AddVehicleComponent(flash_d2_2,1010);AddVehicleComponent(flash_d2_2,1087);AddVehicleComponent(flash_d2_2,1048);AddVehicleComponent(flash_d2_2,1052);AddVehicleComponent(flash_d2_2,1049);AddVehicleComponent(flash_d2_2,1151);AddVehicleComponent(flash_d2_2,1152);AddVehicleComponent(flash_d2_2,1083);ChangeVehiclePaintjob(flash_d2_2,1);} if(vehicleid==elegy_d3_1){AddVehicleComponent(elegy_d3_1,1010);AddVehicleComponent(elegy_d3_1,1087);AddVehicleComponent(elegy_d3_1,1039);AddVehicleComponent(elegy_d3_1,1146);AddVehicleComponent(elegy_d3_1,1148);AddVehicleComponent(elegy_d3_1,1172);AddVehicleComponent(elegy_d3_1,1098);ChangeVehiclePaintjob(elegy_d3_1,2);ChangeVehicleColor(elegy_d3_1,1,0);} if(vehicleid==elegy_d3_2){AddVehicleComponent(elegy_d3_2,1010);AddVehicleComponent(elegy_d3_2,1087);AddVehicleComponent(elegy_d3_2,1039);AddVehicleComponent(elegy_d3_2,1146);AddVehicleComponent(elegy_d3_2,1148);AddVehicleComponent(elegy_d3_2,1172);AddVehicleComponent(elegy_d3_2,1098);ChangeVehiclePaintjob(elegy_d3_2,1);ChangeVehicleColor(elegy_d3_2,1,0);} if(vehicleid==elegy_d3_3){AddVehicleComponent(elegy_d3_3,1010);AddVehicleComponent(elegy_d3_3,1087);AddVehicleComponent(elegy_d3_3,1039);AddVehicleComponent(elegy_d3_3,1146);AddVehicleComponent(elegy_d3_3,1148);AddVehicleComponent(elegy_d3_3,1172);AddVehicleComponent(elegy_d3_3,1098);ChangeVehiclePaintjob(elegy_d3_3,2);ChangeVehicleColor(elegy_d3_3,1,0);} if(vehicleid==elegy_d3_4){AddVehicleComponent(elegy_d3_4,1010);AddVehicleComponent(elegy_d3_4,1087);AddVehicleComponent(elegy_d3_4,1039);AddVehicleComponent(elegy_d3_4,1146);AddVehicleComponent(elegy_d3_4,1148);AddVehicleComponent(elegy_d3_4,1172);AddVehicleComponent(elegy_d3_4,1098);ChangeVehiclePaintjob(elegy_d3_4,1);ChangeVehicleColor(elegy_d3_4,1,0);} if(vehicleid==elegy_d4_1){AddVehicleComponent(elegy_d4_1,1010);AddVehicleComponent(elegy_d4_1,1087);AddVehicleComponent(elegy_d4_1,1039);AddVehicleComponent(elegy_d4_1,1146);AddVehicleComponent(elegy_d4_1,1148);AddVehicleComponent(elegy_d4_1,1172);AddVehicleComponent(elegy_d4_1,1098);ChangeVehiclePaintjob(elegy_d4_1,3);ChangeVehicleColor(elegy_d4_1,1,1);} if(vehicleid==elegy_d4_2){AddVehicleComponent(elegy_d4_2,1010);AddVehicleComponent(elegy_d4_2,1087);AddVehicleComponent(elegy_d4_2,1039);AddVehicleComponent(elegy_d4_2,1146);AddVehicleComponent(elegy_d4_2,1148);AddVehicleComponent(elegy_d4_2,1172);AddVehicleComponent(elegy_d4_2,1098);ChangeVehiclePaintjob(elegy_d4_2,2);ChangeVehicleColor(elegy_d4_2,3,1);} if(vehicleid==elegy_d4_3){AddVehicleComponent(elegy_d4_3,1010);AddVehicleComponent(elegy_d4_3,1087);AddVehicleComponent(elegy_d4_3,1039);AddVehicleComponent(elegy_d4_3,1146);AddVehicleComponent(elegy_d4_3,1148);AddVehicleComponent(elegy_d4_3,1172);AddVehicleComponent(elegy_d4_3,1098);ChangeVehiclePaintjob(elegy_d4_3,2);ChangeVehicleColor(elegy_d4_3,6,0);} if(vehicleid==elegy_d4_4){AddVehicleComponent(elegy_d4_4,1010);AddVehicleComponent(elegy_d4_4,1087);AddVehicleComponent(elegy_d4_4,1039);AddVehicleComponent(elegy_d4_4,1146);AddVehicleComponent(elegy_d4_4,1148);AddVehicleComponent(elegy_d4_4,1172);AddVehicleComponent(elegy_d4_4,1098);ChangeVehiclePaintjob(elegy_d4_4,1);ChangeVehicleColor(elegy_d4_4,58,0);} if(vehicleid==elegy_d5_1){AddVehicleComponent(elegy_d5_1,1010);AddVehicleComponent(elegy_d5_1,1087);AddVehicleComponent(elegy_d5_1,1039);AddVehicleComponent(elegy_d5_1,1146);AddVehicleComponent(elegy_d5_1,1148);AddVehicleComponent(elegy_d5_1,1172);AddVehicleComponent(elegy_d5_1,1098);ChangeVehiclePaintjob(elegy_d5_1,1);ChangeVehicleColor(elegy_d5_1,1,0);} if(vehicleid==elegy_d5_2){AddVehicleComponent(elegy_d5_2,1010);AddVehicleComponent(elegy_d5_2,1087);AddVehicleComponent(elegy_d5_2,1039);AddVehicleComponent(elegy_d5_2,1146);AddVehicleComponent(elegy_d5_2,1148);AddVehicleComponent(elegy_d5_2,1172);AddVehicleComponent(elegy_d5_2,1098);ChangeVehiclePaintjob(elegy_d5_2,1);ChangeVehicleColor(elegy_d5_2,3,0);} if(vehicleid==elegy_d5_3){AddVehicleComponent(elegy_d5_3,1010);AddVehicleComponent(elegy_d5_3,1087);AddVehicleComponent(elegy_d5_3,1039);AddVehicleComponent(elegy_d5_3,1146);AddVehicleComponent(elegy_d5_3,1148);AddVehicleComponent(elegy_d5_3,1172);AddVehicleComponent(elegy_d5_3,1098);ChangeVehiclePaintjob(elegy_d5_3,1);ChangeVehicleColor(elegy_d5_3,6,0);} if(vehicleid==elegy_d5_4){AddVehicleComponent(elegy_d5_4,1010);AddVehicleComponent(elegy_d5_4,1087);AddVehicleComponent(elegy_d5_4,1039);AddVehicleComponent(elegy_d5_4,1146);AddVehicleComponent(elegy_d5_4,1148);AddVehicleComponent(elegy_d5_4,1172);AddVehicleComponent(elegy_d5_4,1098);ChangeVehiclePaintjob(elegy_d5_4,1);ChangeVehicleColor(elegy_d5_4,1,1);} if(vehicleid==elegy_d5_5){AddVehicleComponent(elegy_d5_5,1010);AddVehicleComponent(elegy_d5_5,1087);AddVehicleComponent(elegy_d5_5,1039);AddVehicleComponent(elegy_d5_5,1146);AddVehicleComponent(elegy_d5_5,1148);AddVehicleComponent(elegy_d5_5,1172);AddVehicleComponent(elegy_d5_5,1098);ChangeVehiclePaintjob(elegy_d5_5,1);ChangeVehicleColor(elegy_d5_5,6,0);} if(vehicleid==elegy_d5_6){AddVehicleComponent(elegy_d5_6,1010);AddVehicleComponent(elegy_d5_6,1087);AddVehicleComponent(elegy_d5_6,1039);AddVehicleComponent(elegy_d5_6,1146);AddVehicleComponent(elegy_d5_6,1148);AddVehicleComponent(elegy_d5_6,1172);AddVehicleComponent(elegy_d5_6,1098);ChangeVehiclePaintjob(elegy_d5_6,1);ChangeVehicleColor(elegy_d5_6,3,0);} return 1;} /******************************************************************************* * <=[SPEGNIMENTO GM]=> * *******************************************************************************/ public OnGameModeExit(){ for(new i=0;i<MAX-PLAYERS;i++)TextDrawHideForAll(PlayerInfo2[i]),TextDrawHideForAll(Text:tdraw); KillTimer(tempo1); KillTimer(tempo2); KillTimer(tempo3); KillTimer(tempo4); KillTimer(tempo5); KillTimer(atimer); KillTimer(atempo1); KillTimer(atempo2); KillTimer(atempo3); KillTimer(atempo4); KillTimer(atempo5); return 1;} /******************************************************************************* * <=[SELEZIONE SKIN]=> * *******************************************************************************/ public OnPlayerRequestClass(playerid, classid){ if(SceltaMondiFatta[playerid]==0) ShowWorldsMenu(playerid);else if(SceltaMondiFatta[playerid]==1){ if(GetPlayerVirtualWorld(playerid)==0){ SetPlayerFacingAngle(playerid,0); SetPlayerPos(playerid, 846.9625,-1817.1378,32.1953); SetPlayerCameraPos(playerid, 849.1249,-1813.5853,34.2561); SetPlayerCameraLookAt(playerid, 846.9625,-1817.1378,32.1953);} if(GetPlayerVirtualWorld(playerid)==1){ new skin; skin = GetPlayerSkin(playerid); if(skin==105 || skin==106 || skin==107 || skin==0){ // grove1 SetPlayerColor(playerid,COLOR_VERDE); SetPlayerPos(playerid,2495.2842,-1674.0824,13.3359); SetPlayerFacingAngle(playerid, 0.0); SetPlayerCameraPos(playerid,2495.1775,-1669.7306,13.3359); SetPlayerCameraLookAt(playerid,2495.2842,-1674.0824,13.3359);} if(skin==269 || skin==270 || skin==271){ // grove2 SetPlayerColor(playerid,COLOR_VERDE); SetPlayerPos(playerid,2495.2842,-1674.0824,13.3359); SetPlayerFacingAngle(playerid, 0.0); SetPlayerCameraPos(playerid,2495.1775,-1669.7306,13.3359); SetPlayerCameraLookAt(playerid,2495.2842,-1674.0824,13.3359);} if(skin==108 || skin==109 || skin==110){ // vagos SetPlayerColor(playerid,COLOR_GIALLO); SetPlayerPos(playerid,2816.6111,-1184.9723,25.2456); SetPlayerFacingAngle(playerid, 270.0); SetPlayerCameraPos(playerid, 2824.4146,-1184.8827,25.2077); SetPlayerCameraLookAt(playerid, 2816.6111,-1184.9723,25.2456);} if(skin==102 || skin==103 || skin==104){ // ballas SetPlayerColor(playerid,COLOR_VIOLA); SetPlayerPos(playerid,830.8262,-1103.1368,24.2969); SetPlayerFacingAngle(playerid, 270.0); SetPlayerCameraPos(playerid, 836.2038,-1103.1194,24.3040); SetPlayerCameraLookAt(playerid, 830.8262,-1103.1368,24.2969);} if(skin==114 || skin==115 || skin==116){ // azteca1-2-3 SetPlayerColor(playerid,COLOR_BLUCHIARO); SetPlayerPos(playerid,1764.1902,-1937.8105,13.5768); SetPlayerFacingAngle(playerid, 270.0); SetPlayerCameraPos(playerid, 1767.1902,-1937.8105,13.5768); SetPlayerCameraLookAt(playerid, 1764.1902,-1937.8105,13.5768);} if(skin==100 || skin==248 || skin==247){ // bikers SetPlayerColor(playerid,COLOR_GRIGIOSCURO); SetPlayerPos(playerid,297.3302,-1335.9779,53.4416); SetPlayerFacingAngle(playerid, 40.0); SetPlayerCameraPos(playerid,293.5636,-1330.8734,53.4417); SetPlayerCameraLookAt(playerid,297.3302,-1335.9779,53.4416);} if(skin==272){ // mafia SetPlayerColor(playerid,COLOR_MARRONE); SetPlayerPos(playerid,1127.2079,-2036.7831,69.8837); SetPlayerFacingAngle(playerid, 270.0); SetPlayerCameraPos(playerid,1132.9829,-2036.5929,69.0078); SetPlayerCameraLookAt(playerid,1127.2079,-2036.7831,69.8837);}} if(GetPlayerVirtualWorld(playerid)==2){ // stunt SetPlayerPos(playerid, 1628.3965,-2286.6055,94.1270); SetPlayerFacingAngle(playerid,177.0); SetPlayerCameraPos(playerid, 1627.5911,-2291.2395,96.3888); SetPlayerCameraLookAt(playerid, 1628.3965,-2286.6055,94.1270);} if(GetPlayerVirtualWorld(playerid)==3){ //war SetPlayerPos(playerid, 471.9146,2018.1603,65.2692); SetPlayerFacingAngle(playerid,275.0); SetPlayerCameraPos(playerid, 474.2815,2019.2319,66.2692); SetPlayerCameraLookAt(playerid, 471.9146,2018.1603,65.2692);}} return 1;} /******************************************************************************* * <=[OnPlayerConnect]=> * *******************************************************************************/ public OnPlayerConnect(playerid){ GetPlayerName(playerid,NomeGiocatore1,sizeof(NomeGiocatore1)); format(string,sizeof(string),"[ARRIVER]: %s (ID:%d) as rejoint le serveur.",NomeGiocatore1, playerid); SendClientMessageToAll(COLOR_GIALLO,string);print(string); SendClientMessage(playerid,COLOR_VERDE,"*** Bienvenue sur le serveur ***"); SendClientMessage(playerid,COLOR_BIANCO,"==>INFO: Choisie le monde que tu veux pour jouer !"); SendClientMessage(playerid,COLOR_VERDECHIARO,"==>INFO: Tape /cmd pour connaitre les commandes!!!"); SendClientMessage(playerid,COLOR_ROSSO,"==>INFO: Type /info pour avoir les infos du monde!!!"); InfoGiocatore[playerid][PlayerSpawnato]=0; SceltaMondiFatta[playerid]=0; ShowWorldsMenu(playerid); return 1;} public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){ if(dialogid == MenuDialog){ if(response){ GetPlayerName(playerid, NomeGiocatore1, sizeof(NomeGiocatore1)); if(listitem == 0){ format(string, sizeof(string), "<> %s a rejoint le monde DM", NomeGiocatore1); SendClientMessageToAll(COLOR_GIALLO,string);print(string);SetPlayerVirtualWorld(playerid,1); SetPlayerWeather(playerid,TEMPO_DM);SetPlayerTime(playerid,ORARIO_DM,30); SetPlayerColor(playerid,COLOR_ROSSOCHIARO);SceltaMondiFatta[playerid]=1; if(InfoGiocatore[playerid][PlayerSpawnato]==1) SetPlayerHealth(playerid,0);} if(listitem == 1){ format(string, sizeof(string), "<> %s a rejoint le monde DRIFT", NomeGiocatore1); SendClientMessageToAll(COLOR_GIALLO,string);print(string);SetPlayerVirtualWorld(playerid,0); SetPlayerWeather(playerid,TEMPO_DRIFT);SetPlayerTime(playerid,ORARIO_DRIFT,00); SetPlayerColor(playerid,COLOR_BIANCO);SceltaMondiFatta[playerid]=1; if(InfoGiocatore[playerid][PlayerSpawnato]==1)SetPlayerHealth(playerid,0);} if(listitem == 2){ format(string, sizeof(string), "<> %s a rejoint le monde STUNT", NomeGiocatore1); SendClientMessageToAll(COLOR_GIALLO,string);print(string);SetPlayerVirtualWorld(playerid,2); SetPlayerWeather(playerid,TEMPO_STUNT);SetPlayerTime(playerid,ORARIO_STUNT,00); SetPlayerColor(playerid,COLOR_GIALLO);SceltaMondiFatta[playerid]=1; if(InfoGiocatore[playerid][PlayerSpawnato]==1)SetPlayerHealth(playerid,0);} if(listitem == 3){ format(string, sizeof(string), "<> %s a rejoint le monde WAR", NomeGiocatore1); SendClientMessageToAll(COLOR_GIALLO,string);print(string);SetPlayerVirtualWorld(playerid,3); SetPlayerWeather(playerid,TEMPO_WAR);SetPlayerTime(playerid,ORARIO_WAR,00); SetPlayerColor(playerid,COLOR_VIOLA);SceltaMondiFatta[playerid]=1; if(InfoGiocatore[playerid][PlayerSpawnato]==1)SetPlayerHealth(playerid,0);}} return 1;} if(dialogid == MenuDialog+1){ if(response){ if(listitem == 0){ GivePlayerWeapon(playerid,MICRO_UZI,500),GivePlayerWeapon(playerid,AK47,500),GivePlayerWeapon(playerid,SPRAY_PAINT,5000);} if(listitem == 1){ GivePlayerWeapon(playerid,TEC9,500),GivePlayerWeapon(playerid,M4,500),GivePlayerWeapon(playerid,FIRE_EXTINGUER,5000);} if(listitem == 2){ GivePlayerWeapon(playerid,SNIPER_RIFLE,90),GivePlayerWeapon(playerid,KNIFE,1),GivePlayerWeapon(playerid,SILENCED_COLT,500);} if(listitem == 3){ GivePlayerWeapon(playerid,DEAGLE,200),GivePlayerWeapon(playerid,MP5,2000),GivePlayerWeapon(playerid,SAWNOFF_SHOTGUN,500);} if(listitem == 4){ GivePlayerWeapon(playerid,46,1);}} return 1;} return 0;} /******************************************************************************* * <=[OnPlayerText]=> * *******************************************************************************/ public OnPlayerText(playerid, text[]){ new string3[128]; format(string3, sizeof(string3), "(ID:%d) %s",playerid,text); SendPlayerMessageToAll(playerid,string3); return 0;} /******************************************************************************* * <=[OnPlayerDisconnect]=> * *******************************************************************************/ public OnPlayerDisconnect(playerid, reason){ GetPlayerName(playerid, NomeGiocatore1, sizeof(NomeGiocatore1)); switch(reason){ case 0: format(string, sizeof(string), "[CRASH]: %s est parti du serveur a cause d'un crash.", NomeGiocatore1); case 1: format(string, sizeof(string), "[QUITTE]: %s est parti du serveur.", NomeGiocatore1); case 2: format(string, sizeof(string), "[KICK/BAN]: %s a йtй kickй ou banni du serveur.", NomeGiocatore1);} SendClientMessageToAll(COLOR_GIALLO, string);print(string); InfoGiocatore[playerid][PlayerSpawnato]=0; return 1;} /******************************************************************************* * <=[OnPlayerSpawn]=> * *******************************************************************************/ public OnPlayerSpawn(playerid){ AntiDeAMX(); InfoGiocatore[playerid][PlayerSpawnato]=1; if(GetPlayerVirtualWorld(playerid)==1){ new skin=GetPlayerSkin(playerid); if(skin==105 || skin==106 || skin==107 || skin==0){ InfoGiocatore[playerid][SquadraGiocatore]=1;} if(skin==269 || skin==270 || skin==271){ InfoGiocatore[playerid][SquadraGiocatore]=1;} if(skin==108 || skin==109 || skin==110){ InfoGiocatore[playerid][SquadraGiocatore]=2;} if(skin==102 || skin==103 || skin==104){ InfoGiocatore[playerid][SquadraGiocatore]=3;} if(skin==114 || skin==115 || skin==116){ InfoGiocatore[playerid][SquadraGiocatore]=4;} if(skin==100 || skin==248 || skin==247){ InfoGiocatore[playerid][SquadraGiocatore]=5;} if(skin==272){ InfoGiocatore[playerid][SquadraGiocatore]=6;} GangZoneShowForPlayer(playerid, GangZoneGrove, 0x008C0096); GangZoneShowForPlayer(playerid, GangZoneVagos, 0xFFFF0096); GangZoneShowForPlayer(playerid, GangZoneMafia, 0x5E2F0096); GangZoneShowForPlayer(playerid, GangZoneBikers, 0x4F4F4F96); GangZoneShowForPlayer(playerid, GangZoneBallas, 0x80008096); GangZoneShowForPlayer(playerid, GangZoneAztecas, 0x00FFFF96); TextDrawHideForPlayer(playerid,Text:tdraw); #if defined INFO_GIOCATORE TextDrawShowForPlayer(playerid,PlayerInfo2[playerid]); #endif GangZoneHideForPlayer(playerid, sniperzone); GangZoneHideForPlayer(playerid, minigunzone); GangZoneHideForPlayer(playerid, minigunzone2);} if(GetPlayerVirtualWorld(playerid)==0){ GangZoneHideForPlayer(playerid, GangZoneGrove); GangZoneHideForPlayer(playerid, GangZoneVagos); GangZoneHideForPlayer(playerid, GangZoneMafia); GangZoneHideForPlayer(playerid, GangZoneBikers); GangZoneHideForPlayer(playerid, GangZoneBallas); GangZoneHideForPlayer(playerid, GangZoneAztecas); TextDrawShowForPlayer(playerid,Text:tdraw); GangZoneHideForPlayer(playerid, sniperzone); GangZoneHideForPlayer(playerid, minigunzone); GangZoneHideForPlayer(playerid, minigunzone2); #if defined INFO_GIOCATORE TextDrawHideForPlayer(playerid,PlayerInfo2[playerid]); #endif new rand = random(sizeof(PuntiDiSpawn)); SetPlayerPos(playerid,PuntiDiSpawn[rand][0],PuntiDiSpawn[rand][1],PuntiDiSpawn[rand][2]); SetPlayerFacingAngle(playerid,PuntiDiSpawn[rand][3]);SetCameraBehindPlayer(playerid); GameTextForPlayer(playerid,"~w~Monde DRIFT!!!",3000,3);} if(GetPlayerVirtualWorld(playerid)==2){ // stunt TempBlockPlayer(playerid); new rand = random(sizeof(StuntSpawns)); SetPlayerPos(playerid,StuntSpawns[rand][0],StuntSpawns[rand][1],StuntSpawns[rand][2]); SetPlayerFacingAngle(playerid,270.0); GangZoneHideForPlayer(playerid, GangZoneGrove); GangZoneHideForPlayer(playerid, GangZoneVagos); GangZoneHideForPlayer(playerid, GangZoneMafia); GangZoneHideForPlayer(playerid, GangZoneBikers); GangZoneHideForPlayer(playerid, GangZoneBallas); GangZoneHideForPlayer(playerid, GangZoneAztecas); TextDrawShowForPlayer(playerid,Text:tdraw); ResetPlayerWeapons(playerid); #if defined INFO_GIOCATORE TextDrawHideForPlayer(playerid,PlayerInfo2[playerid]); #endif GameTextForPlayer(playerid,"~w~~r~Monde STUNT!!!",3000,3);} if(GetPlayerVirtualWorld(playerid)==3){ GangZoneHideForPlayer(playerid, GangZoneGrove); GangZoneHideForPlayer(playerid, GangZoneVagos); GangZoneHideForPlayer(playerid, GangZoneMafia); GangZoneHideForPlayer(playerid, GangZoneBikers); GangZoneHideForPlayer(playerid, GangZoneBallas); GangZoneHideForPlayer(playerid, GangZoneAztecas); TextDrawShowForPlayer(playerid,Text:tdraw); #if defined INFO_GIOCATORE TextDrawHideForPlayer(playerid,PlayerInfo2[playerid]); #endif new rand = random(sizeof(PlayerSpawns)); SetPlayerPos(playerid,PlayerSpawns[rand][0],PlayerSpawns[rand][1],PlayerSpawns[rand][2]); SetPlayerFacingAngle(playerid,PlayerSpawns[rand][3]);SetCameraBehindPlayer(playerid); GameTextForPlayer(playerid,"~w~Monde~r~WAR!!!",3000,3); GangZoneShowForPlayer(playerid, sniperzone, COLOR_GIALLO); GangZoneShowForPlayer(playerid, minigunzone, COLOR_ROSSO); GangZoneShowForPlayer(playerid, minigunzone2, COLOR_ROSSO);} return 1;} /******************************************************************************* * <=[OnPlayerDeath]=> * *******************************************************************************/ public OnPlayerDeath(playerid, killerid, reason){ SendDeathMessage(killerid, playerid, reason); if(GetPlayerVirtualWorld(killerid)==0){ InfoGiocatore[playerid][Morti]++; GetPlayerName(killerid,NomeGiocatore1,sizeof(NomeGiocatore1)); SetPlayerScore(killerid,GetPlayerScore(killerid)+1); InfoGiocatore[killerid][BuoneUccisioni]++;GivePlayerMoney(killerid,500); if(reason==38){ if(!IsPlayerInAnyVehicle(killerid)){ SendClientMessage(killerid,COLOR_ROSSO,"KICK pour avoir utiliser le weapons-hack!"); GetPlayerName(killerid,NomeGiocatore1,sizeof(NomeGiocatore1)); format(string,sizeof(string),"\"%s\" a йtй kickй [raison: Weapons Hack]",NomeGiocatore1); SendClientMessageToAll(COLOR_GRIGIO,string); Kick(killerid);}}} if(GetPlayerVirtualWorld(killerid)==1){ InfoGiocatore[playerid][Morti]++; GivePlayerMoney(killerid,750); if(InfoGiocatore[killerid][SquadraGiocatore]==TEAM_GROVE){ GroveKills++;} if(InfoGiocatore[killerid][SquadraGiocatore]==TEAM_BALLAS){ BallasKills++;} if(InfoGiocatore[killerid][SquadraGiocatore]==TEAM_VAGOS){ VagosKills++;} if(InfoGiocatore[killerid][SquadraGiocatore]==TEAM_AZTECAS){ AztecasKills++;} if(InfoGiocatore[killerid][SquadraGiocatore]==TEAM_BIKERS){ BikersKills++;} if(InfoGiocatore[killerid][SquadraGiocatore]==TEAM_MAFIA){ MafiaKills++;} //--------------------------------------------------------------------------// if(InfoGiocatore[killerid][SquadraGiocatore]==InfoGiocatore[playerid][SquadraGiocatore]){ InfoGiocatore[killerid][CattiveUccisioni]++; InfoGiocatore[killerid][Punteggio]--; SetPlayerScore(killerid,GetPlayerScore(killerid)-1); SetPlayerHealth(killerid,1); GivePlayerMoney(killerid,-200); GameTextForPlayer(killerid,"~r~Ne tue pas tes amis!!!",3000,3); SendClientMessage(killerid,COLOR_ROSSOCHIARO,"Tu a perdu 200$ car tu as tuй un amis!!!");}else if(InfoGiocatore[killerid][SquadraGiocatore]!=InfoGiocatore[playerid][SquadraGiocatore]){ SetPlayerScore(killerid,GetPlayerScore(killerid)+1); InfoGiocatore[killerid][BuoneUccisioni]++; InfoGiocatore[killerid][Punteggio]--; GivePlayerMoney(killerid,200); SendClientMessage(killerid,COLOR_VERDE,"Tu as gagnй 200$ car tu as tuй un ennemis!!!");}} if(GetPlayerVirtualWorld(killerid)==3){ new name2[24]; GetPlayerName(killerid,name,sizeof(name)); GetPlayerName(playerid,name2,sizeof(name2)); PlayerInfo[playerid][Deaths]++; SetPlayerScore(killerid,GetPlayerScore(killerid)+1);PlayerInfo[killerid][GoodKillings]++; GivePlayerMoney(killerid,400); SetPlayerScore(killerid,GetPlayerScore(killerid)+1); if(reason==255){ if(IsPlayerInAnyVehicle(playerid)){ GetPlayerPos(playerid,x3,y3,z3); CreateExplosion(x3,y3,z3,7,12);}}} return 1;} /******************************************************************************* * <=[OnPlayerCommandText]=> * *******************************************************************************/ public OnPlayerCommandText(playerid, cmdtext[]){ // comandi normali // if(GetPlayerVirtualWorld(playerid)==1 || GetPlayerVirtualWorld(playerid)==3){ dcmd(weapons, 7, cmdtext);} dcmd(kill, 4, cmdtext); dcmd(info, 4, cmdtext); dcmd(cmd, 3, cmdtext); dcmd(changeworld, 11, cmdtext); if(GetPlayerVirtualWorld(playerid)==0){ dcmd(nitro, 5, cmdtext); dcmd(drift, 5, cmdtext); dcmd(drift1, 6, cmdtext); dcmd(drift2, 6, cmdtext); dcmd(drift3, 6, cmdtext); dcmd(drift4, 6, cmdtext); dcmd(drift5, 6, cmdtext); dcmd(drift6, 6, cmdtext); dcmd(tuning1, 7, cmdtext); dcmd(tuning2, 7, cmdtext); dcmd(tuning3, 7, cmdtext);} if(GetPlayerVirtualWorld(playerid)==2){ dcmd(nitro, 5, cmdtext); dcmd(stunt1, 6, cmdtext); dcmd(stunt2, 6, cmdtext); dcmd(stunt3, 6, cmdtext); dcmd(jump1, 5, cmdtext); dcmd(jump2, 5, cmdtext); dcmd(tuning1, 7, cmdtext); dcmd(tuning2, 7, cmdtext); dcmd(tuning3, 7, cmdtext);} if(GetPlayerVirtualWorld(playerid)==3){ dcmd(lvairport, 9, cmdtext); dcmd(area51, 6, cmdtext); dcmd(sniper, 6, cmdtext); dcmd(area69, 6, cmdtext);} return 1;} /******************************************************************************* * <=[TELETRASPORTI e COMANDI DCMD]=> * *******************************************************************************/ dcmd_cmd(playerid,params[]){ #pragma unused params if(GetPlayerVirtualWorld(playerid)==0){ SendClientMessage(playerid,COLOR_ROSSO,"<><><><><> Commandes Monde DRIFT: <><><><><>"); SendClientMessage(playerid,COLOR_BIANCO,"- COMMANDES: /info /admins /changeworld /nitro /kill /admins /votekick"); SendClientMessage(playerid,COLOR_BIANCO,"- COMPTE: /register /login /logout /stats /changepass"); SendClientMessage(playerid,COLOR_BIANCO,"- TETEPORTS: /tuning[1-3] /drift[1-6]"); SendClientMessage(playerid,COLOR_ROSSO,"<><><><><><><><><><><><><><><><><><><><><>");} if(GetPlayerVirtualWorld(playerid)==1){ SendClientMessage(playerid,COLOR_ROSSO,"<><><><><><> Commandes Monde DM: <><><><><><>"); SendClientMessage(playerid,COLOR_BIANCO,"- COMMANDES: /info /admins /changeworld /nitro /kill /admins /votekick"); SendClientMessage(playerid,COLOR_BIANCO,"- COMPTE: /register /login /logout /stats /changepass"); SendClientMessage(playerid,COLOR_BIANCO,"- TETEPORTS: No Teleports."); SendClientMessage(playerid,COLOR_ROSSO,"<><><><><><><><><><><><><><><><><><><><><><");} if(GetPlayerVirtualWorld(playerid)==2){ SendClientMessage(playerid,COLOR_ROSSO,"<><><><><> Commandes Monde STUNT: <><><><><>"); SendClientMessage(playerid,COLOR_BIANCO,"- COMMANDES: /info /admins /changeworld /nitro /kill /admins /votekick"); SendClientMessage(playerid,COLOR_BIANCO,"- COMPTE: /register /login /logout /stats /changepass"); SendClientMessage(playerid,COLOR_BIANCO,"- TELEPORTS: /tuning[1-3] /stunt[1-3] /jump[1-2]"); SendClientMessage(playerid,COLOR_ROSSO,"<><><><><><><><><><><><><><><><><><><><><>");} if(GetPlayerVirtualWorld(playerid)==3){ SendClientMessage(playerid,COLOR_ROSSO,"<><><><><>< Commandes Monde WAR: ><><><><><>"); SendClientMessage(playerid,COLOR_BIANCO,"- COMMANDES: /info changeworld /weapons /kill /admins /votekick"); SendClientMessage(playerid,COLOR_BIANCO,"- COMPTE: /register /login /logout /stats /changepass"); SendClientMessage(playerid,COLOR_BIANCO,"- TELEPORTS: /area51 /sniper /area69 /lvairport"); SendClientMessage(playerid,COLOR_ROSSO,"<><><><><><><><><><><><><><><><><><><><><>");} return 1;} dcmd_info(playerid,params[]){ #pragma unused params if(GetPlayerVirtualWorld(playerid)==0){ SendClientMessage(playerid,COLOR_ROSSO,"<><><><><> Infos Monde DRIFT : <><><><><>"); SendClientMessage(playerid,COLOR_BIANCO,"- Il y a 6 teleports (commandes = /drift[1-6])"); SendClientMessage(playerid,COLOR_BIANCO,"- Il y a 3 teleport de tuning (commandes = /tuning[1-3])"); SendClientMessage(playerid,COLOR_BIANCO,"- Presse Tire secondaire pour mettre la nitro"); SendClientMessage(playerid,COLOR_BIANCO,"- Dans les zones de drift , il y a plein de voitures"); SendClientMessage(playerid,COLOR_BIANCO,"- Fais /veh [car name/id] pour spawn un veh de ton choix ==> exemple: '/spawncar elegy'"); SendClientMessage(playerid,COLOR_ROSSO,"<><><><><><><><><><><><><><><><><><><><><><><>");} if(GetPlayerVirtualWorld(playerid)==1){ SendClientMessage(playerid,COLOR_ROSSO,"<><><><><><> Infos Monde DM: <><><><><><>"); SendClientMessage(playerid,COLOR_BIANCO,"- Il n'y a pas de teleport , c'est le monde DM !!!"); SendClientMessage(playerid,COLOR_BIANCO,"- A Gauche de l'йcran se trouve tes stats."); SendClientMessage(playerid,COLOR_BIANCO,"- Fais TAB pour voir tous les Kills "); SendClientMessage(playerid,COLOR_BIANCO,"- Utilise /weapons si tu n'as pas d'armes"); SendClientMessage(playerid,COLOR_BIANCO,"- Les ZONES EN COULEURS sont des zones de GANG!"); SendClientMessage(playerid,COLOR_BIANCO,"- Fais /veh [car name/id] pour spawn un veh de ton choix ==> exemple: '/spawncar elegy'"); SendClientMessage(playerid,COLOR_ROSSO,"<><><><><><><><><><><><><><><><><><><><><><<><>");} if(GetPlayerVirtualWorld(playerid)==2){ SendClientMessage(playerid,COLOR_ROSSO,"<><><><><> Infos Monde STUNT: <><><><><>"); SendClientMessage(playerid,COLOR_BIANCO,"- Il y a 5 teleports :"); SendClientMessage(playerid,COLOR_BIANCO,"- 3 teleports sont des grandes zone de stunt (commandes = /stunt[1-3])"); SendClientMessage(playerid,COLOR_BIANCO,"- 2 teleports sont des zones de JUMP (commands = /jump[1-2])"); SendClientMessage(playerid,COLOR_BIANCO,"- Fais /veh [car name/id] pour avoir le veh de ton choix ==> exemple: '/spawncar elegy'"); SendClientMessage(playerid,COLOR_ROSSO,"<><><><><><><><><><><><><><><><><><><><><><><>");} if(GetPlayerVirtualWorld(playerid)==3){ SendClientMessage(playerid,COLOR_ROSSO,"<><><><><>< Infos Monde WAR: ><><><><><>"); SendClientMessage(playerid,COLOR_BIANCO,"- C'est le Monde total WAR (Avec des vehicules)"); SendClientMessage(playerid,COLOR_BIANCO,"- Il y quelques teleports . Fais /cmd pour les connaitres"); SendClientMessage(playerid,COLOR_BIANCO,"- Il y a trois ZONES EN COULEURS:"); SendClientMessage(playerid,COLOR_BIANCO," EN ROUGE se sont les zones miniguns"); SendClientMessage(playerid,COLOR_BIANCO," EN JAUNE se sont les zones snipers (Il a des tours )"); SendClientMessage(playerid,COLOR_BIANCO,"- Fais /veh [car name/id] pour spawn les veh de ton choix ==> exemple: '/spawncar elegy'"); SendClientMessage(playerid,COLOR_ROSSO,"<><><><><><><><><><><><><><><><><><><><><><><>");} return 1;} dcmd_weapons(playerid,params[]){ #pragma unused params ShowPlayerDialog(playerid, MenuDialog+1, DIALOG_STYLE_LIST, "WEAPONS KITS:","1): UZI, nAK-47, Bombe a Peinture\n2): Tec9, M4, Extinteur\n3): Sniper, Couteau, Pistolet Silencieux\n4): Desert Eagle, MP5, Cannon sciй\n5): Parachute", "OK", "ECHAP"); return 1;} dcmd_kill(playerid,params[]){ #pragma unused params SetPlayerHealth(playerid,0); return 1;} dcmd_changeworld(playerid,params[]){ #pragma unused params ShowWorldsMenu(playerid); return 1;} dcmd_nitro(playerid,params[]){ #pragma unused params if(GetPlayerVirtualWorld(playerid)==0 || GetPlayerVirtualWorld(playerid)==2){ if(IsPlayerInAnyVehicle(playerid)==1){ new IDveicolo = GetPlayerVehicleID(playerid), IDmodello = GetVehicleModel(IDveicolo); switch(IDmodello){ case 521,568,522:{ SendClientMessage(playerid,COLOR_ROSSOCHIARO,"Tu ne peux pas mettre de nitro sur ce ganre de vehicule!!!"), SendClientMessage(playerid,COLOR_GRIGIO,"Non puoi mettere il NOS in questo veicolo!!!"); return 0;}} GetPlayerVehicleID(playerid); veicolo = GetPlayerVehicleID(playerid); AddVehicleComponent(veicolo,1010); //nos GameTextForPlayer(playerid,"~r~NITRO ~g~Ajouter ~g~sur ton vehicule",3000,4); GetPlayerName(playerid,NomeGiocatore1,sizeof(NomeGiocatore1)); format(string,sizeof(string),"%s a installer la NITRO sur son vehicule ! (/nitro)",NomeGiocatore1); SendClientMessageToAll(COLOR_GRIGIO,string);} print(string);} return 1;} dcmd_stunt1(playerid,params[]){ #pragma unused params if(GetPlayerVirtualWorld(playerid)==2){ GameTextForPlayer(playerid,"~w~Stunt 1",3000,3); GetPlayerName(playerid, NomeGiocatore1, sizeof(NomeGiocatore1)); format(string, sizeof(string), "%s c'est teleporter a /stunt1", NomeGiocatore1);SendClientMessageToAll(COLOR_ARANCIONE,string);print(string); if(!IsPlayerInAnyVehicle(playerid)){ SetPlayerPos(playerid, 1960.5044,-2456.3022,13.5391); SetPlayerFacingAngle(playerid,270.0);}else if(IsPlayerInAnyVehicle(playerid)){ TelePlayerVehicle(playerid,1960.5044,-2456.3022,13.5391,270.0,0);}} return 1;} dcmd_stunt2(playerid,params[]){ #pragma unused params if(GetPlayerVirtualWorld(playerid)==2){ GameTextForPlayer(playerid,"~w~Stunt 2",3000,3); GetPlayerName(playerid, NomeGiocatore1, sizeof(NomeGiocatore1)); format(string, sizeof(string), "%s c'est teleporter a /stunt2", NomeGiocatore1);SendClientMessageToAll(COLOR_ARANCIONE,string);print(string); if(!IsPlayerInAnyVehicle(playerid)){ SetPlayerPos(playerid, -1717.2229,-314.5244,13.7286); SetPlayerFacingAngle(playerid,318.9173);}else if(IsPlayerInAnyVehicle(playerid)){ TelePlayerVehicle(playerid,-1717.2229,-314.5244,13.7286,318.0,0);}} return 1;} dcmd_stunt3(playerid,params[]){ #pragma unused params if(GetPlayerVirtualWorld(playerid)==2){ GameTextForPlayer(playerid,"~w~Stunt 3",3000,3); GetPlayerName(playerid, NomeGiocatore1, sizeof(NomeGiocatore1)); format(string, sizeof(string), "%s c'est teleporter a /stunt3", NomeGiocatore1);SendClientMessageToAll(COLOR_ARANCIONE,string);print(string); if(!IsPlayerInAnyVehicle(playerid)){ SetPlayerPos(playerid, 377.2024,2551.0232,17.9733); SetPlayerFacingAngle(playerid,180.0); TempBlockPlayer(playerid);}else if(IsPlayerInAnyVehicle(playerid)){ TelePlayerVehicle(playerid,423.9225,2502.0981,16.4692,90.0,0);}} return 1;} dcmd_jump1(playerid,params[]){ #pragma unused params if(GetPlayerVirtualWorld(playerid)==2){ GameTextForPlayer(playerid,"~w~Jump 1",3000,3); GetPlayerName(playerid, NomeGiocatore1, sizeof(NomeGiocatore1)); format(string, sizeof(string), "%s c'est teleporter a /jump1", NomeGiocatore1);SendClientMessageToAll(COLOR_ARANCIONE,string);print(string); if(!IsPlayerInAnyVehicle(playerid)){ SetPlayerPos(playerid, -687.9762,809.9364,835.1898); SetPlayerFacingAngle(playerid,135.0);}else if(IsPlayerInAnyVehicle(playerid)){ TelePlayerVehicle(playerid,-690.7571,821.6666,834.6039,135.5,0);}} return 1;} dcmd_jump2(playerid,params[]){ #pragma unused params if(GetPlayerVirtualWorld(playerid)==2){ GameTextForPlayer(playerid,"~w~Jump 2",3000,3); GetPlayerName(playerid, NomeGiocatore1, sizeof(NomeGiocatore1)); format(string, sizeof(string), "%s c'est teleporter a /jump2", NomeGiocatore1);SendClientMessageToAll(COLOR_ARANCIONE,string);print(string); if(!IsPlayerInAnyVehicle(playerid)){ SetPlayerPos(playerid, -326.7627,2518.4670,406.9554); SetPlayerFacingAngle(playerid,135.0);}else if(IsPlayerInAnyVehicle(playerid)){ TelePlayerVehicle(playerid,-326.7627,2518.4670,406.9554,270.0,0);}} return 1;} dcmd_area51(playerid,params[]){ #pragma unused params if(GetPlayerVirtualWorld(playerid)==3){ GameTextForPlayer(playerid,"~r~Area 51",3000,3); GetPlayerName(playerid, NomeGiocatore1, sizeof(NomeGiocatore1)); format(string, sizeof(string), "%s c'est teleporter a /area51", NomeGiocatore1);SendClientMessageToAll(COLOR_ARANCIONE,string);print(string); SetPlayerPos(playerid,324.6160,1983.1732,17.6406); SetPlayerFacingAngle(playerid,90.0);} return 1;} dcmd_sniper(playerid,params[]){ #pragma unused params if(GetPlayerVirtualWorld(playerid)==3){ GameTextForPlayer(playerid,"~r~ZONE Sniper",3000,3); GetPlayerName(playerid, NomeGiocatore1, sizeof(NomeGiocatore1)); format(string, sizeof(string), "%s c'est teleporter a /sniper", NomeGiocatore1);SendClientMessageToAll(COLOR_ARANCIONE,string);print(string); SetPlayerPos(playerid,210.2527,1919.7451,17.6406); SetPlayerFacingAngle(playerid,180.0);} return 1;} dcmd_area69(playerid,params[]){ #pragma unused params if(GetPlayerVirtualWorld(playerid)==3){ GameTextForPlayer(playerid,"~r~Zone 69",3000,3); GetPlayerName(playerid, NomeGiocatore1, sizeof(NomeGiocatore1)); format(string, sizeof(string), "%s c'est teleporter a /area69", NomeGiocatore1);SendClientMessageToAll(COLOR_ARANCIONE,string);print(string); AdvanceTelePlayer(playerid,413.3539,2533.3423,19.1484,90.0,0,0,0,1,1);} return 1;} dcmd_lvairport(playerid,params[]){ #pragma unused params if(GetPlayerVirtualWorld(playerid)==3){ GameTextForPlayer(playerid,"~y~Aeroport de LV",3000,3); GetPlayerName(playerid, NomeGiocatore1, sizeof(NomeGiocatore1)); format(string, sizeof(string), "%s c'est teleporter a /lvairport", NomeGiocatore1);SendClientMessageToAll(COLOR_ARANCIONE,string);print(string); AdvanceTelePlayer(playerid,1556.0350,1438.3502,10.8261,90.0,0,1,0,1,1);} return 1;} dcmd_drift(playerid,params[]){ #pragma unused params if(GetPlayerVirtualWorld(playerid)==0){ SendClientMessage(playerid,COLOR_ROSSOCHIARO,"UTILISATION: /drift[1-6]");}else SendClientMessage(playerid,COLOR_ROSSOCHIARO,"Tu n'est pas dans le Monde DRIFT!!! FAIS: /changeworld"); return 1;} dcmd_drift1(playerid,params[]){ #pragma unused params if(GetPlayerVirtualWorld(playerid)==0){ GetPlayerName(playerid, NomeGiocatore1, sizeof(NomeGiocatore1)); format(string, sizeof(string), "%s c'est teleporter a /drift1", NomeGiocatore1);SendClientMessageToAll(COLOR_ARANCIONE,string);print(string); GameTextForPlayer(playerid,"~w~DRIFT 1",3000,3); AdvanceTelePlayer(playerid,-304.1332,1527.7257,75.3594,185.0,0,1,1,1,1);} return 1;} dcmd_drift2(playerid,params[]){ #pragma unused params if(GetPlayerVirtualWorld(playerid)==0){ GetPlayerName(playerid, NomeGiocatore1, sizeof(NomeGiocatore1)); format(string, sizeof(string), "%s c'est teleporter a /drift2", NomeGiocatore1);SendClientMessageToAll(COLOR_ARANCIONE,string);print(string); GameTextForPlayer(playerid,"~w~DRIFT 2",3000,3); AdvanceTelePlayer(playerid,-2397.8071,-591.8931,132.3059,124.0,0,1,1,1,1);} return 1;} dcmd_drift3(playerid,params[]){ #pragma unused params if(GetPlayerVirtualWorld(playerid)==0){ GetPlayerName(playerid, NomeGiocatore1, sizeof(NomeGiocatore1)); format(string, sizeof(string), "%s c'est teleporter a /drift3", NomeGiocatore1);SendClientMessageToAll(COLOR_ARANCIONE,string);print(string); GameTextForPlayer(playerid,"~w~DRIFT 3",3000,3); AdvanceTelePlayer(playerid,1244.8322,-2036.8687,59.8600,270.0,0,1,1,1,1);} return 1;} dcmd_drift4(playerid,params[]){ #pragma unused params if(GetPlayerVirtualWorld(playerid)==0){ GetPlayerName(playerid, NomeGiocatore1, sizeof(NomeGiocatore1)); format(string, sizeof(string), "%s c'est teleporter a /drift4", NomeGiocatore1);SendClientMessageToAll(COLOR_ARANCIONE,string);print(string); GameTextForPlayer(playerid,"~w~DRIFT 4",3000,3); AdvanceTelePlayer(playerid,833.7303,-1795.3284,14.3240,180.0,0,1,1,1,1);} return 1;} dcmd_drift5(playerid,params[]){ #pragma unused params if(GetPlayerVirtualWorld(playerid)==0){ GetPlayerName(playerid, NomeGiocatore1, sizeof(NomeGiocatore1)); format(string, sizeof(string), "%s c'est teleporter a /drift5", NomeGiocatore1);SendClientMessageToAll(COLOR_ARANCIONE,string);print(string); GameTextForPlayer(playerid,"~w~DRIFT 5",3000,3); AdvanceTelePlayer(playerid,2285.3533,-2346.6116,13.5469,225.0,0,1,1,1,1);} return 1;} dcmd_drift6(playerid,params[]){ #pragma unused params if(GetPlayerVirtualWorld(playerid)==0){ GetPlayerName(playerid, NomeGiocatore1, sizeof(NomeGiocatore1)); format(string, sizeof(string), "%s c'est teleporter a /drift6", NomeGiocatore1);SendClientMessageToAll(COLOR_ARANCIONE,string);print(string); GameTextForPlayer(playerid,"~w~DRIFT 6",3000,3); AdvanceTelePlayer(playerid,-1252.1946,-775.0842,66.0000,302.2190,0,1,1,1,1);} return 1;} dcmd_tuning1(playerid,params[]){ #pragma unused params if(GetPlayerVirtualWorld(playerid)==0 || GetPlayerVirtualWorld(playerid)==2){ GetPlayerName(playerid, NomeGiocatore1, sizeof(NomeGiocatore1)); format(string, sizeof(string), "%s c'est teleporter a /tuning1", NomeGiocatore1);SendClientMessageToAll(COLOR_ARANCIONE,string);print(string); GameTextForPlayer(playerid,"~b~TUNING 1",3000,3); AdvanceTelePlayer(playerid,-2708.6799,234.6679,4.1797,180.0,0,1,1,1,1);} return 1;} dcmd_tuning2(playerid,params[]){ #pragma unused params if(GetPlayerVirtualWorld(playerid)==0 || GetPlayerVirtualWorld(playerid)==2){ GetPlayerName(playerid, NomeGiocatore1, sizeof(NomeGiocatore1)); format(string, sizeof(string), "%s c'est teleporter a /tuning2", NomeGiocatore1);SendClientMessageToAll(COLOR_ARANCIONE,string);print(string); GameTextForPlayer(playerid,"~b~TUNING 2",3000,3); AdvanceTelePlayer(playerid,2648.8755,-2027.1577,13.5469,180.0,0,1,1,1,1);} return 1;} dcmd_tuning3(playerid,params[]){ #pragma unused params if(GetPlayerVirtualWorld(playerid)==0 || GetPlayerVirtualWorld(playerid)==2){ GetPlayerName(playerid, NomeGiocatore1, sizeof(NomeGiocatore1)); format(string, sizeof(string), "%s c'est teleporter a /tuning3", NomeGiocatore1);SendClientMessageToAll(COLOR_ARANCIONE,string);print(string); GameTextForPlayer(playerid,"~b~TUNING 3",3000,3); AdvanceTelePlayer(playerid,-1914.8788,225.5966,35.0078,90.0,0,1,1,1,1);} return 1;} /******************************************************************************* * <=[STOCKS]=> * *******************************************************************************/ stock ShowWorldsMenu(playerid){ ShowPlayerDialog(playerid,MenuDialog,DIALOG_STYLE_LIST,"Choisi le monde ou tu veux aller:","Monde DM \nMonde DRIFT \nMonde STUNT \nMonde WAR ","OK","NON"); return 1;} stock TelePlayerVehicle(playerid,Float:X,Float:Y,Float:Z,Float:ROTAZIONE,INTERIOR){ new SingoloVeicolo = GetPlayerVehicleID(playerid); SetVehiclePos(SingoloVeicolo,X,Y,Z); LinkVehicleToInterior(SingoloVeicolo,INTERIOR);SetVehicleZAngle(SingoloVeicolo,ROTAZIONE); SetVehicleVirtualWorld(SingoloVeicolo, GetPlayerVirtualWorld(playerid)); return 1;} stock AdvanceTelePlayer(playerid,Float:X,Float:Y,Float:Z,Float:ROT,INT,WithVehicle,ResWeap,DisableCP,DisableRCP){ if(ResWeap==1) ResetPlayerWeapons(playerid); if(DisableCP==1) DisablePlayerCheckpoint(playerid); if(DisableRCP==1) DisablePlayerRaceCheckpoint(playerid); if(IsPlayerInAnyVehicle(playerid)){ if(WithVehicle==1){ new VehicleID = GetPlayerVehicleID(playerid); SetVehiclePos(VehicleID,X,Y,Z); LinkVehicleToInterior(VehicleID,INT);SetVehicleZAngle(VehicleID,ROT); SetVehicleVirtualWorld(VehicleID, GetPlayerVirtualWorld(playerid));} else if(WithVehicle==0){ SetPlayerPos(playerid,X,Y,Z),SetPlayerFacingAngle(playerid,ROT),SetPlayerInterior(playerid,INT);}} if(!IsPlayerInAnyVehicle(playerid)){ SetPlayerPos(playerid,X,Y,Z);SetPlayerFacingAngle(playerid,ROT);SetPlayerInterior(playerid,INT);} return 1;} /******************************************************************************* * <=[TIMERS]=> * *******************************************************************************/ public NitroReset(){ for(new var0 = 0; var0 < MAX-PLAYERS; var0++){ if(!function1C4(var0, GetPlayerVehicleID(var0))){ new var1 = GetPlayerVehicleID(var0); if(GetVehicleVirtualWorld(var1)==0) AddVehicleComponent(var1, 1010);}} return 0;} public ResettatoreArmi(){ for(new i=0;i<MAX-PLAYERS;i++){ if(IsPlayerConnected(i)){ if(GetPlayerVirtualWorld(i)==0){ if(GetPlayerWeapon(i)==COLT || GetPlayerWeapon(i)==0) return 1;else if(GetPlayerWeapon(i)!=COLT || GetPlayerWeapon(i)!=0){ ResetPlayerWeapons(i),GivePlayerWeapon(i,COLT,30);}} if(GetPlayerVirtualWorld(i)==2){ if(GetPlayerWeapon(i)==0) return 1;else{ ResetPlayerWeapons(i);}}}} return 1;} public PlayerInfoTimer(){ #if defined INFO_GIOCATORE for(new i=0;i<MAX-PLAYERS;i++){ InfoGiocatore[i][Punteggio]=GetPlayerScore(i); GetPlayerHealth(i,InfoGiocatore[i][Vita]); format(string,sizeof(string),"~r~Morts ~w~%d~n~~b~Kills ~w~%d~n~~y~Mauvais Kills ~w~%d~n~~g~Vie ~w~%.f ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~~g~GROVE: ~w~%d ~p~BALLAS: ~w~%d ~y~VAGOS: ~w~%d ~b~AZTECAS: ~w~%d ~w~BIKERS: ~w~%d ~r~MAFIA: ~w~%d", InfoGiocatore[i][Morti], InfoGiocatore[i][BuoneUccisioni], InfoGiocatore[i][CattiveUccisioni], InfoGiocatore[i][Vita], GroveKills, BallasKills, VagosKills, AztecasKills, BikersKills, MafiaKills); TextDrawSetString(PlayerInfo2[i],string);} #endif return 1;} public VitaPlayerAuto(){ for(new i = 0; i < MAX-PLAYERS; i++){ if(IsPlayerInAnyVehicle(i)){ #if defined VITA_AUTO TextDrawShowForPlayer(i,VitaVeicolo[i]); #endif } else if(!IsPlayerInAnyVehicle(i)){ #if defined VITA_AUTO TextDrawHideForPlayer(i,VitaVeicolo[i]); #endif }} return 1;} public InfoVeicolo(){ for(new i=0; i<MAX-PLAYERS; i++){ GetVehicleHealth(GetPlayerVehicleID(i),VitaVeicolo2); //-------- Text 1 ----------// format(string,sizeof(string),"~r~Vie du vehicule: ~w~%.2f",VitaVeicolo2); #if defined VITA_AUTO TextDrawSetString(VitaVeicolo[i],string); #endif } return 1;} public InAreas(){ for(new i=0;i<MAX-PLAYERS;i++){ if(!IsPlayerInArea(i, 465.9499, 1991.8876, 492.6693, 2028.8599, 58.9759, 69.6749) || IsPlayerInArea(i, 393.9248, 2668.9033, 409.9981, 2680.8328, 74.3383, 79.3383)){ SetPlayerAmmo(i,MINIGUN,0); SetPlayerAmmo(i,SNIPER_RIFLE,0);} if(IsPlayerInArea(i, 465.9499, 1991.8876, 492.6693, 2028.8599, 58.9759, 69.6749)){ GivePlayerWeapon(i,MINIGUN,0); SetPlayerAmmo(i,MINIGUN,100);} if(IsPlayerInArea(i, 393.9248, 2668.9033, 409.9981, 2680.8328, 74.3383, 79.3383)){ GivePlayerWeapon(i,MINIGUN,0); SetPlayerAmmo(i,MINIGUN,100);} if(IsPlayerInArea(i, 95.1270, 1799.3463, 283.8586, 1940.4288, 32.5989, 42.5989)){ GivePlayerWeapon(i,SNIPER_RIFLE,0); SetPlayerAmmo(i,SNIPER_RIFLE,100);}} return 1;} public Messaggi(){ if(Messaggio==0) Messaggio=1, SendClientMessageToAll(COLOR_BLUCHIARO,"==> INFO: Fais /changeworld pour changer de monde");else if(Messaggio==1) Messaggio=2, SendClientMessageToAll(COLOR_BLUCHIARO,"==> INFO: Pour savoir les commandes fais /cmd");else if(Messaggio==2) Messaggio=3, SendClientMessageToAll(COLOR_BLUCHIARO,"==> INFO: Pour crйer un compte fais /register [Password]");else if(Messaggio==3) Messaggio=4, SendClientMessageToAll(COLOR_BLUCHIARO,"==> INFO: Fais /login [password] pour loggй ton compte");else if(Messaggio==4) Messaggio=0, SendClientMessageToAll(COLOR_BLUCHIARO,"==> INFO: Si tu veux chager de skin, appuie sur F4 et tape /kill"); return 1;} public TempBlockPlayer(playerid){ TogglePlayerControllable(playerid,0); SetTimerEx("RemovePlayerBlock",1000,0,"d",playerid); return 1;} public RemovePlayerBlock(playerid){ TogglePlayerControllable(playerid,1); return 1;} function1C4(playerid, arg1){ new var0[29]={581,523,462,521,463,522,461,448,468,586,509,481,510,472,473,493,595,484,430,453,452,446,454,590,569,537,538,570,449}; arg1=GetPlayerVehicleID(playerid); if(IsPlayerInVehicle(playerid,arg1)){ new var1=0; while(++var1<29){ if(GetVehicleModel(arg1)==var0[var1]){ return 1;}}} return 0;} /******************************************************************************* * <=[Main]=> * *******************************************************************************/ main(){ print("\n***********************"); print(" Worlds Mode"); print(" By Zuc (v1.0) "); print("***********************\n");} /******************************************************************************* * <=[EOF]=> * *******************************************************************************/ |