Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ############ ############\ ############ ##################\ ### DB
- ###\\\\\\\\\###\ ###\\\\\\\##\ ###\\\\\\\\\###\ ###\ ###\ ###\ ###\ DB
- ###\ ###\ #########\ ###### ###\ ###\ ###\ ###\ ###\ \\\ DB
- ###\ ###\ ###\\\\\\\##\ \\\\\\ ###\ ###\ ###\ ###\ ###\ ### DB
- ########### \\\ ############\ ########### \\\ ###\ ###\ ###\ ###\ DB
- \\\\\\\\\\\\\ \\\\\\\\\\\\ \\\\\\\\\\\\\ \\\ \\\ \\\ \\\ DB
- */
- // Copyright © 2011 All rights reserved
- // GAMEMODE BY [GF]Sasino97 ! DON'T REMOVE THE CREDITS!!!!
- //-=-=-=-=-=INCLUDES=-=-=-=-=-
- #include a_samp.inc //Crediti alla SA-MP Development Team
- #include a_sounds.inc //Crediti a wiki.sa-mp.com
- #include IsPointNearPoint.inc //Crediti a Soeh
- #include CreateExplosionEx.inc //Crediti a [GF]Sasino97
- #include SII.inc //Crediti a [DRuG]Slick
- #include progress.inc //Crediti a Toribio
- #include wxpublics2.inc //Crediti a Wacko
- //-=-=-=-=-=DEFINES=-=-=-=-=-
- //Define dei colori
- #define COLOR_RED 0xFF0000AA
- #define COLOR_GREEN 0x33AA33AA
- #define COLOR_YELLOW 0xFFFF00AA
- #define COLOR_ORANGE 0xFF9900AA
- #define COLOR_BLUE 0x0000BB00
- #define COLOR_BLACK 0x000000FF
- #define COLOR_WHITE 0xFFFFFFAA
- #define COLOR_ADMIN 0x24FF0AB9
- #define COLOR_ALPHA 0xABCDEF02
- #define COLOR_PINK 0xFF66FFAA
- #define COLOR_VIOLET 0x9955DEEE
- #define COLOR_GREY 0xAFAFAFAA
- #define COLOR_LIGHTBLUE 0x33CCFFAA
- #define COLOR_KICK/BAN 0xFF00FFAA
- //Define abbreviazione nomi personaggi
- #define GOKU0 124
- #define GOKU1 247
- #define GOKU2 100
- #define GOKU3 248
- #define VEGETA0 96
- #define VEGETA1 291
- #define VEGETAS 72
- #define VEGETA2 147
- #define TRUNKS0 217
- #define TRUNKS1 101
- #define TRUNKSS 97
- #define GOHAN0 176
- #define GOHAN1 177
- #define GOHAN2 154
- #define VEGEKU0 46
- #define VEGEKU1 223
- #define GOGETA 98
- #define SATAN 241
- #define VIDEL 56
- #define CRILIN 121
- #define YAMCHA 204
- #define TENSHINSHAN 81
- #define GELO 1
- #define C16 181
- #define C17 128
- #define C18 91
- #define C19 29
- //Define abbreviazione nomi attacchi
- #define NORMAL_ATTACK_SCRIPT 0
- #define KAMEHAMEHA 1
- #define KAMEHAMEHA_FURIA 2
- #define SUPER_KAMEHAMEHA 3
- #define KAMEHAMEHA_MAX 4
- #define CANNONE_ESPLOSIVO 5
- #define BIG_BANG_ATTACK 6
- #define LAMPO_FINALE 7
- #define MASENKO 8
- #define ATTACCO_BRUCIANTE 9
- #define DISTRUTTORE_LETALE 10
- #define ARTIGLIO_DEL_LUPO 11
- #define TRIPLO_RAGGIO 12
- #define RAGGIO_ENERGETICO 13
- #define SFERE_ENERGETICHE 14
- #define LANCIARAZZI 15
- #define IL_CAMPIONE 16
- #define GRAN_BOMBA_AURA 17
- #define KAMEHAMEHA_FINALE 18
- #define KAMEHAMEHA_BIG_BANG 19
- #define SUPER_MASENKO 20
- //Define battleground
- #define BATTLEGROUND_PANOPTICON 0
- #define BATTLEGROUND_TORNEO 1
- #define BATTLEGROUND_UNDERWATER 2
- #define BATTLEGROUND_GRATTACIELO 3
- #define BATTLEGROUND_PONTE 4
- #define BATTLEGROUND_ALLENAMENTO 5
- #define BATTLEGROUND_AREA51 6
- #define BATTLEGROUND_CASINO 7
- #define BATTLEGROUND_SALONE 8
- //Define interiors
- #define INTERIOR_OUTSIDE 0
- #define INTERIOR_SALONE 3
- #define INTERIOR_PRIGIONE 6
- //Define rinominazione tasti
- #define TASTO_CLICK_SINISTRO 4
- #define TASTO_CLICK_CENTRALE 512
- #define TASTO_CLICK_DESTRO 128
- #define TASTO_TAB 1
- #define TASTO_C 2
- #define TASTO_SPAZIO 8
- #define TASTO_INVIO 16
- #define TASTO_MAIUSC 32
- #define TASTO_ALT 1024
- #define TASTO_SU 131072
- #define TASTO_GIU 262144
- #define TASTO_SINISTRA 32768
- #define TASTO_DESTRA 65536
- //Define Admin Levels
- #define GIOCATORE 0
- #define MODERATORE 1
- #define ADMINSECONDARIO 2
- #define ADMIN 3
- #define DEBUGGER 4
- //Define Dialogs
- #define DIALOGO_REGOLE 0
- #define DIALOGO_SPAWN 1
- #define DIALOGO_SHENRON 2
- #define DIALOGO_PERSONALIZZA 3
- #define DIALOGO_ATTACCO 4
- #define DIALOGO_ATTACCO2 5
- #define DIALOGO_STILE 6
- #define DIALOGO_PIU_AURA 7
- #define DIALOGO_PIU_VELOCITA 8
- #define DIALOGO_PIU_SALUTE 9
- #define DIALOGO_AURA_SIZE 10
- #define DIALOGO_AURA_SIZE2 11
- #define DIALOGO_SALVA_PARTITA 12
- #define DIALOGO_SCOMMESSE 13
- #define DIALOGO_SCOMMESSE2 14
- #define DIALOGO_KILL 15
- #define DIALOGO_SALVARE 16
- //Define dialog text
- #define TEXT_DIALOGO_MENU "Cambia il tuo stile di combattimento\nCambia il tuo Attacco Speciale\nAumenta la tua velocità\nAumenta la tua aura massima\nAumenta la tua difesa\nAumenta dimensioni aura\nDiminuisci dimensioni aura"
- #define TEXT_DIALOGO_ATTACCO1 "Kamehameha - 30 Punti\nKamehameha Furiosa - 40 Punti\nSuper Kamehameha - 50 Punti\nKamehameha A Massima Intensità - 60 Punti\nCannone Esplosivo - 30 Punti\nAttacco Big Bang - 40 Punti\nLampo Finale - 50 Punti\nMasenko - 20 Punti\nSuper Masenko - 40 Punti\nAttacco Bruciante - 30 Punti\nAltri Attacchi Speciali"
- #define TEXT_DIALOGO_ATTACCO2 "Distruttore Letale - 40 Punti\nArtiglio Del Lupo Esplosivo - 45 Punti\nTriplo Raggio - 45 Punti\nRaggio Energetico - 30 Punti\nSfere Energetiche - 50 Punti\nLanciarazzi Incorporato - 50 Punti\nIl Campione - 10 Punti\nGrande Bomba Di Aura - 15 Punti\nKamehameha Finale - 80 Punti\nKamehameha Big Bang - 100 Punti\n"
- #define TEXT_DIALOGO_VELOCITA "10 metri per invio - 25 Punti\n20 metri per invio - 50 Punti\n30 metri per invio - 75 Punti\n40 metri per invio - 100 Punti\n50 metri per invio - 125 Punti\n60 metri per invio - 150 Punti\n70 metri per invio - 175 Punti\n80 metri per invio - 200 Punti"
- #define TEXT_DIALOGO_STILE "Stile dei guerrieri Z - 20 Punti\nStile dei guerrieri deboli - 10 Punti\nStile degli androidi forti - 25 Punti\nStile degli androidi deboli - 15 Punti"
- #define TEXT_DIALOGO_AURA "100 Unità - 10 Punti\n125 Unità - 35 Punti\n150 Unità - 60 Punti\n200 Unità - 110 Punti\n225 Unità - 135 Punti\n250 Unità - 160 Punti\n300 Unità - 210 Punti\n350 Unità - 260 Punti\n400 Unità - 310 Punti\n500 Unità - 410 Punti"
- #define TEXT_DIALOGO_SALUTE "100 HP - 10 Punti\n150 HP - 25 Punti\n200 HP - 50 Punti\n250 HP - 75 Punti\n300 HP - 100 Punti\n350 HP - 125 Punti\n400 HP - 150 Punti\n450 HP - 175 Punti\n500 HP - 200 Punti"
- #define TEXT_DIALOGO_SIZE "Vuoi aumentare le dimensioni della tua aura di 0.5 per 20 Punti?"
- #define TEXT_DIALOGO_SIZE2 "Vuoi diminuire le dimensioni della tua aura di 0.5 per 5 Punti?"
- #define SECONDARY_DIALOG_TEXT "Dragonball Z DeathMatch 4.0 by [GF]Sasino97"
- //Undefines
- #undef MAX_PLAYERS
- #undef MAX_PLAYER_NAME
- //Define Massimi
- #define MAX_PLAYERS 100
- #define MAX_PLAYER_NAME 20
- #define MAX_SKINS 299
- #define MAX_PLAYER_NAME 20
- #define MAX_VOTES 3
- //Altro
- #define NO_AURA_MESSAGE "~r~Non hai abbastanza ~b~aura~r~! Per caricare usa ~b~MMB." //Messaggio che viene visualizzato se non hai abbastanza aura
- #define NO_PUNTI_MESSAGE "Non hai abbastanza PdD per comprare questo oggetto!" //Messaggio che viene visualizzato se non hai abbastanza punti Drago
- #define DENY_MESSAGE "Non hai l'autorizzazione per utilizzare questo comando!" //Messaggio che viene visualizzato se non sei un admin e fai un admcmd
- #define null -1
- #define PrigioneX 263.0
- #define PrigioneY 77.0
- #define PrigioneZ 1001.0
- #pragma tabsize 0
- //-=-=-=-=-=CALLBACK DECLARATIONS=-=-=-=-=-
- forward Unfreeze(playerid);
- forward Caricamento25(playerid);
- forward Caricamento50(playerid);
- forward Caricamento100(playerid);
- forward OnPlayerFinishCombo(playerid);
- //forward OnPlayerUpdateKi(playerid);
- forward OnPlayerEnterAnyVehicle(playerid);
- forward OnPlayerExitAnyVehicle(playerid);
- forward CaricaAura(playerid);
- forward SpintaAvanti(playerid);
- forward SpintaAvantiBreve(playerid);
- forward SpintaSu(playerid);
- forward SpintaSuBreve(playerid);
- forward SpintaGiu(playerid);
- forward SpintaGiuBreve(playerid);
- //-=-=-=-=-=NEW VARIABLES AND ARRAYS=-=-=-=-=-
- //Con MAX_PLAYERS
- new muted[MAX_PLAYERS];
- new Combo[MAX_PLAYERS];
- new Text:TdCombo[MAX_PLAYERS];
- new Text3D:Name3DText[MAX_PLAYERS];
- new VoteKick[MAX_PLAYERS];
- new AdminLevel[MAX_PLAYERS];
- new TickCount[MAX_PLAYERS];
- new ScommessaPlayer[MAX_PLAYERS];
- new ScommessaSoldi[MAX_PLAYERS];
- new Bar:BarraAura[MAX_PLAYERS];
- new ComboTick[MAX_PLAYERS];
- new ComboTimer[MAX_PLAYERS];
- //new TimerUpdate[MAX_PLAYERS];
- new AuraTimer[MAX_PLAYERS];
- new SpintaAvantiTimer[MAX_PLAYERS];
- new SpintaAvantiTimer2[MAX_PLAYERS];
- new SpintaGiuTimer[MAX_PLAYERS];
- new SpintaGiuTimer2[MAX_PLAYERS];
- new SpintaSuTimer[MAX_PLAYERS];
- new SpintaSuTimer2[MAX_PLAYERS];
- new Text:ScrittaBarra1[MAX_PLAYERS];
- new Text:ScrittaBarra2[MAX_PLAYERS];
- new Text:ScrittaBarra3[MAX_PLAYERS];
- //Con Float:
- new Float:RandomAllenamento[2][3] =
- {
- {-68.4304,-17.8501,3.1171},//Spazio Allenamento
- {-53.8105,16.1618,3.1171}
- };
- new Float:RandomPanopticon[2][3] =
- {
- {-562.7196,-189.0080,78.4062},//Panopticon
- {-529.9219,-189.8709,78.4062}
- };
- new Float:RandomGrattacielo[2][3] =
- {
- {1529.3504,-1359.3781,329.4609},//Grattacielo
- {1557.7271,-1352.8771,329.4609}
- };
- new Float:RandomTorneo[2][3] =
- {
- {397.3382,-2070.2937,13.8998},//Torneo
- {372.9983,-2069.4833,13.9451}
- };
- new Float:RandomPonte[2][3] =
- {
- {-1251.3450,768.4552,34.5781},//Ponte
- {-1205.4771,801.5731,34.5781}
- };
- new Float:RandomUnderwater[2][3] =
- {
- {-2665.1315,1908.1401,-37.8794},//Sotto il mare
- {-2708.8198,1904.1984,-37.2827}
- };
- new Float:RandomArea51[2][3] =
- {
- {183.161331,1860.846679,20.661357},//Nell'Area 51
- {228.632171,1898.935668,17.648057}
- };
- new Float:RandomCasino[2][3] =
- {
- {2272.188476,1623.508178,94.921875},//Sul tetto del caligulas
- {2204.618164,1603.807128,68.726562}
- };
- new Float:RandomSpawns[16][3] =
- {
- {-562.7196,-189.0080,78.4062},//Panopticon
- {-529.9219,-189.8709,78.4062},
- {1529.3504,-1359.3781,329.4609},//Grattacielo
- {1557.7271,-1352.8771,329.4609},
- {397.3382,-2070.2937,13.8998},//Torneo
- {372.9983,-2069.4833,13.9451},
- {-1251.3450,768.4552,34.5781},//Ponte
- {-1205.4771,801.5731,34.5781},
- {-2665.1315,1908.1401,-37.8794},//Sotto il mare
- {-2708.8198,1904.1984,-37.2827},
- {183.161331,1860.846679,20.661357},//Nell'Area 51
- {228.632171,1898.935668,17.648057},
- {2272.188476,1623.508178,94.921875},//Sul tetto del caligulas
- {2204.618164,1603.807128,68.726562},
- {-68.4304,-17.8501,3.1171},//Spazio Allenamento
- {-53.8105,16.1618,3.1171}
- };
- //Con stringhe
- new rand;
- new VocaboliVietati[68][] = //PAROLE CHE NON SI POSSONO DIRE
- {
- "noob","nab","nappo","n4","n0","nub",
- "cazz","caxx","merd","pene","figa","minch","mink","culo","porc","pisell",
- "fanculo","fuck","fott","ciuccia","succhia","sukkia","suca","suka","muori","mori","tacci",
- "stronz","strunz","scem","cretin","deficent","coglion","idiot","imbecill","pirla","bastard","mongoloid","andicap","finocchi","finokk","froci","ricchion","rikkion","gay","g4y","ojon","oion",
- "negr","ebre","marocchin","marokkin","cuio",
- "troi","puta","ttana","batton","donnett","zoccol","baldra","madre","mamm","mmt","mamt","mignott","bocchin","bokkin","pompin"
- };
- new Regole[][] =
- {
- {"1 - Non si possono usare cheats(trucchi) in questo server.\n"},
- {"2 - Non si puo spammare messaggi ne spammare gli attacchi.\n"},
- {"3 - Non si possono offendere gli altri giocatori con insulti.\n"},
- {"4 - Non si puo fare pubblicità indesiderata all interno del server.\n"},
- {"I moderatori hanno il diritto di punire chi non le rispetta.\n"},
- {"Cliccando sul pulsante \"Accetto\" dichiari di aver letto\n"},
- {"e compreso le regole e di impegnarti a rispettarle.\n"}
- };
- //Con enum
- enum dDesideri
- {
- dSpada,
- dBazooka,
- dColtello,
- };
- enum pStat
- {
- Stile[MAX_SKINS],
- Attacco[MAX_SKINS],
- Velocita[MAX_SKINS],
- SaluteMax[MAX_SKINS],
- AuraMax[MAX_SKINS],
- Float:AuraSize[MAX_SKINS]
- };
- enum pInfo
- {
- Sfera1,
- Sfera2,
- Sfera3,
- Sfera4,
- Sfera5,
- Sfera6,
- Sfera7,
- Punteggio,
- Desideri[dDesideri],
- Stats[pStat],
- RadarPreso,
- };
- new PlayerInfo[MAX_PLAYERS][pInfo];
- //Altri
- new Radar;
- new Drago1;
- new Drago2;
- new Drago3;
- new Drago4;
- new Drago5;
- new Drago6;
- new Drago7;
- new SalvaPartita;
- new Kill1;
- new Kill2;
- new Kill3;
- new Kill4;
- new Kill5;
- new Kill6;
- new Kill7;
- new Kill8;
- //-=-=-=-=-=Main=-=-=-=-=-
- main()
- {
- print("\n-----------------NOW RUNNING------------------\n");
- print(" Dragonball Z Deathmatch 4.0 by Sasino ");
- print("\n----------------------------------------------\n");
- }
- //-=-=-=-=-=-=-=-=-=-=-=-=-=CALLBACKS-=-=-=-=-=-=-=-=-=-=-=-=-=
- //-=-=-=-=-=OnGamemodeInit=-=-=-=-=-
- public OnGameModeInit()
- {
- SetWeather(17);//Atmosfera
- SetGravity(0.001);//Gravità
- SetWorldTime(12);//Orario(A Natale impostare su 24)
- SetNameTagDrawDistance(20);//Distanza da cui si puo vedere il name tag
- SetGameModeText("DBZ-DM 4.0 ITA");//Nome GM
- AllowAdminTeleport(true);//Si teletrasporto per gli amministratori e i moderatori
- ShowPlayerMarkers(true);//Si segnali sulla mappa dei giocatori
- DisableInteriorEnterExits();//No entrata negli interior
- SendRconCommand("hostname [ITA][GF]Server 1 - Dragonball Z DM!(0.3c)");
- ConnectNPC("Spettatore1","DragonballNPC1");
- ConnectNPC("Spettatore2","DragonballNPC2");
- ConnectNPC("Spettatore3","DragonballNPC3");
- ConnectNPC("Vendipizza","DragonballNPC4");
- ConnectNPC("Spettatore4","DragonballNPC5");
- ConnectNPC("Spettatore5","DragonballNPC6");
- ConnectNPC("Spettatore6","DragonballNPC7");
- ConnectNPC("SaiyanSconosciuto","DragonballNPC8");
- ConnectNPC("Spettatore7","DragonballNPC9");
- ConnectNPC("Spettatore8","DragonballNPC10");
- ConnectNPC("Spettatore9","DragonballNPC11");
- ConnectNPC("Spettatrice","DragonballNPC12");
- ConnectNPC("Sensei","DragonballNPC13");
- AddPlayerClassEx(0,GOKU0,-249.000000,6.000000,117.000000, 90.000000,0,0,0,0,0,0);//Goku
- AddPlayerClassEx(1,VEGETA0,-249.000000,6.000000,117.000000, 90.000000,0,0,0,0,0,0);//Vegeta
- AddPlayerClassEx(2,TRUNKS0,-249.000000,6.000000,117.000000, 90.000000,0,0,0,0,0,0);//Trunks
- AddPlayerClassEx(3,GOHAN0,-249.000000,6.000000,117.000000, 90.000000,0,0,0,0,0,0);//Gohan
- AddPlayerClassEx(4,SATAN,-249.000000,6.000000,117.000000, 90.000000,0,0,0,0,0,0);//Mr. Satan
- AddPlayerClassEx(5,VIDEL,-249.000000,6.000000,117.000000, 90.000000,0,0,0,0,0,0);//Videl
- AddPlayerClassEx(6,CRILIN,-249.000000,6.000000,117.000000, 90.000000,0,0,0,0,0,0);//Crilin
- AddPlayerClassEx(7,YAMCHA,-249.000000,6.000000,117.000000, 90.000000,0,0,0,0,0,0);//Yamcha
- AddPlayerClassEx(8,TENSHINSHAN,-249.000000,6.000000,117.000000, 90.000000,0,0,0,0,0,0);//Tenshinshan
- AddPlayerClassEx(9,GELO,-249.000000,6.000000,117.000000, 90.000000,0,0,0,0,0,0);//Dr. Gelo
- AddPlayerClassEx(10,C16,-249.000000,6.000000,117.000000, 90.000000,0,0,0,0,0,0);//C16
- AddPlayerClassEx(11,C17,-249.000000,6.000000,117.000000, 90.000000,0,0,0,0,0,0);//C17
- AddPlayerClassEx(12,C18,-249.000000,6.000000,117.000000, 90.000000,0,0,0,0,0,0);//C18
- AddPlayerClassEx(13,C19,-249.000000,6.000000,117.000000, 90.000000,0,0,0,0,0,0);//C19
- Drago1 = CreatePickup(1247,15,-537.200683,-102.969543,63.296875);//Sfera del drago con 1 stella
- Drago2 = CreatePickup(1247,15,-2670.812255,1933.930419,217.273895);//Sfera del drago con 2 stelle
- Drago3 = CreatePickup(1247,15,1451.416748,-1076.615478,213.382812);//Sfera del drago con 3 stelle
- Drago4 = CreatePickup(1247,15,-1363.999755,493.684875,29.944622);//Sfera del drago con 4 stelle
- Drago5 = CreatePickup(1247,15,-61.429683,-37.518638,25.980148);//Sfera del drago con 5 stelle
- Drago6 = CreatePickup(1247,15,281.206451,1816.537475,1.000000);//Sfera del drago con 6 stelle
- Drago7 = CreatePickup(1247,15,2323.700439,1283.225341,97.661628);//Sfera del drago con 7 stelle
- Radar = CreatePickup(1252,15,2002.766113,1532.768798,34.918472);//Radar Del Drago Di Bulma
- Kill1 = CreatePickup(1254,15,-534.850280,-177.978118,84.203895);//Kills
- Kill2 = CreatePickup(1254,15,382.104675,-2085.783691,7.835937);//
- Kill3 = CreatePickup(1254,15,-2717.638427,1916.555175,-37.692634);//
- Kill4 = CreatePickup(1254,15,1547.865112,-1366.486816,326.210937);//
- Kill5 = CreatePickup(1254,15,-1312.331298,723.875793,34.578125);//
- Kill6 = CreatePickup(1254,15,-67.796043,15.665332,5.960474);//
- Kill7 = CreatePickup(1254,15,206.900390,1921.105346,17.640625);//
- Kill8 = CreatePickup(1254,15,2266.202148,1619.752563,99.023284);//Fine Kills
- Radar = CreatePickup(1252,15,2002.766113,1532.768798,34.918472);//Radar Del Drago Di Bulma
- SalvaPartita = CreatePickup(1277,23,823.166564,1.832440,1004.179687);//Menu principale
- CreateObject(971,364.854858,-2024.364990,10.449507,0.000000,0.000000,360.000000);//Cage
- CreateObject(971,373.453552,-2024.487670,10.337790,0.000000,0.000000,360.000000);//
- CreateObject(971,377.692169,-2028.686035,10.285641,0.000000,0.000000,270.000000);//
- CreateObject(971,377.483123,-2037.448486,10.227573,0.000000,0.000000,270.000000);//
- CreateObject(971,381.926849,-2041.893554,10.080951,0.000000,0.000000,360.000000);//
- CreateObject(971,390.607543,-2041.956298,10.244183,0.000000,0.000000,0.000000);////
- CreateObject(971,395.177520,-2041.678222,10.493602,0.000000,0.000000,0.000000);////
- CreateObject(971,360.316619,-2028.781860,10.429292,0.000000,0.000000,90.000000);///
- CreateObject(971,360.365295,-2037.818237,10.446266,0.000000,0.000000,90.000000);///
- CreateObject(971,355.863403,-2047.221557,10.516483,0.000000,0.000000,360.000000);//
- CreateObject(971,360.174713,-2042.649414,10.129162,0.000000,0.000000,90.000000);///
- CreateObject(971,349.348693,-2051.299560,10.362854,0.000000,0.000000,90.000000);///
- CreateObject(971,353.712524,-2047.049804,10.380116,0.000000,0.000000,0.000000);////
- CreateObject(971,349.571594,-2059.866210,10.328974,0.000000,0.000000,90.000000);///
- CreateObject(971,349.781982,-2068.938476,10.430992,0.000000,0.000000,90.000000);///
- CreateObject(971,349.954711,-2077.801269,10.366273,0.000000,0.000000,90.000000);///
- CreateObject(971,349.900543,-2084.890380,10.419968,0.000000,0.000000,90.000000);///
- CreateObject(971,354.100128,-2089.282958,10.113450,0.000000,0.000000,180.000000);//
- CreateObject(971,362.707977,-2089.087158,10.315588,0.000000,0.000000,180.000000);//
- CreateObject(971,371.566589,-2089.158447,10.271301,0.000000,0.000000,180.000000);//
- CreateObject(971,380.395904,-2089.262939,10.250101,0.000000,0.000000,180.000000);//
- CreateObject(971,389.139434,-2089.212158,10.158458,0.000000,0.000000,180.000000);//
- CreateObject(971,397.922973,-2089.104492,10.835937,0.000000,0.000000,180.000000);//
- CreateObject(971,405.629791,-2089.104492,10.231714,0.000000,0.000000,180.000000);//
- CreateObject(971,409.754943,-2084.612792,10.094079,0.000000,0.000000,270.000000);//
- CreateObject(971,409.797088,-2075.795410,10.563268,0.000000,0.000000,270.000000);//
- CreateObject(971,409.768371,-2067.102539,10.030206,0.000000,0.000000,270.000000);//
- CreateObject(971,410.017486,-2058.327880,10.298521,0.000000,0.000000,270.000000);//
- CreateObject(971,409.782165,-2051.658203,10.298521,0.000000,0.000000,270.000000);//
- CreateObject(971,409.782165,-2048.658203,10.298521,0.000000,0.000000,360.000000);//
- CreateObject(971,403.119995,-2047.381835,10.298521,0.000000,0.000000,360.000000);//
- CreateObject(971,398.632232,-2043.106811,10.117244,0.000000,0.000000,270.000000);//Fine Cage
- //PER IL NATALE CANCELLARE I SEGNI /* e */
- /*
- CreateObject(661,368.618499,-1994.246948,6.659312,0.000000,0.000000,0.00000000);//Special Feste Invernali
- CreateObject(3785,370.700073,-1995.705688,12.782113,0.000000,0.000000,0.000000);//
- CreateObject(3785,367.190032,-1995.480712,13.676772,0.000000,0.000000,0.000000);//
- CreateObject(3785,369.532104,-1994.811157,15.755434,0.000000,0.000000,0.000000);//
- CreateObject(3785,370.090789,-1995.620605,19.191816,0.000000,0.000000,0.000000);//
- CreateObject(3785,366.341827,-1995.635009,19.376033,0.000000,0.000000,0.000000);//
- CreateObject(3785,367.877929,-1991.300903,14.011980,0.000000,0.000000,0.000000);//
- CreateObject(3785,367.571228,-1993.741943,20.903799,0.000000,0.000000,0.000000);//
- CreateObject(3785,370.950500,-1994.454589,12.136563,0.000000,0.000000,0.000000);//
- CreateObject(3785,369.979797,-1993.114868,13.362409,0.000000,0.000000,0.000000);//Fine Special Feste Invernali
- */
- return 1;
- }
- //-=-=-=-=-=OnGamemodeExit=-=-=-=-=-
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER) OnPlayerEnterAnyVehicle(playerid);
- if(oldstate == PLAYER_STATE_DRIVER && newstate == PLAYER_STATE_ONFOOT) OnPlayerExitAnyVehicle(playerid);
- return 1;
- }
- //-=-=-=-=-=OnPlayerEnterAnyVehicle=-=-=-=-=-
- public OnPlayerEnterAnyVehicle(playerid)
- {
- new name[MAX_PLAYER_NAME];
- new string[256];
- SetPlayerPos(playerid,PrigioneX,PrigioneY,PrigioneZ);
- SetPlayerInterior(playerid,6);
- GetPlayerName(playerid,name,sizeof(name));
- format(string, sizeof(string),"-SSB- %s è stato bannato dal server per 'Uso di cheat(veicoli)'.", name);
- SendClientMessageToAll(COLOR_KICK/BAN,string);
- SendClientMessage(playerid,COLOR_KICK/BAN,"Regola n°1: Non si possono usare cheats(trucchi) in questo server. Pena: Ban.");
- SendClientMessage(playerid,COLOR_KICK/BAN,"Il sistema anti-vehicle ha rilevato la tua entrata in un veicolo.");
- GameTextForPlayer(playerid,"ORA SEI DISCONNESSO. /Q PER USCIRE DAL GIOCO.",300000,5);
- BanEx(playerid,"CHEAT(VEICOLI)");
- return 1;
- }
- //-=-=-=-=-=OnPlayerExitAnyVehicle=-=-=-=-=-
- public OnPlayerExitAnyVehicle(playerid)
- {
- new name[MAX_PLAYER_NAME];
- new string[256];
- SetPlayerPos(playerid,PrigioneX,PrigioneY,PrigioneZ);
- SetPlayerInterior(playerid,6);
- GetPlayerName(playerid,name,sizeof(name));
- format(string, sizeof(string), "-SSB- %s è stato bannato dal server per 'Uso di cheat(veicoli)'.", name);
- SendClientMessageToAll(COLOR_KICK/BAN,string);
- SendClientMessage(playerid,COLOR_KICK/BAN,"Regola n°1: Non si possono usare cheats(trucchi) in questo server. Pena: Ban.");
- SendClientMessage(playerid,COLOR_KICK/BAN,"Il sistema anti-vehicle ha rilevato la tua uscita da un veicolo.");
- BanEx(playerid,"CHEAT(VEICOLI)");
- return 1;
- }
- //-=-=-=-=-=OnPlayerSpawn=-=-=-=-=-
- public OnPlayerSpawn(playerid)
- {
- new Float:X, Float:Y, Float:Z;
- new team = GetPlayerTeam(playerid);
- TogglePlayerClock(playerid, true);
- ShowPlayerDialog(playerid, DIALOGO_SPAWN, DIALOG_STYLE_LIST, "Scegli un battleground", "{FF0000}1 - Villaggio Abbandonato\n{00FF00}2 - Torneo Tenkaichi\n{FFFF00}3 - Sotto il mare\n{0000FF}4 - Grattacielo\n{FF00D4}5 - Ponte\n{00FFFF}6 - Zona di allenamento\n{FF7F2A}7 - Area 51\n{FF7FAA}8 - Casino'\n9 - Salone (No Fight)", "Scegli", "Casuale");
- TogglePlayerControllable(playerid,false);
- new name[MAX_PLAYER_NAME];
- //TimerUpdate[playerid] = SetTimerEx("OnPlayerUpdateKi", 500, 1, "i", playerid);
- GetPlayerName(playerid,name,sizeof(name));
- ShowProgressBarForPlayer(playerid, BarraAura[playerid]);
- if(IsPlayerNPC(playerid))
- {
- GetPlayerName(playerid,name,sizeof(name));
- if(strfind(name, "Spettatore1", true) != null)
- {
- SetPlayerSkin(playerid,221);
- SetPlayerColor(playerid,COLOR_ADMIN);
- Name3DText[playerid] = Create3DTextLabel("Nelson Mandela", COLOR_RED, X, Y, Z+0.2, 20, 0, 0);
- Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.2);
- }
- if(strfind(name, "Spettatore2", true) != null)
- {
- SetPlayerSkin(playerid,274);
- SetPlayerColor(playerid,COLOR_ADMIN);
- Name3DText[playerid] = Create3DTextLabel("Sicurezza Medica", COLOR_RED, X, Y, Z+0.2, 20, 0, 0);
- Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.2);
- }
- if(strfind(name, "Spettatore3", true) != null)
- {
- SetPlayerSkin(playerid,299);
- SetPlayerColor(playerid,COLOR_ADMIN);
- Name3DText[playerid] = Create3DTextLabel("Spettatore", COLOR_RED, X, Y, Z+0.2, 20, 0, 0);
- Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.2);
- }
- if(strfind(name, "Vendipizza", true) != null)
- {
- SetPlayerSkin(playerid,168);
- SetPlayerColor(playerid,COLOR_ADMIN);
- Name3DText[playerid] = Create3DTextLabel("Pizze", COLOR_RED, X, Y, Z+0.2, 20, 0, 0);
- Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.2);
- }
- if(strfind(name, "Spettatore4", true) != null)
- {
- SetPlayerSkin(playerid,188);
- SetPlayerColor(playerid,COLOR_ADMIN);
- Name3DText[playerid] = Create3DTextLabel("Spettatore", COLOR_RED, X, Y, Z+0.2, 20, 0, 0);
- Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.2);
- }
- if(strfind(name, "Spettatore5", true) != null)
- {
- SetPlayerSkin(playerid,258);
- SetPlayerColor(playerid,COLOR_ADMIN);
- Name3DText[playerid] = Create3DTextLabel("Spettatore", COLOR_RED, X, Y, Z+0.2, 20, 0, 0);
- Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.2);
- }
- if(strfind(name, "Spettatore6", true) != null)
- {
- SetPlayerSkin(playerid,179);
- SetPlayerColor(playerid,COLOR_ADMIN);
- Name3DText[playerid] = Create3DTextLabel("Spettatore", COLOR_RED, X, Y, Z+0.2, 20, 0, 0);
- Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.2);
- }
- if(strfind(name, "SaiyanSconosciuto", true) != null)
- {
- SetPlayerSkin(playerid,49);
- SetPlayerColor(playerid,COLOR_ADMIN);
- Name3DText[playerid] = Create3DTextLabel("Sensei", COLOR_RED, X, Y, Z+0.2, 20, 0, 0);
- Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.2);
- }
- if(strfind(name, "Spettatore7", true) != null)
- {
- SetPlayerSkin(playerid,19);
- SetPlayerColor(playerid,COLOR_ADMIN);
- Name3DText[playerid] = Create3DTextLabel("Spettatore", COLOR_RED, X, Y, Z+0.2, 20, 0, 0);
- Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.2);
- }
- if(strfind(name, "Spettatore8", true) != null)
- {
- SetPlayerSkin(playerid,22);
- SetPlayerColor(playerid,COLOR_ADMIN);
- Name3DText[playerid] = Create3DTextLabel("Spettatore", COLOR_RED, X, Y, Z+0.2, 20, 0, 0);
- Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.2);
- }
- if(strfind(name, "Spettatore9", true) != null)
- {
- SetPlayerSkin(playerid,83);
- SetPlayerColor(playerid,COLOR_ADMIN);
- Name3DText[playerid] = Create3DTextLabel("Elvis Presley", COLOR_RED, X, Y, Z+0.2, 20, 0, 0);
- Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.2);
- }
- if(strfind(name, "Spettatrice", true) != null)
- {
- SetPlayerSkin(playerid,40);
- SetPlayerColor(playerid,COLOR_ADMIN);
- Name3DText[playerid] = Create3DTextLabel("Spettatrice", COLOR_RED, X, Y, Z+0.2, 20, 0, 0);
- Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.2);
- }
- if(strfind(name, "Sensei", true) != null)
- {
- SetPlayerSkin(playerid,49);
- SetPlayerColor(playerid,COLOR_ADMIN);
- Name3DText[playerid] = Create3DTextLabel("Sensei", COLOR_RED, X, Y, Z+0.2, 20, 0, 0);
- Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.2);
- }
- printf("%s: Sono entrato nel server con l'id %d.",name,playerid);
- return 0;
- }
- if(team == 13 || team == 9) { SendClientMessage(playerid,COLOR_LIGHTBLUE,"Questo personaggio puo assorbire l'energia con /energia."); }
- ResetPlayerMoney(playerid);//Resetta Aura
- SetPlayerArmour(playerid,150);//Prima barra di salute
- SetPlayerHealth(playerid,150);//Seconda barra di salute
- SetPlayerColor(playerid,COLOR_WHITE);//Colore
- TogglePlayerClock(playerid,false);
- SendClientMessage(playerid,COLOR_BLUE, "Benvenuto al Dragonball Z DM 4.0 by Sasino! Per ricever'aiuto /help.");
- SendClientMessage(playerid,COLOR_YELLOW,"Gamemode ispirata a 'Dragonball: Raging Blast 2' e ai suoi precedenti giochi.");
- SendClientMessage(playerid,COLOR_BLUE, "Avviso: Tutti, tranne i cyborg compaiono con 2 barre di salute(150 hp e 150 armour).");
- SendClientMessage(playerid,COLOR_YELLOW,"Cio' significa che se un giocatore non perde vita appena spawnato, {FF0000}NON{FFFF00} sta usando cheat.");
- //SendClientMessage(playerid,COLOR_RED,"Noi di [GF]Grove Family auguriamo un buon Natale a tutti!");
- PlaySound(playerid,SOUND_BIKE_AWARD_TRACK_START);
- if(IsPlayerAnAndroid(playerid))
- {
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"I cyborg(Androidi) compaiono con mezza barra di salute, ma con aura infinita.");
- SetPlayerColor(playerid,COLOR_LIGHTBLUE);
- SetPlayerHealth(playerid,50);
- SetPlayerArmour(playerid,0);
- ResetPlayerMoney(playerid);
- }
- if(team == 4 || team == 5)
- {
- SendClientMessage(playerid,COLOR_PINK,"I personaggi deboli compaiono con una sola barra di salute di 150hp.");
- SetPlayerColor(playerid,COLOR_PINK);
- SetPlayerHealth(playerid,150);
- SetPlayerArmour(playerid,0);
- ResetPlayerMoney(playerid);
- }
- switch(team)
- {
- case 0: { GameTextForPlayer(playerid,"~r~Goku",1000,4); SetPlayerFightingStyle(playerid, FIGHT_STYLE_KUNGFU); Name3DText[playerid] = Create3DTextLabel("GOKU", COLOR_WHITE, X, Y, Z+0.2, 20, 0, 0); Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);}
- case 1: { GameTextForPlayer(playerid,"~b~Vegeta",1000,4); SetPlayerFightingStyle(playerid, FIGHT_STYLE_KUNGFU); Name3DText[playerid] = Create3DTextLabel("VEGETA", COLOR_WHITE, X, Y, Z+0.2, 20, 0, 0);Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);}
- case 2: { GameTextForPlayer(playerid,"~y~Trunks",1000,4); SetPlayerFightingStyle(playerid, FIGHT_STYLE_KUNGFU); Name3DText[playerid] = Create3DTextLabel("TRUNKS", COLOR_WHITE, X, Y, Z+0.2, 20, 0, 0);Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);}
- case 3: { GameTextForPlayer(playerid,"~g~Gohan",1000,4); SetPlayerFightingStyle(playerid, FIGHT_STYLE_KUNGFU); Name3DText[playerid] = Create3DTextLabel("GOHAN", COLOR_WHITE, X, Y, Z+0.2, 20, 0, 0);Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);}
- case 4: { GameTextForPlayer(playerid,"~p~Mr.Satan",1000,4); SetPlayerFightingStyle(playerid, FIGHT_STYLE_BOXING); Name3DText[playerid] = Create3DTextLabel("MR.SATAN", COLOR_WHITE, X, Y, Z+0.2, 20, 0, 0);Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);}
- case 5: { GameTextForPlayer(playerid,"~l~Videl",1000,4); SetPlayerFightingStyle(playerid, FIGHT_STYLE_BOXING); Name3DText[playerid] = Create3DTextLabel("VIDEL", COLOR_WHITE, X, Y, Z+0.2, 20, 0, 0);Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);}
- case 6: { GameTextForPlayer(playerid,"~r~Crilin",1000,4); SetPlayerFightingStyle(playerid, FIGHT_STYLE_KUNGFU); Name3DText[playerid] = Create3DTextLabel("CRILIN", COLOR_WHITE, X, Y, Z+0.2, 20, 0, 0);Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);}
- case 7: { GameTextForPlayer(playerid,"~b~Yamcha",1000,4); SetPlayerFightingStyle(playerid, FIGHT_STYLE_KUNGFU); Name3DText[playerid] = Create3DTextLabel("YAMCHA", COLOR_WHITE, X, Y, Z+0.2, 20, 0, 0);Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);}
- case 8: { GameTextForPlayer(playerid,"~y~Tenshinshan",1000,4); SetPlayerFightingStyle(playerid, FIGHT_STYLE_KUNGFU); Name3DText[playerid] = Create3DTextLabel("TENSHINSHAN", COLOR_WHITE, X, Y, Z+0.2, 20, 0, 0);Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);}
- case 9: { GameTextForPlayer(playerid,"~g~Dr.Gelo",1000,4); SetPlayerFightingStyle(playerid, FIGHT_STYLE_GRABKICK); Name3DText[playerid] = Create3DTextLabel("DR.GELO", COLOR_LIGHTBLUE, X, Y, Z+0.2, 20, 0, 0);Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);}
- case 10: { GameTextForPlayer(playerid,"~p~C16",1000,4); SetPlayerFightingStyle(playerid, FIGHT_STYLE_KNEEHEAD); Name3DText[playerid] = Create3DTextLabel("C16", COLOR_LIGHTBLUE, X, Y, Z+0.2, 20, 0, 0);Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);}
- case 11: { GameTextForPlayer(playerid,"~l~C17",1000,4); SetPlayerFightingStyle(playerid, FIGHT_STYLE_KNEEHEAD); Name3DText[playerid] = Create3DTextLabel("C17", COLOR_LIGHTBLUE, X, Y, Z+0.2, 20, 0, 0);Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);}
- case 12: { GameTextForPlayer(playerid,"~r~C18",1000,4); SetPlayerFightingStyle(playerid, FIGHT_STYLE_KNEEHEAD); Name3DText[playerid] = Create3DTextLabel("C18", COLOR_LIGHTBLUE, X, Y, Z+0.2, 20, 0, 0);Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);}
- case 13: { GameTextForPlayer(playerid,"~b~C19",1000,4); SetPlayerFightingStyle(playerid, FIGHT_STYLE_GRABKICK); Name3DText[playerid] = Create3DTextLabel("C19", COLOR_LIGHTBLUE, X, Y, Z+0.2, 20, 0, 0);Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);}
- }
- PlayerInfo[playerid][Desideri][dSpada] = 0;
- PlayerInfo[playerid][Desideri][dColtello] = 0;
- PlayerInfo[playerid][Desideri][dBazooka] = 0;
- PlayerInfo[playerid][Sfera1] = 0;
- PlayerInfo[playerid][Sfera2] = 0;
- PlayerInfo[playerid][Sfera3] = 0;
- PlayerInfo[playerid][Sfera4] = 0;
- PlayerInfo[playerid][Sfera5] = 0;
- PlayerInfo[playerid][Sfera6] = 0;
- PlayerInfo[playerid][Sfera7] = 0;
- PlayerInfo[playerid][RadarPreso] = 0;
- new name3[MAX_PLAYER_NAME];
- new string[256];
- GetPlayerName(playerid,name3,sizeof(name3));
- format(string, sizeof(string), "Dragonball/%s.ini", name3);
- if(!INI_Exist(string))
- {
- INI_Open(string);
- INI_WriteInt( "Score", GetPlayerScore(playerid));
- INI_WriteInt( "Spada", PlayerInfo[playerid][Desideri][dSpada]);
- INI_WriteInt( "Coltello", PlayerInfo[playerid][Desideri][dColtello]);
- INI_WriteInt( "Bazooka", PlayerInfo[playerid][Desideri][dBazooka]);
- INI_WriteInt( "Sfera1", PlayerInfo[playerid][Sfera1]);
- INI_WriteInt( "Sfera2", PlayerInfo[playerid][Sfera2]);
- INI_WriteInt( "Sfera3", PlayerInfo[playerid][Sfera3]);
- INI_WriteInt( "Sfera4", PlayerInfo[playerid][Sfera4]);
- INI_WriteInt( "Sfera5", PlayerInfo[playerid][Sfera5]);
- INI_WriteInt( "Sfera6", PlayerInfo[playerid][Sfera6]);
- INI_WriteInt( "Sfera7", PlayerInfo[playerid][Sfera7]);
- INI_WriteInt( "RadarPreso", PlayerInfo[playerid][RadarPreso]);
- INI_Save();
- INI_Close();
- }
- else
- {
- INI_Open(string);
- PlayerInfo[playerid][Punteggio] = INI_ReadInt("Score");
- PlayerInfo[playerid][Desideri][dSpada] = INI_ReadInt("Spada");
- PlayerInfo[playerid][Desideri][dColtello] = INI_ReadInt("Coltello");
- PlayerInfo[playerid][Desideri][dBazooka] = INI_ReadInt("Bazooka");
- PlayerInfo[playerid][Sfera1] = INI_ReadInt("Sfera1");
- PlayerInfo[playerid][Sfera2] = INI_ReadInt("Sfera2");
- PlayerInfo[playerid][Sfera3] = INI_ReadInt("Sfera3");
- PlayerInfo[playerid][Sfera4] = INI_ReadInt("Sfera4");
- PlayerInfo[playerid][Sfera5] = INI_ReadInt("Sfera5");
- PlayerInfo[playerid][Sfera6] = INI_ReadInt("Sfera6");
- PlayerInfo[playerid][Sfera7] = INI_ReadInt("Sfera7");
- PlayerInfo[playerid][RadarPreso] = INI_ReadInt("RadarPreso");
- INI_Close();
- }
- new skin = GetPlayerSkin(playerid);
- new string2[256];
- new name2[MAX_PLAYER_NAME];
- GetPlayerName(playerid,name2,sizeof(name2));
- format(string2, sizeof(string2), "Tavole/%s.%d.ini", name2,skin);
- if(INI_Exist(string2))
- {
- INI_Open(string2);
- PlayerInfo[playerid][Stats][Stile][skin] = INI_ReadInt("Stile");
- PlayerInfo[playerid][Stats][Attacco][skin] = INI_ReadInt("Attacco");
- PlayerInfo[playerid][Stats][Velocita][skin] = INI_ReadInt("Velocita");
- PlayerInfo[playerid][Stats][AuraMax][skin] = INI_ReadInt("AuraMax");
- PlayerInfo[playerid][Stats][SaluteMax][skin] = INI_ReadInt("SaluteMax");
- PlayerInfo[playerid][Stats][AuraSize][skin] = INI_ReadFloat("AuraSize");
- INI_Save();
- INI_Close();
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Questo personaggio è personalizzato. Per cambiare la sua tavola vai sul menu del salone.");
- }
- else SendClientMessage(playerid,COLOR_LIGHTBLUE,"Questo personaggio non è personalizzato. Se vuoi farlo vai sul menu del salone.");
- if(PlayerInfo[playerid][Stats][Stile][skin] != 0) SetPlayerFightingStyle(playerid,PlayerInfo[playerid][Stats][Stile][skin]);
- SetPlayerScore(playerid,PlayerInfo[playerid][Punteggio]);
- if(GetPlayerTeam(playerid) == 2 && PlayerInfo[playerid][Desideri][dSpada] == 1) GivePlayerWeapon(playerid,WEAPON_KATANA,1);
- if(GetPlayerTeam(playerid) == 5 && PlayerInfo[playerid][Desideri][dColtello] == 1) GivePlayerWeapon(playerid,WEAPON_KNIFE,1);
- if(GetPlayerTeam(playerid) == 10 && PlayerInfo[playerid][Desideri][dBazooka] == 1) GivePlayerWeapon(playerid,WEAPON_HEATSEEKER,20);
- if(PlayerInfo[playerid][Stats][SaluteMax][skin] > 5)
- {
- SetPlayerHealth(playerid, PlayerInfo[playerid][Stats][SaluteMax][skin]);
- SetPlayerArmour(playerid, PlayerInfo[playerid][Stats][SaluteMax][skin]);
- }
- if(PlayerInfo[playerid][RadarPreso] == 1)
- {
- if(PlayerInfo[playerid][Sfera1] == 0) SetPlayerMapIcon(playerid, 1, -537.200683,-102.969543,63.296875, 56, 0, MAPICON_GLOBAL);
- if(PlayerInfo[playerid][Sfera2] == 0) SetPlayerMapIcon(playerid, 2, -2670.812255,1933.930419,217.273895, 56, 0, MAPICON_GLOBAL);
- if(PlayerInfo[playerid][Sfera3] == 0) SetPlayerMapIcon(playerid, 3, 1451.416748,-1076.615478,213.382812, 56, 0, MAPICON_GLOBAL);
- if(PlayerInfo[playerid][Sfera4] == 0) SetPlayerMapIcon(playerid, 4, -1363.999755,493.684875,29.944622, 56, 0, MAPICON_GLOBAL);
- if(PlayerInfo[playerid][Sfera5] == 0) SetPlayerMapIcon(playerid, 5, -61.429683,-37.518638,25.980148, 56, 0, MAPICON_GLOBAL);
- if(PlayerInfo[playerid][Sfera6] == 0) SetPlayerMapIcon(playerid, 6, 281.206451,1816.537475,1.007812, 56, 0, MAPICON_GLOBAL);
- if(PlayerInfo[playerid][Sfera7] == 0) SetPlayerMapIcon(playerid, 7, 2323.700439,1283.225341,97.661628, 56, 0, MAPICON_GLOBAL);
- }
- return 1;
- }
- //-=-=-=-=-=OnPlayerDeath=-=-=-=-=-
- public OnPlayerDeath(playerid,killerid,reason)
- {
- new string[256];
- new playname[MAX_PLAYER_NAME];
- new killname[MAX_PLAYER_NAME];
- new Float:X,Float:Y,Float:Z;
- DBZ_Update(playerid);
- //KillTimer(TimerUpdate[playerid]);
- Delete3DTextLabel(Name3DText[playerid]);
- CreateExplosionEx(playerid,0,12,1);
- PlaySound(playerid,SOUND_AWARD_TRACK_STOP);
- GetPlayerPos(playerid,X,Y,Z);
- CreatePickup(1240,5,X,Y,Z);
- GetPlayerName(playerid,playname,sizeof(playname));
- GetPlayerName(killerid,killname,sizeof(killname));
- SetPlayerColor(playerid,COLOR_BLACK);
- HideProgressBarForPlayer(playerid, BarraAura[playerid]);
- for(new i=0;i<MAX_PLAYERS;i++)
- {
- new iname[MAX_PLAYER_NAME];
- GetPlayerName(i,iname,sizeof(iname));
- if(ScommessaPlayer[i] == playerid)
- {
- format(string,sizeof(string),"Hai perso la scommessa su di %s(%d) e i Punti tolti prima non ti vengono restituiti.",playname,playerid);
- SendClientMessage(i,COLOR_RED,string);
- format(string,sizeof(string),"%s(%d) aveva scommesso su di te e ha perso %d PdD grazie a te!",iname,i,ScommessaSoldi[i]);
- SendClientMessage(playerid,COLOR_RED,string);
- GameTextForPlayer(i,"~r~Scommessa Persa",2000,5);
- PlaySound(playerid,SOUND_SLAP);
- ScommessaPlayer[i] = null;
- ScommessaSoldi[i] = 0;
- }
- if(ScommessaPlayer[i] == killerid)
- {
- format(string,sizeof(string),"Hai vinto la scommessa su di %s(%d) e ricevi %d Punti del Drago in totale!",killname,killerid,2*ScommessaSoldi[i]);
- SendClientMessage(i,COLOR_LIGHTBLUE,string);
- format(string,sizeof(string),"%s(%d) aveva scommesso su di te e ha vinto %d PdD grazie a te!",iname,i,2*ScommessaSoldi[i]);
- SendClientMessage(killerid,COLOR_LIGHTBLUE,string);
- AddPlayerScore(i,ScommessaSoldi[i]);
- AddPlayerScore(i,ScommessaSoldi[i]);
- GameTextForPlayer(i,"~g~Scommessa Vinta",2000,5);
- PlaySound(playerid,SOUND_CHECKPOINT_RED);
- ScommessaPlayer[i] = null;
- ScommessaSoldi[i] = 0;
- }
- }
- ForceClassSelection(playerid);
- if(killerid != INVALID_PLAYER_ID)
- {
- format(string,sizeof(string),"~b~%s ~r~e' stato battuto da ~b~%s.", playname, killname);
- GameTextForAll(string,2000,5);
- SendDeathMessage(killerid,playerid,reason);
- print(string);
- AddPlayerScore(killerid,10);
- return 1;
- }
- else
- {
- new success = 0;
- for(new i=0;i<MAX_PLAYERS;i++)
- {
- if(IsPlayerNearPlayer(100, playerid, i) && !IsPlayerNPC(i) && IsPlayerConnected(i) && i != playerid) //Se non è stato riconosciuto nessuno dal server come killerid
- {
- GetPlayerName(i, killname,sizeof(killname));
- format(string,sizeof(string),"~b~%s ~r~e' stato battuto da ~b~%s.",playname,killname);
- AddPlayerScore(i, 10);
- GameTextForAll(string, 2000, 5);
- SendDeathMessage(i, playerid, 16);
- print(string);
- success = 1;
- break;
- }
- else continue;
- }
- if(!success)
- {
- format(string,sizeof(string),"~b~%s ~r~e' morto.", playname);
- GameTextForAll(string, 2000, 5);
- SendDeathMessage(killerid, playerid, 56);
- print(string);
- }
- }
- return 1;
- }
- //-=-=-=-=-=OnPlayerConnect=-=-=-=-=-
- public OnPlayerConnect(playerid)
- {
- new string[256];
- new name[MAX_PLAYER_NAME];
- VoteKick[playerid] = 0;
- GetPlayerName(playerid,name,sizeof(name));
- format(string,sizeof(string),"[ENTRATA]%s è entrato nel server con l'id %d.",name,playerid);
- SendClientMessageToAll(COLOR_GREEN,string);
- SetPlayerColor(playerid,COLOR_BLACK);
- muted[playerid] = 0;
- new SRegole[450];
- for(new i=0;i<sizeof(Regole);i++)
- format(SRegole,sizeof(SRegole),"%s%s",SRegole,Regole[i]);
- ShowPlayerDialog(playerid, DIALOGO_REGOLE, DIALOG_STYLE_MSGBOX,"L'inosservanza delle regole puo' portare al ban.", SRegole, "Gioca", "Esci");
- //Moderazione server
- if(strfind(name, "[GF]Sasino97", true) != null) { AdminLevel[playerid] = DEBUGGER; SendClientMessage(playerid,COLOR_ADMIN,"[GF]Sasino97: Sei il founder. Puoi usare tutti i comandi esistenti. /ah."); }
- if(strfind(name, "[GF]Michi_Angel", true) != null) { AdminLevel[playerid] = ADMIN; SendClientMessage(playerid,COLOR_ADMIN,"[GF]Michi_Angel: Sei un'admin. Puoi usare tutti i comandi moderativi. /ah."); }
- if(strfind(name, "Clade", true) != null) { AdminLevel[playerid] = ADMIN; SendClientMessage(playerid,COLOR_ADMIN,"Clade: Sei un'admin. Puoi usare tutti i comandi moderativi. /ah."); }
- if(strfind(name, "Andrexz", true) != null) { AdminLevel[playerid] = ADMIN; SendClientMessage(playerid,COLOR_ADMIN,"Andrexz: Sei un'admin. Puoi usare tutti i comandi moderativi. /ah."); }
- if(strfind(name, "Candy_Ale98", true) != null) { AdminLevel[playerid] = ADMINSECONDARIO; SendClientMessage(playerid,COLOR_ADMIN,"Candy_Ale: Sei una admin secondaria. Puoi usare quasi tutti i comandi moderativi. /ah."); }
- TdCombo[playerid] = TextDrawCreate(350.00,371.00,"COMBO");
- TextDrawUseBox(TdCombo[playerid],0);
- TextDrawFont(TdCombo[playerid],3);
- TextDrawSetShadow(TdCombo[playerid],0);
- TextDrawSetOutline(TdCombo[playerid],2);
- TextDrawBackgroundColor(TdCombo[playerid],COLOR_BLACK);
- TextDrawColor(TdCombo[playerid], COLOR_WHITE);
- TextDrawAlignment(TdCombo[playerid],3);
- TextDrawLetterSize(TdCombo[playerid],0.6,1.6);
- ScommessaPlayer[playerid] = null;
- ScommessaSoldi[playerid] = 0;
- BarraAura[playerid] = CreateProgressBar(549.0, 25.0, _, _, 0x0000FFFF, 100.0);
- ScrittaBarra1[playerid] = TextDrawCreate(562.000000, 44.000000, "FLOAT");
- TextDrawBackgroundColor(ScrittaBarra1[playerid], 255);
- TextDrawFont(ScrittaBarra1[playerid], 1);
- TextDrawLetterSize(ScrittaBarra1[playerid], 0.500000, 1.000000);
- TextDrawColor(ScrittaBarra1[playerid], -16776961);
- TextDrawSetOutline(ScrittaBarra1[playerid], 0);
- TextDrawSetProportional(ScrittaBarra1[playerid], 1);
- TextDrawSetShadow(ScrittaBarra1[playerid], 1);
- ScrittaBarra2[playerid] = TextDrawCreate(562.000000, 66.000000, "FLOAT");
- TextDrawBackgroundColor(ScrittaBarra2[playerid], 255);
- TextDrawFont(ScrittaBarra2[playerid], 1);
- TextDrawLetterSize(ScrittaBarra2[playerid], 0.500000, 1.000000);
- TextDrawColor(ScrittaBarra2[playerid], -1);
- TextDrawSetOutline(ScrittaBarra2[playerid], 0);
- TextDrawSetProportional(ScrittaBarra2[playerid], 1);
- TextDrawSetShadow(ScrittaBarra2[playerid], 1);
- ScrittaBarra3[playerid] = TextDrawCreate(560.000000, 22.000000, "FLOAT");
- TextDrawBackgroundColor(ScrittaBarra3[playerid], 255);
- TextDrawFont(ScrittaBarra3[playerid], 1);
- TextDrawLetterSize(ScrittaBarra3[playerid], 0.500000, 1.000000);
- TextDrawColor(ScrittaBarra3[playerid], -1);
- TextDrawSetOutline(ScrittaBarra3[playerid], 0);
- TextDrawSetProportional(ScrittaBarra3[playerid], 1);
- TextDrawSetShadow(ScrittaBarra3[playerid], 1);
- return 1;
- }
- //-=-=-=-=-=OnPlayerDisconnect=-=-=-=-=-
- public OnPlayerDisconnect(playerid, reason)
- {
- new string[256];
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,name,sizeof(name));
- DBZ_Update(playerid);
- TextDrawDestroy(TdCombo[playerid]);
- Delete3DTextLabel(Name3DText[playerid]);
- DestroyProgressBar(BarraAura[playerid]);
- KillTimer(ComboTimer[playerid]);
- //KillTimer(TimerUpdate[playerid]);
- VoteKick[playerid] = 0;
- AdminLevel[playerid] = 0;
- ScommessaPlayer[playerid] = -1;
- ScommessaSoldi[playerid] = 0;
- muted[playerid] = 0;
- Combo[playerid] = 0;
- switch(reason)
- {
- case 0:
- {
- format(string,sizeof(string),"[TIMEOUT]%s è crashato dal server.",name);
- SendClientMessageToAll(COLOR_RED,string);
- print(string);
- }
- case 1:
- {
- format(string,sizeof(string),"[USCITA]%s è uscito dal server.",name);
- SendClientMessageToAll(COLOR_RED,string);
- print(string);
- }
- case 2:
- {
- format(string,sizeof(string),"[KICK/BAN]%s è stato cacciato dal server.",name);
- SendClientMessageToAll(COLOR_RED,string);
- print(string);
- }
- }
- return 1;
- }
- //-=-=-=-=-=OnPlayerUpdate=-=-=-=-=-
- public OnPlayerUpdate(playerid)
- {
- W_OnPlayerUpdate(playerid);
- new weapon;
- weapon = GetPlayerWeapon(playerid);
- if(weapon != 0 && weapon != WEAPON_KNIFE && weapon != WEAPON_KATANA && weapon != WEAPON_HEATSEEKER)
- {
- new name[MAX_PLAYER_NAME];
- new string[256];
- SetPlayerPos(playerid,PrigioneX,PrigioneY,PrigioneZ);
- SetPlayerInterior(playerid,6);
- GetPlayerName(playerid,name,sizeof(name));
- format(string, sizeof(string), "-SSB- %s è stato bannato dal server per 'Uso di cheat(armi)'.", name);
- SendClientMessageToAll(COLOR_KICK/BAN,string);
- SendClientMessage(playerid,COLOR_KICK/BAN,"Regola n°1: Non si possono usare cheats(trucchi) in questo server. Pena: Ban.");
- SendClientMessage(playerid,COLOR_KICK/BAN,"Il sistema anti-weapon hack ha rilevato un arma proibita in tuo possesso.");
- GameTextForPlayer(playerid,"ORA SEI DISCONNESSO. /Q PER USCIRE DAL GIOCO.",300000,5);
- format(string,sizeof(string),"Cheat(Armi: %d)",weapon);
- BanEx(playerid, string);
- return 1;
- }
- return 1;
- }
- //-=-=-=-=-=OnPlayerText=-=-=-=-=-
- public OnPlayerText(playerid,text[])
- {
- if(!FrasePulita(playerid,text))
- {
- if(GetPVarInt(playerid, "Insulti") < 4)
- {
- SetPVarInt(playerid,"Insulti", GetPVarInt(playerid, "Insulti") + 1);
- SendClientMessage(playerid,COLOR_RED, "Anti Insulti: +1");
- }
- else
- {
- new name[MAX_PLAYER_NAME];
- new string[256];
- SetPlayerPos(playerid,PrigioneX,PrigioneY,PrigioneZ);
- SetPlayerInterior(playerid,6);
- GetPlayerName(playerid,name,sizeof(name));
- format(string, sizeof(string), "-SSB- %s è stato bannato dal server per 'Vocaboli vietati'.", name);
- SendClientMessageToAll(COLOR_KICK/BAN,string);
- SendClientMessage(playerid,COLOR_KICK/BAN,"Regola n°1: Non si possono offendere gli altri giocatori con insulti. Pena: Kick.");
- SendClientMessage(playerid,COLOR_KICK/BAN,"Il sistema anti-insulti ti ha contato più di 3 insulti.");
- GameTextForPlayer(playerid,"ORA SEI DISCONNESSO. /Q PER USCIRE DAL GIOCO.",300000,5);
- Kick(playerid);
- }
- return 0;
- }
- if(muted[playerid] == 1)
- {
- SendClientMessage(playerid,COLOR_RED,"Non puoi parlare. Un moderatore ti ha mutato.");
- return 0;
- }
- return 1;
- }
- //-=-=-=-=-=OnPlayerCommandText=-=-=-=-=-
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- new cmd[256];
- new idx;
- new tmp[256];
- new giveplayer[MAX_PLAYER_NAME];
- new sendername[MAX_PLAYER_NAME];
- cmd = strtok(cmdtext, idx);
- if(GetPlayerInterior(playerid) == 6) return SendClientMessage(playerid,COLOR_RED,"Non puoi usare comandi. Un moderatore ti ha incarcerato!");
- if(GetPlayerInterior(playerid) == 3 && strfind(cmd,"/tra", true) == null && strfind(cmd,"/help", true) == null && strfind(cmd,"/tavolaagg", true) == null) return SendClientMessage(playerid,COLOR_RED,"Non puoi usare comandi nel salone(a parte la /tra(sformazione)). Per uscire seleziona 'Esci dal salone' nel menù.");
- if(strcmp(cmd,"/desiderio",true) == 0)
- {
- if(PlayerInfo[playerid][Sfera1] == 1 && PlayerInfo[playerid][Sfera2] == 1 &&
- PlayerInfo[playerid][Sfera3] == 1 && PlayerInfo[playerid][Sfera4] == 1 &&
- PlayerInfo[playerid][Sfera5] == 1 && PlayerInfo[playerid][Sfera6] == 1 &&
- PlayerInfo[playerid][Sfera7] == 1)
- {
- SendClientMessage(playerid,COLOR_RED,"HAI TROVATO TUTTE E SETTE LE SFERE DEL DRAGO!!! ORA PUOI ESPRIMERE IL DESIDERIO!!!");
- SendPlayerMessageToAll(playerid,"Shenron Compari!!");
- ShowPlayerDialog(playerid, DIALOGO_SHENRON, DIALOG_STYLE_LIST, "Drago Shenron: Esaudiro solo uno dei tuoi desideri!", "Spada per Trunks\nPugnale per Videl\nLanciarazzi per C16", "Scegli", "");
- PlayerInfo[playerid][Sfera1] = 0;
- PlayerInfo[playerid][Sfera2] = 0;
- PlayerInfo[playerid][Sfera3] = 0;
- PlayerInfo[playerid][Sfera4] = 0;
- PlayerInfo[playerid][Sfera5] = 0;
- PlayerInfo[playerid][Sfera6] = 0;
- PlayerInfo[playerid][Sfera7] = 0;
- PlayerInfo[playerid][RadarPreso] = 0;
- DBZ_Update(playerid);
- return 1;
- }
- return SendClientMessage(playerid,COLOR_RED,"Non hai trovato ancora le sette sfere del drago.");
- }
- if(strcmp(cmd,"/help",true) == 0)
- {
- SendClientMessage(playerid,COLOR_WHITE, "____________________________________________________HELP____________________________________________________");
- SendClientMessage(playerid,COLOR_YELLOW, "Benvenuto a Dragonball Z Death Match 4.0 by [GF]Sasino97. Per guardare la pagina delle novita usa /novita.");
- SendClientMessage(playerid,COLOR_BLUE, "COLORI: Per aprire una legenda dei colori dei giocatori usa /colori. E' molto utile ai nuovi giocatori.");
- SendClientMessage(playerid,COLOR_YELLOW, "TRSFORMAZIONE: Alcuni personaggi possono trasformarsi in Super Saiyan scrivendo almeno /tra come comando.");
- SendClientMessage(playerid,COLOR_BLUE, "FUSIONE: Goku e Vegeta possono usare il comando /fus per diventare rispettivamente Gogeta o Vegeku.");
- SendClientMessage(playerid,COLOR_YELLOW, "ATTACCO SPECIALE: Tutti i personaggi possono creare colpi speciali mettendo almeno /att come comando.");
- SendClientMessage(playerid,COLOR_BLUE, "PRESA ENERGIA: Solo il Dr.Gelo e C19 possono assorbire aura mettendo almeno /ene come comando.");
- SendClientMessage(playerid,COLOR_YELLOW, "RIGENERAZIONE: Tutti i personaggi possono rigenerare un po di vita mettendo almeno /rig come comando.");
- SendClientMessage(playerid,COLOR_RED, "Per andare all'altra pagina usa /help2.");
- SendClientMessage(playerid,COLOR_WHITE, "____________________________________________________________________________________________________________");
- PlaySound(playerid, SOUND_CAMERA_SHOT);
- return 1;
- }
- if(strcmp(cmd,"/help2",true) == 0)
- {
- SendClientMessage(playerid,COLOR_WHITE, "________________________________________________HELP_2________________________________________________");
- SendClientMessage(playerid,COLOR_BLUE, "COLPO D'AURA: Tutti i personaggi possono creare piccoli colpi d'aura con il tasto ALT.");
- SendClientMessage(playerid,COLOR_YELLOW, "CARICA AURA: Tutti i personaggi tranne i cyborg(Androidi) possono caricare l'energia tenendo MMB.");
- SendClientMessage(playerid,COLOR_BLUE, "ASCESA: Tutti i personaggi possono salire a velocità dipendente dal personaggio con il tasto SHIFT.");
- SendClientMessage(playerid,COLOR_YELLOW, "DISCESA: Tutti i personaggi possono scendere a velocità dipendente dal personaggio con il tasto C.");
- SendClientMessage(playerid,COLOR_BLUE, "POTENZA: Per scegliere consapevolmente un personaggio, usa /potenza e scoprirai le sue caratteristiche.");
- SendClientMessage(playerid,COLOR_YELLOW, "MOVIMENTO RAPIDO: Tutti i personaggi possono spostarsi in avanti velocemente tenendo premuto SPAZIO.");
- SendClientMessage(playerid,COLOR_YELLOW, "MOVIMENTO LENTO: Tenendo premuto CLICK SINISTRO durante una mossa di movimento, essa verrà rallentata.");
- SendClientMessage(playerid,COLOR_BLUE, "AUTODISTRUZIONE: Tutti i personaggi possono autodistruggersi con il comando /kill o /kamikaze.");
- SendClientMessage(playerid,COLOR_RED, "Per andare all'altra pagina usa /help3.");
- SendClientMessage(playerid,COLOR_WHITE, "______________________________________________________________________________________________________");
- PlaySound(playerid, SOUND_CAMERA_SHOT);
- return 1;
- }
- if(strcmp(cmd,"/help3",true) == 0)
- {
- SendClientMessage(playerid,COLOR_WHITE, "_________________________________________________HELP_3_________________________________________________");
- SendClientMessage(playerid,COLOR_YELLOW,"ROTAZIONE: Per ruotare di 45 gradi premi una volta INVIO. 4 volte ti fanno fare un mezzo giro mentre 8");
- SendClientMessage(playerid,COLOR_BLUE, "volte ti faranno compiere un giro completo su te stesso verso destra. La mossa non consuma aura.");
- SendClientMessage(playerid,COLOR_YELLOW,"PERSONALIZZAZIONE: Per personalizzare un personaggio vai al menu nel salone. Questa modalità viene pagata");
- SendClientMessage(playerid,COLOR_BLUE, "con i Punti del Drago(PdD) per aumentare le proprie statistiche. Per informazioni usa /pershelp");
- SendClientMessage(playerid,COLOR_YELLOW,"REPORT: Qualsiasi giocatore puo riportare delle violazioni commesse da un altro giocatore con /report.");
- SendClientMessage(playerid,COLOR_BLUE, "NON CI SONO MODERATORI?: Per verificare la loro presenza usa /admins. Altrimenti se c'è un giocatore");
- SendClientMessage(playerid,COLOR_YELLOW,"che non rispetta le regole ma il SSB non riesce a fermarlo puoi votare con /votekick [playerid].");
- SendClientMessage(playerid,COLOR_BLUE, "SCOMMESSA: Per scommettere dei PdD su un giocatore vai al menu del Salone, e inserisci le informazioni.");
- SendClientMessage(playerid,COLOR_WHITE, "________________________________________________________________________________________________________");
- PlaySound(playerid, SOUND_CAMERA_SHOT);
- return 1;
- }
- if(strcmp(cmd,"/novita",true) == 0)
- {
- SendClientMessage(playerid,COLOR_WHITE, "___________________________________________________NOVITA'___________________________________________________");
- SendClientMessage(playerid,COLOR_BLUE, "4.0: Aggiornato il sistema caricamento aura e il sistema personalizzazione dei personaggi.");
- SendClientMessage(playerid,COLOR_YELLOW,"^^^ Riparato il combometro. Riparate altre funzioni incorrette nello script.");
- SendClientMessage(playerid,COLOR_BLUE, "3.1: Aggiunto il sistema repeating timer alla pressione dei tasti del volo e dell'aura.");
- SendClientMessage(playerid,COLOR_YELLOW,"3.0: Aggiunta la barra d'aura, che indica la tua quantità d'aura da 0 a 500. Per maggiori info /barra.");
- SendClientMessage(playerid,COLOR_BLUE, "2.7: Aggiunta la possibilità di scommettere sulla vittoria di un altro giocatore. Vai al menu del salone.");
- SendClientMessage(playerid,COLOR_YELLOW,"2.6: Menu del torneo spostato al salone delle scommesse, dove si potranno fare le stesse cose di prima.");
- SendClientMessage(playerid,COLOR_BLUE, "2.4: Tolto il comando /pers per la personalizzazione, e aggiunto al menu del torneo l'opzione stessa.");
- SendClientMessage(playerid,COLOR_YELLOW,"2.1: Aggiunta una nuova modalità! La modalità \"Personalizzazione Suprema\" funzionante con /pers.");
- SendClientMessage(playerid,COLOR_BLUE, "1.9: Aggiunta una nuova modalità! La modalità \"Caccia alle sfere del drago\". Trovate le 7 sfere del");
- //SendClientMessage(playerid,COLOR_YELLOW,"drago, si potrà scegliere tra uno dei 3 desideri disponibili nel menu di scelta desiderio con /desiderio.");
- //SendClientMessage(playerid,COLOR_BLUE, "1.6: Aggiunti 13 BOT, o Non-Playing Characters(NPC). 12 si trovano al torneo, mentre 1 alla zona allenamento.");
- SendClientMessage(playerid,COLOR_WHITE, "____________________________________________________________________________________________________________");
- PlaySound(playerid, SOUND_CAMERA_SHOT);
- return 1;
- }
- if(strcmp(cmd,"/pershelp",true) == 0)
- {
- SendClientMessage(playerid,COLOR_WHITE, "______________________________________________PERSONALIZZA_HELP______________________________________________");
- SendClientMessage(playerid,COLOR_YELLOW,"Andare sul menu del salone, scegliere 'Personalizza il personaggio'. Scegliere un'opzione da eseguire fra:");
- SendClientMessage(playerid,COLOR_BLUE, "'Cambia stile di combattimento', 'Cambia attacco speciale', 'Imposta velocità\aura', Aumenta difesa.");
- SendClientMessage(playerid,COLOR_YELLOW,"Quando ci si disconnetterà i dati saranno salvati. Quando si spawna i dati verranno caricati, ugualmente");
- SendClientMessage(playerid,COLOR_BLUE, "a quando si ci trasforma con \"/tra\". Dopo aver scelto una di queste, comparirà un dialogo, dove si puo");
- SendClientMessage(playerid,COLOR_YELLOW,"scegliere se mantenere la tavola precedente, o salvare quella attuale. Per pagare si usano i PdD, ovvero");
- SendClientMessage(playerid,COLOR_BLUE, "i Punti del Drago. Essi sono i punti ottenuti sconfiggendo gli altri giocatori. Molti oggetti costosi");
- SendClientMessage(playerid,COLOR_YELLOW,"possono risultare svantaggiosi, infatti la velocità x80 è veloce, solo che non è precisa, quindi è complicato");
- SendClientMessage(playerid,COLOR_BLUE, "centrare bene il palazzo dove si vuole salire sopra o altro. Adesso sai cos'è la personalizzazione.");
- SendClientMessage(playerid,COLOR_WHITE, "______________________________________________________________________________________________________________");
- PlaySound(playerid, SOUND_CAMERA_SHOT);
- return 1;
- }
- if(strcmp(cmd,"/colori",true)==0)
- {
- SendClientMessage(playerid,COLOR_BLACK, "_________________COLORI_GIOCATORI_______________");
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Azzurro: Cyborg(Androide).");
- SendClientMessage(playerid,COLOR_PINK, "Rosa: Guerrieri deboli.");
- SendClientMessage(playerid,COLOR_WHITE, "Bianco: Guerrieri semplici.");
- SendClientMessage(playerid,COLOR_YELLOW, "Giallo: Trasformato 1 volta.");
- SendClientMessage(playerid,COLOR_ORANGE, "Arancione: Trasformato 2 volte.");
- SendClientMessage(playerid,COLOR_RED, "Rosso: Trasformato 3 volte.");
- SendClientMessage(playerid,COLOR_GREEN, "Verde: Fuso con un altro corpo.");
- SendClientMessage(playerid,COLOR_BLUE, "Blu: Fuso con un altro corpo e trasformato.");
- SendClientMessage(playerid,COLOR_WHITE, "Usa /colori2 per andare all'altra pagina.");
- SendClientMessage(playerid,COLOR_BLACK, "________________________________________________");
- PlaySound(playerid, SOUND_CAMERA_SHOT);
- return 1;
- }
- if(strcmp(cmd,"/colori2",true)==0)
- {
- SendClientMessage(playerid,COLOR_BLACK, "_________COLORI_ATTACCHI_SPECIALI_______");
- SendClientMessage(playerid,COLOR_WHITE, "Bianco: Potenza di 10.000.");
- SendClientMessage(playerid,COLOR_YELLOW, "Giallo: Potenza di 20.000.");
- SendClientMessage(playerid,COLOR_PINK, "Rosa: Potenza di 50.000.");
- SendClientMessage(playerid,COLOR_RED, "Rosso: Potenza di 100.000.");
- SendClientMessage(playerid,COLOR_GREEN, "Verde: Potenza di 500.000.");
- SendClientMessage(playerid,COLOR_BLUE, "Blu: Potenza di 1.000.000.");
- SendClientMessage(playerid,COLOR_BLACK, "________________________________________");
- PlaySound(playerid, SOUND_CAMERA_SHOT);
- return 1;
- }
- if(strcmp(cmd,"/potenza",true) == 0)
- {
- new skin = GetPlayerSkin(playerid);
- PlaySound(playerid, SOUND_PROPERTY_PURCHASED);
- if(skin == GOKU0)
- {
- SendClientMessage(playerid,COLOR_WHITE, "_____________________GOKU______________________");
- SendClientMessage(playerid,COLOR_WHITE, "Attacco Speciale: Kamehameha.");
- SendClientMessage(playerid,COLOR_WHITE, "Quantità d'aura massima: 100.");
- SendClientMessage(playerid,COLOR_WHITE, "Velocità di carica aura: 5 unità per click.");
- SendClientMessage(playerid,COLOR_WHITE, "Velocità di rigenerazione: 2 hp per invio.");
- SendClientMessage(playerid,COLOR_WHITE, "Consumo autodistruzione: 50 unità.");
- SendClientMessage(playerid,COLOR_WHITE, "Velocità in volo: 5 metri per invio.");
- SendClientMessage(playerid,COLOR_WHITE, "_______________________________________________");
- return 1;
- }
- if(skin == GOKU1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "_____________________GOKU_SUPER_SAIYAN_____________________");
- SendClientMessage(playerid,COLOR_YELLOW, "Attacco Speciale: Kamehameha Furiosa.");
- SendClientMessage(playerid,COLOR_YELLOW, "Quantità d'aura massima: 105.");
- SendClientMessage(playerid,COLOR_YELLOW, "Velocità di carica aura: 6 unità per click.");
- SendClientMessage(playerid,COLOR_YELLOW, "Velocità di rigenerazione: 4 hp per invio.");
- SendClientMessage(playerid,COLOR_YELLOW, "Consumo autodistruzione: 60 unità.");
- SendClientMessage(playerid,COLOR_YELLOW, "Velocità in volo: 6 metri per invio.");
- SendClientMessage(playerid,COLOR_WHITE, "___________________________________________________________");
- return 1;
- }
- if(skin == GOKU2)
- {
- SendClientMessage(playerid,COLOR_WHITE, "_____________________GOKU_SUPER_SAIYAN_2_____________________");
- SendClientMessage(playerid,COLOR_ORANGE, "Attacco Speciale: Super Kamehameha.");
- SendClientMessage(playerid,COLOR_ORANGE, "Quantità d'aura massima: 110.");
- SendClientMessage(playerid,COLOR_ORANGE, "Velocità di carica aura: 7 unità per click.");
- SendClientMessage(playerid,COLOR_ORANGE, "Velocità di rigenerazione: 6 hp per invio.");
- SendClientMessage(playerid,COLOR_ORANGE, "Consumo autodistruzione: 80 unità.");
- SendClientMessage(playerid,COLOR_ORANGE, "Velocità in volo: 8 metri per invio.");
- SendClientMessage(playerid,COLOR_WHITE, "_____________________________________________________________");
- return 1;
- }
- if(skin == GOKU3)
- {
- SendClientMessage(playerid,COLOR_WHITE, "_____________________GOKU_SUPER_SAIYAN_3_____________________");
- SendClientMessage(playerid,COLOR_RED, "Attacco Speciale: Kamehameha MAX Intensità.");
- SendClientMessage(playerid,COLOR_RED, "Quantità d'aura massima: 120.");
- SendClientMessage(playerid,COLOR_RED, "Velocità di carica aura: 8 unità per click.");
- SendClientMessage(playerid,COLOR_RED, "Velocità di rigenerazione: 8 hp per invio.");
- SendClientMessage(playerid,COLOR_RED, "Consumo autodistruzione: 90 unità.");
- SendClientMessage(playerid,COLOR_RED, "Velocità in volo: 10 metri per invio.");
- SendClientMessage(playerid,COLOR_WHITE, "_____________________________________________________________");
- return 1;
- }
- if(skin == VEGETA0)
- {
- SendClientMessage(playerid,COLOR_WHITE, "_____________________VEGETA______________________");
- SendClientMessage(playerid,COLOR_WHITE, "Attacco Speciale: Cannone Esplosivo.");
- SendClientMessage(playerid,COLOR_WHITE, "Quantità d'aura massima: 100.");
- SendClientMessage(playerid,COLOR_WHITE, "Velocità di carica aura: 5 unità per click.");
- SendClientMessage(playerid,COLOR_WHITE, "Velocità di rigenerazione: 2 hp per invio.");
- SendClientMessage(playerid,COLOR_WHITE, "Consumo autodistruzione: 50 unità.");
- SendClientMessage(playerid,COLOR_WHITE, "Velocità in volo: 5 metri per invio.");
- SendClientMessage(playerid,COLOR_WHITE, "_________________________________________________");
- return 1;
- }
- if(skin == VEGETA1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "_____________________VEGETA_SUPER_SAIYAN_____________________");
- SendClientMessage(playerid,COLOR_YELLOW, "Attacco Speciale: Attacco Big Bang.");
- SendClientMessage(playerid,COLOR_YELLOW, "Quantità d'aura massima: 105.");
- SendClientMessage(playerid,COLOR_YELLOW, "Velocità di carica aura: 6 unità per click.");
- SendClientMessage(playerid,COLOR_YELLOW, "Velocità di rigenerazione: 4 hp per invio.");
- SendClientMessage(playerid,COLOR_YELLOW, "Consumo autodistruzione: 60 unità.");
- SendClientMessage(playerid,COLOR_YELLOW, "Velocità in volo: 6 metri per invio.");
- SendClientMessage(playerid,COLOR_WHITE, "_____________________________________________________________");
- return 1;
- }
- if(skin == VEGETAS)
- {
- SendClientMessage(playerid,COLOR_WHITE, "_____________________SUPER_VEGETA_____________________");
- SendClientMessage(playerid,COLOR_ORANGE, "Attacco Speciale: Lampo Finale.");
- SendClientMessage(playerid,COLOR_ORANGE, "Quantità d'aura massima: 105.");
- SendClientMessage(playerid,COLOR_ORANGE, "Velocità di carica aura: 6 unità per click.");
- SendClientMessage(playerid,COLOR_ORANGE, "Velocità di rigenerazione: 4 hp per invio.");
- SendClientMessage(playerid,COLOR_ORANGE, "Consumo autodistruzione: 60 unità.");
- SendClientMessage(playerid,COLOR_ORANGE, "Velocità in volo: 7 metri per invio.");
- SendClientMessage(playerid,COLOR_WHITE, "______________________________________________________");
- return 1;
- }
- if(skin == VEGETA2)
- {
- SendClientMessage(playerid,COLOR_WHITE, "_____________________VEGETA_SUPER_SAIYAN_2_____________________");
- SendClientMessage(playerid,COLOR_RED, "Attacco Speciale: Lampo Finale.");
- SendClientMessage(playerid,COLOR_RED, "Quantità d'aura massima: 110.");
- SendClientMessage(playerid,COLOR_RED, "Velocità di carica aura: 7 unità per click.");
- SendClientMessage(playerid,COLOR_RED, "Velocità di rigenerazione: 6 hp per invio.");
- SendClientMessage(playerid,COLOR_RED, "Consumo autodistruzione: 80 unità.");
- SendClientMessage(playerid,COLOR_RED, "Velocità in volo: 8 metri per invio.");
- SendClientMessage(playerid,COLOR_WHITE, "_______________________________________________________________");
- return 1;
- }
- if(skin == TRUNKS0)
- {
- SendClientMessage(playerid,COLOR_WHITE, "_____________________TRUNKS______________________");
- SendClientMessage(playerid,COLOR_WHITE, "Attacco Speciale: Masenko.");
- SendClientMessage(playerid,COLOR_WHITE, "Quantità d'aura massima: 100.");
- SendClientMessage(playerid,COLOR_WHITE, "Velocità di carica aura: 5 unità per click.");
- SendClientMessage(playerid,COLOR_WHITE, "Velocità di rigenerazione: 2 hp per invio.");
- SendClientMessage(playerid,COLOR_WHITE, "Consumo autodistruzione: 50 unità.");
- SendClientMessage(playerid,COLOR_WHITE, "Velocità in volo: 5 metri per invio.");
- SendClientMessage(playerid,COLOR_WHITE, "_________________________________________________");
- return 1;
- }
- if(skin == TRUNKS1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "_____________________TRUNKS_SUPER_SAIYAN_____________________");
- SendClientMessage(playerid,COLOR_YELLOW, "Attacco Speciale: Attacco Bruciante.");
- SendClientMessage(playerid,COLOR_YELLOW, "Quantità d'aura massima: 105.");
- SendClientMessage(playerid,COLOR_YELLOW, "Velocità di carica aura: 6 unità per click.");
- SendClientMessage(playerid,COLOR_YELLOW, "Velocità di rigenerazione: 4 hp per invio.");
- SendClientMessage(playerid,COLOR_YELLOW, "Consumo autodistruzione: 60 unità.");
- SendClientMessage(playerid,COLOR_YELLOW, "Velocità in volo: 6 metri per invio.");
- SendClientMessage(playerid,COLOR_WHITE, "_____________________________________________________________");
- return 1;
- }
- if(skin == TRUNKSS)
- {
- SendClientMessage(playerid,COLOR_WHITE, "_____________________SUPER_TRUNKS_____________________");
- SendClientMessage(playerid,COLOR_ORANGE, "Attacco Speciale: Distruttore Letale.");
- SendClientMessage(playerid,COLOR_ORANGE, "Quantità d'aura massima: 105.");
- SendClientMessage(playerid,COLOR_ORANGE, "Velocità di carica aura: 6 unità per click.");
- SendClientMessage(playerid,COLOR_ORANGE, "Velocità di rigenerazione: 4 hp per invio.");
- SendClientMessage(playerid,COLOR_ORANGE, "Consumo autodistruzione: 60 unità.");
- SendClientMessage(playerid,COLOR_ORANGE, "Velocità in volo: 7 metri per invio.");
- SendClientMessage(playerid,COLOR_WHITE, "______________________________________________________");
- return 1;
- }
- if(skin == GOHAN0)
- {
- SendClientMessage(playerid,COLOR_WHITE, "_____________________GOHAN______________________");
- SendClientMessage(playerid,COLOR_WHITE, "Attacco Speciale: Super Masenko.");
- SendClientMessage(playerid,COLOR_WHITE, "Quantità d'aura massima: 100.");
- SendClientMessage(playerid,COLOR_WHITE, "Velocità di carica aura: 5 unità per click.");
- SendClientMessage(playerid,COLOR_WHITE, "Velocità di rigenerazione: 2 hp per invio.");
- SendClientMessage(playerid,COLOR_WHITE, "Consumo autodistruzione: 50 unità.");
- SendClientMessage(playerid,COLOR_WHITE, "Velocità in volo: 5 metri per invio.");
- SendClientMessage(playerid,COLOR_WHITE, "________________________________________________");
- return 1;
- }
- if(skin == GOHAN1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "_____________________GOHAN_SUPER_SAIYAN_____________________");
- SendClientMessage(playerid,COLOR_YELLOW, "Attacco Speciale: Super Kamehameha.");
- SendClientMessage(playerid,COLOR_YELLOW, "Quantità d'aura massima: 105.");
- SendClientMessage(playerid,COLOR_YELLOW, "Velocità di carica aura: 6 unità per click.");
- SendClientMessage(playerid,COLOR_YELLOW, "Velocità di rigenerazione: 4 hp per invio.");
- SendClientMessage(playerid,COLOR_YELLOW, "Consumo autodistruzione: 60 unità.");
- SendClientMessage(playerid,COLOR_YELLOW, "Velocità in volo: 8 metri per invio.");
- SendClientMessage(playerid,COLOR_WHITE, "____________________________________________________________");
- return 1;
- }
- if(skin == GOHAN2)
- {
- SendClientMessage(playerid,COLOR_WHITE, "_____________________GOHAN_SUPER_SAIYAN_2_____________________");
- SendClientMessage(playerid,COLOR_ORANGE, "Attacco Speciale: Kamehameha MAX Intensità.");
- SendClientMessage(playerid,COLOR_ORANGE, "Quantità d'aura massima: 115.");
- SendClientMessage(playerid,COLOR_ORANGE, "Velocità di carica aura: 7 unità per click.");
- SendClientMessage(playerid,COLOR_ORANGE, "Velocità di rigenerazione: 6 hp per invio.");
- SendClientMessage(playerid,COLOR_ORANGE, "Consumo autodistruzione: 80 unità.");
- SendClientMessage(playerid,COLOR_ORANGE, "Velocità in volo: 10 metri per invio.");
- SendClientMessage(playerid,COLOR_WHITE, "______________________________________________________________");
- return 1;
- }
- if(skin == CRILIN)
- {
- SendClientMessage(playerid,COLOR_WHITE, "_____________________CRILIN______________________");
- SendClientMessage(playerid,COLOR_WHITE, "Attacco Speciale: Kamehameha.");
- SendClientMessage(playerid,COLOR_WHITE, "Quantità d'aura massima: 100.");
- SendClientMessage(playerid,COLOR_WHITE, "Velocità di carica aura: 5 unità per click.");
- SendClientMessage(playerid,COLOR_WHITE, "Velocità di rigenerazione: 2 hp per invio.");
- SendClientMessage(playerid,COLOR_WHITE, "Consumo autodistruzione: 50 unità.");
- SendClientMessage(playerid,COLOR_WHITE, "Velocità in volo: 5 metri per invio.");
- SendClientMessage(playerid,COLOR_WHITE, "_________________________________________________");
- return 1;
- }
- if(skin == YAMCHA)
- {
- SendClientMessage(playerid,COLOR_WHITE, "______________________YAMCHA______________________");
- SendClientMessage(playerid,COLOR_WHITE, "Attacco Speciale: Artiglio Del Lupo Esplosivo.");
- SendClientMessage(playerid,COLOR_WHITE, "Quantità d'aura massima: 100.");
- SendClientMessage(playerid,COLOR_WHITE, "Velocità di carica aura: 5 unità per click.");
- SendClientMessage(playerid,COLOR_WHITE, "Velocità di rigenerazione: 2 hp per invio.");
- SendClientMessage(playerid,COLOR_WHITE, "Consumo autodistruzione: 50 unità.");
- SendClientMessage(playerid,COLOR_WHITE, "Velocità in volo: 5 metri per invio.");
- SendClientMessage(playerid,COLOR_WHITE, "__________________________________________________");
- return 1;
- }
- if(skin == TENSHINSHAN)
- {
- SendClientMessage(playerid,COLOR_WHITE, "______________________TENSHINSHAN______________________");
- SendClientMessage(playerid,COLOR_WHITE, "Attacco Speciale: Triplo Raggio.");
- SendClientMessage(playerid,COLOR_WHITE, "Quantità d'aura massima: 100.");
- SendClientMessage(playerid,COLOR_WHITE, "Velocità di carica aura: 5 unità per click.");
- SendClientMessage(playerid,COLOR_WHITE, "Velocità di rigenerazione: 2 hp per invio.");
- SendClientMessage(playerid,COLOR_WHITE, "Consumo autodistruzione: 50 unità.");
- SendClientMessage(playerid,COLOR_WHITE, "Velocità in volo: 5 metri per invio.");
- SendClientMessage(playerid,COLOR_WHITE, "_______________________________________________________");
- return 1;
- }
- if(skin == GELO)
- {
- SendClientMessage(playerid,COLOR_WHITE, "______________________DOTTOR_GELO______________________");
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "Attacco Speciale: Raggio Energetico.");
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "Quantità d'aura massima: 0.");
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "Velocità di carica aura: 0 unità per click.");
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "Velocità di rigenerazione: 1 hp per invio.");
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "Consumo autodistruzione: 0 unità.");
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "Velocità in volo: 6 metri per invio.");
- SendClientMessage(playerid,COLOR_WHITE, "_______________________________________________________");
- return 1;
- }
- if(skin == C19)
- {
- SendClientMessage(playerid,COLOR_WHITE, "______________________CYBORG_N°_19______________________");
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "Attacco Speciale: Raggio Energetico.");
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "Quantità d'aura massima: 0.");
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "Velocità di carica aura: 0 unità per click.");
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "Velocità di rigenerazione: 1 hp per invio.");
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "Consumo autodistruzione: 0 unità.");
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "Velocità in volo: 6 metri per invio.");
- SendClientMessage(playerid,COLOR_WHITE, "________________________________________________________");
- return 1;
- }
- if(skin == C18)
- {
- SendClientMessage(playerid,COLOR_WHITE, "______________________CYBORG_N°_18______________________");
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "Attacco Speciale: Raggio Energetico.");
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "Quantità d'aura massima: 0.");
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "Velocità di carica aura: 0 unità per click.");
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "Velocità di rigenerazione: 1 hp per invio.");
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "Consumo autodistruzione: 0 unità.");
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "Velocità in volo: 6 metri per invio.");
- SendClientMessage(playerid,COLOR_WHITE, "________________________________________________________");
- return 1;
- }
- if(skin == C17)
- {
- SendClientMessage(playerid,COLOR_WHITE, "______________________CYBORG_N°_17______________________");
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "Attacco Speciale: Sfere Energetiche.");
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "Quantità d'aura massima: 0.");
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "Velocità di carica aura: 0 unità per click.");
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "Velocità di rigenerazione: 1 hp per invio.");
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "Consumo autodistruzione: 0 unità.");
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "Velocità in volo: 6 metri per invio.");
- SendClientMessage(playerid,COLOR_WHITE, "________________________________________________________");
- return 1;
- }
- if(skin == C16)
- {
- SendClientMessage(playerid,COLOR_WHITE, "______________________CYBORG_N°_16______________________");
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "Attacco Speciale: Lanciarazzi Incorporato.");
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "Quantità d'aura massima: 0.");
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "Velocità di carica aura: 0 unità per click.");
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "Velocità di rigenerazione: 1 hp per invio.");
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "Consumo autodistruzione: 0 unità.");
- SendClientMessage(playerid,COLOR_LIGHTBLUE, "Velocità in volo: 6 metri per invio.");
- SendClientMessage(playerid,COLOR_WHITE, "________________________________________________________");
- return 1;
- }
- if(skin == SATAN)
- {
- SendClientMessage(playerid,COLOR_WHITE, "______________________MISTER_SATAN______________________");
- SendClientMessage(playerid,COLOR_VIOLET, "Attacco Speciale: Il Campione.");
- SendClientMessage(playerid,COLOR_VIOLET, "Quantità d'aura massima: 70.");
- SendClientMessage(playerid,COLOR_VIOLET, "Velocità di carica aura: 3 unità per click.");
- SendClientMessage(playerid,COLOR_VIOLET, "Velocità di rigenerazione: 1 hp per invio.");
- SendClientMessage(playerid,COLOR_VIOLET, "Consumo autodistruzione: 20 unità.");
- SendClientMessage(playerid,COLOR_VIOLET, "Velocità in volo: 3 metri per invio.");
- SendClientMessage(playerid,COLOR_WHITE, "________________________________________________________");
- return 1;
- }
- if(skin == VIDEL)
- {
- SendClientMessage(playerid,COLOR_WHITE, "______________________VIDEL______________________");
- SendClientMessage(playerid,COLOR_VIOLET, "Attacco Speciale: Gran Bomba D'Aura.");
- SendClientMessage(playerid,COLOR_VIOLET, "Quantità d'aura massima: 90.");
- SendClientMessage(playerid,COLOR_VIOLET, "Velocità di carica aura: 4 unità per click.");
- SendClientMessage(playerid,COLOR_VIOLET, "Velocità di rigenerazione: 1 hp per invio.");
- SendClientMessage(playerid,COLOR_VIOLET, "Consumo autodistruzione: 40 unità.");
- SendClientMessage(playerid,COLOR_VIOLET, "Velocità in volo: 4 metri per invio.");
- SendClientMessage(playerid,COLOR_WHITE, "_________________________________________________");
- return 1;
- }
- if(skin == VEGEKU0)
- {
- SendClientMessage(playerid,COLOR_WHITE, "______________________VEGEKU______________________");
- SendClientMessage(playerid,COLOR_GREEN, "Attacco Speciale: Lampo Finale.");
- SendClientMessage(playerid,COLOR_GREEN, "Quantità d'aura massima: 125.");
- SendClientMessage(playerid,COLOR_GREEN, "Velocità di carica aura: 8 unità per click.");
- SendClientMessage(playerid,COLOR_GREEN, "Velocità di rigenerazione: 8 hp per invio.");
- SendClientMessage(playerid,COLOR_GREEN, "Consumo autodistruzione: 90 unità.");
- SendClientMessage(playerid,COLOR_GREEN, "Velocità in volo: 10 metri per invio.");
- SendClientMessage(playerid,COLOR_WHITE, "__________________________________________________");
- return 1;
- }
- if(skin == VEGEKU1)
- {
- SendClientMessage(playerid,COLOR_WHITE, "______________________SUPER_VEGEKU______________________");
- SendClientMessage(playerid,COLOR_BLUE, "Attacco Speciale: Kamehameha Finale.");
- SendClientMessage(playerid,COLOR_BLUE, "Quantità d'aura massima: 150.");
- SendClientMessage(playerid,COLOR_BLUE, "Velocità di carica aura: 10 unità per click.");
- SendClientMessage(playerid,COLOR_BLUE, "Velocità di rigenerazione: 10 hp per invio.");
- SendClientMessage(playerid,COLOR_BLUE, "Consumo autodistruzione: 100 unità.");
- SendClientMessage(playerid,COLOR_BLUE, "Velocità in volo: 15 metri per invio.");
- SendClientMessage(playerid,COLOR_WHITE, "________________________________________________________");
- return 1;
- }
- if(skin == GOGETA)
- {
- SendClientMessage(playerid,COLOR_WHITE, "______________________SUPER_GOGETA______________________");
- SendClientMessage(playerid,COLOR_BLUE, "Attacco Speciale: Kamehameha Big Bang.");
- SendClientMessage(playerid,COLOR_BLUE, "Quantità d'aura massima: 150.");
- SendClientMessage(playerid,COLOR_BLUE, "Velocità di carica aura: 10 unità per click.");
- SendClientMessage(playerid,COLOR_BLUE, "Velocità di rigenerazione: 10 hp per invio.");
- SendClientMessage(playerid,COLOR_BLUE, "Consumo autodistruzione: 100 unità.");
- SendClientMessage(playerid,COLOR_BLUE, "Velocità in volo: 15 metri per invio.");
- SendClientMessage(playerid,COLOR_WHITE, "________________________________________________________");
- return 1;
- }
- PlaySound(playerid, SOUND_AMMUNATION_BUY_WEAPON_DENIED);
- return SendClientMessage(playerid,COLOR_YELLOW,"ERRORE: Personaggio non valido. Avvisare programmatore.");
- }
- if(strcmp(cmd, "/kamikaze", true) == 0 || strcmp(cmd, "/kill", true) == 0 )
- {
- new string[256];
- new skin = GetPlayerSkin(playerid);
- new name[MAX_PLAYER_NAME];
- new Float:X, Float:Y, Float:Z;
- new aura = GetPlayerMoney(playerid);
- GetPlayerPos(playerid,X,Y,Z);
- GetPlayerName(playerid,name,sizeof(name));
- PlaySound(playerid, SOUND_RACE_GO);
- if(skin == GOKU0 || skin == VEGETA0 || skin == TRUNKS0 || skin == GOHAN0 || skin == CRILIN || skin == TENSHINSHAN || skin == YAMCHA)
- {
- if(aura < 50) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- GivePlayerMoney(playerid,-50);
- CreateExplosion(X,Y,Z,7,50);
- CreateExplosion(X+10,Y,Z,7,50);
- CreateExplosion(X-10,Y,Z,7,50);
- CreateExplosion(X,Y+10,Z,7,50);
- CreateExplosion(X,Y-10,Z,7,50);
- CreateExplosion(X,Y,Z+10,7,50);
- CreateExplosion(X,Y,Z+20,7,50);
- CreateExplosion(X,Y,Z+30,7,50);
- Kill(playerid);
- format(string,sizeof(string),"Yaaaaaaaaa!");
- SendPlayerMessageToAll(playerid,string);
- return 1;
- }
- else if(skin == GOKU1 || skin == VEGETA1 || skin == TRUNKS1 || skin == GOHAN1 || skin == VEGETAS || skin == TRUNKSS)
- {
- if(aura < 60) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- GivePlayerMoney(playerid,-60);
- CreateExplosion(X,Y+2,Z,7,60);
- CreateExplosion(X,Y,Z+10,7,50);
- CreateExplosion(X,Y,Z+20,7,50);
- CreateExplosion(X,Y,Z+30,7,50);
- Kill(playerid);
- format(string,sizeof(string),"Eeeeaaaaah!");
- SendPlayerMessageToAll(playerid,string);
- return 1;
- }
- else if(IsPlayerAnAndroid(playerid))
- {
- CreateExplosion(X,Y,Z,7,80);
- CreateExplosion(X,Y,Z+10,7,50);
- CreateExplosion(X,Y,Z+20,7,50);
- CreateExplosion(X,Y,Z+30,7,50);
- Kill(playerid);
- format(string,sizeof(string),"Autodistruzione tra 0 secondi!");
- SendPlayerMessageToAll(playerid,string);
- return 1;
- }
- else if(skin == GOKU2 || skin == GOHAN2)
- {
- if(aura < 80) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- GivePlayerMoney(playerid,-80);
- CreateExplosion(X,Y,Z,7,80);
- CreateExplosion(X,Y,Z+10,7,50);
- CreateExplosion(X,Y,Z+20,7,50);
- CreateExplosion(X,Y,Z+30,7,50);
- Kill(playerid);
- format(string,sizeof(string),"Eaaaaah!");
- SendPlayerMessageToAll(playerid,string);
- return 1;
- }
- else if(skin == VEGETA2)
- {
- if(aura < 80) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- GivePlayerMoney(playerid,-80);
- CreateExplosion(X,Y,Z,7,80);
- CreateExplosion(X,Y,Z+10,7,50);
- CreateExplosion(X,Y,Z+20,7,50);
- CreateExplosion(X,Y,Z+30,7,50);
- Kill(playerid);
- format(string,sizeof(string),"Trunks, Kakaroth, Bulma, Addio!");
- SendPlayerMessageToAll(playerid,string);
- return 1;
- }
- else if(skin == GOKU3 || skin == VEGEKU0)
- {
- if(aura < 90) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- GivePlayerMoney(playerid,-90);
- CreateExplosion(X,Y,Z,7,100);
- CreateExplosion(X,Y,Z+10,7,50);
- CreateExplosion(X,Y,Z+20,7,50);
- CreateExplosion(X,Y,Z+30,7,50);
- Kill(playerid);
- format(string,sizeof(string),"Addio!!!");
- SendPlayerMessageToAll(playerid,string);
- return 1;
- }
- else if(skin == SATAN)
- {
- if(aura < 20) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- GivePlayerMoney(playerid,-20);
- CreateExplosion(X,Y,Z,11,10);
- Kill(playerid);
- format(string,sizeof(string),"Saluta il campione mondiale!");
- SendPlayerMessageToAll(playerid,string);
- return 1;
- }
- else if(skin == VIDEL)
- {
- if(aura < 40) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- GivePlayerMoney(playerid,-40);
- CreateExplosion(X,Y,Z,11,30);
- Kill(playerid);
- format(string,sizeof(string),"Devo proprio!! Aaaaaa!");
- SendPlayerMessageToAll(playerid,string);
- return 1;
- }
- else if(skin == VEGEKU1 || skin == GOGETA)
- {
- if(aura < 100) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- GivePlayerMoney(playerid,-100);
- CreateExplosion(X,Y,Z,11,120);
- CreateExplosion(X,Y,Z+10,7,60);
- CreateExplosion(X,Y,Z+20,7,80);
- CreateExplosion(X,Y,Z+30,7,100);
- format(string,sizeof(string),"Addio!! Forse io riusciro a sopravvivere!");
- SendPlayerMessageToAll(playerid,string);
- return 1;
- }
- PlaySound(playerid, SOUND_AMMUNATION_BUY_WEAPON_DENIED);
- return SendClientMessage(playerid,COLOR_YELLOW,"ERRORE: Personaggio non valido. Avvisare programmatore.");
- }
- if(strfind(cmd,"/rig", true) != null)
- {
- new Float:health;
- new skin = GetPlayerSkin(playerid);
- new Float:X, Float:Y, Float:Z;
- new aura = GetPlayerMoney(playerid);
- GetPlayerPos(playerid,X,Y,Z);
- GetPlayerHealth(playerid, health);
- if(health > PlayerInfo[playerid][Stats][SaluteMax][skin]) return SendClientMessage(playerid,COLOR_YELLOW,"Hai gia la vita gia al massimo.");
- if(skin == GOKU0 || skin == VEGETA0 || skin == TRUNKS0 || skin == GOHAN0 || skin == CRILIN || skin == YAMCHA || skin == TENSHINSHAN)
- {
- if(aura < 5) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- SetPlayerHealth(playerid,health+2);
- GivePlayerMoney(playerid,-5);
- ApplyAnimationEx(playerid,"FOOD","EAT_Pizza",4.1,0,1,1,1,1);
- ShowAttackName(playerid,"~w~Recupero Salute");
- return 1;
- }
- else if(skin == GOKU1 || skin == VEGETA1 || skin == TRUNKS1 || skin == GOHAN1 || skin == VEGETAS || skin == TRUNKSS)
- {
- if(aura < 5) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- SetPlayerHealth(playerid,health+4);
- GivePlayerMoney(playerid,-5);
- ApplyAnimationEx(playerid,"FOOD","EAT_Pizza",4.1,0,1,1,1,1);
- ShowAttackName(playerid,"~w~Recupero Salute Dei SSJ");
- return 1;
- }
- else if(skin == GOKU2 || skin == VEGETA2 || skin == GOHAN2)
- {
- if(aura < 5) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- SetPlayerHealth(playerid,health+6);
- GivePlayerMoney(playerid,-5);
- ApplyAnimationEx(playerid,"FOOD","EAT_Pizza",4.1,0,1,1,1,1);
- ShowAttackName(playerid,"~w~Recupero Salute Dei SSJ2");
- return 1;
- }
- else if(skin == GOKU3 || skin == VEGEKU0)
- {
- if(aura < 5) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- SetPlayerHealth(playerid,health+8);
- GivePlayerMoney(playerid,-5);
- ApplyAnimationEx(playerid,"FOOD","EAT_Pizza",4.1,0,1,1,1,1);
- ShowAttackName(playerid,"~w~Super Recupero Salute");
- return 1;
- }
- else if(skin == VEGEKU1 || skin == GOGETA)
- {
- if(aura < 5) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- SetPlayerHealth(playerid,health+10);
- GivePlayerMoney(playerid,-5);
- ApplyAnimationEx(playerid,"FOOD","EAT_Pizza",4.1,0,1,1,1,1);
- ShowAttackName(playerid,"~w~Iper Recupero Salute");
- return 1;
- }
- else if(skin == SATAN || skin == VIDEL)
- {
- if(aura < 5) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- SetPlayerHealth(playerid,health+1);
- GivePlayerMoney(playerid,-5);
- ApplyAnimationEx(playerid,"FOOD","EAT_Pizza",4.1,0,1,1,1,1);
- ShowAttackName(playerid,"~w~Panino al prosciutto");
- return 1;
- }
- else if(IsPlayerAnAndroid(playerid))
- {
- SetPlayerHealth(playerid,health+1);
- ShowAttackName(playerid,"~w~Dispositivo Rigenerativo");
- return 1;
- }
- PlaySound(playerid, SOUND_AMMUNATION_BUY_WEAPON_DENIED);
- return SendClientMessage(playerid,COLOR_YELLOW,"ERRORE: Personaggio non valido. Avvisare programmatore.");
- }
- if(strfind(cmd,"/fus", true) != null)
- {
- new team = GetPlayerTeam(playerid);
- new string[256];
- new name[MAX_PLAYER_NAME];
- new aura = GetPlayerMoney(playerid);
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(playerid,X,Y,Z);
- GetPlayerName(playerid,name,sizeof(name));
- if(team == 0)
- {
- if(GetPlayerSkin(playerid) == GOGETA) return SendClientMessage(playerid,COLOR_YELLOW,"La fusione scade quando muori.");
- if(GetPlayerSkin(playerid) == VEGEKU0
- || GetPlayerSkin(playerid) == VEGEKU1) return SendClientMessage(playerid,COLOR_YELLOW,"Non puoi usare la danza della fusione mentre sei gia fuso con gli orecchini potara.");
- if(aura < 80) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Fuuuuu....siò..nè!");
- SendPlayerMessageToAll(playerid,string);
- format(string,sizeof(string),"Sono colui che ti sconfiggerà!!");
- SendPlayerMessageToAll(playerid,string);
- CreateExplosion(X,Y,Z+5,11,3);
- SetPlayerSkin(playerid,GOGETA);
- SetPlayerColor(playerid,COLOR_BLUE);
- GivePlayerMoney(playerid,-80);
- ApplyAnimationEx(playerid,"DAM_JUMP","Jump_Roll",4.1,0,1,1,1,1);
- GameTextForPlayer(playerid,"Super Gogeta",1000,5);
- Delete3DTextLabel(Name3DText[playerid]);
- Name3DText[playerid] = Create3DTextLabel("SUPER GOGETA", COLOR_BLUE, X, Y, Z+0.2, 20, 0, 0);
- Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);
- PlaySound(playerid, SOUND_RACE_GO);
- ShowAttackName(playerid,"~b~Super Gogeta");
- return 1;
- }
- if(team == 1)
- {
- if(GetPlayerSkin(playerid) == VEGEKU0
- || GetPlayerSkin(playerid) == VEGEKU1) return SendClientMessage(playerid,COLOR_YELLOW,"La fusione scade quando muori.");
- if(GetPlayerSkin(playerid) == GOGETA) return SendClientMessage(playerid,COLOR_YELLOW,"Non puoi fonderti con gli orecchini potara, sei gia fuso con la danza della fusione!");
- if(aura < 40) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Avanti Vegeta, metti questo orecchino!!");
- SendPlayerMessageToAll(playerid,string);
- format(string,sizeof(string),"Hey!!");
- SendPlayerMessageToAll(playerid,string);
- CreateExplosion(X,Y,Z+5,11,3);
- SetPlayerSkin(playerid,VEGEKU0);
- SetPlayerColor(playerid,COLOR_GREEN);
- GivePlayerMoney(playerid,-40);
- ApplyAnimationEx(playerid,"DAM_JUMP","Jump_Roll",4.1,0,1,1,1,1);
- GameTextForPlayer(playerid,"Vegeku",1000,5);
- Name3DText[playerid] = Create3DTextLabel("VEGEKU", COLOR_GREEN, X, Y, Z+0.2, 20, 0, 0);
- Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);
- PlaySound(playerid, SOUND_RACE_GO);
- ShowAttackName(playerid,"~g~Vegeku");
- return 1;
- }
- return SendClientMessage(playerid,COLOR_RED,"Solo Goku e Vegeta possono fondersi.");
- }
- if(strcmp(cmd,"/tavolaagg", true) == 0)
- {
- new skin = GetPlayerSkin(playerid);
- new string2[256];
- new name2[MAX_PLAYER_NAME];
- GetPlayerName(playerid,name2,sizeof(name2));
- format(string2, sizeof(string2), "Tavole/%s.%d.ini", name2,skin);
- if(INI_Exist(string2))
- {
- INI_Open(string2);
- PlayerInfo[playerid][Stats][Stile][skin] = INI_ReadInt("Stile");
- PlayerInfo[playerid][Stats][Attacco][skin] = INI_ReadInt("Attacco");
- PlayerInfo[playerid][Stats][Velocita][skin] = INI_ReadInt("Velocita");
- PlayerInfo[playerid][Stats][AuraMax][skin] = INI_ReadInt("AuraMax");
- PlayerInfo[playerid][Stats][SaluteMax][skin] = INI_ReadInt("SaluteMax");
- PlayerInfo[playerid][Stats][AuraSize][skin] = INI_ReadFloat("AuraSize");
- INI_Save();
- INI_Close();
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Questo personaggio è personalizzato. Per cambiare la sua tavola vai sul menu del salone.");
- return 1;
- }
- return SendClientMessage(playerid,COLOR_LIGHTBLUE,"Questo personaggio non è personalizzato. Se vuoi farlo vai sul menu del salone.");
- }
- if(strfind(cmd,"/tra", true) != null)
- {
- new skinid = GetPlayerSkin(playerid);
- new string[256];
- new name[MAX_PLAYER_NAME];
- new aura = GetPlayerMoney(playerid);
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(playerid,X,Y,Z);
- GetPlayerName(playerid,name,sizeof(name));
- PlaySound(playerid, SOUND_RACE_GO);
- if(skinid == GOKU0)
- {
- if(aura < 30 && GetPlayerInterior(playerid) != INTERIOR_SALONE) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- Delete3DTextLabel(Name3DText[playerid]);
- format(string,sizeof(string),"Super Saiyan!!!");
- SetPlayerSkin(playerid,GOKU1);
- CreateExplosion(X,Y,Z+5,11,3);
- SetPlayerColor(playerid,COLOR_YELLOW);
- if(GetPlayerInterior(playerid) != 3)GivePlayerMoney(playerid,-30);
- SendPlayerMessageToAll(playerid,string);
- Name3DText[playerid] = Create3DTextLabel("GOKU SSJ", COLOR_WHITE, X, Y, Z+0.2, 20, 0, 0);
- Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);
- ShowAttackName(playerid,"~y~Goku Super Saiyan");
- OnPlayerCommandText(playerid,"/tavolaagg");
- return 1;
- }
- else if(skinid == GOKU1)
- {
- if(aura < 40 && GetPlayerInterior(playerid) != INTERIOR_SALONE) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- Delete3DTextLabel(Name3DText[playerid]);
- format(string,sizeof(string),"Preparati alla seconda trasformazione!!!");
- SetPlayerSkin(playerid,GOKU2);
- CreateExplosion(X,Y,Z+5,11,3);
- SetPlayerColor(playerid,COLOR_ORANGE);
- if(GetPlayerInterior(playerid) != 3)GivePlayerMoney(playerid,-40);
- SendPlayerMessageToAll(playerid,string);
- Delete3DTextLabel(Name3DText[playerid]);
- Name3DText[playerid] = Create3DTextLabel("GOKU SSJ2", COLOR_ORANGE, X, Y, Z+0.2, 20, 0, 0);
- Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);
- ShowAttackName(playerid,"~p~Goku Super Saiyan 2");
- OnPlayerCommandText(playerid,"/tavolaagg");
- return 1;
- }
- else if(skinid == GOKU2)
- {
- if(aura < 50 && GetPlayerInterior(playerid) != INTERIOR_SALONE) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- Delete3DTextLabel(Name3DText[playerid]);
- format(string,sizeof(string),"Non hai speranze contro la terza forma di super Saiyan!!!");
- SetPlayerSkin(playerid,GOKU3);
- CreateExplosion(X,Y,Z+5,11,3);
- SetPlayerColor(playerid,COLOR_RED);
- if(GetPlayerInterior(playerid) != 3) GivePlayerMoney(playerid,-50);
- SendPlayerMessageToAll(playerid,string);
- Name3DText[playerid] = Create3DTextLabel("GOKU SSJ3", COLOR_RED, X, Y, Z+0.2, 20, 0, 0);
- Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);
- ShowAttackName(playerid,"~r~Goku Super Saiyan 3");
- OnPlayerCommandText(playerid,"/tavolaagg");
- return 1;
- }
- else if(skinid == GOKU3)
- {
- format(string,sizeof(string),"Mi e finita l'aura!!");
- Delete3DTextLabel(Name3DText[playerid]);
- SetPlayerSkin(playerid,GOKU0);
- CreateExplosion(X,Y,Z+5,11,3);
- SetPlayerColor(playerid,COLOR_WHITE);
- if(GetPlayerInterior(playerid) != 3) ResetPlayerMoney(playerid);
- SendPlayerMessageToAll(playerid,string);
- Name3DText[playerid] = Create3DTextLabel("GOKU", COLOR_WHITE, X, Y, Z+0.2, 20, 0, 0);
- Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);
- ShowAttackName(playerid,"~w~Goku");
- OnPlayerCommandText(playerid,"/tavolaagg");
- return 1;
- }
- else if(skinid == VEGETA0)
- {
- if(aura < 30 && GetPlayerInterior(playerid) != INTERIOR_SALONE) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- Delete3DTextLabel(Name3DText[playerid]);
- format(string,sizeof(string),"Sono un super Saiyan!!");
- SetPlayerSkin(playerid,VEGETA1);
- CreateExplosion(X,Y,Z+5,11,3);
- SetPlayerColor(playerid,COLOR_YELLOW);
- if(GetPlayerInterior(playerid) != 3) GivePlayerMoney(playerid,-30);
- SendPlayerMessageToAll(playerid,string);
- Name3DText[playerid] = Create3DTextLabel("VEGETA SSJ", COLOR_YELLOW, X, Y, Z+0.2, 20, 0, 0);
- Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);
- ShowAttackName(playerid,"~y~Vegeta Super Saiyan");
- OnPlayerCommandText(playerid,"/tavolaagg");
- return 1;
- }
- else if(skinid == VEGETA1)
- {
- if(aura < 35 && GetPlayerInterior(playerid) != INTERIOR_SALONE) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- Delete3DTextLabel(Name3DText[playerid]);
- format(string,sizeof(string),"Ora sono Super Vegeta!!");
- SetPlayerSkin(playerid,VEGETAS);
- CreateExplosion(X,Y,Z+5,11,3);
- SetPlayerColor(playerid,COLOR_ORANGE);
- if(GetPlayerInterior(playerid) != 3) GivePlayerMoney(playerid,-35);
- SendPlayerMessageToAll(playerid,string);
- Name3DText[playerid] = Create3DTextLabel("SUPER VEGETA", COLOR_ORANGE, X, Y, Z+0.2, 20, 0, 0);
- Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);
- ShowAttackName(playerid,"~p~Super Vegeta");
- OnPlayerCommandText(playerid,"/tavolaagg");
- return 1;
- }
- else if(skinid == VEGETAS)
- {
- if(aura < 40 && GetPlayerInterior(playerid) != INTERIOR_SALONE) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- Delete3DTextLabel(Name3DText[playerid]);
- format(string,sizeof(string),"Bene, eccomi che arrivo!!");
- SetPlayerSkin(playerid,VEGETA2);
- CreateExplosion(X,Y,Z+5,11,3);
- SetPlayerColor(playerid,COLOR_RED);
- if(GetPlayerInterior(playerid) != 3) GivePlayerMoney(playerid,-40);
- SendPlayerMessageToAll(playerid,string);
- Name3DText[playerid] = Create3DTextLabel("VEGETA SSJ2", COLOR_RED, X, Y, Z+0.2, 20, 0, 0);
- Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);
- ShowAttackName(playerid,"~r~Vegeta Super Saiyan 2");
- OnPlayerCommandText(playerid,"/tavolaagg");
- return 1;
- }
- else if(skinid == VEGETA2)
- {
- format(string,sizeof(string),"Oh no!!");
- Delete3DTextLabel(Name3DText[playerid]);
- SetPlayerSkin(playerid,VEGETA0);
- CreateExplosion(X,Y,Z+5,11,3);
- SetPlayerColor(playerid,COLOR_WHITE);
- if(GetPlayerInterior(playerid) != 3) ResetPlayerMoney(playerid);
- SendPlayerMessageToAll(playerid,string);
- Name3DText[playerid] = Create3DTextLabel("VEGETA", COLOR_WHITE, X, Y, Z+0.2, 20, 0, 0);
- Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);
- ShowAttackName(playerid,"~w~Vegeta");
- OnPlayerCommandText(playerid,"/tavolaagg");
- return 1;
- }
- else if(skinid == TRUNKS0)
- {
- if(aura < 30 && GetPlayerInterior(playerid) != INTERIOR_SALONE) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- Delete3DTextLabel(Name3DText[playerid]);
- format(string,sizeof(string),"Combattiamo!!!");
- SetPlayerSkin(playerid,TRUNKS1);
- CreateExplosion(X,Y,Z+5,11,3);
- SetPlayerColor(playerid,COLOR_YELLOW);
- if(GetPlayerInterior(playerid) != 3) GivePlayerMoney(playerid,-30);
- SendPlayerMessageToAll(playerid,string);
- Name3DText[playerid] = Create3DTextLabel("TRUNKS SSJ", COLOR_YELLOW, X, Y, Z+0.2, 20, 0, 0);
- Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);
- ShowAttackName(playerid,"~y~Trunks Super Saiyan");
- OnPlayerCommandText(playerid,"/tavolaagg");
- return 1;
- }
- else if(skinid == TRUNKS1)
- {
- if(aura < 20 && GetPlayerInterior(playerid) != INTERIOR_SALONE) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- Delete3DTextLabel(Name3DText[playerid]);
- format(string,sizeof(string),"Yaaah ho superato il limite dei super saiyan!!");
- SetPlayerSkin(playerid,TRUNKSS);
- CreateExplosion(X,Y,Z+5,11,3);
- SetPlayerColor(playerid,COLOR_ORANGE);
- if(GetPlayerInterior(playerid) != 3) GivePlayerMoney(playerid,-20);
- SendPlayerMessageToAll(playerid,string);
- Name3DText[playerid] = Create3DTextLabel("SUPER TRUNKS", COLOR_ORANGE, X, Y, Z+0.2, 20, 0, 0);
- Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);
- ShowAttackName(playerid,"~p~Super Trunks");
- OnPlayerCommandText(playerid,"/tavolaagg");
- return 1;
- }
- else if(skinid == TRUNKSS)
- {
- format(string,sizeof(string),"Ma cosa mi sta succedendo!");
- Delete3DTextLabel(Name3DText[playerid]);
- SetPlayerSkin(playerid,TRUNKS0);
- CreateExplosion(X,Y,Z+5,11,3);
- SetPlayerColor(playerid,COLOR_WHITE);
- if(GetPlayerInterior(playerid) != 3) ResetPlayerMoney(playerid);
- SendPlayerMessageToAll(playerid,string);
- Name3DText[playerid] = Create3DTextLabel("TRUNKS", COLOR_WHITE, X, Y, Z+0.2, 20, 0, 0);
- Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);
- ShowAttackName(playerid,"~w~Trunks");
- OnPlayerCommandText(playerid,"/tavolaagg");
- return 1;
- }
- else if(skinid == GOHAN0)
- {
- if(aura < 30 && GetPlayerInterior(playerid) != INTERIOR_SALONE) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- Delete3DTextLabel(Name3DText[playerid]);
- format(string,sizeof(string),"Preparati alla trasformazione in super Saiyan!!!");
- SetPlayerSkin(playerid,GOHAN1);
- CreateExplosion(X,Y,Z+5,11,3);
- SetPlayerColor(playerid,COLOR_YELLOW);
- if(GetPlayerInterior(playerid) != 3) GivePlayerMoney(playerid,-30);
- SendPlayerMessageToAll(playerid,string);
- Name3DText[playerid] = Create3DTextLabel("GOHAN SSJ", COLOR_YELLOW, X, Y, Z+0.2, 20, 0, 0);
- Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);
- ShowAttackName(playerid,"~y~Gohan Super Saiyan");
- OnPlayerCommandText(playerid,"/tavolaagg");
- return 1;
- }
- else if(skinid == GOHAN1)
- {
- if(aura < 20 && GetPlayerInterior(playerid) != INTERIOR_SALONE) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- Delete3DTextLabel(Name3DText[playerid]);
- format(string,sizeof(string),"Sono un super saiyan tra i super saiyan!!!");
- SetPlayerSkin(playerid,GOHAN2);
- CreateExplosion(X,Y,Z+5,11,3);
- SetPlayerColor(playerid,COLOR_ORANGE);
- if(GetPlayerInterior(playerid) != 3) GivePlayerMoney(playerid,-20);
- SendPlayerMessageToAll(playerid,string);
- Name3DText[playerid] = Create3DTextLabel("GOHAN SSJ2", COLOR_ORANGE, X, Y, Z+0.2, 20, 0, 0);
- Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);
- ShowAttackName(playerid,"~p~Gohan Super Saiyan 2");
- OnPlayerCommandText(playerid,"/tavolaagg");
- return 1;
- }
- else if(skinid == GOHAN2)
- {
- format(string,sizeof(string),"Oh no! Mi è finita l'energia!");
- Delete3DTextLabel(Name3DText[playerid]);
- SetPlayerSkin(playerid,GOHAN0);
- CreateExplosion(X,Y,Z+5,11,3);
- SetPlayerColor(playerid,COLOR_WHITE);
- if(GetPlayerInterior(playerid) != INTERIOR_SALONE) ResetPlayerMoney(playerid);
- SendPlayerMessageToAll(playerid,string);
- Name3DText[playerid] = Create3DTextLabel("GOHAN", COLOR_WHITE, X, Y, Z+0.2, 20, 0, 0);
- Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);
- ShowAttackName(playerid,"~w~Gohan");
- OnPlayerCommandText(playerid,"/tavolaagg");
- return 1;
- }
- else if(skinid == VEGEKU0)
- {
- if(aura < 60 && GetPlayerInterior(playerid) != INTERIOR_SALONE) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- Delete3DTextLabel(Name3DText[playerid]);
- format(string,sizeof(string),"Dai il benvenuto a Super Vegeku!");
- SetPlayerSkin(playerid,VEGEKU1);
- CreateExplosion(X,Y,Z+5,11,3);
- SetPlayerColor(playerid,COLOR_BLUE);
- if(GetPlayerInterior(playerid) != INTERIOR_SALONE) GivePlayerMoney(playerid,-60);
- SendPlayerMessageToAll(playerid,string);
- Name3DText[playerid] = Create3DTextLabel("SUPER VEGEKU", COLOR_BLUE, X, Y, Z+0.2, 20, 0, 0);
- Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);
- ShowAttackName(playerid,"~b~Super Vegeku");
- OnPlayerCommandText(playerid,"/tavolaagg");
- return 1;
- }
- else if(skinid == VEGEKU1)
- {
- format(string,sizeof(string),"L'effetto di potenza della fusione sembra diminuire!");
- Delete3DTextLabel(Name3DText[playerid]);
- SetPlayerSkin(playerid,VEGEKU0);
- CreateExplosion(X,Y,Z+5,11,3);
- SetPlayerColor(playerid,COLOR_GREEN);
- if(GetPlayerInterior(playerid) != INTERIOR_SALONE) ResetPlayerMoney(playerid);
- SendPlayerMessageToAll(playerid,string);
- Name3DText[playerid] = Create3DTextLabel("VEGEKU", COLOR_GREEN, X, Y, Z+0.2, 20, 0, 0);
- Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);
- ShowAttackName(playerid,"~g~Vegeku");
- OnPlayerCommandText(playerid,"/tavolaagg");
- return 1;
- }
- return SendClientMessage(playerid,COLOR_YELLOW,"Questo personaggio non è in grado di trasformarsi.");
- }
- if(strfind(cmd,"/en", true) != null)
- {
- new string[256];
- new name[MAX_PLAYER_NAME];
- new skin = GetPlayerSkin(playerid);
- new Float:X, Float:Y, Float:Z;
- new Float:health;
- GetPlayerPos(playerid,X,Y,Z);
- GetPlayerName(playerid,name,sizeof(name));
- for(new i=0;i<MAX_PLAYERS;i++)
- {
- if(skin == GELO || skin == C19)
- {
- if(IsPlayerNearPlayer(2,playerid,i) && i != playerid)
- {
- format(string,sizeof(string),"Prenderò la tua energia!");
- SendPlayerMessageToAll(playerid,string);
- GetPlayerHealth(playerid, health);
- SetPlayerHealth(playerid,health+25);
- GetPlayerHealth(i, health);
- SetPlayerHealth(i,health-25);
- PlaySound(playerid, SOUND_RACE_GO);
- return 1;
- }
- return GameTextForPlayer(playerid,"Non sei vicino a nessuno",1000,5);
- }
- }
- return SendClientMessage(playerid,COLOR_YELLOW,"Solo il Dottor Gelo e il Cyborg N°19 possono assorbire l'energia.");
- }
- if(strfind(cmd,"/att", true) != null)
- {
- new string[256];
- new name[MAX_PLAYER_NAME];
- new skin = GetPlayerSkin(playerid);
- new Float:X, Float:Y, Float:Z;
- new aura = GetPlayerMoney(playerid);
- GetPlayerPos(playerid,X,Y,Z);
- GetPlayerName(playerid,name,sizeof(name));
- PlaySound(playerid, SOUND_RACE_GO);
- if(GetTickCount() - TickCount[playerid] < 10000) return GameTextForPlayer(playerid,"~r~Devi aspettare 10 secondi tra un attacco e l'altro.",2000,5);
- TickCount[playerid] = GetTickCount();
- if(PlayerInfo[playerid][Stats][Attacco][skin] != NORMAL_ATTACK_SCRIPT)
- {
- if(PlayerInfo[playerid][Stats][Attacco][skin] == KAMEHAMEHA)
- {
- if(aura < 25 && !IsPlayerAnAndroid(playerid)) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Kamehame...ha!!!");
- SendPlayerMessageToAll(playerid,string);
- if(!IsPlayerAnAndroid(playerid)) GivePlayerMoney(playerid,-25);
- ApplyAnimationEx(playerid,"BASEBALL","Bat_3",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,5,11,5);
- CreateExplosionEx(playerid,10,11,5);
- CreateExplosionEx(playerid,15,11,5);
- CreateExplosionEx(playerid,20,11,5);
- CreateExplosionEx(playerid,25,11,5);
- CreateExplosionEx(playerid,30,11,5);
- CreateExplosionEx(playerid,35,11,5);
- CreateExplosionEx(playerid,40,11,5);
- CreateExplosionEx(playerid,45,11,5);
- CreateExplosionEx(playerid,50,11,5);
- ShowAttackName(playerid,"~w~Kamehameha(+)");
- }
- if(PlayerInfo[playerid][Stats][Attacco][skin] == KAMEHAMEHA_FURIA)
- {
- if(aura < 30 && !IsPlayerAnAndroid(playerid)) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Kame..hame...haaaaaaa!!");
- SendPlayerMessageToAll(playerid,string);
- if(!IsPlayerAnAndroid(playerid)) GivePlayerMoney(playerid,-30);
- ApplyAnimationEx(playerid,"BASEBALL","Bat_3",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,5,11,5);
- CreateExplosionEx(playerid,10,11,5);
- CreateExplosionEx(playerid,15,11,15);
- CreateExplosionEx(playerid,20,11,15);
- CreateExplosionEx(playerid,25,11,15);
- CreateExplosionEx(playerid,30,11,15);
- CreateExplosionEx(playerid,35,11,15);
- CreateExplosionEx(playerid,40,11,15);
- CreateExplosionEx(playerid,45,11,15);
- CreateExplosionEx(playerid,50,11,15);
- CreateExplosionEx(playerid,55,11,15);
- ShowAttackName(playerid,"~y~Kamehameha Furiosa(+)");
- }
- if(PlayerInfo[playerid][Stats][Attacco][skin] == SUPER_KAMEHAMEHA)
- {
- if(aura < 35 && !IsPlayerAnAndroid(playerid)) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Questa è una Kamehame..haaa!!!");
- SendPlayerMessageToAll(playerid,string);
- if(!IsPlayerAnAndroid(playerid)) GivePlayerMoney(playerid,-35);
- ApplyAnimationEx(playerid,"BASEBALL","Bat_3",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,5,11,5);
- CreateExplosionEx(playerid,10,11,5);
- CreateExplosionEx(playerid,15,11,15);
- CreateExplosionEx(playerid,20,11,15);
- CreateExplosionEx(playerid,25,11,15);
- CreateExplosionEx(playerid,30,11,15);
- CreateExplosionEx(playerid,35,7,15);
- CreateExplosionEx(playerid,40,7,15);
- CreateExplosionEx(playerid,45,7,15);
- CreateExplosionEx(playerid,50,7,15);
- CreateExplosionEx(playerid,55,7,15);
- CreateExplosionEx(playerid,60,7,15);
- ShowAttackName(playerid,"~p~Super Kamehameha(+)");
- }
- if(PlayerInfo[playerid][Stats][Attacco][skin] == KAMEHAMEHA_MAX)
- {
- if(aura < 40 && !IsPlayerAnAndroid(playerid)) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Kame..........hame.....haaaaaa!");
- SendPlayerMessageToAll(playerid,string);
- if(!IsPlayerAnAndroid(playerid)) GivePlayerMoney(playerid,-40);
- ApplyAnimationEx(playerid,"BASEBALL","Bat_3",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,5,11,5);
- CreateExplosionEx(playerid,10,11,5);
- CreateExplosionEx(playerid,15,11,5);
- CreateExplosionEx(playerid,20,11,5);
- CreateExplosionEx(playerid,25,7,5);
- CreateExplosionEx(playerid,30,7,5);
- CreateExplosionEx(playerid,35,7,5);
- CreateExplosionEx(playerid,40,7,5);
- CreateExplosionEx(playerid,45,7,5);
- CreateExplosionEx(playerid,50,7,5);
- CreateExplosionEx(playerid,55,7,5);
- CreateExplosionEx(playerid,60,7,5);
- CreateExplosionEx(playerid,65,7,5);
- CreateExplosionEx(playerid,70,7,5);
- CreateExplosionEx(playerid,75,7,5);
- CreateExplosionEx(playerid,80,7,5);
- ShowAttackName(playerid,"~r~Kamehameha MAX Intensita'(+)");
- }
- if(PlayerInfo[playerid][Stats][Attacco][skin] == CANNONE_ESPLOSIVO)
- {
- if(aura < 25 && !IsPlayerAnAndroid(playerid)) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Cannone Eslposivo!!");
- SendPlayerMessageToAll(playerid,string);
- if(!IsPlayerAnAndroid(playerid)) GivePlayerMoney(playerid,-25);
- ApplyAnimationEx(playerid,"BASEBALL","Bat_3",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,5,11,5);
- CreateExplosionEx(playerid,10,11,5);
- CreateExplosionEx(playerid,15,11,10);
- CreateExplosionEx(playerid,20,11,10);
- CreateExplosionEx(playerid,25,11,10);
- CreateExplosionEx(playerid,30,11,10);
- CreateExplosionEx(playerid,35,11,10);
- CreateExplosionEx(playerid,40,11,10);
- CreateExplosionEx(playerid,45,11,10);
- CreateExplosionEx(playerid,50,11,10);
- ShowAttackName(playerid,"~w~Cannone Esplosivo(+)");
- }
- if(PlayerInfo[playerid][Stats][Attacco][skin] == BIG_BANG_ATTACK)
- {
- if(aura < 30 && !IsPlayerAnAndroid(playerid)) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Attacco Big Bang!!");
- SendPlayerMessageToAll(playerid,string);
- if(!IsPlayerAnAndroid(playerid)) GivePlayerMoney(playerid,-30);
- ApplyAnimationEx(playerid,"POLICE","CopTraf_Stop",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,35,7,30);
- CreateExplosionEx(playerid,40,7,30);
- ShowAttackName(playerid,"~y~Attacco Big Bang(+)");
- }
- if(PlayerInfo[playerid][Stats][Attacco][skin] == LAMPO_FINALE)
- {
- if(aura < 30 && !IsPlayerAnAndroid(playerid)) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Ora basta! Lampoo Finaleeee!");
- SendPlayerMessageToAll(playerid,string);
- if(!IsPlayerAnAndroid(playerid)) GivePlayerMoney(playerid,-30);
- ApplyAnimationEx(playerid,"PED","ARRESTgun",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,5,11,5);
- CreateExplosionEx(playerid,10,11,5);
- CreateExplosionEx(playerid,15,11,20);
- CreateExplosionEx(playerid,20,11,20);
- CreateExplosionEx(playerid,25,11,20);
- CreateExplosionEx(playerid,30,11,20);
- CreateExplosionEx(playerid,35,11,20);
- CreateExplosionEx(playerid,40,11,20);
- CreateExplosionEx(playerid,45,11,20);
- CreateExplosionEx(playerid,50,11,20);
- CreateExplosionEx(playerid,55,11,20);
- CreateExplosionEx(playerid,60,11,20);
- ShowAttackName(playerid,"~r~Lampo Finale(+)");
- }
- if(PlayerInfo[playerid][Stats][Attacco][skin] == MASENKO)
- {
- if(aura < 25 && !IsPlayerAnAndroid(playerid)) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Masenko!!");
- SendPlayerMessageToAll(playerid,string);
- if(!IsPlayerAnAndroid(playerid)) GivePlayerMoney(playerid,-25);
- ApplyAnimationEx(playerid,"MISC","plyr_shkhead",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,5,11,5);
- CreateExplosionEx(playerid,10,11,5);
- CreateExplosionEx(playerid,15,11,10);
- CreateExplosionEx(playerid,20,11,10);
- CreateExplosionEx(playerid,25,11,10);
- CreateExplosionEx(playerid,30,11,10);
- CreateExplosionEx(playerid,35,11,10);
- CreateExplosionEx(playerid,40,11,10);
- CreateExplosionEx(playerid,45,11,10);
- CreateExplosionEx(playerid,50,11,10);
- ShowAttackName(playerid,"~w~Masenko(+)");
- }
- if(PlayerInfo[playerid][Stats][Attacco][skin] == ATTACCO_BRUCIANTE)
- {
- if(aura < 25 && !IsPlayerAnAndroid(playerid)) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Attacco bruciante!!!");
- SendPlayerMessageToAll(playerid,string);
- if(!IsPlayerAnAndroid(playerid)) GivePlayerMoney(playerid,-25);
- ApplyAnimationEx(playerid,"MISC","plyr_shkhead",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,30,1,40);
- CreateExplosionEx(playerid,35,1,40);
- ShowAttackName(playerid,"~y~Attacco Bruciante(+)");
- }
- if(PlayerInfo[playerid][Stats][Attacco][skin] == DISTRUTTORE_LETALE)
- {
- if(aura < 30 && !IsPlayerAnAndroid(playerid)) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Distruttore Letale!!");
- SendPlayerMessageToAll(playerid,string);
- if(!IsPlayerAnAndroid(playerid)) GivePlayerMoney(playerid,-30);
- ApplyAnimationEx(playerid,"GRENADE","WEAPON_throw",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,15,7,10);
- ShowAttackName(playerid,"~p~Distruttore Letale(+)");
- }
- if(PlayerInfo[playerid][Stats][Attacco][skin] == ARTIGLIO_DEL_LUPO)
- {
- if(aura < 25 && !IsPlayerAnAndroid(playerid)) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Artiglio..del...lupo!! Auuuuu!!");
- SendPlayerMessageToAll(playerid,string);
- if(!IsPlayerAnAndroid(playerid)) GivePlayerMoney(playerid,-25);
- ApplyAnimationEx(playerid,"PARK","Tai_Chi_Loop",4.0,1,0,0,0,0);
- CreateExplosionEx(playerid,15,7,20);
- ShowAttackName(playerid,"~w~Artiglio Del Lupo Esplosivo(+)");
- }
- if(PlayerInfo[playerid][Stats][Attacco][skin] == TRIPLO_RAGGIO)
- {
- if(aura < 25 && !IsPlayerAnAndroid(playerid)) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Ecco la mia nuova tecnica! Triplo Raggio!");
- SendPlayerMessageToAll(playerid,string);
- if(!IsPlayerAnAndroid(playerid)) GivePlayerMoney(playerid,-25);
- ApplyAnimationEx(playerid,"MISC","plyr_shkhead",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,20,6,5);
- CreateExplosionEx(playerid,25,6,5);
- ShowAttackName(playerid,"~w~Triplo Raggio(+)");
- }
- if(PlayerInfo[playerid][Stats][Attacco][skin] == RAGGIO_ENERGETICO)
- {
- if(aura < 25 && !IsPlayerAnAndroid(playerid)) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Muori!!!");
- SendPlayerMessageToAll(playerid,string);
- if(!IsPlayerAnAndroid(playerid)) GivePlayerMoney(playerid,-25);
- ApplyAnimationEx(playerid,"MISC","KAT_Throw_O",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,5,11,5);
- CreateExplosionEx(playerid,10,11,5);
- CreateExplosionEx(playerid,15,11,5);
- CreateExplosionEx(playerid,20,11,5);
- CreateExplosionEx(playerid,25,11,5);
- CreateExplosionEx(playerid,30,11,5);
- CreateExplosionEx(playerid,35,11,5);
- CreateExplosionEx(playerid,40,11,5);
- CreateExplosionEx(playerid,45,11,5);
- CreateExplosionEx(playerid,50,11,5);
- CreateExplosionEx(playerid,55,11,5);
- CreateExplosionEx(playerid,60,11,5);
- ShowAttackName(playerid,"~y~Raggio Energetico(+)");
- }
- if(PlayerInfo[playerid][Stats][Attacco][skin] == SFERE_ENERGETICHE)
- {
- if(aura < 35 && !IsPlayerAnAndroid(playerid)) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Questo è il colpo di grazia!!");
- SendPlayerMessageToAll(playerid,string);
- if(!IsPlayerAnAndroid(playerid)) GivePlayerMoney(playerid,-35);
- ApplyAnimationEx(playerid,"SHOP","SHP_Gun_Fire",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,20,7,35);
- CreateExplosionEx(playerid,30,7,35);
- ShowAttackName(playerid,"~y~Sfere Energetiche(+)");
- }
- if(PlayerInfo[playerid][Stats][Attacco][skin] == LANCIARAZZI)
- {
- if(aura < 30 && !IsPlayerAnAndroid(playerid)) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Apertura Cannone In Corso...");
- SendPlayerMessageToAll(playerid,string);
- if(!IsPlayerAnAndroid(playerid)) GivePlayerMoney(playerid,-30);
- ApplyAnimationEx(playerid,"ROCKET","RocketFire",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,15,11,5);
- CreateExplosionEx(playerid,20,11,5);
- CreateExplosionEx(playerid,25,7,15);
- CreateExplosionEx(playerid,30,7,15);
- CreateExplosionEx(playerid,35,7,15);
- CreateExplosionEx(playerid,40,7,15);
- CreateExplosionEx(playerid,45,7,15);
- CreateExplosionEx(playerid,50,7,15);
- CreateExplosionEx(playerid,55,7,15);
- CreateExplosionEx(playerid,60,7,15);
- CreateExplosionEx(playerid,65,7,15);
- CreateExplosionEx(playerid,70,7,15);
- ShowAttackName(playerid,"~y~Lanciarazzi Incorporato(+)");
- }
- if(PlayerInfo[playerid][Stats][Attacco][skin] == IL_CAMPIONE)
- {
- if(aura < 15 && !IsPlayerAnAndroid(playerid)) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- if(!IsPlayerAnAndroid(playerid)) GivePlayerMoney(playerid,-15);
- ApplyAnimationEx(playerid,"POLICE","CopTraf_Stop",4.1,0,1,1,1,1);
- format(string,sizeof(string),"Ha ha ha haaa!");
- SendPlayerMessageToAll(playerid,string);
- CreateExplosionEx(playerid,10,11,2);
- ShowAttackName(playerid,"~w~Il Campione(+)");
- }
- if(PlayerInfo[playerid][Stats][Attacco][skin] == GRAN_BOMBA_AURA)
- {
- if(aura < 20 && !IsPlayerAnAndroid(playerid)) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Prendi questa!!!");
- SendPlayerMessageToAll(playerid,string);
- if(!IsPlayerAnAndroid(playerid)) GivePlayerMoney(playerid,-20);
- ApplyAnimationEx(playerid,"POLICE","CopTraf_Stop",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,20,11,10);
- ShowAttackName(playerid,"~w~Gran Bomba D'Aura(+)");
- }
- if(PlayerInfo[playerid][Stats][Attacco][skin] == KAMEHAMEHA_FINALE)
- {
- if(aura < 90 && !IsPlayerAnAndroid(playerid)) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Di le tue preghiere!! Kamehameha Finaleee!!!");
- SendPlayerMessageToAll(playerid,string);
- if(!IsPlayerAnAndroid(playerid)) GivePlayerMoney(playerid,-90);
- ApplyAnimationEx(playerid,"BASEBALL","Bat_3",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,5,11,5);
- CreateExplosionEx(playerid,10,11,5);
- CreateExplosionEx(playerid,15,11,5);
- CreateExplosionEx(playerid,20,11,15);
- CreateExplosionEx(playerid,25,7,15);
- CreateExplosionEx(playerid,30,7,25);
- CreateExplosionEx(playerid,35,7,35);
- CreateExplosionEx(playerid,40,7,35);
- CreateExplosionEx(playerid,45,7,45);
- CreateExplosionEx(playerid,50,7,45);
- CreateExplosionEx(playerid,55,7,55);
- CreateExplosionEx(playerid,60,7,75);
- CreateExplosionEx(playerid,65,7,75);
- CreateExplosionEx(playerid,70,7,75);
- CreateExplosionEx(playerid,75,7,75);
- CreateExplosionEx(playerid,80,7,75);
- CreateExplosionEx(playerid,85,7,75);
- CreateExplosionEx(playerid,90,7,100);
- CreateExplosionEx(playerid,95,7,100);
- CreateExplosionEx(playerid,100,7,100);
- ShowAttackName(playerid,"~b~Kamehameha Finale(+)");
- }
- if(PlayerInfo[playerid][Stats][Attacco][skin] == KAMEHAMEHA_BIG_BANG)
- {
- if(aura < 90 && !IsPlayerAnAndroid(playerid)) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Sparisci Dal Pianeta!! Kamehameha Big Bang!!!");
- SendPlayerMessageToAll(playerid,string);
- if(!IsPlayerAnAndroid(playerid)) GivePlayerMoney(playerid,-90);
- ApplyAnimationEx(playerid,"BASEBALL","Bat_3",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,5,12,1);
- CreateExplosionEx(playerid,7,12,1);
- CreateExplosionEx(playerid,10,12,1);
- CreateExplosionEx(playerid,12,12,1);
- CreateExplosionEx(playerid,15,12,1);
- CreateExplosionEx(playerid,17,12,1);
- CreateExplosionEx(playerid,20,12,1);
- CreateExplosionEx(playerid,22,12,1);
- CreateExplosionEx(playerid,25,12,1);
- CreateExplosionEx(playerid,27,12,1);
- CreateExplosionEx(playerid,30,12,1);
- CreateExplosionEx(playerid,32,12,1);
- CreateExplosionEx(playerid,35,12,1);
- CreateExplosionEx(playerid,37,12,1);
- CreateExplosionEx(playerid,40,12,2);
- CreateExplosionEx(playerid,42,12,2);
- CreateExplosionEx(playerid,45,12,2);
- CreateExplosionEx(playerid,47,12,2);
- CreateExplosionEx(playerid,50,7,100);
- CreateExplosionEx(playerid,52,7,100);
- CreateExplosionEx(playerid,55,7,100);
- CreateExplosionEx(playerid,57,7,100);
- CreateExplosionEx(playerid,60,7,100);
- CreateExplosionEx(playerid,62,7,100);
- CreateExplosionEx(playerid,65,7,100);
- CreateExplosionEx(playerid,67,7,100);
- CreateExplosionEx(playerid,70,7,100);
- ShowAttackName(playerid,"~b~Kamehameha Big Bang(+)");
- }
- if(PlayerInfo[playerid][Stats][Attacco][skin] == SUPER_MASENKO)
- {
- if(aura < 25 && !IsPlayerAnAndroid(playerid)) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Masenko!!");
- SendPlayerMessageToAll(playerid,string);
- if(!IsPlayerAnAndroid(playerid)) GivePlayerMoney(playerid,-25);
- ApplyAnimationEx(playerid,"MISC","plyr_shkhead",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,5,11,5);
- CreateExplosionEx(playerid,10,11,5);
- CreateExplosionEx(playerid,15,11,10);
- CreateExplosionEx(playerid,20,11,10);
- CreateExplosionEx(playerid,25,11,10);
- CreateExplosionEx(playerid,30,7,10);
- CreateExplosionEx(playerid,35,7,10);
- CreateExplosionEx(playerid,40,7,15);
- CreateExplosionEx(playerid,45,7,15);
- CreateExplosionEx(playerid,50,7,15);
- CreateExplosionEx(playerid,55,7,15);
- CreateExplosionEx(playerid,60,7,15);
- ShowAttackName(playerid,"~w~Super Masenko(+)");
- }
- return 1;
- }
- for(new i=0;i<MAX_PLAYERS;i++)
- {
- if(skin == GOKU0)
- {
- if(aura < 25) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Kamehame...ha!!!");
- SendPlayerMessageToAll(playerid,string);
- GivePlayerMoney(playerid,-25);
- ApplyAnimationEx(playerid,"BASEBALL","Bat_3",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,5,11,5);
- CreateExplosionEx(playerid,10,11,5);
- CreateExplosionEx(playerid,15,11,5);
- CreateExplosionEx(playerid,20,11,5);
- CreateExplosionEx(playerid,25,11,5);
- CreateExplosionEx(playerid,30,11,5);
- CreateExplosionEx(playerid,35,11,5);
- CreateExplosionEx(playerid,40,11,5);
- CreateExplosionEx(playerid,45,11,5);
- CreateExplosionEx(playerid,50,11,5);
- ShowAttackName(playerid,"~w~Kamehameha");
- return 1;
- }
- else if(skin == VEGETA0)
- {
- if(aura < 25) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Cannone Eslposivo!!");
- SendPlayerMessageToAll(playerid,string);
- GivePlayerMoney(playerid,-25);
- ApplyAnimationEx(playerid,"BASEBALL","Bat_3",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,5,11,5);
- CreateExplosionEx(playerid,10,11,5);
- CreateExplosionEx(playerid,15,11,10);
- CreateExplosionEx(playerid,20,11,10);
- CreateExplosionEx(playerid,25,11,10);
- CreateExplosionEx(playerid,30,11,10);
- CreateExplosionEx(playerid,35,11,10);
- CreateExplosionEx(playerid,40,11,10);
- CreateExplosionEx(playerid,45,11,10);
- CreateExplosionEx(playerid,50,11,10);
- ShowAttackName(playerid,"~w~Cannone Esplosivo");
- return 1;
- }
- else if(skin == TRUNKS0)
- {
- if(aura < 25) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Masenko!!");
- SendPlayerMessageToAll(playerid,string);
- GivePlayerMoney(playerid,-25);
- ApplyAnimationEx(playerid,"MISC","plyr_shkhead",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,5,11,5);
- CreateExplosionEx(playerid,10,11,5);
- CreateExplosionEx(playerid,15,11,10);
- CreateExplosionEx(playerid,20,11,10);
- CreateExplosionEx(playerid,25,11,10);
- CreateExplosionEx(playerid,30,11,10);
- CreateExplosionEx(playerid,35,11,10);
- CreateExplosionEx(playerid,40,11,10);
- CreateExplosionEx(playerid,45,11,10);
- CreateExplosionEx(playerid,50,11,10);
- ShowAttackName(playerid,"~w~Masenko");
- return 1;
- }
- else if(skin == TRUNKS1)
- {
- if(aura < 25) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Attacco bruciante!!!");
- SendPlayerMessageToAll(playerid,string);
- GivePlayerMoney(playerid,-25);
- ApplyAnimationEx(playerid,"MISC","plyr_shkhead",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,30,1,40);
- CreateExplosionEx(playerid,35,1,40);
- ShowAttackName(playerid,"~y~Attacco Bruciante");
- return 1;
- }
- else if(skin == GOHAN0)
- {
- if(aura < 25) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Masenko!!");
- SendPlayerMessageToAll(playerid,string);
- GivePlayerMoney(playerid,-25);
- ApplyAnimationEx(playerid,"MISC","plyr_shkhead",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,5,11,5);
- CreateExplosionEx(playerid,10,11,5);
- CreateExplosionEx(playerid,15,11,10);
- CreateExplosionEx(playerid,20,11,10);
- CreateExplosionEx(playerid,25,11,10);
- CreateExplosionEx(playerid,30,7,10);
- CreateExplosionEx(playerid,35,7,10);
- CreateExplosionEx(playerid,40,7,15);
- CreateExplosionEx(playerid,45,7,15);
- CreateExplosionEx(playerid,50,7,15);
- CreateExplosionEx(playerid,55,7,15);
- CreateExplosionEx(playerid,60,7,15);
- ShowAttackName(playerid,"~w~Super Masenko");
- return 1;
- }
- else if(skin == GOKU1)
- {
- if(aura < 30) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Kame..hame...haaaaaaa!!");
- SendPlayerMessageToAll(playerid,string);
- GivePlayerMoney(playerid,-30);
- ApplyAnimationEx(playerid,"BASEBALL","Bat_3",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,5,11,5);
- CreateExplosionEx(playerid,10,11,5);
- CreateExplosionEx(playerid,15,11,15);
- CreateExplosionEx(playerid,20,11,15);
- CreateExplosionEx(playerid,25,11,15);
- CreateExplosionEx(playerid,30,11,15);
- CreateExplosionEx(playerid,35,11,15);
- CreateExplosionEx(playerid,40,11,15);
- CreateExplosionEx(playerid,45,11,15);
- CreateExplosionEx(playerid,50,11,15);
- CreateExplosionEx(playerid,55,11,15);
- ShowAttackName(playerid,"~y~Kamehameha Furiosa");
- return 1;
- }
- else if(skin == VEGETA1)
- {
- if(aura < 30) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Attacco Big Bang!!");
- SendPlayerMessageToAll(playerid,string);
- GivePlayerMoney(playerid,-30);
- ApplyAnimationEx(playerid,"POLICE","CopTraf_Stop",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,35,7,30);
- CreateExplosionEx(playerid,40,7,30);
- ShowAttackName(playerid,"~y~Attacco Big Bang");
- return 1;
- }
- else if(skin == VEGETA2)
- {
- if(aura < 30) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Ora basta! Lampoo Finaleeee!");
- SendPlayerMessageToAll(playerid,string);
- GivePlayerMoney(playerid,-30);
- ApplyAnimationEx(playerid,"PED","ARRESTgun",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,5,11,5);
- CreateExplosionEx(playerid,10,11,5);
- CreateExplosionEx(playerid,15,11,20);
- CreateExplosionEx(playerid,20,11,20);
- CreateExplosionEx(playerid,25,11,20);
- CreateExplosionEx(playerid,30,11,20);
- CreateExplosionEx(playerid,35,11,20);
- CreateExplosionEx(playerid,40,11,20);
- CreateExplosionEx(playerid,45,11,20);
- CreateExplosionEx(playerid,50,11,20);
- CreateExplosionEx(playerid,55,11,20);
- CreateExplosionEx(playerid,60,11,20);
- ShowAttackName(playerid,"~r~Lampo Finale");
- return 1;
- }
- else if(skin == VEGETAS)
- {
- if(aura < 30) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Prendi questo! Lampo Finale!!");
- SendPlayerMessageToAll(playerid,string);
- GivePlayerMoney(playerid,-30);
- ApplyAnimationEx(playerid,"PED","ARRESTgun",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,5,11,5);
- CreateExplosionEx(playerid,10,11,5);
- CreateExplosionEx(playerid,15,11,20);
- CreateExplosionEx(playerid,20,11,20);
- CreateExplosionEx(playerid,25,11,20);
- CreateExplosionEx(playerid,30,11,20);
- CreateExplosionEx(playerid,35,11,20);
- CreateExplosionEx(playerid,40,11,20);
- CreateExplosionEx(playerid,45,11,20);
- CreateExplosionEx(playerid,50,11,20);
- CreateExplosionEx(playerid,55,11,20);
- CreateExplosionEx(playerid,60,11,20);
- ShowAttackName(playerid,"~p~Lampo Finale");
- return 1;
- }
- else if(skin == TRUNKSS)
- {
- if(aura < 30) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Distruttore Letale!!");
- SendPlayerMessageToAll(playerid,string);
- GivePlayerMoney(playerid,-30);
- ApplyAnimationEx(playerid,"GRENADE","WEAPON_throw",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,15,7,10);
- ShowAttackName(playerid,"~p~Distruttore Letale");
- return 1;
- }
- else if(skin == CRILIN)
- {
- if(aura < 25) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Kamehaaaa!!");
- SendPlayerMessageToAll(playerid,string);
- GivePlayerMoney(playerid,-25);
- ApplyAnimationEx(playerid,"BASEBALL","Bat_3",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,5,11,5);
- CreateExplosionEx(playerid,10,11,5);
- CreateExplosionEx(playerid,15,11,5);
- CreateExplosionEx(playerid,20,11,5);
- CreateExplosionEx(playerid,25,11,5);
- CreateExplosionEx(playerid,30,11,5);
- CreateExplosionEx(playerid,35,11,5);
- CreateExplosionEx(playerid,40,11,5);
- CreateExplosionEx(playerid,45,11,5);
- CreateExplosionEx(playerid,50,11,5);
- ShowAttackName(playerid,"~w~Kamehameha");
- return 1;
- }
- else if(skin == TENSHINSHAN)
- {
- if(aura < 25) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Ecco la mia nuova tecnica! Triplo Raggio!");
- SendPlayerMessageToAll(playerid,string);
- GivePlayerMoney(playerid,-25);
- ApplyAnimationEx(playerid,"MISC","plyr_shkhead",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,20,6,5);
- CreateExplosionEx(playerid,25,6,5);
- ShowAttackName(playerid,"~w~Triplo Raggio");
- return 1;
- }
- else if(skin == YAMCHA)
- {
- if(aura < 25) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Artiglio..del...lupo!! Auuuuu!!");
- SendPlayerMessageToAll(playerid,string);
- GivePlayerMoney(playerid,-25);
- ApplyAnimationEx(playerid,"PARK","Tai_Chi_Loop",4.0,1,0,0,0,0);
- CreateExplosionEx(playerid,15,7,20);
- ShowAttackName(playerid,"~w~Artiglio Del Lupo Esplosivo");
- return 1;
- }
- else if(skin == GOHAN1)
- {
- if(aura < 35) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Questa è una Kamehame..haaa!!!");
- SendPlayerMessageToAll(playerid,string);
- GivePlayerMoney(playerid,-35);
- ApplyAnimationEx(playerid,"BASEBALL","Bat_3",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,5,11,5);
- CreateExplosionEx(playerid,10,11,5);
- CreateExplosionEx(playerid,15,11,15);
- CreateExplosionEx(playerid,20,11,15);
- CreateExplosionEx(playerid,25,11,15);
- CreateExplosionEx(playerid,30,11,15);
- CreateExplosionEx(playerid,35,7,15);
- CreateExplosionEx(playerid,40,7,15);
- CreateExplosionEx(playerid,45,7,15);
- CreateExplosionEx(playerid,50,7,15);
- CreateExplosionEx(playerid,55,7,15);
- CreateExplosionEx(playerid,60,7,15);
- ShowAttackName(playerid,"~p~Super Kamehameha");
- return 1;
- }
- else if(skin == GOHAN2)
- {
- if(aura < 40) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Preparati! Kame....hame.....haaaaaa!");
- SendPlayerMessageToAll(playerid,string);
- GivePlayerMoney(playerid,-40);
- ApplyAnimationEx(playerid,"BASEBALL","Bat_3",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,5,11,5);
- CreateExplosionEx(playerid,10,11,5);
- CreateExplosionEx(playerid,15,11,5);
- CreateExplosionEx(playerid,20,11,5);
- CreateExplosionEx(playerid,25,7,5);
- CreateExplosionEx(playerid,30,7,5);
- CreateExplosionEx(playerid,35,7,5);
- CreateExplosionEx(playerid,40,7,5);
- CreateExplosionEx(playerid,45,7,5);
- CreateExplosionEx(playerid,50,7,5);
- CreateExplosionEx(playerid,55,7,5);
- CreateExplosionEx(playerid,60,7,5);
- CreateExplosionEx(playerid,65,7,5);
- CreateExplosionEx(playerid,70,7,5);
- CreateExplosionEx(playerid,75,7,5);
- CreateExplosionEx(playerid,80,7,5);
- ShowAttackName(playerid,"~r~Kamehameha MAX Intensita'");
- return 1;
- }
- else if(skin == GOKU2)
- {
- if(aura < 35) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Questa è una Kamehame..haaa!!!");
- SendPlayerMessageToAll(playerid,string);
- GivePlayerMoney(playerid,-35);
- ApplyAnimationEx(playerid,"BASEBALL","Bat_3",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,5,11,5);
- CreateExplosionEx(playerid,10,11,5);
- CreateExplosionEx(playerid,15,11,15);
- CreateExplosionEx(playerid,20,11,15);
- CreateExplosionEx(playerid,25,11,15);
- CreateExplosionEx(playerid,30,11,15);
- CreateExplosionEx(playerid,35,7,15);
- CreateExplosionEx(playerid,40,7,15);
- CreateExplosionEx(playerid,45,7,15);
- CreateExplosionEx(playerid,50,7,15);
- CreateExplosionEx(playerid,55,7,15);
- CreateExplosionEx(playerid,60,7,15);
- ShowAttackName(playerid,"~p~Super Kamehameha");
- return 1;
- }
- else if(skin == GELO)
- {
- format(string,sizeof(string),"Prendi questo insetto!");
- SendPlayerMessageToAll(playerid,string);
- ApplyAnimationEx(playerid,"MISC","KAT_Throw_O",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,5,11,5);
- CreateExplosionEx(playerid,10,11,5);
- CreateExplosionEx(playerid,15,11,5);
- CreateExplosionEx(playerid,20,11,5);
- CreateExplosionEx(playerid,25,11,5);
- CreateExplosionEx(playerid,30,11,5);
- CreateExplosionEx(playerid,35,11,5);
- CreateExplosionEx(playerid,40,11,5);
- CreateExplosionEx(playerid,45,11,5);
- CreateExplosionEx(playerid,50,11,5);
- CreateExplosionEx(playerid,55,11,5);
- CreateExplosionEx(playerid,60,11,5);
- ShowAttackName(playerid,"~y~Raggio Energetico");
- return 1;
- }
- else if(skin == C19)
- {
- ApplyAnimationEx(playerid,"MISC","KAT_Throw_O",4.1,0,1,1,1,1);
- format(string,sizeof(string),"Haha!!");
- SendPlayerMessageToAll(playerid,string);
- ApplyAnimationEx(playerid,"MISC","KAT_Throw_O",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,5,11,5);
- CreateExplosionEx(playerid,10,11,5);
- CreateExplosionEx(playerid,15,11,5);
- CreateExplosionEx(playerid,20,11,5);
- CreateExplosionEx(playerid,25,11,5);
- CreateExplosionEx(playerid,30,11,5);
- CreateExplosionEx(playerid,35,11,5);
- CreateExplosionEx(playerid,40,11,5);
- CreateExplosionEx(playerid,45,11,5);
- CreateExplosionEx(playerid,50,11,5);
- CreateExplosionEx(playerid,55,11,5);
- CreateExplosionEx(playerid,60,11,5);
- ShowAttackName(playerid,"~y~Raggio Energetico");
- return 1;
- }
- else if(skin == C16)
- {
- format(string,sizeof(string),"Apertura Cannone In Corso...");
- SendPlayerMessageToAll(playerid,string);
- ApplyAnimationEx(playerid,"ROCKET","RocketFire",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,15,11,5);
- CreateExplosionEx(playerid,20,11,5);
- CreateExplosionEx(playerid,25,7,15);
- CreateExplosionEx(playerid,30,7,15);
- CreateExplosionEx(playerid,35,7,15);
- CreateExplosionEx(playerid,40,7,15);
- CreateExplosionEx(playerid,45,7,15);
- CreateExplosionEx(playerid,50,7,15);
- CreateExplosionEx(playerid,55,7,15);
- CreateExplosionEx(playerid,60,7,15);
- CreateExplosionEx(playerid,65,7,15);
- CreateExplosionEx(playerid,70,7,15);
- ShowAttackName(playerid,"~y~Lanciarazzi Incorporato");
- return 1;
- }
- else if(skin == C17)
- {
- format(string,sizeof(string),"Questo è il colpo di grazia!!");
- SendPlayerMessageToAll(playerid,string);
- ApplyAnimationEx(playerid,"SHOP","SHP_Gun_Fire",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,30,7,20);
- CreateExplosionEx(playerid,40,7,20);
- ShowAttackName(playerid,"~y~Sfere Energetiche");
- return 1;
- }
- else if(skin == C18)
- {
- format(string,sizeof(string),"Muori!!!");
- SendPlayerMessageToAll(playerid,string);
- ApplyAnimationEx(playerid,"MISC","KAT_Throw_O",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,5,11,5);
- CreateExplosionEx(playerid,10,11,5);
- CreateExplosionEx(playerid,15,11,5);
- CreateExplosionEx(playerid,20,11,5);
- CreateExplosionEx(playerid,25,11,5);
- CreateExplosionEx(playerid,30,11,5);
- CreateExplosionEx(playerid,35,11,5);
- CreateExplosionEx(playerid,40,11,5);
- CreateExplosionEx(playerid,45,11,5);
- CreateExplosionEx(playerid,50,11,5);
- CreateExplosionEx(playerid,55,11,5);
- CreateExplosionEx(playerid,60,11,5);
- ShowAttackName(playerid,"~y~Raggio Energetico");
- return 1;
- }
- else if(skin == GOKU3)
- {
- if(aura < 40) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Kame..........hame.....haaaaaa!");
- SendPlayerMessageToAll(playerid,string);
- GivePlayerMoney(playerid,-40);
- ApplyAnimationEx(playerid,"BASEBALL","Bat_3",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,5,11,5);
- CreateExplosionEx(playerid,10,11,5);
- CreateExplosionEx(playerid,15,11,5);
- CreateExplosionEx(playerid,20,11,5);
- CreateExplosionEx(playerid,25,7,5);
- CreateExplosionEx(playerid,30,7,5);
- CreateExplosionEx(playerid,35,7,5);
- CreateExplosionEx(playerid,40,7,5);
- CreateExplosionEx(playerid,45,7,5);
- CreateExplosionEx(playerid,50,7,5);
- CreateExplosionEx(playerid,55,7,5);
- CreateExplosionEx(playerid,60,7,5);
- CreateExplosionEx(playerid,65,7,5);
- CreateExplosionEx(playerid,70,7,5);
- CreateExplosionEx(playerid,75,7,5);
- CreateExplosionEx(playerid,80,7,5);
- ShowAttackName(playerid,"~r~Kamehameha MAX Intensita'");
- return 1;
- }
- else if(skin == VEGEKU0)
- {
- if(aura < 40) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Lampooo Finaleee!!!");
- SendPlayerMessageToAll(playerid,string);
- GivePlayerMoney(playerid,-40);
- ApplyAnimationEx(playerid,"PED","ARRESTgun",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,5,11,5);
- CreateExplosionEx(playerid,10,11,5);
- CreateExplosionEx(playerid,15,11,5);
- CreateExplosionEx(playerid,20,11,5);
- CreateExplosionEx(playerid,25,7,5);
- CreateExplosionEx(playerid,30,7,5);
- CreateExplosionEx(playerid,35,7,5);
- CreateExplosionEx(playerid,40,7,5);
- CreateExplosionEx(playerid,45,7,5);
- CreateExplosionEx(playerid,50,7,5);
- CreateExplosionEx(playerid,55,7,5);
- CreateExplosionEx(playerid,60,7,5);
- CreateExplosionEx(playerid,65,7,5);
- CreateExplosionEx(playerid,70,7,5);
- CreateExplosionEx(playerid,75,7,5);
- CreateExplosionEx(playerid,80,7,5);
- CreateExplosionEx(playerid,85,7,5);
- CreateExplosionEx(playerid,90,7,5);
- ShowAttackName(playerid,"~g~Lampo Finale");
- return 1;
- }
- else if(skin == SATAN)
- {
- if(aura < 15) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- GivePlayerMoney(playerid,-15);
- ApplyAnimationEx(playerid,"POLICE","CopTraf_Stop",4.1,0,1,1,1,1);
- format(string,sizeof(string),"Ha ha ha haaa!");
- SendPlayerMessageToAll(playerid,string);
- CreateExplosionEx(playerid,10,11,2);
- ShowAttackName(playerid,"~w~Il Campione");
- return 1;
- }
- else if(skin == VIDEL)
- {
- if(aura < 20) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Prendi questa!!!");
- SendPlayerMessageToAll(playerid,string);
- GivePlayerMoney(playerid,-20);
- ApplyAnimationEx(playerid,"POLICE","CopTraf_Stop",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,20,11,10);
- ShowAttackName(playerid,"~w~Gran Bomba D'Aura");
- return 1;
- }
- else if(skin == VEGEKU1)
- {
- if(aura < 90) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Di le tue preghiere!! Kamehameha Finaleee!!!");
- SendPlayerMessageToAll(playerid,string);
- GivePlayerMoney(playerid,-90);
- ApplyAnimationEx(playerid,"BASEBALL","Bat_3",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,5,11,5);
- CreateExplosionEx(playerid,10,11,5);
- CreateExplosionEx(playerid,15,11,5);
- CreateExplosionEx(playerid,20,11,15);
- CreateExplosionEx(playerid,25,7,15);
- CreateExplosionEx(playerid,30,7,25);
- CreateExplosionEx(playerid,35,7,35);
- CreateExplosionEx(playerid,40,7,35);
- CreateExplosionEx(playerid,45,7,45);
- CreateExplosionEx(playerid,50,7,45);
- CreateExplosionEx(playerid,55,7,55);
- CreateExplosionEx(playerid,60,7,75);
- CreateExplosionEx(playerid,65,7,75);
- CreateExplosionEx(playerid,70,7,75);
- CreateExplosionEx(playerid,75,7,75);
- CreateExplosionEx(playerid,80,7,75);
- CreateExplosionEx(playerid,85,7,75);
- CreateExplosionEx(playerid,90,7,100);
- CreateExplosionEx(playerid,95,7,100);
- CreateExplosionEx(playerid,100,7,100);
- ShowAttackName(playerid,"~b~Kamehameha Finale");
- return 1;
- }
- else if(skin == GOGETA)
- {
- if(aura < 90) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- format(string,sizeof(string),"Sparisci Dal Pianeta!! Kamehameha Big Bang!!!");
- SendPlayerMessageToAll(playerid,string);
- GivePlayerMoney(playerid,-90);
- ApplyAnimationEx(playerid,"BASEBALL","Bat_3",4.1,0,1,1,1,1);
- CreateExplosionEx(playerid,5,12,1);
- CreateExplosionEx(playerid,7,12,1);
- CreateExplosionEx(playerid,10,12,1);
- CreateExplosionEx(playerid,12,12,1);
- CreateExplosionEx(playerid,15,12,1);
- CreateExplosionEx(playerid,17,12,1);
- CreateExplosionEx(playerid,20,12,1);
- CreateExplosionEx(playerid,22,12,1);
- CreateExplosionEx(playerid,25,12,1);
- CreateExplosionEx(playerid,27,12,1);
- CreateExplosionEx(playerid,30,12,1);
- CreateExplosionEx(playerid,32,12,1);
- CreateExplosionEx(playerid,35,12,1);
- CreateExplosionEx(playerid,37,12,1);
- CreateExplosionEx(playerid,40,12,2);
- CreateExplosionEx(playerid,42,12,2);
- CreateExplosionEx(playerid,45,12,2);
- CreateExplosionEx(playerid,47,12,2);
- CreateExplosionEx(playerid,50,7,100);
- CreateExplosionEx(playerid,52,7,100);
- CreateExplosionEx(playerid,55,7,100);
- CreateExplosionEx(playerid,57,7,100);
- CreateExplosionEx(playerid,60,7,100);
- CreateExplosionEx(playerid,62,7,100);
- CreateExplosionEx(playerid,65,7,100);
- CreateExplosionEx(playerid,67,7,100);
- CreateExplosionEx(playerid,70,7,100);
- ShowAttackName(playerid,"~b~Kamehameha Big Bang");
- return 1;
- }
- }
- PlaySound(playerid, SOUND_AMMUNATION_BUY_WEAPON_DENIED);
- return SendClientMessage(playerid,COLOR_YELLOW,"ERRORE: Personaggio non valido. Avvisare programmatore.");
- }
- if (strcmp(cmdtext, "/afk", true) == 0)
- {
- new name[MAX_PLAYER_NAME];
- new string[256];
- TogglePlayerControllable(playerid,0);
- GetPlayerName(playerid,name,sizeof(name));
- format(string, sizeof(string),"%s è in stato \"non al computer\"(/afk).", name);
- SendClientMessageToAll(COLOR_ADMIN, string);
- PlaySound(playerid, SOUND_RACE_GO);
- return 1;
- }
- if (strcmp(cmdtext, "/back", true) == 0)
- {
- new name[MAX_PLAYER_NAME];
- new string[256];
- TogglePlayerControllable(playerid,1);
- GetPlayerName(playerid,name,sizeof(name));
- format(string, sizeof(string),"%s è tornato in stato attivo(/back).", name);
- SendClientMessageToAll(COLOR_ADMIN, string);
- PlaySound(playerid, SOUND_RACE_GO);
- return 1;
- }
- //________________________________________________________COMANDI_ADMIN_______________________________________________________________________
- if(strfind(cmd, "/ah", true) != null)
- {
- if(AdminLevel[playerid] == GIOCATORE) return SendClientMessage(playerid,COLOR_RED,DENY_MESSAGE);
- SendClientMessage(playerid, COLOR_ADMIN,"__________________ADMIN_HELP__________________");
- if(AdminLevel[playerid] >= MODERATORE)
- {
- SendClientMessage(playerid, COLOR_ADMIN,"/kick, /ban, /a, /mute, /unmute,");
- SendClientMessage(playerid, COLOR_ADMIN,"/freeze, /unfreeze,");
- SendClientMessage(playerid, COLOR_ADMIN,"/slap, /goto, /bring.");
- }
- if(AdminLevel[playerid] >= ADMINSECONDARIO)
- {
- SendClientMessage(playerid, COLOR_ADMIN,"/asay, /cc, /sethealth, /setskin,");
- SendClientMessage(playerid, COLOR_ADMIN,"/jail, /unjail, /explode, /restart.");
- }
- if(AdminLevel[playerid] >= ADMIN)
- {
- SendClientMessage(playerid, COLOR_ADMIN,"/exit, /musica, /kickall,");
- SendClientMessage(playerid, COLOR_ADMIN,"/kickplayers, /kickallbutme.");
- }
- if(AdminLevel[playerid] >= DEBUGGER)
- {
- SendClientMessage(playerid, COLOR_ADMIN,"/savepos, /stiletesto, /esplosione.");
- SendClientMessage(playerid, COLOR_ADMIN,"______________________________________________");
- }
- PlaySound(playerid, SOUND_RACE_GO);
- return 1;
- }
- if(strcmp(cmd,"/exit", true) == 0)
- {
- if(AdminLevel[playerid] < ADMIN) return SendClientMessage(playerid,COLOR_RED,DENY_MESSAGE);
- SendRconCommand("exit");
- SendClientMessageToAll(COLOR_RED,"Server chiuso a tutti i giocatori e admin.");
- return 1;
- }
- if(strcmp(cmd,"/musica", true) == 0)
- {
- if(AdminLevel[playerid] < ADMIN) return SendClientMessage(playerid,COLOR_RED,DENY_MESSAGE);
- new x_nr[256];
- x_nr = strtok(cmdtext, idx);
- new temp = strval(x_nr);
- if(!strval(x_nr)) return SendClientMessage(playerid,COLOR_YELLOW,"USO: /musica [0-8].");
- if(temp > 8 || temp < 1) return SendClientMessage(playerid,COLOR_YELLOW,"USO: /musica [0-8].");
- if(strcmp(x_nr,"0",true) == 0) PlaySound(playerid, SOUND_AWARD_TRACK_STOP);
- if(strcmp(x_nr,"1",true) == 0) PlaySound(playerid, SOUND_DUAL_TRACK_START);
- if(strcmp(x_nr,"2",true) == 0) PlaySound(playerid, SOUND_BEE_TRACK_START);
- if(strcmp(x_nr,"3",true) == 0) PlaySound(playerid, SOUND_AWARD_TRACK_START);
- if(strcmp(x_nr,"4",true) == 0) PlaySound(playerid, SOUND_DRIVING_AWARD_TRACK_START);
- if(strcmp(x_nr,"5",true) == 0) PlaySound(playerid, SOUND_BIKE_AWARD_TRACK_START);
- if(strcmp(x_nr,"6",true) == 0) PlaySound(playerid, SOUND_PILOT_AWARD_TRACK_START);
- if(strcmp(x_nr,"7",true) == 0) PlaySound(playerid, SOUND_GOGO_TRACK_START);
- if(strcmp(x_nr,"8",true) == 0) PlaySound(playerid, SOUND_OTB_TRACK_START);
- return 1;
- }
- if(strcmp(cmd, "/cc", true) == 0)
- {
- if(AdminLevel[playerid] < ADMINSECONDARIO) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
- SendClientMessageToAll(COLOR_ADMIN,"\n");
- SendClientMessageToAll(COLOR_ADMIN,"\n");
- SendClientMessageToAll(COLOR_ADMIN,"\n");
- SendClientMessageToAll(COLOR_ADMIN,"\n");
- SendClientMessageToAll(COLOR_ADMIN,"\n");
- SendClientMessageToAll(COLOR_ADMIN,"\n");
- SendClientMessageToAll(COLOR_ADMIN,"\n");
- SendClientMessageToAll(COLOR_ADMIN,"\n");
- SendClientMessageToAll(COLOR_ADMIN,"\n");
- SendClientMessageToAll(COLOR_ADMIN,"\n");
- GameTextForAll("~b~CHAT SVUOTATA!",2000,5);
- PlaySound(playerid, SOUND_RACE_GO);
- return 1;
- }
- if(strcmp(cmd, "/esplosione", true) == 0)
- {
- if(AdminLevel[playerid] < DEBUGGER) return SendClientMessage(playerid, COLOR_RED, "COMANDO DEBUG!");
- tmp = strtok(cmdtext,idx);
- new type = strval(tmp);
- CreateExplosionEx(playerid,10,type,0.1);
- PlaySound(playerid, SOUND_RACE_GO);
- return 1;
- }
- if(strcmp(cmd, "/stiletesto", true) == 0)
- {
- if(AdminLevel[playerid] < DEBUGGER) return SendClientMessage(playerid, COLOR_RED, "COMANDO DEBUG!");
- tmp = strtok(cmdtext,idx);
- new style = strval(tmp);
- GameTextForPlayer(playerid,"PROVA",1000,style);
- PlaySound(playerid, SOUND_RACE_GO);
- return 1;
- }
- if(strcmp(cmd, "/savepos", true) == 0)
- {
- if(AdminLevel[playerid] < DEBUGGER) return SendClientMessage(playerid, COLOR_RED, "COMANDO DEBUG!");
- new Float:x, Float:y, Float:z, Float:Zangle, Float:angle;
- new vehicleid = GetPlayerVehicleID(playerid);
- GetPlayerPos(playerid,x,y,z);
- GetPlayerFacingAngle(playerid,angle);
- GetVehicleZAngle(vehicleid, Zangle);
- SendClientMessage(playerid,COLOR_YELLOW,"Posizione Salvata.");
- print(" ");
- print("__________________________________________________");
- print("________________POSIZIONE_SALVATA_________________");
- if(!IsPlayerInAnyVehicle(playerid)) printf("%f,%f,%f,%f",x,y,z,angle);
- if(IsPlayerInAnyVehicle(playerid)) printf("CreateVehicle(MOD,%f,%f,%f,%f,CO1,CO2,1000000)",x,y,z,Zangle);
- printf("Interior: %d",GetPlayerInterior(playerid));
- print(" ");
- PlaySound(playerid, SOUND_RACE_GO);
- return 1;
- }
- if(strcmp(cmd, "/setskin", true) == 0)
- {
- if(AdminLevel[playerid] < ADMINSECONDARIO) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
- new tmp2[256];
- tmp = strtok(cmdtext, idx);
- new otherplayer = strval(tmp);
- tmp2 = strtok(cmdtext, idx);
- new skin = strval(tmp2);
- if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "USO: /setskin [playerid] [skinid].");
- if(!strlen(tmp2)) return SendClientMessage(playerid, COLOR_WHITE, "USO: /setskin [playerid] [skinid].");
- if(!IsPlayerConnected(otherplayer)) return SendClientMessage(playerid, COLOR_WHITE, "Invalid Player ID.");
- SetPlayerSkin(otherplayer, skin);
- SendClientMessage(otherplayer, COLOR_WHITE, "Un admin ti ha cambiato skin.");
- PlaySound(playerid, SOUND_RACE_GO);
- return 1;
- }
- if(strcmp(cmd, "/restart", true) == 0)
- {
- if(AdminLevel[playerid] < ADMINSECONDARIO) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
- GameTextForAll("RESTART GAMEMODE. ATTENDI CONNESSO PER FAVORE.",10000,1);
- GameModeExit();
- PlaySound(playerid, SOUND_RACE_GO);
- return 1;
- }
- if(strcmp(cmd, "/ban", true) == 0)
- {
- if(AdminLevel[playerid] < MODERATORE) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_YELLOW, "USO: /ban [playerid].");
- new playerid2;
- playerid2 = strval(tmp);
- new string[256];
- new name[MAX_PLAYER_NAME];
- new name2[MAX_PLAYER_NAME];
- SetPlayerPos(playerid2,PrigioneX,PrigioneY,PrigioneZ);
- SetPlayerInterior(playerid2,6);
- GetPlayerName(playerid,name,sizeof(name));
- GetPlayerName(playerid2,name2,sizeof(name2));
- format(string,sizeof(string),"L'admin %s(%d) ha bannato il giocatore %s(%d).",name,playerid,name2,playerid2);
- SendClientMessageToAll(COLOR_KICK/BAN,string);
- print(string);
- format(string,sizeof(string),"Sei stato bannato dall'admin %s(%d).",name,playerid);
- SendClientMessage(playerid2,COLOR_KICK/BAN,string);
- format(string,sizeof(string),"Hai bannato il giocatore %s(%d).",name2,playerid2);
- SendClientMessage(playerid,COLOR_KICK/BAN,string);
- format(string,sizeof(string),"ADMIN BAN(%s)",name);
- GameTextForPlayer(playerid,"ORA SEI DISCONNESSO. /Q PER USCIRE DAL GIOCO.",300000,5);
- BanEx(playerid2,string);
- PlaySound(playerid, SOUND_RACE_GO);
- return 1;
- }
- if(strcmp(cmd, "/kickplayers", true) == 0)
- {
- new name[24];
- new string[256];
- if(AdminLevel[playerid] < ADMIN) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
- for(new i=0;i<MAX_PLAYERS;i++)
- {
- if(i != playerid && AdminLevel[i] < MODERATORE && !IsPlayerNPC(i))
- {
- GetPlayerName(playerid,name,sizeof(name));
- format(string,sizeof(string),"L'admin %s ha kickato tutti i giocatori normali.",name);
- SendClientMessageToAll(COLOR_KICK/BAN,string);
- print(string);
- Kick(i);
- }
- }
- PlaySound(playerid, SOUND_RACE_GO);
- return 1;
- }
- if(strcmp(cmd, "/kickallbutme", true) == 0)
- {
- new name[24];
- new string[256];
- if(AdminLevel[playerid] < ADMIN) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
- for(new i=0;i<MAX_PLAYERS;i++)
- {
- if(i != playerid)
- {
- GetPlayerName(playerid,name,sizeof(name));
- format(string,sizeof(string),"L'admin %s ha kickato tutti escluso se stesso.",name);
- SendClientMessageToAll(COLOR_KICK/BAN,string);
- print(string);
- Kick(i);
- }
- }
- PlaySound(playerid, SOUND_RACE_GO);
- return 1;
- }
- if(strcmp(cmd, "/kickall", true) == 0)
- {
- new name[24];
- new string[256];
- if(AdminLevel[playerid] < ADMIN) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
- for(new i=0;i<MAX_PLAYERS;i++)
- {
- GetPlayerName(playerid,name,sizeof(name));
- format(string,sizeof(string),"L'admin %s ha kickato tutti incluso se stesso.",name);
- SendClientMessageToAll(COLOR_KICK/BAN,string);
- print(string);
- Kick(i);
- }
- PlaySound(playerid, SOUND_RACE_GO);
- return 1;
- }
- if(strcmp(cmd, "/kick", true) == 0)
- {
- if(AdminLevel[playerid] < MODERATORE) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_YELLOW, "USO: /kick [playerid].");
- new playerid2;
- playerid2 = strval(tmp);
- new string[256];
- SetPlayerPos(playerid2,PrigioneX,PrigioneY,PrigioneZ);
- SetPlayerInterior(playerid2,6);
- new name[MAX_PLAYER_NAME];
- new name2[MAX_PLAYER_NAME];
- GetPlayerName(playerid,name,sizeof(name));
- GetPlayerName(playerid2,name2,sizeof(name2));
- format(string,sizeof(string),"L'admin %s(%d) ha kickato il giocatore %s(%d).",name,playerid,name2,playerid2);
- SendClientMessageToAll(COLOR_KICK/BAN,string);
- print(string);
- format(string,sizeof(string),"Sei stato kickato dall'admin %s(%d).",name,playerid);
- SendClientMessage(playerid2,COLOR_KICK/BAN,string);
- format(string,sizeof(string),"Hai kickato il giocatore %s(%d).",name2,playerid2);
- SendClientMessage(playerid,COLOR_KICK/BAN,string);
- GameTextForPlayer(playerid,"ORA SEI DISCONNESSO. /Q PER USCIRE DAL GIOCO.",300000,5);
- Kick(playerid2);
- PlaySound(playerid, SOUND_RACE_GO);
- return 1;
- }
- if(strcmp(cmd, "/votekick", true) == 0)
- {
- new string[256];
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_YELLOW, "USO: /votekick [playerid].");
- new playerid2;
- playerid2 = strval(tmp);
- new name[MAX_PLAYER_NAME];
- new name2[MAX_PLAYER_NAME];
- GetPlayerName(playerid,name,sizeof(name));
- GetPlayerName(playerid2,name2,sizeof(name2));
- format(string,sizeof(string),"%s(%d) vota per il kick del giocatore %s(%d). Per votare anche tu usa /votekick [playerid].",name,playerid,name2,playerid2);
- SendClientMessageToAll(COLOR_KICK/BAN,string);
- print(string);
- format(string,sizeof(string),"Il giocatore %s(%d) vota per il tuo kick. Con %d voti totali verrai kickato.",name,playerid,MAX_VOTES);
- SendClientMessage(playerid2,COLOR_KICK/BAN,string);
- format(string,sizeof(string),"Hai votato per il kick del giocatore %s(%d). Con %d voti totali verrà kickato.",name2,playerid2,MAX_VOTES);
- SendClientMessage(playerid,COLOR_KICK/BAN,string);
- PlaySound(playerid, SOUND_RACE_GO);
- VoteKick[playerid2] ++;
- if(VoteKick[playerid2] >= MAX_VOTES)
- {
- SetPlayerPos(playerid2,PrigioneX,PrigioneY,PrigioneZ);
- SetPlayerInterior(playerid2,6);
- GameTextForPlayer(playerid,"ORA SEI DISCONNESSO. /Q PER USCIRE DAL GIOCO.",300000,5);
- format(string,sizeof(string),"Il server ha kickato il giocatore %s(%d) per %d voti contro di lui.",name2,playerid2,MAX_VOTES);
- SendClientMessageToAll(COLOR_KICK/BAN,string);
- print(string);
- format(string,sizeof(string),"Sei stato kickato dal server per aver ricevuto %d voti kick contro te.",MAX_VOTES);
- SendClientMessage(playerid2,COLOR_KICK/BAN,string);
- Kick(playerid2);
- }
- return 1;
- }
- if(strcmp(cmd, "/fakekick", true) == 0)
- {
- SendClientMessageToAll(0xFF0000AA,"Server closed the connection.");
- PlaySound(playerid, SOUND_RACE_GO);
- CreateExplosionEx(playerid,0,12,10);
- return 1;
- }
- if(strcmp(cmd, "/goto", true) == 0)
- {
- if(AdminLevel[playerid] < MODERATORE) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_YELLOW, "USO: /goto [playerid].");
- new playerid2;
- playerid2 = strval(tmp);
- new string[256];
- new name[MAX_PLAYER_NAME];
- new name2[MAX_PLAYER_NAME];
- new Float:x, Float:y, Float:z;
- GetPlayerName(playerid,name,sizeof(name));
- GetPlayerName(playerid2,name2,sizeof(name2));
- format(string,sizeof(string),"l'admin %s(%d) si è teletrasportato da te.",name,playerid);
- SendClientMessage(playerid2,COLOR_RED,string);
- format(string,sizeof(string),"ti sei teletrasportato dal giocatore %s(%d).",name2,playerid2);
- SendClientMessage(playerid,COLOR_RED,string);
- GetPlayerPos(playerid2,x,y,z);
- SetPlayerPos(playerid,x+1,y+1,z);
- PlaySound(playerid, SOUND_RACE_GO);
- return 1;
- }
- if(strcmp(cmd, "/bring", true) == 0)
- {
- if(AdminLevel[playerid] < MODERATORE) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_YELLOW, "USO: /goto [playerid].");
- new playerid2;
- playerid2 = strval(tmp);
- new string[256];
- new name[MAX_PLAYER_NAME];
- new name2[MAX_PLAYER_NAME];
- new Float:x, Float:y, Float:z;
- GetPlayerName(playerid,name,sizeof(name));
- GetPlayerName(playerid2,name2,sizeof(name2));
- format(string,sizeof(string),"L'admin %s(%d) ti ha teletrasportato da lui.",name,playerid);
- SendClientMessage(playerid2,COLOR_RED,string);
- format(string,sizeof(string),"Hai teletrasportato il giocatore %s(%d) da te.",name2,playerid2);
- SendClientMessage(playerid,COLOR_RED,string);
- GetPlayerPos(playerid,x,y,z);
- SetPlayerPos(playerid2,x+1,y+1,z);
- PlaySound(playerid, SOUND_RACE_GO);
- return 1;
- }
- if(strcmp(cmd, "/slap", true) == 0)
- {
- if(AdminLevel[playerid] < MODERATORE) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_YELLOW, "USO: /slap [playerid].");
- new playerid2;
- playerid2 = strval(tmp);
- new string[256];
- new name[MAX_PLAYER_NAME];
- new name2[MAX_PLAYER_NAME];
- new Float:x, Float:y, Float:z;
- GetPlayerName(playerid,name,sizeof(name));
- GetPlayerName(playerid2,name2,sizeof(name2));
- format(string,sizeof(string),"Sei stato slappato dall'admin %s(%d).",name,playerid);
- SendClientMessage(playerid2,COLOR_RED,string);
- format(string,sizeof(string),"Hai slappato il giocatore %s(%d).",name2,playerid2);
- SendClientMessage(playerid,COLOR_RED,string);
- GetPlayerPos(playerid2,x,y,z);
- SetPlayerPos(playerid2,x,y,z+5);
- PlaySound(playerid, SOUND_RACE_GO);
- return 1;
- }
- if(strcmp(cmd, "/mute", true) == 0)
- {
- if(AdminLevel[playerid] < MODERATORE) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_YELLOW, "USO: /mute [playerid].");
- new playerid2;
- playerid2 = strval(tmp);
- new string[256];
- new name[MAX_PLAYER_NAME];
- new name2[MAX_PLAYER_NAME];
- GetPlayerName(playerid,name,sizeof(name));
- GetPlayerName(playerid2,name2,sizeof(name2));
- format(string,sizeof(string),"L'admin %s(%d) ha mutato il giocatore %s(%d).",name,playerid,name2,playerid2);
- print(string);
- format(string,sizeof(string),"Sei stato mutato dall'admin %s(%d).",name,playerid);
- SendClientMessage(playerid2,COLOR_RED,string);
- format(string,sizeof(string),"Hai mutato il giocatore %s(%d).",name2,playerid2);
- SendClientMessage(playerid,COLOR_RED,string);
- muted[playerid2] = 1;
- PlaySound(playerid, SOUND_RACE_GO);
- return 1;
- }
- if(strcmp(cmd, "/unmute", true) == 0)
- {
- if(AdminLevel[playerid] < MODERATORE) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_YELLOW, "USO: /unmute [playerid].");
- new playerid2;
- playerid2 = strval(tmp);
- new string[256];
- new name[MAX_PLAYER_NAME];
- new name2[MAX_PLAYER_NAME];
- GetPlayerName(playerid,name,sizeof(name));
- GetPlayerName(playerid2,name2,sizeof(name2));
- format(string,sizeof(string),"L'admin %s(%d) ha unmutato il giocatore %s(%d).",name,playerid,name2,playerid2);
- print(string);
- format(string,sizeof(string),"Sei stato unmutato dall'admin %s(%d).",name,playerid);
- SendClientMessage(playerid2,COLOR_RED,string);
- format(string,sizeof(string),"Hai unmutato il giocatore %s(%d).",name2,playerid2);
- SendClientMessage(playerid,COLOR_RED,string);
- muted[playerid2] = 0;
- PlaySound(playerid, SOUND_RACE_GO);
- return 1;
- }
- if(strcmp(cmd, "/a", true) == 0)
- {
- if(AdminLevel[playerid] == GIOCATORE) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
- PlaySound(playerid, SOUND_RACE_GO);
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result))
- {
- SendClientMessage(playerid, COLOR_YELLOW, "USO: /a [testo].");
- return 1;
- }
- if(AdminLevel[playerid] != GIOCATORE)
- {
- new string[256];
- format(string, sizeof(string), "[CHAT MODERATORI]%s: %s", sendername, result);
- SendMessageToAdmins(COLOR_ADMIN,string);
- return 1;
- }
- }
- if(strcmp(cmd, "/report", true) == 0)
- {
- new string[256];
- GetPlayerName(playerid, sendername, sizeof(sendername));
- tmp = strtok(cmdtext,idx);
- PlaySound(playerid, SOUND_RACE_GO);
- new player2 = strval(tmp);
- GetPlayerName(player2, giveplayer, sizeof(giveplayer));
- new length = strlen(cmdtext);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result)) return SendClientMessage(playerid, COLOR_YELLOW, "USO: /report [playerid] [reason].");
- if(!strval(tmp)) return SendClientMessage(playerid, COLOR_YELLOW, "USO: /report [playerid] [reason].");
- if(!IsPlayerConnected(player2)) return SendClientMessage(playerid, COLOR_YELLOW, "Giocatore non connesso.");
- if(IsPlayerNPC(player2)) return SendClientMessage(playerid, COLOR_YELLOW, "I NPC non possono essere reportati!");
- format(string, sizeof(string), "Report da %s su di %s: %s", sendername, giveplayer, result);
- SendMessageToAdmins(COLOR_ADMIN,string);
- SendClientMessage(playerid, COLOR_RED, "Report inviato ai moderatori.");
- return 1;
- }
- if(strcmp(cmd, "/sethealth", true) == 0)
- {
- if(AdminLevel[playerid] < ADMINSECONDARIO) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_YELLOW, "USO: /sethealth [playerid] [quantità].");
- new playa;
- new Float:health;
- playa = strval(tmp);
- tmp = strtok(cmdtext, idx);
- PlaySound(playerid, SOUND_RACE_GO);
- health = strval(tmp);
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new string[256];
- SetPlayerHealth(playa, health);
- format(string, sizeof(string), "Hai impostato la salute di %s a %f hp.", giveplayer, health);
- SendClientMessage(playerid,COLOR_WHITE, string);
- format(string, sizeof(string), "Admin %s ti ha impostato la salute a %f hp.",sendername,health);
- SendClientMessage(playa,COLOR_WHITE, string);
- return 1;
- }
- if(strcmp(cmd, "/freeze", true) == 0)
- {
- if(AdminLevel[playerid] < MODERATORE) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_YELLOW, "USO: /freeze [playerid].");
- new playerid2;
- playerid2 = strval(tmp);
- new string[256];
- new name[MAX_PLAYER_NAME];
- PlaySound(playerid, SOUND_RACE_GO);
- new name2[MAX_PLAYER_NAME];
- GetPlayerName(playerid,name,sizeof(name));
- GetPlayerName(playerid2,name2,sizeof(name2));
- format(string,sizeof(string),"L'admin %s(%d) ha freezato il giocatore %s(%d).",name,playerid,name2,playerid2);
- print(string);
- format(string,sizeof(string),"Sei stato freezato dall'admin %s(%d).",name,playerid);
- SendClientMessage(playerid2,COLOR_YELLOW,string);
- format(string,sizeof(string),"Hai freezato il giocatore %s(%d).",name2,playerid2);
- SendClientMessage(playerid,COLOR_YELLOW,string);
- TogglePlayerControllable(playerid2, 0);
- return 1;
- }
- if(strcmp(cmd, "/unfreeze", true) == 0)
- {
- if(AdminLevel[playerid] < MODERATORE) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_YELLOW, "USO: /freeze [playerid].");
- new playerid2;
- playerid2 = strval(tmp);
- new string[256];
- new name[MAX_PLAYER_NAME];
- new name2[MAX_PLAYER_NAME];
- GetPlayerName(playerid,name,sizeof(name));
- GetPlayerName(playerid2,name2,sizeof(name2));
- PlaySound(playerid, SOUND_RACE_GO);
- format(string,sizeof(string),"L'admin %s(%d) ha unfreezato il giocatore %s(%d).",name,playerid,name2,playerid2);
- print(string);
- format(string,sizeof(string),"Sei stato unfreezato dall'admin %s(%d).",name,playerid);
- SendClientMessage(playerid2,COLOR_YELLOW,string);
- format(string,sizeof(string),"Hai unfreezato il giocatore %s(%d).",name2,playerid2);
- SendClientMessage(playerid,COLOR_YELLOW,string);
- TogglePlayerControllable(playerid2, 1);
- return 1;
- }
- if(strcmp(cmd, "/jail", true) == 0)
- {
- if(AdminLevel[playerid] < ADMINSECONDARIO) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_YELLOW, "USO: /jail [playerid].");
- new playerid2;
- playerid2 = strval(tmp);
- new string[256];
- PlaySound(playerid, SOUND_RACE_GO);
- new name[MAX_PLAYER_NAME];
- new name2[MAX_PLAYER_NAME];
- GetPlayerName(playerid,name,sizeof(name));
- GetPlayerName(playerid2,name2,sizeof(name2));
- format(string,sizeof(string),"L'admin %s(%d) ha jailato il giocatore %s(%d).",name,playerid,name2,playerid2);
- print(string);
- format(string,sizeof(string),"Sei stato jailato dall'admin %s(%d).",name,playerid);
- SendClientMessage(playerid2,COLOR_YELLOW,string);
- format(string,sizeof(string),"Hai jailato il giocatore %s(%d).",name2,playerid2);
- SendClientMessage(playerid,COLOR_YELLOW,string);
- SetPlayerPos(playerid2,PrigioneX,PrigioneY,PrigioneZ);
- SetPlayerInterior(playerid2,6);
- return 1;
- }
- if(strcmp(cmd, "/unjail", true) == 0)
- {
- if(AdminLevel[playerid] < ADMINSECONDARIO) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_YELLOW, "USO: /jail [playerid].");
- new playerid2;
- playerid2 = strval(tmp);
- PlaySound(playerid, SOUND_RACE_GO);
- new string[256];
- new name[MAX_PLAYER_NAME];
- new name2[MAX_PLAYER_NAME];
- GetPlayerName(playerid,name,sizeof(name));
- GetPlayerName(playerid2,name2,sizeof(name2));
- format(string,sizeof(string),"L'admin %s(%d) ha jailato il giocatore %s(%d).",name,playerid,name2,playerid2);
- print(string);
- format(string,sizeof(string),"Sei stato jailato dall'admin %s(%d).",name,playerid);
- SendClientMessage(playerid2,COLOR_YELLOW,string);
- format(string,sizeof(string),"Hai jailato il giocatore %s(%d).",name2,playerid2);
- SendClientMessage(playerid,COLOR_YELLOW,string);
- Kill(playerid2);
- return 1;
- }
- if(strcmp(cmd, "/explode", true) == 0)
- {
- if(AdminLevel[playerid] < ADMINSECONDARIO) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
- tmp = strtok(cmdtext, idx);
- if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_YELLOW, "USO: /explode [playerid].");
- new playa;
- playa = strval(tmp);
- PlaySound(playerid, SOUND_RACE_GO);
- GetPlayerName(playa, giveplayer, sizeof(giveplayer));
- GetPlayerName(playerid, sendername, sizeof(sendername));
- new string[256];
- format(string, sizeof(string), "L' admin %s ha fatto esplodere il giocatore %s.",sendername, giveplayer);
- SendClientMessageToAll(COLOR_WHITE, string);
- new Float:boomx, Float:boomy, Float:boomz;
- GetPlayerPos(playa,boomx, boomy, boomz);
- CreateExplosion(boomx, boomy , boomz, 7, 20);
- return 1;
- }
- if(strcmp(cmd, "/asay", true) == 0)
- {
- if(AdminLevel[playerid] < ADMINSECONDARIO) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
- new length = strlen(cmdtext);
- PlaySound(playerid, SOUND_RACE_GO);
- while ((idx < length) && (cmdtext[idx] <= ' '))
- {
- idx++;
- }
- new offset = idx;
- new result[64];
- while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
- {
- result[idx - offset] = cmdtext[idx];
- idx++;
- }
- result[idx - offset] = EOS;
- if(!strlen(result)) return SendClientMessage(playerid, COLOR_YELLOW, "USO: /asay [messaggio].");
- new string[256];
- format(string, sizeof(string), "Admin: %s", result);
- SendClientMessageToAll(COLOR_LIGHTBLUE,string);
- return 1;
- }
- if (strcmp(cmd, "/admins", true) == 0)
- {
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i) && AdminLevel[i] != GIOCATORE)
- {
- new string[256];
- GetPlayerName(i, sendername, sizeof(sendername));
- SendClientMessage(playerid, COLOR_RED, "Moderatori Online:");
- if(AdminLevel[i] == MODERATORE) format(string, 256, "Moderatore: %s", sendername);
- if(AdminLevel[i] == ADMINSECONDARIO) format(string, 256, "Admin livello 1: %s", sendername);
- if(AdminLevel[i] == ADMIN) format(string, 256, "Admin livello 2: %s", sendername);
- if(AdminLevel[i] == DEBUGGER||IsPlayerAdmin(i)) format(string, 256,"Admin livello 3: %s", sendername);
- SendClientMessage(playerid, COLOR_ADMIN, string);
- PlaySound(playerid, SOUND_RACE_GO);
- return 1;
- }
- return SendClientMessage(playerid,COLOR_RED,"Nessun moderatore connesso.");
- }
- }
- return SendClientMessage(playerid,COLOR_WHITE,"SERVER: Comando Sconosciuto. Per un aiuto usa /help, /help2 e /help3.");
- }
- //-=-=-=-=-=OnPlayerRequestClass=-=-=-=-=-
- public OnPlayerRequestClass(playerid,classid)
- {
- SetPlayerPos(playerid,-249.000000,6.000000,117.000000);
- SetPlayerFacingAngle(playerid,0.000000);
- SetPlayerCameraPos(playerid,-249.000000,9.000000,117.000000);
- SetPlayerCameraLookAt(playerid,-249.000000,6.000000,117.000000);
- PlaySound(playerid,SOUND_AWARD_TRACK_START);
- new team = GetPlayerTeam(playerid);
- if(team == 0) GameTextForPlayer(playerid," ~r~Goku~>~",1000,4);
- else if(team == 1) GameTextForPlayer(playerid,"~<~~b~Vegeta~>~",1000,4);
- else if(team == 2) GameTextForPlayer(playerid,"~<~~y~Trunks~>~",1000,4);
- else if(team == 3) GameTextForPlayer(playerid,"~<~~g~Gohan~>~",1000,4);
- else if(team == 4) GameTextForPlayer(playerid,"~<~~p~Mr.Satan~>~",1000,4);
- else if(team == 5) GameTextForPlayer(playerid,"~<~~r~Videl~>~",1000,4);
- else if(team == 6) GameTextForPlayer(playerid,"~<~~b~Crilin~>~",1000,4);
- else if(team == 7) GameTextForPlayer(playerid,"~<~~y~Yamcha~>~",1000,4);
- else if(team == 8) GameTextForPlayer(playerid,"~<~~g~Tenshinshan~>~",1000,4);
- else if(team == 9) GameTextForPlayer(playerid,"~<~~p~Dr.Gelo~>~",1000,4);
- else if(team == 10) GameTextForPlayer(playerid,"~<~~r~C16~>~",1000,4);
- else if(team == 11) GameTextForPlayer(playerid,"~<~~b~C17~>~",1000,4);
- else if(team == 12) GameTextForPlayer(playerid,"~<~~y~C18~>~",1000,4);
- else if(team == 13) GameTextForPlayer(playerid,"~<~~g~C19",1000,4);
- return 1;
- }
- /*//-=-=-=-=-=OnPlayerUpdateKi=-=-=-=-=-
- public OnPlayerUpdateKi(playerid)
- {
- return 1;
- }*/
- //-=-=-=-=-=OnDialogResponse=-=-=-=-=-
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- new string[256];
- new name[MAX_PLAYER_NAME];
- switch(dialogid)
- {
- case DIALOGO_KILL:
- {
- if(!response) return 1;
- SetPlayerHealth(playerid,0);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Adesso puoi cambiare personaggio e battleground.");
- }
- case DIALOGO_SPAWN:
- {
- GetPlayerName(playerid,name,sizeof(name));
- SendClientMessage(playerid,COLOR_RED,"Per personalizzare il tuo personaggio, vai al Salone.");
- PlaySound(playerid,SOUND_BEE_TRACK_STOP);
- //Fa aspettare 2 secondi al giocatore immobile per evitare Timeouts
- TogglePlayerControllable(playerid,false);
- GameTextForPlayer(playerid,"Caricamento zona in corso...",2000,5);
- SetTimerEx("Unfreeze",2000,0,"i",playerid);
- if(!response)
- {
- rand = random(sizeof(RandomSpawns));
- SetPlayerPos(playerid,RandomSpawns[rand][0],RandomSpawns[rand][1],RandomSpawns[rand][2]);
- SetPlayerInterior(playerid,0);
- TogglePlayerControllable(playerid,true);
- format(string,sizeof(string),"INFO: {FF0000}%s {FFFF00}è spawnato in un battleground {33AA33}casuale.",name);
- SendClientMessageToAll(COLOR_YELLOW,string);
- GameTextForPlayer(playerid,"~r~COMBATTI!",2000,5);
- return 1;
- }
- switch(listitem)
- {
- case BATTLEGROUND_PANOPTICON:
- {
- rand = random(sizeof(RandomPanopticon));
- SetPlayerPos(playerid,RandomPanopticon[rand][0],RandomPanopticon[rand][1],RandomPanopticon[rand][2]);
- SetPlayerInterior(playerid,0);
- TogglePlayerControllable(playerid,true);
- format(string,sizeof(string),"INFO: {FF0000}%s {FFFF00}è spawnato nel battleground {33AA33}Villaggio Abbandonato.",name);
- SendClientMessageToAll(COLOR_YELLOW,string);
- GameTextForPlayer(playerid,"~r~COMBATTI!",2000,5);
- print(string);
- }
- case BATTLEGROUND_TORNEO:
- {
- rand = random(sizeof(RandomTorneo));
- SetPlayerPos(playerid,RandomTorneo[rand][0],RandomTorneo[rand][1],RandomTorneo[rand][2]);
- SetPlayerInterior(playerid,0);
- TogglePlayerControllable(playerid,true);
- format(string,sizeof(string),"INFO: {FF0000}%s {FFFF00}è spawnato nel battleground {33AA33}Torneo Tenkaichi.",name);
- SendClientMessageToAll(COLOR_YELLOW,string);
- PlayerPlaySound(playerid,SOUND_OTB_TRACK_START,370.051879,-2023.086547,7.671875);
- //CreatePlayerObject(playerid, 18864, 370.051879,-2023.086547,7.671875, 0, 0, 0); //NEVE NATALIZIA FOR CHRISTMAS UNCOMMENT THIS LINE
- GameTextForPlayer(playerid,"~r~COMBATTI!",2000,5);
- print(string);
- }
- case BATTLEGROUND_UNDERWATER:
- {
- rand = random(sizeof(RandomUnderwater));
- SetPlayerPos(playerid,RandomUnderwater[rand][0],RandomUnderwater[rand][1],RandomUnderwater[rand][2]);
- SetPlayerInterior(playerid,0);
- TogglePlayerControllable(playerid,true);
- format(string,sizeof(string),"INFO: {FF0000}%s {FFFF00}è spawnato nel battleground {33AA33}Sotto il mare",name);
- SendClientMessageToAll(COLOR_YELLOW,string);
- GameTextForPlayer(playerid,"~r~COMBATTI!",2000,5);
- print(string);
- }
- case BATTLEGROUND_GRATTACIELO:
- {
- rand = random(sizeof(RandomGrattacielo));
- SetPlayerPos(playerid,RandomGrattacielo[rand][0],RandomGrattacielo[rand][1],RandomGrattacielo[rand][2]);
- SetPlayerInterior(playerid,0);
- TogglePlayerControllable(playerid,true);
- format(string,sizeof(string),"INFO: {FF0000}%s {FFFF00}è spawnato nel battleground {33AA33}Grattacielo.",name);
- SendClientMessageToAll(COLOR_YELLOW,string);
- GameTextForPlayer(playerid,"~r~COMBATTI!",2000,5);
- print(string);
- }
- case BATTLEGROUND_PONTE:
- {
- rand = random(sizeof(RandomPonte));
- SetPlayerPos(playerid,RandomPonte[rand][0],RandomPonte[rand][1],RandomPonte[rand][2]);
- SetPlayerInterior(playerid,0);
- TogglePlayerControllable(playerid,true);
- GameTextForPlayer(playerid,"~r~COMBATTI!",2000,5);
- format(string,sizeof(string),"INFO: {FF0000}%s {FFFF00}è spawnato nel battleground {33AA33}Ponte.",name);
- SendClientMessageToAll(COLOR_YELLOW,string);
- print(string);
- }
- case BATTLEGROUND_ALLENAMENTO:
- {
- rand = random(sizeof(RandomAllenamento));
- SetPlayerPos(playerid,RandomAllenamento[rand][0],RandomAllenamento[rand][1],RandomAllenamento[rand][2]);
- SetPlayerInterior(playerid,0);
- TogglePlayerControllable(playerid,true);
- GameTextForPlayer(playerid,"~r~COMBATTI!",2000,5);
- format(string,sizeof(string),"INFO: {FF0000}%s {FFFF00}è spawnato nel battleground {33AA33}Zona di allenamento.",name);
- SendClientMessageToAll(COLOR_YELLOW,string);
- print(string);
- }
- case BATTLEGROUND_AREA51:
- {
- rand = random(sizeof(RandomArea51));
- SetPlayerPos(playerid,RandomArea51[rand][0],RandomArea51[rand][1],RandomArea51[rand][2]);
- SetPlayerInterior(playerid,0);
- TogglePlayerControllable(playerid,true);
- GameTextForPlayer(playerid,"~r~COMBATTI!",2000,5);
- format(string,sizeof(string),"INFO: {FF0000}%s {FFFF00}è spawnato nel battleground {33AA33}Area 51.",name);
- SendClientMessageToAll(COLOR_YELLOW,string);
- print(string);
- }
- case BATTLEGROUND_CASINO:
- {
- rand = random(sizeof(RandomCasino));
- SetPlayerPos(playerid,RandomCasino[rand][0],RandomCasino[rand][1],RandomCasino[rand][2]);
- SetPlayerInterior(playerid,0);
- TogglePlayerControllable(playerid,true);
- format(string,sizeof(string),"INFO: {FF0000}%s {FFFF00}è spawnato nel battleground {33AA33}Casinò.",name);
- SendClientMessageToAll(COLOR_YELLOW,string);
- GameTextForPlayer(playerid,"~r~COMBATTI!",2000,5);
- print(string);
- }
- case BATTLEGROUND_SALONE:
- {
- rand = random(sizeof(RandomCasino));
- SetPlayerPos(playerid,830.6016,5.9404,1004.1797);
- SetPlayerInterior(playerid,3);
- TogglePlayerControllable(playerid,true);
- format(string,sizeof(string),"INFO: {FF0000}%s {FFFF00}è spawnato nel battleground {33AA33}Salone.",name);
- SendClientMessageToAll(COLOR_YELLOW,string);
- GameTextForPlayer(playerid,"~r~BENVENUTO AL SALONE!",2000,5);
- ResetPlayerMoney(playerid);
- print(string);
- }
- }
- return 1;
- }
- case DIALOGO_REGOLE:
- {
- if(!response)
- {
- GetPlayerName(playerid,name,sizeof(name));
- format(string, sizeof(string), "-SSB- %s è stato kickato dal server per non aver accettato il regolamento.", name);
- SendClientMessageToAll(COLOR_KICK/BAN,string);
- SendClientMessage(playerid,COLOR_KICK/BAN,"Per giocare devi LEGGERE ed ACCETTARE il regolamento.");
- SendClientMessage(playerid,COLOR_KICK/BAN,"Se secondo te il regolamento ha qualcosa di sbagliato vai sul forum grovefamily.forumfree.it.");
- GameTextForPlayer(playerid,"ORA SEI DISCONNESSO. /Q PER USCIRE DAL GIOCO.",300000,5);
- print(string);
- Kick(playerid);
- }
- return 1;
- }
- case DIALOGO_SHENRON:
- {
- switch(listitem)
- {
- case 0:
- {
- PlayerInfo[playerid][Desideri][dSpada] = 1;
- SendClientMessage(playerid,COLOR_GREEN,"Hai desiderato la spada per Trunks!");
- SendClientMessage(playerid,COLOR_GREEN,"Quando selezionerai Trunks avrai una spada!!");
- }
- case 1:
- {
- PlayerInfo[playerid][Desideri][dColtello] = 1;
- SendClientMessage(playerid,COLOR_GREEN,"Hai desiderato il pugnale per Videl!");
- SendClientMessage(playerid,COLOR_GREEN,"Quando selezionerai Videl avrai un coltello!!");
- }
- case 2:
- {
- PlayerInfo[playerid][Desideri][dBazooka] = 1;
- SendClientMessage(playerid,COLOR_GREEN,"Hai desiderato il lanciarazzi per C16!");
- SendClientMessage(playerid,COLOR_GREEN,"Quando selezionerai C16 avrai un lanciarazzi!!");
- }
- }
- return 1;
- }
- case DIALOGO_SALVARE:
- {
- new skin = GetPlayerSkin(playerid);
- new string2[256];
- new name2[MAX_PLAYER_NAME];
- if(!response)
- {
- GetPlayerName(playerid,name2,sizeof(name2));
- format(string2, sizeof(string2), "Tavole/%s.%d.ini", name2,skin);
- if(INI_Exist(string2))
- {
- INI_Open(string2);
- PlayerInfo[playerid][Stats][Stile][skin] = INI_ReadInt("Stile");
- PlayerInfo[playerid][Stats][Attacco][skin] = INI_ReadInt("Attacco");
- PlayerInfo[playerid][Stats][Velocita][skin] = INI_ReadInt("Velocita");
- PlayerInfo[playerid][Stats][AuraMax][skin] = INI_ReadInt("AuraMax");
- PlayerInfo[playerid][Stats][SaluteMax][skin] = INI_ReadInt("SaluteMax");
- PlayerInfo[playerid][Stats][AuraSize][skin] = INI_ReadFloat("AuraSize");
- INI_Close();
- TogglePlayerControllable(playerid,false);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Stai ricaricando i dati precedenti per questo personaggio...");
- GameTextForPlayer(playerid,"Caricamento...",5000,5);
- SetTimerEx("Unfreeze",5000,0,"i",playerid);
- SetTimerEx("Caricamento25",1000,0,"i",playerid);
- SetTimerEx("Caricamento50",2500,0,"i",playerid);
- SetTimerEx("Caricamento100",5000,0,"i",playerid);
- return 1;
- }
- else if(!INI_Exist(string2))
- {
- GetPlayerName(playerid,name2,sizeof(name2));
- format(string2, sizeof(string2), "Tavole/%s.%d.ini", name2,skin);
- INI_Open(string2);
- INI_WriteInt("Stile", 0);
- INI_WriteInt("Attacco", 0);
- INI_WriteInt("Velocita", 0);
- INI_WriteInt("AuraMax", 0);
- INI_WriteInt("SaluteMax", 0);
- INI_WriteFloat("AuraSize", 0);
- INI_Save();
- INI_Close();
- GameTextForPlayer(playerid,"Caricamento...",1000,5);
- SetTimerEx("Unfreeze",1000,0,"i",playerid);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Questo personaggio non ha una tavola precedente, quindi è stato tutto azzerato.");
- GetPlayerName(playerid,name,sizeof(name));
- format(string2, sizeof(string), "Dragonball/%s.ini", name, skin);
- INI_Open(string2);
- //{
- PlayerInfo[playerid][Punteggio] = INI_ReadInt("Score");
- SetPlayerScore(playerid,PlayerInfo[playerid][Punteggio]);
- INI_Close();
- //}
- return 1;
- }
- }
- else
- {
- GetPlayerName(playerid,name2,sizeof(name2));
- format(string2, sizeof(string2), "Tavole/%s.%d.ini", name2,skin);
- INI_Open(string2);
- INI_WriteInt("Stile", PlayerInfo[playerid][Stats][Stile][skin]);
- INI_WriteInt("Attacco", PlayerInfo[playerid][Stats][Attacco][skin]);
- INI_WriteInt("Velocita", PlayerInfo[playerid][Stats][Velocita][skin]);
- INI_WriteInt("AuraMax", PlayerInfo[playerid][Stats][AuraMax][skin]);
- INI_WriteInt("SaluteMax", PlayerInfo[playerid][Stats][SaluteMax][skin]);
- INI_WriteFloat("AuraSize", PlayerInfo[playerid][Stats][AuraSize][skin]);
- INI_Save();
- INI_Close();
- //Fa aspettare 3 secondi al giocatore immobile per evitare Timeouts
- TogglePlayerControllable(playerid,false);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Stai salvando la personalizzazione di questo personaggio...");
- GameTextForPlayer(playerid,"Salvataggio...",3000,5);
- SetTimerEx("Unfreeze",3000,0,"i",playerid);
- return 1;
- }
- }
- case DIALOGO_PERSONALIZZA://CLICCARE "FIND" E INSERIRE "1997" PER TROVARE IMMEDIATAMENTE QUESTA SEZIONE DELLO SCRIPT
- {
- if(!response)
- {
- ShowPlayerDialog(playerid, DIALOGO_SALVARE, DIALOG_STYLE_MSGBOX, SECONDARY_DIALOG_TEXT, "Salvare la nuova tavola o ricaricare quella precedente?", "Salva", "Annulla");
- return 1;
- }
- switch(listitem)
- {
- case 0:
- {
- ShowPlayerDialog(playerid, DIALOGO_STILE, DIALOG_STYLE_LIST, "Scegli uno stile di combattimento (CLICK DESTRO + INVIO)", TEXT_DIALOGO_STILE, "Applica", "Indietro");
- }
- case 1:
- {
- ShowPlayerDialog(playerid, DIALOGO_ATTACCO, DIALOG_STYLE_LIST, "Scegli il tuo Attacco Speciale", TEXT_DIALOGO_ATTACCO1,"Applica","Indietro");
- }
- case 2:
- {
- ShowPlayerDialog(playerid, DIALOGO_PIU_VELOCITA, DIALOG_STYLE_LIST, "Imposta la tua velocità di slancio", TEXT_DIALOGO_VELOCITA,"Applica","Indietro");
- }
- case 3:
- {
- if(IsPlayerAnAndroid(playerid))
- {
- GameTextForPlayer(playerid,"~r~I Cyborg(Androidi) non hanno aura!",1000,5);
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- return 1;
- }
- ShowPlayerDialog(playerid, DIALOGO_PIU_AURA, DIALOG_STYLE_LIST, "Imposta la quantità massima d'aura.",TEXT_DIALOGO_AURA,"Applica","Indietro");
- }
- case 4:
- {
- ShowPlayerDialog(playerid, DIALOGO_PIU_SALUTE, DIALOG_STYLE_LIST, "Imposta la quantità massima di salute.",TEXT_DIALOGO_SALUTE,"Applica","Indietro");
- }
- case 5:
- {
- ShowPlayerDialog(playerid, DIALOGO_AURA_SIZE, DIALOG_STYLE_MSGBOX, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_SIZE, "Applica", "Indietro");
- }
- case 6:
- {
- ShowPlayerDialog(playerid, DIALOGO_AURA_SIZE2, DIALOG_STYLE_MSGBOX, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_SIZE2, "Applica", "Indietro");
- }
- }
- return 1;
- }
- case DIALOGO_AURA_SIZE:
- {
- new skin = GetPlayerSkin(playerid);
- if(!response) return ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- if(GetPlayerScore(playerid) < 20) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- AddPlayerScore(playerid,-20);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 20 Punti del Drago per ricevere l'oggetto \"Incremento di 0.5 su grandezza aura\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- if(PlayerInfo[playerid][Stats][AuraSize][skin] == 0.0) PlayerInfo[playerid][Stats][AuraSize][skin] = 1.5;
- else PlayerInfo[playerid][Stats][AuraSize][skin] += 0.5;
- return 1;
- }
- case DIALOGO_AURA_SIZE2:
- {
- new skin = GetPlayerSkin(playerid);
- if(!response) return ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- if(GetPlayerScore(playerid) < 5) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- AddPlayerScore(playerid,-5);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 5 Punti del Drago per ricevere l'oggetto \"Decremento di 0.5 su grandezza aura\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- if(PlayerInfo[playerid][Stats][AuraSize][skin] == 0.5) PlayerInfo[playerid][Stats][AuraSize][skin] = 0.5;
- else PlayerInfo[playerid][Stats][AuraSize][skin] -= 0.5;
- return 1;
- }
- case DIALOGO_STILE:
- {
- new skin = GetPlayerSkin(playerid);
- if(!response) return ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- switch(listitem)
- {
- case 0:
- {
- if(GetPlayerScore(playerid) < 20) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- SetPlayerFightingStyle(playerid, FIGHT_STYLE_KUNGFU);
- PlayerInfo[playerid][Stats][Stile][skin] = FIGHT_STYLE_KUNGFU;
- AddPlayerScore(playerid,-20);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 20 Punti del Drago per ricevere l'oggetto \"Stile dei guerrieri Z\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 1:
- {
- if(GetPlayerScore(playerid) < 10) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- SetPlayerFightingStyle(playerid, FIGHT_STYLE_BOXING);
- PlayerInfo[playerid][Stats][Stile][skin] = FIGHT_STYLE_BOXING;
- AddPlayerScore(playerid,-10);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 10 Punti del Drago per ricevere l'oggetto \"Stile dei guerrieri deboli\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 2:
- {
- if(GetPlayerScore(playerid) < 25) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- SetPlayerFightingStyle(playerid, FIGHT_STYLE_KNEEHEAD);
- PlayerInfo[playerid][Stats][Stile][skin] = FIGHT_STYLE_KNEEHEAD;
- AddPlayerScore(playerid,-25);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 25 Punti del Drago per ricevere l'oggetto \"Stile degli androidi forti\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 3:
- {
- if(GetPlayerScore(playerid) < 15) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- SetPlayerFightingStyle(playerid, FIGHT_STYLE_GRABKICK);
- PlayerInfo[playerid][Stats][Stile][skin] = FIGHT_STYLE_GRABKICK;
- AddPlayerScore(playerid,-15);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 15 Punti del Drago per ricevere l'oggetto \"Stile degli androidi deboli\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- }
- return 1;
- }
- case DIALOGO_ATTACCO:
- {
- new skin = GetPlayerSkin(playerid);
- if(!response) return ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- switch(listitem)
- {
- case 0:
- {
- if(GetPlayerScore(playerid) < 30) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][Attacco][skin] = KAMEHAMEHA;
- AddPlayerScore(playerid,-30);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 30 Punti del Drago per ricevere l'oggetto \"Kamehameha\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 1:
- {
- if(GetPlayerScore(playerid) < 40) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][Attacco][skin] = KAMEHAMEHA_FURIA;
- AddPlayerScore(playerid,-40);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 40 Punti del Drago per ricevere l'oggetto \"Kamehameha Furiosa\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 2:
- {
- if(GetPlayerScore(playerid) < 50) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][Attacco][skin] = SUPER_KAMEHAMEHA;
- AddPlayerScore(playerid,-50);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 50 Punti del Drago per ricevere l'oggetto \"Super Kamehameha\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 3:
- {
- if(GetPlayerScore(playerid) < 60) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][Attacco][skin] = KAMEHAMEHA_MAX;
- AddPlayerScore(playerid,-60);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 60 Punti del Drago per ricevere l'oggetto \"Kamehameha A Massima Intensità\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 4:
- {
- if(GetPlayerScore(playerid) < 30) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][Attacco][skin] = CANNONE_ESPLOSIVO;
- AddPlayerScore(playerid,-30);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 30 Punti del Drago per ricevere l'oggetto \"Cannone Esplosivo\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 5:
- {
- if(GetPlayerScore(playerid) < 40) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][Attacco][skin] = BIG_BANG_ATTACK;
- AddPlayerScore(playerid,-40);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 40 Punti del Drago per ricevere l'oggetto \"Attacco Big Bang\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 6:
- {
- if(GetPlayerScore(playerid) < 50) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][Attacco][skin] = LAMPO_FINALE;
- AddPlayerScore(playerid,-50);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 50 Punti del Drago per ricevere l'oggetto \"Lampo Finale\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 7:
- {
- if(GetPlayerScore(playerid) < 20) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][Attacco][skin] = MASENKO;
- AddPlayerScore(playerid,-20);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 20 Punti del Drago per ricevere l'oggetto \"Masenko\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 8:
- {
- if(GetPlayerScore(playerid) < 40) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][Attacco][skin] = SUPER_MASENKO;
- AddPlayerScore(playerid,-40);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 40 Punti del Drago per ricevere l'oggetto \"Super Masenko\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 9:
- {
- if(GetPlayerScore(playerid) < 30) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][Attacco][skin] = ATTACCO_BRUCIANTE;
- AddPlayerScore(playerid,-30);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 30 Punti del Drago per ricevere l'oggetto \"Attacco Bruciante\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 10: { ShowPlayerDialog(playerid, DIALOGO_ATTACCO2, DIALOG_STYLE_LIST, "Scegli l'Attacco Speciale da usare con /att.", TEXT_DIALOGO_ATTACCO2,"Applica","Indietro"); }
- }
- return 1;
- }
- case DIALOGO_SALVA_PARTITA:
- {
- switch(listitem)
- {
- case 0: return 1;
- case 1:
- {
- DBZ_Update(playerid);
- GameTextForPlayer(playerid,"Dati di gioco salvati",2000,5);
- return 1;
- }
- case 2:
- {
- DBZ_Update(playerid);
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- return 1;
- }
- case 3:
- {
- ShowPlayerDialog(playerid, DIALOGO_SCOMMESSE, DIALOG_STYLE_INPUT,"Scommessa battaglia:", "Scegli il giocatore su cui scommettere","Avanti","Annulla");
- return 1;
- }
- case 4:
- {
- new SRegole[450];
- for(new i=0;i<sizeof(Regole);i++) format(SRegole,sizeof(SRegole),"%s%s",SRegole,Regole[i]);
- ShowPlayerDialog(playerid, DIALOGO_REGOLE, DIALOG_STYLE_MSGBOX,"Hai aperto il messaggio delle regole.", SRegole, "Esci", "");
- return 1;
- }
- case 5:
- {
- OnPlayerCommandText(playerid,"/help");
- return 1;
- }
- case 6:
- {
- DBZ_Update(playerid);
- SetPlayerHealth(playerid,0);
- ForceClassSelection(playerid);
- return 1;
- }
- }
- }
- case DIALOGO_SCOMMESSE://scrivere 2011 per trovare questa parte di script
- {
- if(!response) return 1;
- new namescomm[MAX_PLAYER_NAME];
- GetPlayerName(ScommessaPlayer[playerid],namescomm,sizeof(namescomm));
- format(string,sizeof(string),"Puoi scommettere una sola volta finchè %s(%d) non vince o perde.",namescomm,ScommessaPlayer[playerid]);
- if(ScommessaPlayer[playerid] != null) return SendClientMessage(playerid,COLOR_RED,string);
- if(!strval(inputtext)) return ShowPlayerDialog(playerid, DIALOGO_SCOMMESSE, DIALOG_STYLE_INPUT,"Inserisci solo numeri!", "Scegli il giocatore su cui scommettere","Avanti","Annulla");
- if(!IsPlayerConnected(strval(inputtext))) return ShowPlayerDialog(playerid, DIALOGO_SCOMMESSE, DIALOG_STYLE_INPUT,"Inserisci un ID valido!", "Scegli il giocatore su cui scommettere","Avanti","Annulla");
- if(IsPlayerNPC(strval(inputtext))) return ShowPlayerDialog(playerid, DIALOGO_SCOMMESSE, DIALOG_STYLE_INPUT,"Non puoi scommettere su un NPC!", "Scegli il giocatore su cui scommettere","Avanti","Annulla");
- if(strval(inputtext) == playerid) return ShowPlayerDialog(playerid, DIALOGO_SCOMMESSE, DIALOG_STYLE_INPUT,"Non puoi scommettere su te stesso!", "Scegli il giocatore su cui scommettere","Avanti","Annulla");
- ScommessaPlayer[playerid] = strval(inputtext);
- ShowPlayerDialog(playerid, DIALOGO_SCOMMESSE2, DIALOG_STYLE_INPUT,"Scommessa battaglia:", "Scegli la quantita di punti del Drago da scommettere","Avanti","Annulla");
- return 1;
- }
- case DIALOGO_SCOMMESSE2:
- {
- if(!response)
- {
- ScommessaPlayer[playerid] = null;
- SendClientMessage(playerid,COLOR_RED,"Tutte le tue scommesse attuali sono state annullate.");
- return 1;
- }
- new score = GetPlayerScore(playerid);
- if(!strval(inputtext)) return ShowPlayerDialog(playerid, DIALOGO_SCOMMESSE2, DIALOG_STYLE_INPUT,"Inserisci solo numeri!", "Scegli la quantita di punti del Drago da scommettere","Avanti","Annulla");
- if(score < strval(inputtext)) return ShowPlayerDialog(playerid, DIALOGO_SCOMMESSE2, DIALOG_STYLE_INPUT,"Non hai abbastanza PdD!", "Scegli la quantita di punti del Drago da scommettere","Avanti","Annulla");
- if(strval(inputtext) > 50) return ShowPlayerDialog(playerid, DIALOGO_SCOMMESSE2, DIALOG_STYLE_INPUT,"Il massimo è 50 PdD!", "Scegli la quantita di punti del Drago da scommettere","Avanti","Annulla");
- if(strval(inputtext) < 0) return ShowPlayerDialog(playerid, DIALOGO_SCOMMESSE2, DIALOG_STYLE_INPUT,"Il minimo è 0 PdD!", "Scegli la quantita di punti del Drago da scommettere","Avanti","Annulla");
- ScommessaSoldi[playerid] = strval(inputtext);
- new scommettitore[MAX_PLAYER_NAME];
- new scommesso[MAX_PLAYER_NAME];
- new quota = ScommessaSoldi[playerid];
- new playerid2 = ScommessaPlayer[playerid];
- GetPlayerName(playerid,scommettitore,sizeof(scommettitore));
- GetPlayerName(playerid2,scommesso,sizeof(scommesso));
- format(string,sizeof(string),"Hai puntato %d Punti del Drago su di %s(%d).",quota,scommesso,playerid2);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
- format(string,sizeof(string),"%s(%d) ha puntato %d Punti del Drago su di te.",scommettitore,playerid,quota);
- SendClientMessage(playerid2,COLOR_LIGHTBLUE,string);
- AddPlayerScore(playerid,-quota);
- return 1;
- }
- case DIALOGO_PIU_AURA:
- {
- new skin = GetPlayerSkin(playerid);
- if(!response) return ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- switch(listitem)
- {
- case 0:
- {
- if(GetPlayerScore(playerid) < 10) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][AuraMax][skin] = 100;
- AddPlayerScore(playerid,-10);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 10 Punti del Drago per ricevere l'oggetto \"100 Unità Aura\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 1:
- {
- if(GetPlayerScore(playerid) < 35) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][AuraMax][skin] = 125;
- AddPlayerScore(playerid,-35);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 35 Punti del Drago per ricevere l'oggetto \"125 Unità Aura\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 2:
- {
- if(GetPlayerScore(playerid) < 60) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][AuraMax][skin] = 150;
- AddPlayerScore(playerid,-60);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 60 Punti del Drago per ricevere l'oggetto \"150 Unità Aura\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 3:
- {
- if(GetPlayerScore(playerid) < 110) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][AuraMax][skin] = 200;
- AddPlayerScore(playerid,-110);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 110 Punti del Drago per ricevere l'oggetto \"200 Unità Aura\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 4:
- {
- if(GetPlayerScore(playerid) < 135) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][AuraMax][skin] = 225;
- AddPlayerScore(playerid,-135);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 135 Punti del Drago per ricevere l'oggetto \"225 Unità Aura\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 5:
- {
- if(GetPlayerScore(playerid) < 160) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][AuraMax][skin] = 250;
- AddPlayerScore(playerid,-160);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 160 Punti del Drago per ricevere l'oggetto \"250 Unità Aura\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 6:
- {
- if(GetPlayerScore(playerid) < 210) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][AuraMax][skin] = 300;
- AddPlayerScore(playerid,-210);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 210 Punti del Drago per ricevere l'oggetto \"300 Unità Aura\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 7:
- {
- if(GetPlayerScore(playerid) < 260) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][AuraMax][skin] = 350;
- AddPlayerScore(playerid,-260);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 260 Punti del Drago per ricevere l'oggetto \"350 Unità Aura\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 8:
- {
- if(GetPlayerScore(playerid) < 310) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][AuraMax][skin] = 400;
- AddPlayerScore(playerid,-310);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 310 Punti del Drago per ricevere l'oggetto \"400 Unità Aura\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 9:
- {
- if(GetPlayerScore(playerid) < 410) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][AuraMax][skin] = 500;
- AddPlayerScore(playerid,-410);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 410 Punti del Drago per ricevere l'oggetto \"500 Unità Aura\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- }
- return 1;
- }
- case DIALOGO_PIU_SALUTE:
- {
- new skin = GetPlayerSkin(playerid);
- if(!response) return ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- switch(listitem)
- {
- case 0:
- {
- if(GetPlayerScore(playerid) < 10) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][SaluteMax][skin] = 100;
- AddPlayerScore(playerid,-10);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 10 Punti del Drago per ricevere l'oggetto \"100 HP\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 1:
- {
- if(GetPlayerScore(playerid) < 25) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][SaluteMax][skin] = 150;
- AddPlayerScore(playerid,-25);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 25 Punti del Drago per ricevere l'oggetto \"150 HP\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 2:
- {
- if(GetPlayerScore(playerid) < 50) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][SaluteMax][skin] = 200;
- AddPlayerScore(playerid,-50);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 50 Punti del Drago per ricevere l'oggetto \"200 HP\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 3:
- {
- if(GetPlayerScore(playerid) < 75) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][SaluteMax][skin] = 250;
- AddPlayerScore(playerid,-75);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 75 Punti del Drago per ricevere l'oggetto \"250 HP\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 4:
- {
- if(GetPlayerScore(playerid) < 100) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][SaluteMax][skin] = 300;
- AddPlayerScore(playerid,-100);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 100 Punti del Drago per ricevere l'oggetto \"300 HP\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 5:
- {
- if(GetPlayerScore(playerid) < 125) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][SaluteMax][skin] = 350;
- AddPlayerScore(playerid,-125);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 125 Punti del Drago per ricevere l'oggetto \"350 HP\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 6:
- {
- if(GetPlayerScore(playerid) < 150) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][SaluteMax][skin] = 400;
- AddPlayerScore(playerid,-150);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 150 Punti del Drago per ricevere l'oggetto \"400 HP\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 7:
- {
- if(GetPlayerScore(playerid) < 175) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][SaluteMax][skin] = 450;
- AddPlayerScore(playerid,-175);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 175 Punti del Drago per ricevere l'oggetto \"450 HP\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 8:
- {
- if(GetPlayerScore(playerid) < 200) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][SaluteMax][skin] = 500;
- AddPlayerScore(playerid,-200);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 200 Punti del Drago per ricevere l'oggetto \"500 HP\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- }
- return 1;
- }
- case DIALOGO_PIU_VELOCITA:
- {
- new skin = GetPlayerSkin(playerid);
- if(!response) return ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- switch(listitem)
- {
- case 0:
- {
- if(GetPlayerScore(playerid) < 25) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][Velocita][skin] = 10;
- AddPlayerScore(playerid,-25);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 25 Punti del Drago per ricevere l'oggetto \"Velocità 10 MPI\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 1:
- {
- if(GetPlayerScore(playerid) < 50) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][Velocita][skin] = 20;
- AddPlayerScore(playerid,-50);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 50 Punti del Drago per ricevere l'oggetto \"Velocità 20 MPI\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 2:
- {
- if(GetPlayerScore(playerid) < 75) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][Velocita][skin] = 30;
- AddPlayerScore(playerid,-75);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 75 Punti del Drago per ricevere l'oggetto \"Velocità 30 MPI\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 3:
- {
- if(GetPlayerScore(playerid) < 100) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][Velocita][skin] = 40;
- AddPlayerScore(playerid,-100);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 100 Punti del Drago per ricevere l'oggetto \"Velocità 40 MPI\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 4:
- {
- if(GetPlayerScore(playerid) < 125) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][Velocita][skin] = 50;
- AddPlayerScore(playerid,-125);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 125 Punti del Drago per ricevere l'oggetto \"Velocità 50 MPI\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 5:
- {
- if(GetPlayerScore(playerid) < 150) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][Velocita][skin] = 60;
- AddPlayerScore(playerid,-150);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 150 Punti del Drago per ricevere l'oggetto \"Velocità 60 MPI\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 6:
- {
- if(GetPlayerScore(playerid) < 175) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][Velocita][skin] = 70;
- AddPlayerScore(playerid,-175);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 175 Punti del Drago per ricevere l'oggetto \"Velocità 70 MPI\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 7:
- {
- if(GetPlayerScore(playerid) < 200) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][Velocita][skin] = 80;
- AddPlayerScore(playerid,-200);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 200 Punti del Drago per ricevere l'oggetto \"Velocità 80 MPI\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- }
- return 1;
- }
- case DIALOGO_ATTACCO2:
- {
- new skin = GetPlayerSkin(playerid);
- if(!response) return ShowPlayerDialog(playerid, DIALOGO_ATTACCO, DIALOG_STYLE_LIST, "Scegli l'Attacco Speciale da usare con /att.", TEXT_DIALOGO_ATTACCO1,"Applica","Indietro");
- switch(listitem)
- {
- case 0:
- {
- if(GetPlayerScore(playerid) < 40) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][Attacco][skin] = DISTRUTTORE_LETALE;
- AddPlayerScore(playerid,-40);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 40 Punti del Drago per ricevere l'oggetto \"Distruttore Letale\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 1:
- {
- if(GetPlayerScore(playerid) < 45) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][Attacco][skin] = ARTIGLIO_DEL_LUPO;
- AddPlayerScore(playerid,-45);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 45 Punti del Drago per ricevere l'oggetto \"Artiglio Del Lupo Esplosivo\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 2:
- {
- if(GetPlayerScore(playerid) < 45) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][Attacco][skin] = TRIPLO_RAGGIO;
- AddPlayerScore(playerid,-45);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 45 Punti del Drago per ricevere l'oggetto \"Triplo Raggio\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 3:
- {
- if(GetPlayerScore(playerid) < 30) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][Attacco][skin] = RAGGIO_ENERGETICO;
- AddPlayerScore(playerid,-30);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 30 Punti del Drago per ricevere l'oggetto \"Raggio Energetico\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 4:
- {
- if(GetPlayerScore(playerid) < 50) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][Attacco][skin] = SFERE_ENERGETICHE;
- AddPlayerScore(playerid,-50);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 50 Punti del Drago per ricevere l'oggetto \"Sfere Energetiche\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 5:
- {
- if(GetPlayerScore(playerid) < 50) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][Attacco][skin] = LANCIARAZZI;
- AddPlayerScore(playerid,-50);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 50 Punti del Drago per ricevere l'oggetto \"Lanciarazzi Incorporato\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 6:
- {
- if(GetPlayerScore(playerid) < 10) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][Attacco][skin] = IL_CAMPIONE;
- AddPlayerScore(playerid,-10);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 10 Punti del Drago per ricevere l'oggetto \"Il Campione\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 7:
- {
- if(GetPlayerScore(playerid) < 15) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][Attacco][skin] = GRAN_BOMBA_AURA;
- AddPlayerScore(playerid,-15);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 15 Punti del Drago per ricevere l'oggetto \"Gran Bomba D'Aura\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 8:
- {
- if(GetPlayerScore(playerid) < 80) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][Attacco][skin] = KAMEHAMEHA_FINALE;
- AddPlayerScore(playerid,-80);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 80 Punti del Drago per ricevere l'oggetto \"Kamehameha Finale\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- case 9:
- {
- if(GetPlayerScore(playerid) < 100) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
- PlayerInfo[playerid][Stats][Attacco][skin] = KAMEHAMEHA_BIG_BANG;
- AddPlayerScore(playerid,-100);
- GameTextForPlayer(playerid,"Caricamento",500,5);
- SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 100 Punti del Drago per ricevere l'oggetto \"Kamehameha Big Bang\"!");
- ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
- }
- }
- return 1;
- }
- }
- return 0;
- }
- //-=-=-=-=-=OnPlayerInteriorChange=-=-=-=-=-
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- new string[256];
- new name[MAX_PLAYER_NAME];
- if(newinteriorid != INTERIOR_SALONE && newinteriorid != INTERIOR_OUTSIDE && newinteriorid != INTERIOR_SALONE)
- {
- SetPlayerPos(playerid,PrigioneX,PrigioneY,PrigioneZ);
- SetPlayerInterior(playerid,6);
- GetPlayerName(playerid,name,sizeof(name));
- format(string, sizeof(string), "-SSB- %s è stato bannato dal server per 'Uso di cheat(interior change)'.", name);
- SendClientMessageToAll(COLOR_KICK/BAN,string);
- SendClientMessage(playerid,COLOR_KICK/BAN,"Regola n°1: Non si possono usare cheats(trucchi) in questo server. Pena: Ban.");
- SendClientMessage(playerid,COLOR_KICK/BAN,"Il sistema anti-interior-change ha scoperto che non ti trovi ne all'aperto ne in prigione.");
- GameTextForPlayer(playerid,"ORA SEI DISCONNESSO. /Q PER USCIRE DAL GIOCO.",300000,5);
- BanEx(playerid,"CHEAT(INTERIOR CHANGE)");
- }
- return 1;
- }
- //-=-=-=-=-=OnPlayerPickUpPickup=-=-=-=-=-
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- if(pickupid == SalvaPartita)
- {
- ShowPlayerDialog(playerid, DIALOGO_SALVA_PARTITA, DIALOG_STYLE_LIST, "Scegliere L'operazione da eseguire.", "Continua il gioco\nSalva i dati di gioco\nPersonalizza il personaggio\nFai una scommessa\nVedi regole\nVedi guida\nEsci dal salone", "Seleziona", "");
- SetPlayerPos(playerid,822.736999,4.064427,1004.179687);//Ti sposta piu a sinistra per evitare il re-pickup.
- return 1;
- }
- if(pickupid == Drago1)
- {
- if(PlayerInfo[playerid][Sfera1] == 1) return GameTextForPlayer(playerid,"Questa sfera l'hai gia presa",500,5);
- PlayerInfo[playerid][Sfera1] = 1;
- SendClientMessage(playerid,COLOR_YELLOW,"Hai trovato la sfera del drago con 1 stella! Non dire a nessuno dove si trova!");
- SendClientMessage(playerid,COLOR_BLUE,"Quanto troverai tutte e sette le sfere potrai scegliere uno tra 3 desideri con /desiderio.");
- RemovePlayerMapIcon(playerid, 1);
- DBZ_Update(playerid);
- return 1;
- }
- if(pickupid == Drago2)
- {
- if(PlayerInfo[playerid][Sfera2] == 1) return GameTextForPlayer(playerid,"Questa sfera l'hai gia presa",500,5);
- PlayerInfo[playerid][Sfera2] = 1;
- SendClientMessage(playerid,COLOR_YELLOW,"Hai trovato la sfera del drago con 2 stelle! Non dire a nessuno dove si trova!");
- SendClientMessage(playerid,COLOR_BLUE,"Quanto troverai tutte e sette le sfere potrai scegliere uno tra 3 desideri con /desiderio.");
- RemovePlayerMapIcon(playerid, 2);
- DBZ_Update(playerid);
- return 1;
- }
- if(pickupid == Drago3)
- {
- if(PlayerInfo[playerid][Sfera3] == 1) return GameTextForPlayer(playerid,"Questa sfera l'hai gia presa",500,5);
- PlayerInfo[playerid][Sfera3] = 1;
- SendClientMessage(playerid,COLOR_YELLOW,"Hai trovato la sfera del drago con 3 stelle! Non dire a nessuno dove si trova!");
- SendClientMessage(playerid,COLOR_BLUE,"Quanto troverai tutte e sette le sfere potrai scegliere uno tra 3 desideri con /desiderio.");
- RemovePlayerMapIcon(playerid, 3);
- DBZ_Update(playerid);
- return 1;
- }
- if(pickupid == Drago4)
- {
- if(PlayerInfo[playerid][Sfera4] == 1) return GameTextForPlayer(playerid,"Questa sfera l'hai gia presa",500,5);
- PlayerInfo[playerid][Sfera4] = 1;
- SendClientMessage(playerid,COLOR_YELLOW,"Hai trovato la sfera del drago con 4 stelle! Non dire a nessuno dove si trova!");
- SendClientMessage(playerid,COLOR_BLUE,"Quanto troverai tutte e sette le sfere potrai scegliere uno tra 3 desideri con /desiderio.");
- RemovePlayerMapIcon(playerid, 4);
- DBZ_Update(playerid);
- return 1;
- }
- if(pickupid == Drago5)
- {
- if(PlayerInfo[playerid][Sfera5] == 1) return GameTextForPlayer(playerid,"Questa sfera l'hai gia presa",500,5);
- PlayerInfo[playerid][Sfera5] = 1;
- SendClientMessage(playerid,COLOR_YELLOW,"Hai trovato la sfera del drago con 5 stelle! Non dire a nessuno dove si trova!");
- SendClientMessage(playerid,COLOR_BLUE,"Quanto troverai tutte e sette le sfere potrai scegliere uno tra 3 desideri con /desiderio.");
- RemovePlayerMapIcon(playerid, 5);
- DBZ_Update(playerid);
- return 1;
- }
- if(pickupid == Drago6)
- {
- if(PlayerInfo[playerid][Sfera6] == 1) return GameTextForPlayer(playerid,"Questa sfera l'hai gia presa",500,5);
- PlayerInfo[playerid][Sfera6] = 1;
- SendClientMessage(playerid,COLOR_YELLOW,"Hai trovato la sfera del drago con 6 stelle! Non dire a nessuno dove si trova!");
- SendClientMessage(playerid,COLOR_BLUE,"Quanto troverai tutte e sette le sfere potrai scegliere uno tra 3 desideri con /desiderio.");
- RemovePlayerMapIcon(playerid, 6);
- DBZ_Update(playerid);
- return 1;
- }
- if(pickupid == Drago7)
- {
- if(PlayerInfo[playerid][Sfera7] == 1) return GameTextForPlayer(playerid,"Questa sfera l'hai gia presa",500,5);
- PlayerInfo[playerid][Sfera7] = 1;
- SendClientMessage(playerid,COLOR_YELLOW,"Hai trovato la sfera del drago con 7 stelle! Non dire a nessuno dove si trova!");
- SendClientMessage(playerid,COLOR_BLUE, "Quanto troverai tutte e sette le sfere potrai scegliere uno tra 3 desideri con /desiderio.");
- RemovePlayerMapIcon(playerid, 7);
- DBZ_Update(playerid);
- return 1;
- }
- if(pickupid == Radar)
- {
- SendClientMessage(playerid,COLOR_YELLOW,"Hai trovato il 'Radar Del Drago'! Adesso potrai vedere piu semplicemente sul radar le sfere");
- SendClientMessage(playerid,COLOR_BLUE, "del Drago! Una volta trovate tutte e sette potrai scegliere uno dei desideri disponibili!");
- if(PlayerInfo[playerid][Sfera1] == 0) SetPlayerMapIcon(playerid, 1, -537.200683,-102.969543,63.296875, 56, 0, MAPICON_GLOBAL);
- if(PlayerInfo[playerid][Sfera2] == 0) SetPlayerMapIcon(playerid, 2, -2670.812255,1933.930419,217.273895, 56, 0, MAPICON_GLOBAL);
- if(PlayerInfo[playerid][Sfera3] == 0) SetPlayerMapIcon(playerid, 3, 1451.416748,-1076.615478,213.382812, 56, 0, MAPICON_GLOBAL);
- if(PlayerInfo[playerid][Sfera4] == 0) SetPlayerMapIcon(playerid, 4, -1363.999755,493.684875,29.944622, 56, 0, MAPICON_GLOBAL);
- if(PlayerInfo[playerid][Sfera5] == 0) SetPlayerMapIcon(playerid, 5, -61.429683,-37.518638,25.980148, 56, 0, MAPICON_GLOBAL);
- if(PlayerInfo[playerid][Sfera6] == 0) SetPlayerMapIcon(playerid, 6, 281.206451,1816.537475,1.007812, 56, 0, MAPICON_GLOBAL);
- if(PlayerInfo[playerid][Sfera7] == 0) SetPlayerMapIcon(playerid, 7, 2323.700439,1283.225341,97.661628, 56, 0, MAPICON_GLOBAL);
- PlayerInfo[playerid][RadarPreso] = 1;
- return 1;
- }
- if(pickupid == Kill1 || pickupid == Kill2 || pickupid == Kill3 || pickupid == Kill4 || pickupid == Kill5 || pickupid == Kill6 || pickupid == Kill7 || pickupid == Kill8)
- {
- ShowPlayerDialog(playerid, DIALOGO_KILL, DIALOG_STYLE_MSGBOX, "Suicidio", "Vuoi suicidarti per cambiare battleground e personaggio?", "Si", "No");
- return 1;
- }
- return 1;
- }
- //-=-=-=-=-=OnPlayerKeyStateChange=-=-=-=-=-
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- if(GetPlayerInterior(playerid) == 3) return 1;
- if(newkeys == TASTO_ALT)
- {
- if(!IsPlayerAnAndroid(playerid))
- {
- new aura = GetPlayerMoney(playerid);
- if(aura < 5) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- CreateExplosionEx(playerid,10,12,0.1);
- GivePlayerMoney(playerid,-5);
- }
- CreateExplosionEx(playerid,10,12,0.1);
- }
- if(newkeys == TASTO_CLICK_CENTRALE)
- {
- AuraTimer[playerid] = SetTimerEx("CaricaAura", 250, true, "i", playerid);
- new skin = GetPlayerSkin(playerid);
- if(PlayerInfo[playerid][Stats][AuraSize][skin] == 0.0)
- {
- if(skin == SATAN || skin == VIDEL || skin == CRILIN || skin == YAMCHA || skin == TENSHINSHAN
- || skin == GELO || skin == C16 || skin == C17 || skin == C18 || skin == C19)
- {
- SetPlayerAttachedObject(playerid, 0, 19197, 1, 0.000000, 0.000000, 0.000000, 170.000000, 90.000000, 90.000000, 1.0, 1.0, 1.0);
- SetPlayerAttachedObject(playerid, 1, 19197, 1, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.0, 1.0, 1.0);
- SetPlayerAttachedObject(playerid, 2, 19197, 1, 0.000000, 0.000000, 0.000000, 170.000000, 0.000000, 0.000000, 1.0, 1.0, 1.0);
- }
- else if(skin == GOKU0 || skin == VEGETA0 || skin == GOHAN0 || skin == TRUNKS0)
- {
- SetPlayerAttachedObject(playerid, 0, 19197, 1, 0.000000, 0.000000, 0.000000, 170.000000, 90.000000, 90.000000, 1.5, 1.5, 1.5);
- SetPlayerAttachedObject(playerid, 1, 19197, 1, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 1.5, 1.5, 1.5);
- SetPlayerAttachedObject(playerid, 2, 19197, 1, 0.000000, 0.000000, 0.000000, 170.000000, 0.000000, 0.000000, 1.5, 1.5, 1.5);
- }
- else if(skin == GOKU1 || skin == VEGETA1 || skin == GOHAN1 || skin == TRUNKS1)
- {
- SetPlayerAttachedObject(playerid, 0, 19197, 1, 0.000000, 0.000000, 0.000000, 170.000000, 90.000000, 90.000000, 2.0, 2.0, 2.0);
- SetPlayerAttachedObject(playerid, 1, 19197, 1, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 2.0, 2.0, 2.0);
- SetPlayerAttachedObject(playerid, 2, 19197, 1, 0.000000, 0.000000, 0.000000, 170.000000, 0.000000, 0.000000, 2.0, 2.0, 2.0);
- }
- else if(skin == GOKU2 || skin == VEGETA2 || skin == GOHAN2)
- {
- SetPlayerAttachedObject(playerid, 0, 19197, 1, 0.000000, 0.000000, 0.000000, 170.000000, 90.000000, 90.000000, 2.5, 2.5, 2.5);
- SetPlayerAttachedObject(playerid, 1, 19197, 1, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 2.5, 2.5, 2.5);
- SetPlayerAttachedObject(playerid, 2, 19197, 1, 0.000000, 0.000000, 0.000000, 170.000000, 0.000000, 0.000000, 2.5, 2.5, 2.5);
- }
- else if(skin == VEGETAS || skin == TRUNKSS)
- {
- SetPlayerAttachedObject(playerid, 0, 19197, 1, 0.000000, 0.000000, 0.000000, 170.000000, 90.000000, 90.000000, 3.0, 3.0, 3.0);
- SetPlayerAttachedObject(playerid, 1, 19197, 1, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 3.0, 3.0, 3.0);
- SetPlayerAttachedObject(playerid, 2, 19197, 1, 0.000000, 0.000000, 0.000000, 170.000000, 0.000000, 0.000000, 3.0, 3.0, 3.0);
- }
- else if(skin == VEGETAS || skin == TRUNKSS)
- {
- SetPlayerAttachedObject(playerid, 0, 19197, 1, 0.000000, 0.000000, 0.000000, 170.000000, 90.000000, 90.000000, 3.5, 3.5, 3.5);
- SetPlayerAttachedObject(playerid, 1, 19197, 1, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 3.5, 3.5, 3.5);
- SetPlayerAttachedObject(playerid, 2, 19197, 1, 0.000000, 0.000000, 0.000000, 170.000000, 0.000000, 0.000000, 3.5, 3.5, 3.5);
- }
- else if(skin == GOKU3 || skin == VEGEKU0)
- {
- SetPlayerAttachedObject(playerid, 0, 19197, 1, 0.000000, 0.000000, 0.000000, 170.000000, 90.000000, 90.000000, 4.0, 4.0, 4.0);
- SetPlayerAttachedObject(playerid, 1, 19197, 1, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 4.0, 4.0, 4.0);
- SetPlayerAttachedObject(playerid, 2, 19197, 1, 0.000000, 0.000000, 0.000000, 170.000000, 0.000000, 0.000000, 4.0, 4.0, 4.0);
- }
- else if(skin == VEGEKU1 || skin == GOGETA)
- {
- SetPlayerAttachedObject(playerid, 0, 19197, 1, 0.000000, 0.000000, 0.000000, 170.000000, 90.000000, 90.000000, 4.5, 4.5, 4.5);
- SetPlayerAttachedObject(playerid, 1, 19197, 1, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 4.5, 4.5, 4.5);
- SetPlayerAttachedObject(playerid, 2, 19197, 1, 0.000000, 0.000000, 0.000000, 170.000000, 0.000000, 0.000000, 4.5, 4.5, 4.5);
- }
- }
- else
- {
- new Float: Size = PlayerInfo[playerid][Stats][AuraSize][skin];
- SetPlayerAttachedObject(playerid, 0, 19197, 1, 0.000000, 0.000000, 0.000000, 170.000000, 90.000000, 90.000000, Size, Size, Size);
- SetPlayerAttachedObject(playerid, 1, 19197, 1, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, 0.000000, Size, Size, Size);
- SetPlayerAttachedObject(playerid, 2, 19197, 1, 0.000000, 0.000000, 0.000000, 170.000000, 0.000000, 0.000000, Size, Size, Size);
- }
- }
- if(oldkeys == TASTO_CLICK_CENTRALE)
- {
- KillTimer(AuraTimer[playerid]);
- RemovePlayerAttachedObject(playerid, 0);
- RemovePlayerAttachedObject(playerid, 1);
- RemovePlayerAttachedObject(playerid, 2);
- }
- if(newkeys == TASTO_MAIUSC)
- {
- SpintaSuTimer[playerid] = SetTimerEx("SpintaSu", 100, true, "i", playerid);
- }
- if(oldkeys == TASTO_MAIUSC)
- {
- KillTimer(SpintaSuTimer[playerid]);
- }
- if(newkeys == TASTO_C)
- {
- SpintaGiuTimer[playerid] = SetTimerEx("SpintaGiu", 100, true, "i", playerid);
- }
- if(oldkeys == TASTO_C)
- {
- KillTimer(SpintaGiuTimer[playerid]);
- }
- if(newkeys == TASTO_SPAZIO)
- {
- SpintaAvantiTimer[playerid] = SetTimerEx("SpintaAvanti", 100, true, "i", playerid);
- }
- if(oldkeys == TASTO_SPAZIO)
- {
- KillTimer(SpintaAvantiTimer[playerid]);
- }
- // Tasti multipli -------------------------------------
- if(newkeys == TASTO_MAIUSC + TASTO_CLICK_SINISTRO)
- {
- SpintaSuTimer2[playerid] = SetTimerEx("SpintaSuBreve", 150, true, "i", playerid);
- }
- if(oldkeys == TASTO_MAIUSC + TASTO_CLICK_SINISTRO)
- {
- KillTimer(SpintaSuTimer2[playerid]);
- }
- //////////////
- if(newkeys == TASTO_C + TASTO_CLICK_SINISTRO)
- {
- SpintaGiuTimer2[playerid] = SetTimerEx("SpintaGiuBreve", 150, true, "i", playerid);
- }
- if(oldkeys == TASTO_C + TASTO_CLICK_SINISTRO)
- {
- KillTimer(SpintaGiuTimer2[playerid]);
- }
- //////////////
- if(newkeys == TASTO_SPAZIO + TASTO_CLICK_SINISTRO)
- {
- SpintaAvantiTimer2[playerid] = SetTimerEx("SpintaAvantiBreve", 150, true, "i", playerid);
- }
- if(oldkeys == TASTO_SPAZIO + TASTO_CLICK_SINISTRO)
- {
- KillTimer(SpintaAvantiTimer2[playerid]);
- }
- // -------------------------------------
- if(newkeys == TASTO_INVIO)
- {
- new Float:ang;
- GetPlayerFacingAngle(playerid, ang);
- SetPlayerFacingAngle(playerid,ang -45);
- ClearAnimations(playerid);
- }
- if(newkeys == TASTO_TAB)
- {
- GameTextForPlayer(playerid,"Lo score corrisponde ai Punti del Drago.",5000,5);
- }
- if(newkeys & TASTO_CLICK_SINISTRO || newkeys & TASTO_CLICK_DESTRO && newkeys & TASTO_INVIO) //Combo
- {
- for(new i=0;i<MAX_PLAYERS;i++)
- {
- if(IsPlayerNearPlayer(1.0, playerid, i) && i != playerid)
- {
- if(GetTickCount() - ComboTick[playerid] < 550) return 1;
- ComboTick[playerid] = GetTickCount();
- KillTimer(ComboTimer[playerid]);
- Combo[playerid] += 1;
- new string[256];
- format(string,sizeof(string),"%d COMBO", Combo[playerid]);
- TextDrawSetString(TdCombo[playerid],string);
- TextDrawHideForPlayer(playerid,TdCombo[playerid]);
- TextDrawShowForPlayer(playerid,TdCombo[playerid]);
- ComboTimer[playerid] = SetTimerEx("OnPlayerFinishCombo",3000,false,"i",playerid);
- }
- }
- }
- return 1;
- }
- //-=-=-=-=-=OnPlayerFinishCombo=-=-=-=-=-
- public OnPlayerFinishCombo(playerid)
- {
- Combo[playerid] = 0;
- TextDrawHideForPlayer(playerid,TdCombo[playerid]);
- return 1;
- }
- //-=-=-=-=-=SpintaGiu=-=-=-=-=-
- public SpintaGiu(playerid)
- {
- new skin = GetPlayerSkin(playerid);
- new Float:X, Float:Y, Float:Z;
- new aura = GetPlayerMoney(playerid);
- GetPlayerPos(playerid,X,Y,Z);
- if(PlayerInfo[playerid][Stats][Velocita][skin] == 10) { if(!IsPlayerAnAndroid(playerid)) { if(aura < 2) { return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5); } GivePlayerMoney(playerid,-2); } SetPlayerPos(playerid,X,Y,Z-10); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z-10); return 1; }
- if(PlayerInfo[playerid][Stats][Velocita][skin] == 20) { if(!IsPlayerAnAndroid(playerid)) { if(aura < 2) { return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5); } GivePlayerMoney(playerid,-2); } SetPlayerPos(playerid,X,Y,Z-20); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z-20); return 1; }
- if(PlayerInfo[playerid][Stats][Velocita][skin] == 30) { if(!IsPlayerAnAndroid(playerid)) { if(aura < 2) { return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5); } GivePlayerMoney(playerid,-2); } SetPlayerPos(playerid,X,Y,Z-30); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z-30); return 1; }
- if(PlayerInfo[playerid][Stats][Velocita][skin] == 40) { if(!IsPlayerAnAndroid(playerid)) { if(aura < 2) { return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5); } GivePlayerMoney(playerid,-2); } SetPlayerPos(playerid,X,Y,Z-40); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z-40); return 1; }
- if(PlayerInfo[playerid][Stats][Velocita][skin] == 50) { if(!IsPlayerAnAndroid(playerid)) { if(aura < 2) { return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5); } GivePlayerMoney(playerid,-2); } SetPlayerPos(playerid,X,Y,Z-50); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z-50); return 1; }
- if(PlayerInfo[playerid][Stats][Velocita][skin] == 60) { if(!IsPlayerAnAndroid(playerid)) { if(aura < 2) { return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5); } GivePlayerMoney(playerid,-2); } SetPlayerPos(playerid,X,Y,Z-60); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z-60); return 1; }
- if(PlayerInfo[playerid][Stats][Velocita][skin] == 70) { if(!IsPlayerAnAndroid(playerid)) { if(aura < 2) { return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5); } GivePlayerMoney(playerid,-2); } SetPlayerPos(playerid,X,Y,Z-70); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z-70); return 1; }
- if(PlayerInfo[playerid][Stats][Velocita][skin] == 80) { if(!IsPlayerAnAndroid(playerid)) { if(aura < 2) { return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5); } GivePlayerMoney(playerid,-2); } SetPlayerPos(playerid,X,Y,Z-80); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z-80); return 1; }
- if(!IsPlayerAnAndroid(playerid))
- {
- if(aura < 2)
- {
- ClearAnimations(playerid);
- return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- }
- GivePlayerMoney(playerid,-2);
- if(skin == GOKU0) { SetPlayerPos(playerid,X,Y,Z-5); CreateExplosion(X,Y,Z+5,11,1); }
- if(skin == GOKU1) { SetPlayerPos(playerid,X,Y,Z-6); CreateExplosion(X,Y,Z+5,11,1); }
- if(skin == GOKU2) { SetPlayerPos(playerid,X,Y,Z-8); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z-8); }
- if(skin == GOKU3) { SetPlayerPos(playerid,X,Y,Z-10); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z-10); }
- if(skin == VEGETA0) { SetPlayerPos(playerid,X,Y,Z-5); CreateExplosion(X,Y,Z+5,11,1); }
- if(skin == VEGETA1) { SetPlayerPos(playerid,X,Y,Z-6); CreateExplosion(X,Y,Z+5,11,1); }
- if(skin == VEGETAS) { SetPlayerPos(playerid,X,Y,Z-7); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z-7); }
- if(skin == VEGETA2) { SetPlayerPos(playerid,X,Y,Z-8); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z-8); }
- if(skin == GOHAN0) { SetPlayerPos(playerid,X,Y,Z-5); CreateExplosion(X,Y,Z+5,11,1); }
- if(skin == GOHAN1) { SetPlayerPos(playerid,X,Y,Z-8); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z-8); }
- if(skin == GOHAN2) { SetPlayerPos(playerid,X,Y,Z-10); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z-10); }
- if(skin == TRUNKS0) { SetPlayerPos(playerid,X,Y,Z-5); CreateExplosion(X,Y,Z+5,11,1); }
- if(skin == TRUNKS1) { SetPlayerPos(playerid,X,Y,Z-6); CreateExplosion(X,Y,Z+5,11,1); }
- if(skin == TRUNKSS) { SetPlayerPos(playerid,X,Y,Z-7); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z-7); }
- if(skin == SATAN) { SetPlayerPos(playerid,X,Y,Z-3); CreateExplosion(X,Y,Z+5,11,1); }
- if(skin == VIDEL) { SetPlayerPos(playerid,X,Y,Z-4); CreateExplosion(X,Y,Z+5,11,1); }
- if(skin == CRILIN) { SetPlayerPos(playerid,X,Y,Z-5); CreateExplosion(X,Y,Z+5,11,1); }
- if(skin == YAMCHA) { SetPlayerPos(playerid,X,Y,Z-5); CreateExplosion(X,Y,Z+5,11,1); }
- if(skin == TENSHINSHAN) { SetPlayerPos(playerid,X,Y,Z-5); CreateExplosion(X,Y,Z+5,11,1); }
- if(skin == VEGEKU0) { SetPlayerPos(playerid,X,Y,Z-10); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z-10); }
- if(skin == VEGEKU1) { SetPlayerPos(playerid,X,Y,Z-15); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z-15); }
- if(skin == GOGETA) { SetPlayerPos(playerid,X,Y,Z-15); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z-15); }
- return 1;
- }
- SetPlayerPos(playerid,X,Y,Z-6);
- PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z);
- return 1;
- }
- //-=-=-=-=-=SpintaSu=-=-=-=-=-
- public SpintaSu(playerid)
- {
- new skin = GetPlayerSkin(playerid);
- new Float:X, Float:Y, Float:Z;
- new aura = GetPlayerMoney(playerid);
- GetPlayerPos(playerid,X,Y,Z);
- if(PlayerInfo[playerid][Stats][Velocita][skin] == 10) { if(!IsPlayerAnAndroid(playerid)) { if(aura < 2) { return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5); } GivePlayerMoney(playerid,-2); } SetPlayerPos(playerid,X,Y,Z+10); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z+10); return 1; }
- if(PlayerInfo[playerid][Stats][Velocita][skin] == 20) { if(!IsPlayerAnAndroid(playerid)) { if(aura < 2) { return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5); } GivePlayerMoney(playerid,-2); } SetPlayerPos(playerid,X,Y,Z+20); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z+20); return 1; }
- if(PlayerInfo[playerid][Stats][Velocita][skin] == 30) { if(!IsPlayerAnAndroid(playerid)) { if(aura < 2) { return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5); } GivePlayerMoney(playerid,-2); } SetPlayerPos(playerid,X,Y,Z+30); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z+30); return 1; }
- if(PlayerInfo[playerid][Stats][Velocita][skin] == 40) { if(!IsPlayerAnAndroid(playerid)) { if(aura < 2) { return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5); } GivePlayerMoney(playerid,-2); } SetPlayerPos(playerid,X,Y,Z+40); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z+40); return 1; }
- if(PlayerInfo[playerid][Stats][Velocita][skin] == 50) { if(!IsPlayerAnAndroid(playerid)) { if(aura < 2) { return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5); } GivePlayerMoney(playerid,-2); } SetPlayerPos(playerid,X,Y,Z+50); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z+50); return 1; }
- if(PlayerInfo[playerid][Stats][Velocita][skin] == 60) { if(!IsPlayerAnAndroid(playerid)) { if(aura < 2) { return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5); } GivePlayerMoney(playerid,-2); } SetPlayerPos(playerid,X,Y,Z+60); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z+60); return 1; }
- if(PlayerInfo[playerid][Stats][Velocita][skin] == 70) { if(!IsPlayerAnAndroid(playerid)) { if(aura < 2) { return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5); } GivePlayerMoney(playerid,-2); } SetPlayerPos(playerid,X,Y,Z+70); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z+70); return 1; }
- if(PlayerInfo[playerid][Stats][Velocita][skin] == 80) { if(!IsPlayerAnAndroid(playerid)) { if(aura < 2) { return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5); } GivePlayerMoney(playerid,-2); } SetPlayerPos(playerid,X,Y,Z+80); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z+80); return 1; }
- if(!IsPlayerAnAndroid(playerid))
- {
- if(aura < 2)
- {
- ClearAnimations(playerid);
- return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- }
- GivePlayerMoney(playerid,-2);
- if(skin == GOKU0) { SetPlayerPos(playerid,X,Y,Z+5); CreateExplosion(X,Y,Z-5,11,1); }
- if(skin == GOKU1) { SetPlayerPos(playerid,X,Y,Z+6); CreateExplosion(X,Y,Z-5,11,1); }
- if(skin == GOKU2) { SetPlayerPos(playerid,X,Y,Z+8); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z+8); }
- if(skin == GOKU3) { SetPlayerPos(playerid,X,Y,Z+10); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z+10); }
- if(skin == VEGETA0) { SetPlayerPos(playerid,X,Y,Z+5); CreateExplosion(X,Y,Z-5,11,1); }
- if(skin == VEGETA1) { SetPlayerPos(playerid,X,Y,Z+6); CreateExplosion(X,Y,Z-5,11,1); }
- if(skin == VEGETAS) { SetPlayerPos(playerid,X,Y,Z+7); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z+7); }
- if(skin == VEGETA2) { SetPlayerPos(playerid,X,Y,Z+8); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z+8); }
- if(skin == GOHAN0) { SetPlayerPos(playerid,X,Y,Z+5); CreateExplosion(X,Y,Z-5,11,1); }
- if(skin == GOHAN1) { SetPlayerPos(playerid,X,Y,Z+8); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z+8); }
- if(skin == GOHAN2) { SetPlayerPos(playerid,X,Y,Z+10); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z+10); }
- if(skin == TRUNKS0) { SetPlayerPos(playerid,X,Y,Z+5); CreateExplosion(X,Y,Z-5,11,1); }
- if(skin == TRUNKS1) { SetPlayerPos(playerid,X,Y,Z+6); CreateExplosion(X,Y,Z-5,11,1); }
- if(skin == TRUNKSS) { SetPlayerPos(playerid,X,Y,Z+7); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z+7); }
- if(skin == SATAN) { SetPlayerPos(playerid,X,Y,Z+3); CreateExplosion(X,Y,Z-5,11,1); }
- if(skin == VIDEL) { SetPlayerPos(playerid,X,Y,Z+4); CreateExplosion(X,Y,Z-5,11,1); }
- if(skin == CRILIN) { SetPlayerPos(playerid,X,Y,Z+5); CreateExplosion(X,Y,Z-5,11,1); }
- if(skin == YAMCHA) { SetPlayerPos(playerid,X,Y,Z+5); CreateExplosion(X,Y,Z-5,11,1); }
- if(skin == TENSHINSHAN) { SetPlayerPos(playerid,X,Y,Z+5); CreateExplosion(X,Y,Z-5,11,1); }
- if(skin == VEGEKU0) { SetPlayerPos(playerid,X,Y,Z+10); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z+10); }
- if(skin == VEGEKU1) { SetPlayerPos(playerid,X,Y,Z+15); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z+15); }
- if(skin == GOGETA) { SetPlayerPos(playerid,X,Y,Z+15); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z+15); }
- return 1;
- }
- SetPlayerPos(playerid,X,Y,Z+6);
- PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z);
- return 1;
- }
- //-=-=-=-=-=OnPlayerHealthChange=-=-=-=-=-
- public OnPlayerHealthChange(playerid, Float:newhealth, Float:oldhealth)
- {
- new string[21];
- format(string, sizeof(string), "%d", floatround(newhealth));
- TextDrawSetString(ScrittaBarra2[playerid], string);
- TextDrawHideForPlayer(playerid, ScrittaBarra2[playerid]);
- TextDrawShowForPlayer(playerid, ScrittaBarra2[playerid]);
- return 1;
- }
- //-=-=-=-=-=OnPlayerArmourChange=-=-=-=-=-
- public OnPlayerArmourChange(playerid, Float:newarmour, Float:oldarmour)
- {
- new string[21];
- format(string, sizeof(string), "%d", floatround(newarmour));
- TextDrawSetString(ScrittaBarra1[playerid], string);
- TextDrawHideForPlayer(playerid, ScrittaBarra1[playerid]);
- TextDrawShowForPlayer(playerid, ScrittaBarra1[playerid]);
- return 1;
- }
- //-=-=-=-=-=OnPlayerMoneyChange=-=-=-=-=-
- public OnPlayerMoneyChange(playerid, newmoney, oldmoney)
- {
- new Float:salute;
- new aura = GetPlayerMoney(playerid);
- GetPlayerHealth(playerid,salute);
- if(salute < 5.0) SetPlayerHealth(playerid,0); //
- if(aura < 0) ResetPlayerMoney(playerid); //
- HideProgressBarForPlayer(playerid,BarraAura[playerid]);
- SetProgressBarValue(BarraAura[playerid], aura/5); //NOTE - Diviso 5 perche il max è 500 non 100
- ShowProgressBarForPlayer(playerid,BarraAura[playerid]);
- new string[21];
- format(string, sizeof(string), "%d", newmoney);
- TextDrawSetString(ScrittaBarra3[playerid], string);
- TextDrawHideForPlayer(playerid, ScrittaBarra3[playerid]);
- TextDrawShowForPlayer(playerid, ScrittaBarra3[playerid]);
- return 1;
- }
- //-=-=-=-=-=SpintaAvantiBreve=-=-=-=-=-
- public SpintaAvantiBreve(playerid)
- {
- new Float:X, Float:Y, Float:Z, Float:x2, Float:y2, Float:ang;
- GetPlayerPos(playerid, X, Y, Z);
- GetPlayerFacingAngle(playerid, ang);
- x2 = X + floatsin(-ang, degrees);
- y2 = Y + floatcos(-ang, degrees);
- SetPlayerPos(playerid, x2, y2, Z);
- return 1;
- }
- //-=-=-=-=-=SpintaSuBreve=-=-=-=-=-
- public SpintaSuBreve(playerid)
- {
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(playerid, X, Y, Z);
- SetPlayerPos(playerid, X, Y, Z+2);
- return 1;
- }
- //-=-=-=-=-=SpintaGiuBreve=-=-=-=-=-
- public SpintaGiuBreve(playerid)
- {
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(playerid, X, Y, Z);
- SetPlayerPos(playerid, X, Y, Z-1);
- return 1;
- }
- //-=-=-=-=-=SpintaAvanti=-=-=-=-=-
- public SpintaAvanti(playerid)
- {
- new Float:X,Float:Y,Float:Z,Float:x2,Float:y2,Float:x3,Float:y3,Float:ang;
- new aura = GetPlayerMoney(playerid);
- new skin = GetPlayerSkin(playerid);
- GetPlayerPos(playerid,X,Y,Z);
- GetPlayerFacingAngle(playerid, ang);
- if(PlayerInfo[playerid][Stats][Velocita][skin] == 10)
- {
- if(!IsPlayerAnAndroid(playerid))
- {
- if(aura < 1) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- GivePlayerMoney(playerid,-1);
- }
- x2 = X + (10 * floatsin(-ang, degrees));
- y2 = Y + (10 * floatcos(-ang, degrees));
- SetPlayerPos(playerid,x2,y2,Z);
- PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,x2,y2,Z);
- return 1;
- }
- if(PlayerInfo[playerid][Stats][Velocita][skin] == 20)
- {
- if(!IsPlayerAnAndroid(playerid))
- {
- if(aura < 2) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- GivePlayerMoney(playerid,-2);
- }
- x2 = X + (20 * floatsin(-ang, degrees));
- y2 = Y + (20 * floatcos(-ang, degrees));
- SetPlayerPos(playerid,x2,y2,Z);
- PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,x2,y2,Z);
- return 1;
- }
- if(PlayerInfo[playerid][Stats][Velocita][skin] == 30)
- {
- if(!IsPlayerAnAndroid(playerid))
- {
- if(aura < 3) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- GivePlayerMoney(playerid,-3);
- }
- x2 = X + (30 * floatsin(-ang, degrees));
- y2 = Y + (30 * floatcos(-ang, degrees));
- SetPlayerPos(playerid,x2,y2,Z);
- PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,x2,y2,Z);
- return 1;
- }
- if(PlayerInfo[playerid][Stats][Velocita][skin] == 40)
- {
- if(!IsPlayerAnAndroid(playerid))
- {
- if(aura < 4) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- GivePlayerMoney(playerid,-4);
- }
- x2 = X + (40 * floatsin(-ang, degrees));
- y2 = Y + (40 * floatcos(-ang, degrees));
- SetPlayerPos(playerid,x2,y2,Z);
- PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,x2,y2,Z);
- return 1;
- }
- if(PlayerInfo[playerid][Stats][Velocita][skin] == 50)
- {
- if(!IsPlayerAnAndroid(playerid))
- {
- if(aura < 5) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- GivePlayerMoney(playerid,-5);
- }
- x2 = X + (50 * floatsin(-ang, degrees));
- y2 = Y + (50 * floatcos(-ang, degrees));
- SetPlayerPos(playerid,x2,y2,Z);
- PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,x2,y2,Z);
- return 1;
- }
- if(PlayerInfo[playerid][Stats][Velocita][skin] == 60)
- {
- if(!IsPlayerAnAndroid(playerid))
- {
- if(aura < 6) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- GivePlayerMoney(playerid,-6);
- }
- x2 = X + (60 * floatsin(-ang, degrees));
- y2 = Y + (60 * floatcos(-ang, degrees));
- SetPlayerPos(playerid,x2,y2,Z);
- PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,x2,y2,Z);
- return 1;
- }
- if(PlayerInfo[playerid][Stats][Velocita][skin] == 70)
- {
- if(!IsPlayerAnAndroid(playerid))
- {
- if(aura < 7) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- GivePlayerMoney(playerid,-7);
- }
- x2 = X + (70 * floatsin(-ang, degrees));
- y2 = Y + (70 * floatcos(-ang, degrees));
- SetPlayerPos(playerid,x2,y2,Z);
- PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,x2,y2,Z);
- return 1;
- }
- if(PlayerInfo[playerid][Stats][Velocita][skin] == 80)
- {
- if(!IsPlayerAnAndroid(playerid))
- {
- if(aura < 8) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- GivePlayerMoney(playerid,-8);
- }
- x2 = X + (80 * floatsin(-ang, degrees));
- y2 = Y + (80 * floatcos(-ang, degrees));
- SetPlayerPos(playerid,x2,y2,Z);
- PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,x2,y2,Z);
- return 1;
- }
- if(!IsPlayerAnAndroid(playerid))
- {
- x3 = X + (-10 * floatsin(-ang, degrees));
- y3 = Y + (-10 * floatcos(-ang, degrees));
- if(aura < 1) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
- GivePlayerMoney(playerid,-1);
- if(skin == GOKU0) { x2 = X + (5 * floatsin(-ang, degrees)); y2 = Y + (5 * floatcos(-ang, degrees)); SetPlayerPos(playerid,x2,y2,Z); CreateExplosion(x3,y3,Z,11,1); }
- else if(skin == GOKU1) { x2 = X + (6 * floatsin(-ang, degrees)); y2 = Y + (6 * floatcos(-ang, degrees)); SetPlayerPos(playerid,x2,y2,Z); CreateExplosion(x3,y3,Z,11,1); }
- else if(skin == GOKU2) { x2 = X + (8 * floatsin(-ang, degrees)); y2 = Y + (8 * floatcos(-ang, degrees)); SetPlayerPos(playerid,x2,y2,Z); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,x2,y2,Z); }
- else if(skin == GOKU3) { x2 = X + (10 * floatsin(-ang, degrees)); y2 = Y + (10 * floatcos(-ang, degrees)); SetPlayerPos(playerid,x2,y2,Z); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,x2,y2,Z); }
- else if(skin == VEGETA0) { x2 = X + (5 * floatsin(-ang, degrees)); y2 = Y + (5 * floatcos(-ang, degrees)); SetPlayerPos(playerid,x2,y2,Z); CreateExplosion(x2,y3,Z,11,1); }
- else if(skin == VEGETA1) { x2 = X + (6 * floatsin(-ang, degrees)); y2 = Y + (6 * floatcos(-ang, degrees)); SetPlayerPos(playerid,x2,y2,Z); CreateExplosion(x3,y3,Z,11,1); }
- else if(skin == VEGETAS) { x2 = X + (7 * floatsin(-ang, degrees)); y2 = Y + (7 * floatcos(-ang, degrees)); SetPlayerPos(playerid,x2,y2,Z); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,x2,y2,Z); }
- else if(skin == VEGETA2) { x2 = X + (8 * floatsin(-ang, degrees)); y2 = Y + (8 * floatcos(-ang, degrees)); SetPlayerPos(playerid,x2,y2,Z); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,x2,y2,Z); }
- else if(skin == GOHAN0) { x2 = X + (5 * floatsin(-ang, degrees)); y2 = Y + (5 * floatcos(-ang, degrees)); SetPlayerPos(playerid,x2,y2,Z); CreateExplosion(x3,y3,Z,11,1); }
- else if(skin == GOHAN1) { x2 = X + (8 * floatsin(-ang, degrees)); y2 = Y + (8 * floatcos(-ang, degrees)); SetPlayerPos(playerid,x2,y2,Z); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,x2,y2,Z); }
- else if(skin == GOHAN2) { x2 = X + (10 * floatsin(-ang, degrees)); y2 = Y + (10 * floatcos(-ang, degrees)); SetPlayerPos(playerid,x2,y2,Z); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,x2,y2,Z); }
- else if(skin == TRUNKS0) { x2 = X + (5 * floatsin(-ang, degrees)); y2 = Y + (5 * floatcos(-ang, degrees)); SetPlayerPos(playerid,x2,y2,Z); CreateExplosion(x3,y3,Z,11,1); }
- else if(skin == TRUNKS1) { x2 = X + (6 * floatsin(-ang, degrees)); y2 = Y + (6 * floatcos(-ang, degrees)); SetPlayerPos(playerid,x2,y2,Z); CreateExplosion(x3,y3,Z,11,1); }
- else if(skin == TRUNKSS) { x2 = X + (7 * floatsin(-ang, degrees)); y2 = Y + (7 * floatcos(-ang, degrees)); SetPlayerPos(playerid,x2,y2,Z); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,x2,y2,Z); }
- else if(skin == SATAN) { x2 = X + (3 * floatsin(-ang, degrees)); y2 = Y + (3 * floatcos(-ang, degrees)); SetPlayerPos(playerid,x2,y2,Z); CreateExplosion(x3,y3,Z,11,1); }
- else if(skin == VIDEL) { x2 = X + (4 * floatsin(-ang, degrees)); y2 = Y + (4 * floatcos(-ang, degrees)); SetPlayerPos(playerid,x2,y2,Z); CreateExplosion(x3,y3,Z,11,1); }
- else if(skin == CRILIN) { x2 = X + (5 * floatsin(-ang, degrees)); y2 = Y + (5 * floatcos(-ang, degrees)); SetPlayerPos(playerid,x2,y2,Z); CreateExplosion(x3,y3,Z,11,1); }
- else if(skin == YAMCHA) { x2 = X + (5 * floatsin(-ang, degrees)); y2 = Y + (5 * floatcos(-ang, degrees)); SetPlayerPos(playerid,x2,y2,Z); CreateExplosion(x3,y3,Z,11,1); }
- else if(skin == TENSHINSHAN) { x2 = X + (5 * floatsin(-ang, degrees)); y2 = Y + (5 * floatcos(-ang, degrees)); SetPlayerPos(playerid,x2,y2,Z); CreateExplosion(x3,y3,Z,11,1); }
- else if(skin == VEGEKU0) { x2 = X + (10 * floatsin(-ang, degrees)); y2 = Y + (10 * floatcos(-ang, degrees)); SetPlayerPos(playerid,x2,y2,Z); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,x2,y2,Z); }
- else if(skin == VEGEKU1) { x2 = X + (15 * floatsin(-ang, degrees)); y2 = Y + (15 * floatcos(-ang, degrees)); SetPlayerPos(playerid,x2,y2,Z); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,x2,y2,Z); }
- else if(skin == GOGETA) { x2 = X + (15 * floatsin(-ang, degrees)); y2 = Y + (15 * floatcos(-ang, degrees)); SetPlayerPos(playerid,x2,y2,Z); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,x2,y2,Z); }
- return 1;
- }
- GetPlayerPos(playerid,X,Y,Z);
- GetPlayerFacingAngle(playerid, ang);
- x2 = X + (6 * floatsin(-ang, degrees));
- y2 = Y + (6 * floatcos(-ang, degrees));
- PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z);
- SetPlayerPos(playerid,x2,y2,Z);
- return 1;
- }
- //-=-=-=-=-=CaricaAura=-=-=-=-=-
- public CaricaAura(playerid)
- {
- new skin = GetPlayerSkin(playerid);
- new aura = GetPlayerMoney(playerid);
- new Float:X, Float:Y, Float:Z;
- new AuraGiocatore = PlayerInfo[playerid][Stats][AuraMax][skin];
- GetPlayerPos(playerid,X,Y,Z);
- switch(skin)
- {
- case GOKU0:
- {
- if(AuraGiocatore > 50)
- {
- if(aura >= AuraGiocatore)
- {
- SetPlayerMoney(playerid,AuraGiocatore);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,5);
- CreateExplosion(X,Y,Z+5,11,1);
- return 1;
- }
- if(aura >= 100)
- {
- SetPlayerMoney(playerid,100);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,5);
- CreateExplosion(X,Y,Z+5,11,1);
- }
- case GOKU1:
- {
- if(AuraGiocatore > 50)
- {
- if(aura >= AuraGiocatore)
- {
- SetPlayerMoney(playerid,AuraGiocatore);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,6);
- CreateExplosion(X,Y,Z+5,11,1);
- return 1;
- }
- if(aura >= 105)
- {
- SetPlayerMoney(playerid,105);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,6);
- CreateExplosion(X,Y,Z+5,11,1);
- }
- case GOKU2:
- {
- if(AuraGiocatore > 50)
- {
- if(aura >= AuraGiocatore)
- {
- SetPlayerMoney(playerid,AuraGiocatore);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,7);
- CreateExplosion(X,Y,Z+5,11,1);
- return 1;
- }
- if(aura >= 110)
- {
- SetPlayerMoney(playerid,110);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,7);
- CreateExplosion(X,Y,Z+5,11,1);
- }
- case GOKU3:
- {
- if(AuraGiocatore > 50)
- {
- if(aura >= AuraGiocatore)
- {
- SetPlayerMoney(playerid,AuraGiocatore);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,8);
- CreateExplosion(X,Y,Z+5,11,1);
- return 1;
- }
- if(aura >= 120)
- {
- SetPlayerMoney(playerid,120);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,8);
- CreateExplosion(X,Y,Z+5,11,1);
- }
- case VEGETA0:
- {
- if(AuraGiocatore > 50)
- {
- if(aura >= AuraGiocatore)
- {
- SetPlayerMoney(playerid,AuraGiocatore);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,5);
- CreateExplosion(X,Y,Z+5,11,1);
- return 1;
- }
- if(aura >= 100)
- {
- SetPlayerMoney(playerid,100);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,5);
- CreateExplosion(X,Y,Z+5,11,1);
- }
- case VEGETA1:
- {
- if(AuraGiocatore > 50)
- {
- if(aura >= AuraGiocatore)
- {
- SetPlayerMoney(playerid,AuraGiocatore);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,5);
- CreateExplosion(X,Y,Z+6,11,1);
- return 1;
- }
- if(aura >= 105)
- {
- SetPlayerMoney(playerid,105);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,6);
- CreateExplosion(X,Y,Z+5,11,1);
- }
- case VEGETAS:
- {
- if(AuraGiocatore > 50)
- {
- if(aura >= AuraGiocatore)
- {
- SetPlayerMoney(playerid,AuraGiocatore);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,6);
- CreateExplosion(X,Y,Z+5,11,1);
- return 1;
- }
- if(aura >= 105)
- {
- SetPlayerMoney(playerid,105);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,6);
- CreateExplosion(X,Y,Z+5,11,1);
- }
- case VEGETA2:
- {
- if(AuraGiocatore > 50)
- {
- if(aura >= AuraGiocatore)
- {
- SetPlayerMoney(playerid,AuraGiocatore);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,7);
- CreateExplosion(X,Y,Z+5,11,1);
- return 1;
- }
- if(aura >= 110)
- {
- SetPlayerMoney(playerid,110);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,7);
- CreateExplosion(X,Y,Z+5,11,1);
- }
- case TRUNKS0:
- {
- if(AuraGiocatore > 50)
- {
- if(aura >= AuraGiocatore)
- {
- SetPlayerMoney(playerid,AuraGiocatore);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,5);
- CreateExplosion(X,Y,Z+5,11,1);
- return 1;
- }
- if(aura >= 100)
- {
- SetPlayerMoney(playerid,100);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,5);
- CreateExplosion(X,Y,Z+5,11,1);
- }
- case TRUNKS1:
- {
- if(AuraGiocatore > 50)
- {
- if(aura >= AuraGiocatore)
- {
- SetPlayerMoney(playerid,AuraGiocatore);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,6);
- CreateExplosion(X,Y,Z+5,11,1);
- return 1;
- }
- if(aura >= 105)
- {
- SetPlayerMoney(playerid,105);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,6);
- CreateExplosion(X,Y,Z+5,11,1);
- }
- case TRUNKSS:
- {
- if(AuraGiocatore > 50)
- {
- if(aura >= AuraGiocatore)
- {
- SetPlayerMoney(playerid,AuraGiocatore);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,5);
- CreateExplosion(X,Y,Z+6,11,1);
- return 1;
- }
- if(aura >= 105)
- {
- SetPlayerMoney(playerid,105);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,6);
- CreateExplosion(X,Y,Z+5,11,1);
- }
- case GOHAN0:
- {
- if(AuraGiocatore > 50)
- {
- if(aura >= AuraGiocatore)
- {
- SetPlayerMoney(playerid,AuraGiocatore);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,5);
- CreateExplosion(X,Y,Z+5,11,1);
- return 1;
- }
- if(aura >= 100)
- {
- SetPlayerMoney(playerid,100);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,5);
- CreateExplosion(X,Y,Z+5,11,1);
- }
- case GOHAN1:
- {
- if(AuraGiocatore > 50)
- {
- if(aura >= AuraGiocatore)
- {
- SetPlayerMoney(playerid,AuraGiocatore);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,5);
- CreateExplosion(X,Y,Z+6,11,1);
- return 1;
- }
- if(aura >= 105)
- {
- SetPlayerMoney(playerid,105);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,6);
- CreateExplosion(X,Y,Z+5,11,1);
- }
- case GOHAN2:
- {
- if(AuraGiocatore > 50)
- {
- if(aura >= AuraGiocatore)
- {
- SetPlayerMoney(playerid,AuraGiocatore);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,7);
- CreateExplosion(X,Y,Z+5,11,1);
- return 1;
- }
- if(aura >= 115)
- {
- SetPlayerMoney(playerid,115);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,7);
- CreateExplosion(X,Y,Z+5,11,1);
- }
- case VEGEKU0:
- {
- if(AuraGiocatore > 50)
- {
- if(aura >= AuraGiocatore)
- {
- SetPlayerMoney(playerid,AuraGiocatore);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,8);
- CreateExplosion(X,Y,Z+8,11,1);
- return 1;
- }
- if(aura >= 125)
- {
- SetPlayerMoney(playerid,125);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,8);
- CreateExplosion(X,Y,Z+5,11,1);
- }
- case VEGEKU1:
- {
- if(AuraGiocatore > 50)
- {
- if(aura >= AuraGiocatore)
- {
- SetPlayerMoney(playerid,AuraGiocatore);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,10);
- CreateExplosion(X,Y,Z+5,11,1);
- return 1;
- }
- if(aura >= 150)
- {
- SetPlayerMoney(playerid,150);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,10);
- CreateExplosion(X,Y,Z+5,11,1);
- }
- case GOGETA:
- {
- if(AuraGiocatore > 50)
- {
- if(aura >= AuraGiocatore)
- {
- SetPlayerMoney(playerid,AuraGiocatore);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,10);
- CreateExplosion(X,Y,Z+5,11,1);
- return 1;
- }
- if(aura >= 150)
- {
- SetPlayerMoney(playerid,150);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,10);
- CreateExplosion(X,Y,Z+5,11,1);
- }
- case SATAN:
- {
- if(AuraGiocatore > 50)
- {
- if(aura >= AuraGiocatore)
- {
- SetPlayerMoney(playerid,AuraGiocatore);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,3);
- CreateExplosion(X,Y,Z+5,11,1);
- return 1;
- }
- if(aura >= 75)
- {
- SetPlayerMoney(playerid,75);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,3);
- CreateExplosion(X,Y,Z+5,11,1);
- }
- case VIDEL:
- {
- if(AuraGiocatore > 50)
- {
- if(aura >= AuraGiocatore)
- {
- SetPlayerMoney(playerid,AuraGiocatore);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,4);
- CreateExplosion(X,Y,Z+5,11,1);
- return 1;
- }
- if(aura >= 90)
- {
- SetPlayerMoney(playerid,90);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,4);
- CreateExplosion(X,Y,Z+5,11,1);
- }
- case CRILIN:
- {
- if(AuraGiocatore > 50)
- {
- if(aura >= AuraGiocatore)
- {
- SetPlayerMoney(playerid,AuraGiocatore);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,5);
- CreateExplosion(X,Y,Z+5,11,1);
- return 1;
- }
- if(aura >= 100)
- {
- SetPlayerMoney(playerid,100);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,5);
- CreateExplosion(X,Y,Z+5,11,1);
- }
- case YAMCHA:
- {
- if(AuraGiocatore > 50)
- {
- if(aura >= AuraGiocatore)
- {
- SetPlayerMoney(playerid,AuraGiocatore);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,5);
- CreateExplosion(X,Y,Z+5,11,1);
- return 1;
- }
- if(aura >= 100)
- {
- SetPlayerMoney(playerid,100);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,5);
- CreateExplosion(X,Y,Z+5,11,1);
- }
- case TENSHINSHAN:
- {
- if(AuraGiocatore > 50)
- {
- if(aura >= AuraGiocatore)
- {
- SetPlayerMoney(playerid,AuraGiocatore);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,5);
- CreateExplosion(X,Y,Z+5,11,1);
- return 1;
- }
- if(aura >= 100)
- {
- SetPlayerMoney(playerid,100);
- return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
- }
- ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
- GivePlayerMoney(playerid,5);
- CreateExplosion(X,Y,Z+5,11,1);
- }
- case GELO:
- {
- GameTextForPlayer(playerid,"~r~I Cyborg(Androidi) non hanno aura!",1000,5);
- }
- case C16:
- {
- GameTextForPlayer(playerid,"~r~I Cyborg(Androidi) non hanno aura!",1000,5);
- }
- case C17:
- {
- GameTextForPlayer(playerid,"~r~I Cyborg(Androidi) non hanno aura!",1000,5);
- }
- case C18:
- {
- GameTextForPlayer(playerid,"~r~I Cyborg(Androidi) non hanno aura!",1000,5);
- }
- case C19:
- {
- GameTextForPlayer(playerid,"~r~I Cyborg(Androidi) non hanno aura!",1000,5);
- }
- }
- return 1;
- }
- //-=-=-=-=-=Unfreeze=-=-=-=-=-
- public Unfreeze(playerid)
- {
- TogglePlayerControllable(playerid,true);
- }
- //-=-=-=-=-=Caricamento25=-=-=-=-=-
- public Caricamento25(playerid)
- {
- new name[20];
- new string[256];
- new skin = GetPlayerSkin(playerid);
- GetPlayerName(playerid,name,sizeof(name));
- format(string, sizeof(string), "Dragonball/%s.ini", name,skin);
- INI_Open(string);
- //{
- PlayerInfo[playerid][Punteggio] = INI_ReadInt("Score");
- SetPlayerScore(playerid,PlayerInfo[playerid][Punteggio]);
- INI_Close();
- //}
- SendClientMessage(playerid,COLOR_RED,"Punti del drago caricati!");
- SendClientMessage(playerid,COLOR_RED,"Stile di combattimento caricato!");
- }
- //-=-=-=-=-=Caricamento50=-=-=-=-=-
- public Caricamento50(playerid)
- {
- SendClientMessage(playerid,COLOR_RED,"Attacco Speciale caricato!");
- SendClientMessage(playerid,COLOR_RED,"Velocità caricata!");
- }
- //-=-=-=-=-=Caricamento100=-=-=-=-=-
- public Caricamento100(playerid)
- {
- SendClientMessage(playerid,COLOR_RED,"Aura massima caricata!");
- SendClientMessage(playerid,COLOR_RED,"Salute massima caricata!");
- }
- //=-=-=-=-=-==-=-=-=-=-==-=-=-=-=-=FUNCTIONS=-=-=-=-=-==-=-=-=-=-==-=-=-=-=-=
- //-=-=-=-=-=AddPlayerScore=-=-=-=-=-
- stock AddPlayerScore(playerid, score)
- {
- new attuale = GetPlayerScore(playerid);
- SetPlayerScore(playerid,attuale+score);
- return 1;
- }
- //-=-=-=-=-=SetPlayerMoney=-=-=-=-=-
- stock SetPlayerMoney(playerid, money)
- {
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid,money);
- return 1;
- }
- //-=-=-=-=-=GivePlayerHealth=-=-=-=-=-
- stock GivePlayerHealth(playerid, Float:health)
- {
- SetPlayerHealth(playerid,GetPlayerHealth(playerid)+health);
- return 1;
- }
- //-=-=-=-=-=GivePlayerArmour=-=-=-=-=-
- stock GivePlayerArmour(playerid, Float:armour)
- {
- SetPlayerArmour(playerid,GetPlayerHealth(playerid)+armour);
- return 1;
- }
- //-=-=-=-=-=Kill=-=-=-=-=-
- stock Kill(playerid)
- {
- SetPlayerHealth(playerid,1);
- return 1;
- }
- //=-=-=-=-=-=-=SendMessageToAdmins=-=-=-=-=-=-=-
- stock SendMessageToAdmins(color,const string[])
- {
- for(new i = 0; i <= MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i) == 1)
- {
- if (AdminLevel[i] != GIOCATORE)
- {
- SendClientMessage(i, color, string);
- }
- }
- }
- return 1;
- }
- //=-=-=-=-=-=-=FrasePulita=-=-=-=-=-=-=-
- stock FrasePulita(playerid,text[]) //By Soeh_
- {
- new string[256];
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid,name,sizeof(name));
- for(new i=0;i<sizeof(VocaboliVietati);i++)
- {
- if (strfind(text,VocaboliVietati[i],true) != null)
- {
- if(playerid != INVALID_PLAYER_ID)
- {
- PlaySound(playerid, SOUND_ROULETTE_NO_CASH);
- SendClientMessage(playerid,COLOR_RED,"ANTI-INSULTI: Sei stato mutato per aver usato una parola scorretta.");
- format(string,sizeof(string),"-SSB- %s è stato mutato dal server per 'Uso di linguaggio inappropriato'.",name);
- SendClientMessageToAll(COLOR_RED,string);
- SendClientMessage(playerid,COLOR_RED,"Regola n°3: Non si possono offendere gli altri giocatori con insulti. Pena: Mute.");
- muted[playerid] = true;
- return 0;
- }
- return 0;
- }
- }
- if (strfind(text,":77",true) != null || strfind(text,"w.",true) != null || strfind(text,"http://",true) != null || strfind(text,".it",true) != null || strfind(text,".com",true) != null || strfind(text,".net",true) != null)
- {
- if(playerid != INVALID_PLAYER_ID)
- {
- SendClientMessage(playerid,COLOR_RED,"ANTI-SPAM: Sei stato mutato per aver tentato di spammare.");
- PlaySound(playerid, SOUND_ROULETTE_NO_CASH);
- format(string,sizeof(string),"-SSB- %s è stato mutato dal server per 'Pubblicità indesiderata'.",name);
- SendClientMessageToAll(COLOR_RED,string);
- SendClientMessage(playerid,COLOR_RED,"Regola n°4: Non si puo fare pubblicità indesiderata all'interno del server. Pena: Mute.");
- muted[playerid] = true;
- }
- return 0;
- }
- return 1;
- }
- //=-=-=-=-=-=-=DBZ_Update=-=-=-=-=-=-=-
- stock DBZ_Update(playerid)
- {
- new name[MAX_PLAYER_NAME];
- new string[256];
- GetPlayerName(playerid,name,sizeof(name));
- format(string,sizeof(string),"Dragonball/%s.ini",name);
- if(INI_Exist(string))
- {
- INI_Remove(string);
- INI_Open(string);
- INI_WriteInt( "Score", GetPlayerScore(playerid));
- INI_WriteInt( "Spada", PlayerInfo[playerid][Desideri][dSpada]);
- INI_WriteInt( "Coltello", PlayerInfo[playerid][Desideri][dColtello]);
- INI_WriteInt( "Bazooka", PlayerInfo[playerid][Desideri][dBazooka]);
- INI_WriteInt( "Sfera1", PlayerInfo[playerid][Sfera1]);
- INI_WriteInt( "Sfera2", PlayerInfo[playerid][Sfera2]);
- INI_WriteInt( "Sfera3", PlayerInfo[playerid][Sfera3]);
- INI_WriteInt( "Sfera4", PlayerInfo[playerid][Sfera4]);
- INI_WriteInt( "Sfera5", PlayerInfo[playerid][Sfera5]);
- INI_WriteInt( "Sfera6", PlayerInfo[playerid][Sfera6]);
- INI_WriteInt( "Sfera7", PlayerInfo[playerid][Sfera7]);
- INI_Save();
- INI_Close();
- }
- return 1;
- }
- //=-=-=-=-=-=-=ShowAttackName=-=-=-=-=-=-=-
- stock ShowAttackName(playerid, attackname[])
- {
- for(new i=0;i<MAX_PLAYERS;i++)
- {
- if(IsPlayerNearPlayer(75,playerid,i)) GameTextForPlayer(i,attackname,2000,1);
- }
- return 1;
- }
- //=-=-=-=-=-=-=IsPlayerAnAndroid=-=-=-=-=-=-=-
- stock IsPlayerAnAndroid(playerid)
- {
- new team = GetPlayerTeam(playerid);
- if(team == 9 || team == 10 || team == 11 || team == 12 || team == 13) return 1;
- return 0;
- }
- stock ApplyAnimationEx(playerid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time)
- {
- ApplyAnimation(playerid, animlib, animname, fDelta, loop, lockx, locky, freeze, time, true);
- return 1;
- }
- //=-=-=-=-=-=-=PlaySound=-=-=-=-=-=-=-
- stock PlaySound(playerid, sound)
- {
- new Float:X, Float:Y, Float:Z;
- GetPlayerPos(playerid, X, Y, Z);
- PlayerPlaySound(playerid, sound, X, Y, Z);
- return sound;
- }
- //=-=-=-=-=-=-=strtok=-=-=-=-=-=-=-
- stock strtok(const string[], &index)
- {
- new length = strlen(string);
- while ((index < length) && (string[index] <= ' '))
- {
- index++;
- }
- new offset = index;
- new result[MAX_PLAYER_NAME];
- while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
- {
- result[index - offset] = string[index];
- index++;
- }
- result[index - offset] = EOS;
- return result;
- }
- //FINE DELLA DRAGONBALL Z DM BY SASINO
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement