Advertisement
Sasino97

[ITALIANO]Dragonball Z DM - v4

Jul 3rd, 2011
561
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 284.27 KB | None | 0 0
  1. /*
  2.     ############          ############\            ############            ##################\         ###                       DB
  3.    ###\\\\\\\\\###\      ###\\\\\\\##\            ###\\\\\\\\\###\        ###\   ###\    ###\         ###\                       DB
  4.   ###\        ###\      #########\     ######    ###\        ###\        ###\   ###\    ###\          \\\                        DB
  5.  ###\        ###\      ###\\\\\\\##\   \\\\\\   ###\        ###\        ###\   ###\    ###\          ###                         DB
  6. ###########  \\\      ############\            ###########  \\\        ###\   ###\    ###\          ###\                         DB
  7. \\\\\\\\\\\\\         \\\\\\\\\\\\             \\\\\\\\\\\\\           \\\    \\\     \\\           \\\                          DB
  8.  
  9. */
  10.  
  11. // Copyright © 2011 All rights reserved
  12.  
  13. // GAMEMODE BY [GF]Sasino97 ! DON'T REMOVE THE CREDITS!!!!
  14.  
  15. //-=-=-=-=-=INCLUDES=-=-=-=-=-
  16.  
  17. #include a_samp.inc              //Crediti alla SA-MP Development Team
  18. #include a_sounds.inc            //Crediti a wiki.sa-mp.com
  19. #include IsPointNearPoint.inc    //Crediti a Soeh
  20. #include CreateExplosionEx.inc   //Crediti a [GF]Sasino97
  21. #include SII.inc                 //Crediti a [DRuG]Slick
  22. #include progress.inc            //Crediti a Toribio
  23. #include wxpublics2.inc           //Crediti a Wacko
  24.  
  25. //-=-=-=-=-=DEFINES=-=-=-=-=-
  26.  
  27. //Define dei colori
  28.  
  29. #define COLOR_RED             0xFF0000AA
  30. #define COLOR_GREEN           0x33AA33AA
  31. #define COLOR_YELLOW          0xFFFF00AA
  32. #define COLOR_ORANGE          0xFF9900AA
  33. #define COLOR_BLUE            0x0000BB00
  34. #define COLOR_BLACK           0x000000FF
  35. #define COLOR_WHITE           0xFFFFFFAA
  36. #define COLOR_ADMIN           0x24FF0AB9
  37. #define COLOR_ALPHA           0xABCDEF02
  38. #define COLOR_PINK            0xFF66FFAA
  39. #define COLOR_VIOLET          0x9955DEEE
  40. #define COLOR_GREY            0xAFAFAFAA
  41. #define COLOR_LIGHTBLUE       0x33CCFFAA
  42. #define COLOR_KICK/BAN        0xFF00FFAA
  43.  
  44. //Define abbreviazione nomi personaggi
  45.  
  46. #define GOKU0                  124
  47. #define GOKU1                  247
  48. #define GOKU2                  100
  49. #define GOKU3                  248
  50. #define VEGETA0                96
  51. #define VEGETA1                291
  52. #define VEGETAS                72
  53. #define VEGETA2                147
  54. #define TRUNKS0                217
  55. #define TRUNKS1                101
  56. #define TRUNKSS                97
  57. #define GOHAN0                 176
  58. #define GOHAN1                 177
  59. #define GOHAN2                 154
  60. #define VEGEKU0                46
  61. #define VEGEKU1                223
  62. #define GOGETA                 98
  63. #define SATAN                  241
  64. #define VIDEL                  56
  65. #define CRILIN                 121
  66. #define YAMCHA                 204
  67. #define TENSHINSHAN            81
  68. #define GELO                   1
  69. #define C16                    181
  70. #define C17                    128
  71. #define C18                    91
  72. #define C19                    29
  73.  
  74. //Define abbreviazione nomi attacchi
  75.  
  76. #define NORMAL_ATTACK_SCRIPT   0
  77. #define KAMEHAMEHA             1
  78. #define KAMEHAMEHA_FURIA       2
  79. #define SUPER_KAMEHAMEHA       3
  80. #define KAMEHAMEHA_MAX         4
  81. #define CANNONE_ESPLOSIVO      5
  82. #define BIG_BANG_ATTACK        6
  83. #define LAMPO_FINALE           7
  84. #define MASENKO                8
  85. #define ATTACCO_BRUCIANTE      9
  86. #define DISTRUTTORE_LETALE     10
  87. #define ARTIGLIO_DEL_LUPO      11
  88. #define TRIPLO_RAGGIO          12
  89. #define RAGGIO_ENERGETICO      13
  90. #define SFERE_ENERGETICHE      14
  91. #define LANCIARAZZI            15
  92. #define IL_CAMPIONE            16
  93. #define GRAN_BOMBA_AURA        17
  94. #define KAMEHAMEHA_FINALE      18
  95. #define KAMEHAMEHA_BIG_BANG    19
  96. #define SUPER_MASENKO          20
  97.  
  98. //Define battleground
  99.  
  100. #define BATTLEGROUND_PANOPTICON 0
  101. #define BATTLEGROUND_TORNEO            1
  102. #define BATTLEGROUND_UNDERWATER        2
  103. #define BATTLEGROUND_GRATTACIELO      3
  104. #define BATTLEGROUND_PONTE            4
  105. #define BATTLEGROUND_ALLENAMENTO      5
  106. #define BATTLEGROUND_AREA51           6
  107. #define BATTLEGROUND_CASINO           7
  108. #define BATTLEGROUND_SALONE           8
  109.  
  110. //Define interiors
  111.  
  112. #define INTERIOR_OUTSIDE       0
  113. #define INTERIOR_SALONE        3
  114. #define INTERIOR_PRIGIONE      6
  115.  
  116. //Define rinominazione tasti
  117.  
  118. #define TASTO_CLICK_SINISTRO   4
  119. #define TASTO_CLICK_CENTRALE   512
  120. #define TASTO_CLICK_DESTRO     128
  121. #define TASTO_TAB              1
  122. #define TASTO_C                2
  123. #define TASTO_SPAZIO           8
  124. #define TASTO_INVIO            16
  125. #define TASTO_MAIUSC           32
  126. #define TASTO_ALT              1024
  127. #define TASTO_SU               131072
  128. #define TASTO_GIU              262144
  129. #define TASTO_SINISTRA         32768
  130. #define TASTO_DESTRA           65536
  131.  
  132. //Define Admin Levels
  133.  
  134. #define GIOCATORE              0
  135. #define MODERATORE             1
  136. #define ADMINSECONDARIO        2
  137. #define ADMIN                  3
  138. #define DEBUGGER               4
  139.  
  140. //Define Dialogs
  141.  
  142. #define DIALOGO_REGOLE         0
  143. #define DIALOGO_SPAWN          1
  144. #define DIALOGO_SHENRON        2
  145. #define DIALOGO_PERSONALIZZA   3
  146. #define DIALOGO_ATTACCO        4
  147. #define DIALOGO_ATTACCO2       5
  148. #define DIALOGO_STILE          6
  149. #define DIALOGO_PIU_AURA       7
  150. #define DIALOGO_PIU_VELOCITA   8
  151. #define DIALOGO_PIU_SALUTE     9
  152. #define DIALOGO_AURA_SIZE      10
  153. #define DIALOGO_AURA_SIZE2     11
  154. #define DIALOGO_SALVA_PARTITA  12
  155. #define DIALOGO_SCOMMESSE      13
  156. #define DIALOGO_SCOMMESSE2     14
  157. #define DIALOGO_KILL           15
  158. #define DIALOGO_SALVARE        16
  159.  
  160. //Define dialog text
  161.  
  162. #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"
  163. #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"
  164. #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"
  165. #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"
  166. #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"
  167. #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"
  168. #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"
  169. #define TEXT_DIALOGO_SIZE      "Vuoi aumentare le dimensioni della tua aura di 0.5 per 20 Punti?"
  170. #define TEXT_DIALOGO_SIZE2     "Vuoi diminuire le dimensioni della tua aura di 0.5 per 5 Punti?"
  171. #define SECONDARY_DIALOG_TEXT  "Dragonball Z DeathMatch 4.0 by [GF]Sasino97"
  172.  
  173. //Undefines
  174.  
  175. #undef  MAX_PLAYERS
  176. #undef  MAX_PLAYER_NAME
  177.  
  178. //Define Massimi
  179.  
  180. #define MAX_PLAYERS            100
  181. #define MAX_PLAYER_NAME        20
  182. #define MAX_SKINS              299
  183. #define MAX_PLAYER_NAME        20
  184. #define MAX_VOTES              3
  185.  
  186. //Altro
  187.  
  188. #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
  189. #define NO_PUNTI_MESSAGE       "Non hai abbastanza PdD per comprare questo oggetto!" //Messaggio che viene visualizzato se non hai abbastanza punti Drago
  190. #define DENY_MESSAGE           "Non hai l'autorizzazione per utilizzare questo comando!" //Messaggio che viene visualizzato se non sei un admin e fai un admcmd
  191. #define null                   -1
  192. #define PrigioneX              263.0
  193. #define PrigioneY              77.0
  194. #define PrigioneZ              1001.0
  195. #pragma tabsize 0
  196.  
  197. //-=-=-=-=-=CALLBACK DECLARATIONS=-=-=-=-=-
  198.  
  199. forward Unfreeze(playerid);
  200. forward Caricamento25(playerid);
  201. forward Caricamento50(playerid);
  202. forward Caricamento100(playerid);
  203. forward OnPlayerFinishCombo(playerid);
  204. //forward OnPlayerUpdateKi(playerid);
  205. forward OnPlayerEnterAnyVehicle(playerid);
  206. forward OnPlayerExitAnyVehicle(playerid);
  207. forward CaricaAura(playerid);
  208. forward SpintaAvanti(playerid);
  209. forward SpintaAvantiBreve(playerid);
  210. forward SpintaSu(playerid);
  211. forward SpintaSuBreve(playerid);
  212. forward SpintaGiu(playerid);
  213. forward SpintaGiuBreve(playerid);
  214.  
  215. //-=-=-=-=-=NEW VARIABLES AND ARRAYS=-=-=-=-=-
  216.  
  217. //Con MAX_PLAYERS
  218.  
  219. new muted[MAX_PLAYERS];
  220. new Combo[MAX_PLAYERS];
  221. new Text:TdCombo[MAX_PLAYERS];
  222. new Text3D:Name3DText[MAX_PLAYERS];
  223. new VoteKick[MAX_PLAYERS];
  224. new AdminLevel[MAX_PLAYERS];
  225. new TickCount[MAX_PLAYERS];
  226. new ScommessaPlayer[MAX_PLAYERS];
  227. new ScommessaSoldi[MAX_PLAYERS];
  228. new Bar:BarraAura[MAX_PLAYERS];
  229. new ComboTick[MAX_PLAYERS];
  230. new ComboTimer[MAX_PLAYERS];
  231. //new TimerUpdate[MAX_PLAYERS];
  232. new AuraTimer[MAX_PLAYERS];
  233. new SpintaAvantiTimer[MAX_PLAYERS];
  234. new SpintaAvantiTimer2[MAX_PLAYERS];
  235. new SpintaGiuTimer[MAX_PLAYERS];
  236. new SpintaGiuTimer2[MAX_PLAYERS];
  237. new SpintaSuTimer[MAX_PLAYERS];
  238. new SpintaSuTimer2[MAX_PLAYERS];
  239. new Text:ScrittaBarra1[MAX_PLAYERS];
  240. new Text:ScrittaBarra2[MAX_PLAYERS];
  241. new Text:ScrittaBarra3[MAX_PLAYERS];
  242.  
  243. //Con Float:
  244.  
  245. new Float:RandomAllenamento[2][3] =
  246. {
  247. {-68.4304,-17.8501,3.1171},//Spazio Allenamento
  248. {-53.8105,16.1618,3.1171}
  249. };
  250. new Float:RandomPanopticon[2][3] =
  251. {
  252. {-562.7196,-189.0080,78.4062},//Panopticon
  253. {-529.9219,-189.8709,78.4062}
  254. };
  255. new Float:RandomGrattacielo[2][3] =
  256. {
  257. {1529.3504,-1359.3781,329.4609},//Grattacielo
  258. {1557.7271,-1352.8771,329.4609}
  259. };
  260. new Float:RandomTorneo[2][3] =
  261. {
  262. {397.3382,-2070.2937,13.8998},//Torneo
  263. {372.9983,-2069.4833,13.9451}
  264. };
  265. new Float:RandomPonte[2][3] =
  266. {
  267. {-1251.3450,768.4552,34.5781},//Ponte
  268. {-1205.4771,801.5731,34.5781}
  269. };
  270. new Float:RandomUnderwater[2][3] =
  271. {
  272. {-2665.1315,1908.1401,-37.8794},//Sotto il mare
  273. {-2708.8198,1904.1984,-37.2827}
  274. };
  275. new Float:RandomArea51[2][3] =
  276. {
  277. {183.161331,1860.846679,20.661357},//Nell'Area 51
  278. {228.632171,1898.935668,17.648057}
  279. };
  280. new Float:RandomCasino[2][3] =
  281. {
  282. {2272.188476,1623.508178,94.921875},//Sul tetto del caligulas
  283. {2204.618164,1603.807128,68.726562}
  284. };
  285. new Float:RandomSpawns[16][3] =
  286. {
  287. {-562.7196,-189.0080,78.4062},//Panopticon
  288. {-529.9219,-189.8709,78.4062},
  289. {1529.3504,-1359.3781,329.4609},//Grattacielo
  290. {1557.7271,-1352.8771,329.4609},
  291. {397.3382,-2070.2937,13.8998},//Torneo
  292. {372.9983,-2069.4833,13.9451},
  293. {-1251.3450,768.4552,34.5781},//Ponte
  294. {-1205.4771,801.5731,34.5781},
  295. {-2665.1315,1908.1401,-37.8794},//Sotto il mare
  296. {-2708.8198,1904.1984,-37.2827},
  297. {183.161331,1860.846679,20.661357},//Nell'Area 51
  298. {228.632171,1898.935668,17.648057},
  299. {2272.188476,1623.508178,94.921875},//Sul tetto del caligulas
  300. {2204.618164,1603.807128,68.726562},
  301. {-68.4304,-17.8501,3.1171},//Spazio Allenamento
  302. {-53.8105,16.1618,3.1171}
  303. };
  304.  
  305. //Con stringhe
  306.  
  307. new rand;
  308.  
  309. new VocaboliVietati[68][] =  //PAROLE CHE NON SI POSSONO DIRE
  310. {
  311. "noob","nab","nappo","n4","n0","nub",
  312. "cazz","caxx","merd","pene","figa","minch","mink","culo","porc","pisell",
  313. "fanculo","fuck","fott","ciuccia","succhia","sukkia","suca","suka","muori","mori","tacci",
  314. "stronz","strunz","scem","cretin","deficent","coglion","idiot","imbecill","pirla","bastard","mongoloid","andicap","finocchi","finokk","froci","ricchion","rikkion","gay","g4y","ojon","oion",
  315. "negr","ebre","marocchin","marokkin","cuio",
  316. "troi","puta","ttana","batton","donnett","zoccol","baldra","madre","mamm","mmt","mamt","mignott","bocchin","bokkin","pompin"
  317. };
  318.  
  319. new Regole[][] =
  320. {
  321. {"1 - Non si possono usare cheats(trucchi) in questo server.\n"},
  322. {"2 - Non si puo spammare messaggi ne spammare gli attacchi.\n"},
  323. {"3 - Non si possono offendere gli altri giocatori con insulti.\n"},
  324. {"4 - Non si puo fare pubblicità indesiderata all interno del server.\n"},
  325. {"I moderatori hanno il diritto di punire chi non le rispetta.\n"},
  326. {"Cliccando sul pulsante \"Accetto\" dichiari di aver letto\n"},
  327. {"e compreso le regole e di impegnarti a rispettarle.\n"}
  328. };
  329.  
  330. //Con enum
  331.  
  332. enum dDesideri
  333. {
  334.   dSpada,
  335.   dBazooka,
  336.   dColtello,
  337. };
  338.  
  339. enum pStat
  340. {
  341.   Stile[MAX_SKINS],
  342.   Attacco[MAX_SKINS],
  343.   Velocita[MAX_SKINS],
  344.   SaluteMax[MAX_SKINS],
  345.   AuraMax[MAX_SKINS],
  346.   Float:AuraSize[MAX_SKINS]
  347. };
  348.  
  349. enum pInfo
  350. {
  351.   Sfera1,
  352.   Sfera2,
  353.   Sfera3,
  354.   Sfera4,
  355.   Sfera5,
  356.   Sfera6,
  357.   Sfera7,
  358.   Punteggio,
  359.   Desideri[dDesideri],
  360.   Stats[pStat],
  361.   RadarPreso,
  362. };
  363.  
  364. new PlayerInfo[MAX_PLAYERS][pInfo];
  365.  
  366. //Altri
  367.  
  368. new Radar;
  369. new Drago1;
  370. new Drago2;
  371. new Drago3;
  372. new Drago4;
  373. new Drago5;
  374. new Drago6;
  375. new Drago7;
  376. new SalvaPartita;
  377. new Kill1;
  378. new Kill2;
  379. new Kill3;
  380. new Kill4;
  381. new Kill5;
  382. new Kill6;
  383. new Kill7;
  384. new Kill8;
  385.  
  386. //-=-=-=-=-=Main=-=-=-=-=-
  387.  
  388. main()
  389. {
  390.   print("\n-----------------NOW RUNNING------------------\n");
  391.   print("       Dragonball Z Deathmatch 4.0 by Sasino     ");
  392.   print("\n----------------------------------------------\n");
  393. }
  394.  
  395. //-=-=-=-=-=-=-=-=-=-=-=-=-=CALLBACKS-=-=-=-=-=-=-=-=-=-=-=-=-=
  396.  
  397. //-=-=-=-=-=OnGamemodeInit=-=-=-=-=-
  398.  
  399. public OnGameModeInit()
  400. {
  401.   SetWeather(17);//Atmosfera
  402.   SetGravity(0.001);//Gravità
  403.   SetWorldTime(12);//Orario(A Natale impostare su 24)
  404.   SetNameTagDrawDistance(20);//Distanza da cui si puo vedere il name tag
  405.   SetGameModeText("DBZ-DM 4.0 ITA");//Nome GM
  406.   AllowAdminTeleport(true);//Si teletrasporto per gli amministratori e i moderatori
  407.   ShowPlayerMarkers(true);//Si segnali sulla mappa dei giocatori
  408.   DisableInteriorEnterExits();//No entrata negli interior
  409.   SendRconCommand("hostname [ITA][GF]Server 1 - Dragonball Z DM!(0.3c)");
  410.  
  411.   ConnectNPC("Spettatore1","DragonballNPC1");
  412.   ConnectNPC("Spettatore2","DragonballNPC2");
  413.   ConnectNPC("Spettatore3","DragonballNPC3");
  414.   ConnectNPC("Vendipizza","DragonballNPC4");
  415.   ConnectNPC("Spettatore4","DragonballNPC5");
  416.   ConnectNPC("Spettatore5","DragonballNPC6");
  417.   ConnectNPC("Spettatore6","DragonballNPC7");
  418.   ConnectNPC("SaiyanSconosciuto","DragonballNPC8");
  419.   ConnectNPC("Spettatore7","DragonballNPC9");
  420.   ConnectNPC("Spettatore8","DragonballNPC10");
  421.   ConnectNPC("Spettatore9","DragonballNPC11");
  422.   ConnectNPC("Spettatrice","DragonballNPC12");
  423.   ConnectNPC("Sensei","DragonballNPC13");
  424.  
  425.   AddPlayerClassEx(0,GOKU0,-249.000000,6.000000,117.000000, 90.000000,0,0,0,0,0,0);//Goku
  426.   AddPlayerClassEx(1,VEGETA0,-249.000000,6.000000,117.000000, 90.000000,0,0,0,0,0,0);//Vegeta
  427.   AddPlayerClassEx(2,TRUNKS0,-249.000000,6.000000,117.000000, 90.000000,0,0,0,0,0,0);//Trunks
  428.   AddPlayerClassEx(3,GOHAN0,-249.000000,6.000000,117.000000, 90.000000,0,0,0,0,0,0);//Gohan
  429.   AddPlayerClassEx(4,SATAN,-249.000000,6.000000,117.000000, 90.000000,0,0,0,0,0,0);//Mr. Satan
  430.   AddPlayerClassEx(5,VIDEL,-249.000000,6.000000,117.000000, 90.000000,0,0,0,0,0,0);//Videl
  431.   AddPlayerClassEx(6,CRILIN,-249.000000,6.000000,117.000000, 90.000000,0,0,0,0,0,0);//Crilin
  432.   AddPlayerClassEx(7,YAMCHA,-249.000000,6.000000,117.000000, 90.000000,0,0,0,0,0,0);//Yamcha
  433.   AddPlayerClassEx(8,TENSHINSHAN,-249.000000,6.000000,117.000000, 90.000000,0,0,0,0,0,0);//Tenshinshan
  434.   AddPlayerClassEx(9,GELO,-249.000000,6.000000,117.000000, 90.000000,0,0,0,0,0,0);//Dr. Gelo
  435.   AddPlayerClassEx(10,C16,-249.000000,6.000000,117.000000, 90.000000,0,0,0,0,0,0);//C16
  436.   AddPlayerClassEx(11,C17,-249.000000,6.000000,117.000000, 90.000000,0,0,0,0,0,0);//C17
  437.   AddPlayerClassEx(12,C18,-249.000000,6.000000,117.000000, 90.000000,0,0,0,0,0,0);//C18
  438.   AddPlayerClassEx(13,C19,-249.000000,6.000000,117.000000, 90.000000,0,0,0,0,0,0);//C19
  439.  
  440.   Drago1 = CreatePickup(1247,15,-537.200683,-102.969543,63.296875);//Sfera del drago con 1 stella
  441.   Drago2 = CreatePickup(1247,15,-2670.812255,1933.930419,217.273895);//Sfera del drago con 2 stelle
  442.   Drago3 = CreatePickup(1247,15,1451.416748,-1076.615478,213.382812);//Sfera del drago con 3 stelle
  443.   Drago4 = CreatePickup(1247,15,-1363.999755,493.684875,29.944622);//Sfera del drago con 4 stelle
  444.   Drago5 = CreatePickup(1247,15,-61.429683,-37.518638,25.980148);//Sfera del drago con 5 stelle
  445.   Drago6 = CreatePickup(1247,15,281.206451,1816.537475,1.000000);//Sfera del drago con 6 stelle
  446.   Drago7 = CreatePickup(1247,15,2323.700439,1283.225341,97.661628);//Sfera del drago con 7 stelle
  447.   Radar = CreatePickup(1252,15,2002.766113,1532.768798,34.918472);//Radar Del Drago Di Bulma
  448.   Kill1 = CreatePickup(1254,15,-534.850280,-177.978118,84.203895);//Kills
  449.   Kill2 = CreatePickup(1254,15,382.104675,-2085.783691,7.835937);//
  450.   Kill3 = CreatePickup(1254,15,-2717.638427,1916.555175,-37.692634);//
  451.   Kill4 = CreatePickup(1254,15,1547.865112,-1366.486816,326.210937);//
  452.   Kill5 = CreatePickup(1254,15,-1312.331298,723.875793,34.578125);//
  453.   Kill6 = CreatePickup(1254,15,-67.796043,15.665332,5.960474);//
  454.   Kill7 = CreatePickup(1254,15,206.900390,1921.105346,17.640625);//
  455.   Kill8 = CreatePickup(1254,15,2266.202148,1619.752563,99.023284);//Fine Kills
  456.   Radar = CreatePickup(1252,15,2002.766113,1532.768798,34.918472);//Radar Del Drago Di Bulma
  457.   SalvaPartita = CreatePickup(1277,23,823.166564,1.832440,1004.179687);//Menu principale
  458.  
  459.   CreateObject(971,364.854858,-2024.364990,10.449507,0.000000,0.000000,360.000000);//Cage
  460.   CreateObject(971,373.453552,-2024.487670,10.337790,0.000000,0.000000,360.000000);//
  461.   CreateObject(971,377.692169,-2028.686035,10.285641,0.000000,0.000000,270.000000);//
  462.   CreateObject(971,377.483123,-2037.448486,10.227573,0.000000,0.000000,270.000000);//
  463.   CreateObject(971,381.926849,-2041.893554,10.080951,0.000000,0.000000,360.000000);//
  464.   CreateObject(971,390.607543,-2041.956298,10.244183,0.000000,0.000000,0.000000);////
  465.   CreateObject(971,395.177520,-2041.678222,10.493602,0.000000,0.000000,0.000000);////
  466.   CreateObject(971,360.316619,-2028.781860,10.429292,0.000000,0.000000,90.000000);///
  467.   CreateObject(971,360.365295,-2037.818237,10.446266,0.000000,0.000000,90.000000);///
  468.   CreateObject(971,355.863403,-2047.221557,10.516483,0.000000,0.000000,360.000000);//
  469.   CreateObject(971,360.174713,-2042.649414,10.129162,0.000000,0.000000,90.000000);///
  470.   CreateObject(971,349.348693,-2051.299560,10.362854,0.000000,0.000000,90.000000);///
  471.   CreateObject(971,353.712524,-2047.049804,10.380116,0.000000,0.000000,0.000000);////
  472.   CreateObject(971,349.571594,-2059.866210,10.328974,0.000000,0.000000,90.000000);///
  473.   CreateObject(971,349.781982,-2068.938476,10.430992,0.000000,0.000000,90.000000);///
  474.   CreateObject(971,349.954711,-2077.801269,10.366273,0.000000,0.000000,90.000000);///
  475.   CreateObject(971,349.900543,-2084.890380,10.419968,0.000000,0.000000,90.000000);///
  476.   CreateObject(971,354.100128,-2089.282958,10.113450,0.000000,0.000000,180.000000);//
  477.   CreateObject(971,362.707977,-2089.087158,10.315588,0.000000,0.000000,180.000000);//
  478.   CreateObject(971,371.566589,-2089.158447,10.271301,0.000000,0.000000,180.000000);//
  479.   CreateObject(971,380.395904,-2089.262939,10.250101,0.000000,0.000000,180.000000);//
  480.   CreateObject(971,389.139434,-2089.212158,10.158458,0.000000,0.000000,180.000000);//
  481.   CreateObject(971,397.922973,-2089.104492,10.835937,0.000000,0.000000,180.000000);//
  482.   CreateObject(971,405.629791,-2089.104492,10.231714,0.000000,0.000000,180.000000);//
  483.   CreateObject(971,409.754943,-2084.612792,10.094079,0.000000,0.000000,270.000000);//
  484.   CreateObject(971,409.797088,-2075.795410,10.563268,0.000000,0.000000,270.000000);//
  485.   CreateObject(971,409.768371,-2067.102539,10.030206,0.000000,0.000000,270.000000);//
  486.   CreateObject(971,410.017486,-2058.327880,10.298521,0.000000,0.000000,270.000000);//
  487.   CreateObject(971,409.782165,-2051.658203,10.298521,0.000000,0.000000,270.000000);//
  488.   CreateObject(971,409.782165,-2048.658203,10.298521,0.000000,0.000000,360.000000);//
  489.   CreateObject(971,403.119995,-2047.381835,10.298521,0.000000,0.000000,360.000000);//
  490.   CreateObject(971,398.632232,-2043.106811,10.117244,0.000000,0.000000,270.000000);//Fine Cage
  491.  
  492.  
  493.   //PER IL NATALE CANCELLARE I SEGNI /* e */
  494.   /*
  495.   CreateObject(661,368.618499,-1994.246948,6.659312,0.000000,0.000000,0.00000000);//Special Feste Invernali
  496.   CreateObject(3785,370.700073,-1995.705688,12.782113,0.000000,0.000000,0.000000);//
  497.   CreateObject(3785,367.190032,-1995.480712,13.676772,0.000000,0.000000,0.000000);//
  498.   CreateObject(3785,369.532104,-1994.811157,15.755434,0.000000,0.000000,0.000000);//
  499.   CreateObject(3785,370.090789,-1995.620605,19.191816,0.000000,0.000000,0.000000);//
  500.   CreateObject(3785,366.341827,-1995.635009,19.376033,0.000000,0.000000,0.000000);//
  501.   CreateObject(3785,367.877929,-1991.300903,14.011980,0.000000,0.000000,0.000000);//
  502.   CreateObject(3785,367.571228,-1993.741943,20.903799,0.000000,0.000000,0.000000);//
  503.   CreateObject(3785,370.950500,-1994.454589,12.136563,0.000000,0.000000,0.000000);//
  504.   CreateObject(3785,369.979797,-1993.114868,13.362409,0.000000,0.000000,0.000000);//Fine Special Feste Invernali
  505.   */
  506.   return 1;
  507. }
  508.  
  509. //-=-=-=-=-=OnGamemodeExit=-=-=-=-=-
  510.  
  511. public OnGameModeExit()
  512. {
  513.   return 1;
  514. }
  515.  
  516. public OnPlayerStateChange(playerid, newstate, oldstate)
  517. {
  518.   if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER) OnPlayerEnterAnyVehicle(playerid);
  519.   if(oldstate == PLAYER_STATE_DRIVER && newstate == PLAYER_STATE_ONFOOT) OnPlayerExitAnyVehicle(playerid);
  520.   return 1;
  521. }
  522.  
  523. //-=-=-=-=-=OnPlayerEnterAnyVehicle=-=-=-=-=-
  524.  
  525. public OnPlayerEnterAnyVehicle(playerid)
  526. {
  527.   new name[MAX_PLAYER_NAME];
  528.   new string[256];
  529.   SetPlayerPos(playerid,PrigioneX,PrigioneY,PrigioneZ);
  530.   SetPlayerInterior(playerid,6);
  531.   GetPlayerName(playerid,name,sizeof(name));
  532.   format(string, sizeof(string),"-SSB- %s è stato bannato dal server per 'Uso di cheat(veicoli)'.", name);
  533.   SendClientMessageToAll(COLOR_KICK/BAN,string);
  534.   SendClientMessage(playerid,COLOR_KICK/BAN,"Regola n°1: Non si possono usare cheats(trucchi) in questo server. Pena: Ban.");
  535.   SendClientMessage(playerid,COLOR_KICK/BAN,"Il sistema anti-vehicle ha rilevato la tua entrata in un veicolo.");
  536.   GameTextForPlayer(playerid,"ORA SEI DISCONNESSO. /Q PER USCIRE DAL GIOCO.",300000,5);
  537.   BanEx(playerid,"CHEAT(VEICOLI)");
  538.   return 1;
  539. }
  540.  
  541. //-=-=-=-=-=OnPlayerExitAnyVehicle=-=-=-=-=-
  542.  
  543. public OnPlayerExitAnyVehicle(playerid)
  544. {
  545.   new name[MAX_PLAYER_NAME];
  546.   new string[256];
  547.   SetPlayerPos(playerid,PrigioneX,PrigioneY,PrigioneZ);
  548.   SetPlayerInterior(playerid,6);
  549.   GetPlayerName(playerid,name,sizeof(name));
  550.   format(string, sizeof(string), "-SSB- %s è stato bannato dal server per 'Uso di cheat(veicoli)'.", name);
  551.   SendClientMessageToAll(COLOR_KICK/BAN,string);
  552.   SendClientMessage(playerid,COLOR_KICK/BAN,"Regola n°1: Non si possono usare cheats(trucchi) in questo server. Pena: Ban.");
  553.   SendClientMessage(playerid,COLOR_KICK/BAN,"Il sistema anti-vehicle ha rilevato la tua uscita da un veicolo.");
  554.   BanEx(playerid,"CHEAT(VEICOLI)");
  555.   return 1;
  556. }
  557.  
  558. //-=-=-=-=-=OnPlayerSpawn=-=-=-=-=-
  559.  
  560. public OnPlayerSpawn(playerid)
  561. {
  562.     new Float:X, Float:Y, Float:Z;
  563.     new team = GetPlayerTeam(playerid);
  564.     TogglePlayerClock(playerid, true);
  565.     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");
  566.     TogglePlayerControllable(playerid,false);
  567.     new name[MAX_PLAYER_NAME];
  568.     //TimerUpdate[playerid] = SetTimerEx("OnPlayerUpdateKi", 500, 1, "i", playerid);
  569.     GetPlayerName(playerid,name,sizeof(name));
  570.     ShowProgressBarForPlayer(playerid, BarraAura[playerid]);
  571.     if(IsPlayerNPC(playerid))
  572.     {
  573.       GetPlayerName(playerid,name,sizeof(name));
  574.       if(strfind(name, "Spettatore1", true) != null)
  575.       {
  576.         SetPlayerSkin(playerid,221);
  577.         SetPlayerColor(playerid,COLOR_ADMIN);
  578.         Name3DText[playerid] = Create3DTextLabel("Nelson Mandela", COLOR_RED, X, Y, Z+0.2, 20, 0, 0);
  579.         Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.2);
  580.       }
  581.       if(strfind(name, "Spettatore2", true) != null)
  582.       {
  583.         SetPlayerSkin(playerid,274);
  584.         SetPlayerColor(playerid,COLOR_ADMIN);
  585.         Name3DText[playerid] = Create3DTextLabel("Sicurezza Medica", COLOR_RED, X, Y, Z+0.2, 20, 0, 0);
  586.         Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.2);
  587.       }
  588.       if(strfind(name, "Spettatore3", true) != null)
  589.       {
  590.         SetPlayerSkin(playerid,299);
  591.         SetPlayerColor(playerid,COLOR_ADMIN);
  592.         Name3DText[playerid] = Create3DTextLabel("Spettatore", COLOR_RED, X, Y, Z+0.2, 20, 0, 0);
  593.         Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.2);
  594.       }
  595.       if(strfind(name, "Vendipizza", true) != null)
  596.       {
  597.         SetPlayerSkin(playerid,168);
  598.         SetPlayerColor(playerid,COLOR_ADMIN);
  599.         Name3DText[playerid] = Create3DTextLabel("Pizze", COLOR_RED, X, Y, Z+0.2, 20, 0, 0);
  600.         Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.2);
  601.       }
  602.       if(strfind(name, "Spettatore4", true) != null)
  603.       {
  604.         SetPlayerSkin(playerid,188);
  605.         SetPlayerColor(playerid,COLOR_ADMIN);
  606.         Name3DText[playerid] = Create3DTextLabel("Spettatore", COLOR_RED, X, Y, Z+0.2, 20, 0, 0);
  607.         Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.2);
  608.       }
  609.       if(strfind(name, "Spettatore5", true) != null)
  610.       {
  611.         SetPlayerSkin(playerid,258);
  612.         SetPlayerColor(playerid,COLOR_ADMIN);
  613.         Name3DText[playerid] = Create3DTextLabel("Spettatore", COLOR_RED, X, Y, Z+0.2, 20, 0, 0);
  614.         Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.2);
  615.       }
  616.       if(strfind(name, "Spettatore6", true) != null)
  617.       {
  618.         SetPlayerSkin(playerid,179);
  619.         SetPlayerColor(playerid,COLOR_ADMIN);
  620.         Name3DText[playerid] = Create3DTextLabel("Spettatore", COLOR_RED, X, Y, Z+0.2, 20, 0, 0);
  621.         Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.2);
  622.       }
  623.       if(strfind(name, "SaiyanSconosciuto", true) != null)
  624.       {
  625.         SetPlayerSkin(playerid,49);
  626.         SetPlayerColor(playerid,COLOR_ADMIN);
  627.         Name3DText[playerid] = Create3DTextLabel("Sensei", COLOR_RED, X, Y, Z+0.2, 20, 0, 0);
  628.         Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.2);
  629.       }
  630.       if(strfind(name, "Spettatore7", true) != null)
  631.       {
  632.         SetPlayerSkin(playerid,19);
  633.         SetPlayerColor(playerid,COLOR_ADMIN);
  634.         Name3DText[playerid] = Create3DTextLabel("Spettatore", COLOR_RED, X, Y, Z+0.2, 20, 0, 0);
  635.         Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.2);
  636.       }
  637.       if(strfind(name, "Spettatore8", true) != null)
  638.       {
  639.         SetPlayerSkin(playerid,22);
  640.         SetPlayerColor(playerid,COLOR_ADMIN);
  641.         Name3DText[playerid] = Create3DTextLabel("Spettatore", COLOR_RED, X, Y, Z+0.2, 20, 0, 0);
  642.         Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.2);
  643.       }
  644.       if(strfind(name, "Spettatore9", true) != null)
  645.       {
  646.         SetPlayerSkin(playerid,83);
  647.         SetPlayerColor(playerid,COLOR_ADMIN);
  648.         Name3DText[playerid] = Create3DTextLabel("Elvis Presley", COLOR_RED, X, Y, Z+0.2, 20, 0, 0);
  649.         Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.2);
  650.       }
  651.       if(strfind(name, "Spettatrice", true) != null)
  652.       {
  653.         SetPlayerSkin(playerid,40);
  654.         SetPlayerColor(playerid,COLOR_ADMIN);
  655.         Name3DText[playerid] = Create3DTextLabel("Spettatrice", COLOR_RED, X, Y, Z+0.2, 20, 0, 0);
  656.         Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.2);
  657.       }
  658.       if(strfind(name, "Sensei", true) != null)
  659.       {
  660.         SetPlayerSkin(playerid,49);
  661.         SetPlayerColor(playerid,COLOR_ADMIN);
  662.         Name3DText[playerid] = Create3DTextLabel("Sensei", COLOR_RED, X, Y, Z+0.2, 20, 0, 0);
  663.         Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.2);
  664.       }
  665.       printf("%s: Sono entrato nel server con l'id %d.",name,playerid);
  666.       return 0;
  667.     }
  668.     if(team == 13 || team == 9) { SendClientMessage(playerid,COLOR_LIGHTBLUE,"Questo personaggio puo assorbire l'energia con /energia."); }
  669.  
  670.     ResetPlayerMoney(playerid);//Resetta Aura
  671.     SetPlayerArmour(playerid,150);//Prima barra di salute
  672.     SetPlayerHealth(playerid,150);//Seconda barra di salute
  673.     SetPlayerColor(playerid,COLOR_WHITE);//Colore
  674.     TogglePlayerClock(playerid,false);
  675.     SendClientMessage(playerid,COLOR_BLUE,  "Benvenuto al Dragonball Z DM 4.0 by Sasino! Per ricever'aiuto /help.");
  676.     SendClientMessage(playerid,COLOR_YELLOW,"Gamemode ispirata a 'Dragonball: Raging Blast 2' e ai suoi precedenti giochi.");
  677.     SendClientMessage(playerid,COLOR_BLUE,  "Avviso: Tutti, tranne i cyborg compaiono con 2 barre di salute(150 hp e 150 armour).");
  678.     SendClientMessage(playerid,COLOR_YELLOW,"Cio' significa che se un giocatore non perde vita appena spawnato, {FF0000}NON{FFFF00} sta usando cheat.");
  679.     //SendClientMessage(playerid,COLOR_RED,"Noi di [GF]Grove Family auguriamo un buon Natale a tutti!");
  680.     PlaySound(playerid,SOUND_BIKE_AWARD_TRACK_START);
  681.     if(IsPlayerAnAndroid(playerid))
  682.     {
  683.       SendClientMessage(playerid,COLOR_LIGHTBLUE,"I cyborg(Androidi) compaiono con mezza barra di salute, ma con aura infinita.");
  684.       SetPlayerColor(playerid,COLOR_LIGHTBLUE);
  685.       SetPlayerHealth(playerid,50);
  686.       SetPlayerArmour(playerid,0);
  687.       ResetPlayerMoney(playerid);
  688.     }
  689.     if(team == 4 || team == 5)
  690.     {
  691.       SendClientMessage(playerid,COLOR_PINK,"I personaggi deboli compaiono con una sola barra di salute di 150hp.");
  692.       SetPlayerColor(playerid,COLOR_PINK);
  693.       SetPlayerHealth(playerid,150);
  694.       SetPlayerArmour(playerid,0);
  695.       ResetPlayerMoney(playerid);
  696.     }
  697.     switch(team)
  698.     {
  699.       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);}
  700.       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);}
  701.       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);}
  702.       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);}
  703.       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);}
  704.       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);}
  705.       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);}
  706.       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);}
  707.       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);}
  708.       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);}
  709.       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);}
  710.       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);}
  711.       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);}
  712.       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);}
  713.     }
  714.  
  715.     PlayerInfo[playerid][Desideri][dSpada] = 0;
  716.     PlayerInfo[playerid][Desideri][dColtello] = 0;
  717.     PlayerInfo[playerid][Desideri][dBazooka] = 0;
  718.     PlayerInfo[playerid][Sfera1] = 0;
  719.     PlayerInfo[playerid][Sfera2] = 0;
  720.     PlayerInfo[playerid][Sfera3] = 0;
  721.     PlayerInfo[playerid][Sfera4] = 0;
  722.     PlayerInfo[playerid][Sfera5] = 0;
  723.     PlayerInfo[playerid][Sfera6] = 0;
  724.     PlayerInfo[playerid][Sfera7] = 0;
  725.     PlayerInfo[playerid][RadarPreso] = 0;
  726.     new name3[MAX_PLAYER_NAME];
  727.     new string[256];
  728.     GetPlayerName(playerid,name3,sizeof(name3));
  729.     format(string, sizeof(string), "Dragonball/%s.ini", name3);
  730.  
  731.     if(!INI_Exist(string))
  732.     {
  733.       INI_Open(string);
  734.       INI_WriteInt( "Score", GetPlayerScore(playerid));
  735.       INI_WriteInt( "Spada", PlayerInfo[playerid][Desideri][dSpada]);
  736.       INI_WriteInt( "Coltello", PlayerInfo[playerid][Desideri][dColtello]);
  737.       INI_WriteInt( "Bazooka", PlayerInfo[playerid][Desideri][dBazooka]);
  738.       INI_WriteInt( "Sfera1", PlayerInfo[playerid][Sfera1]);
  739.       INI_WriteInt( "Sfera2", PlayerInfo[playerid][Sfera2]);
  740.       INI_WriteInt( "Sfera3", PlayerInfo[playerid][Sfera3]);
  741.       INI_WriteInt( "Sfera4", PlayerInfo[playerid][Sfera4]);
  742.       INI_WriteInt( "Sfera5", PlayerInfo[playerid][Sfera5]);
  743.       INI_WriteInt( "Sfera6", PlayerInfo[playerid][Sfera6]);
  744.       INI_WriteInt( "Sfera7", PlayerInfo[playerid][Sfera7]);
  745.       INI_WriteInt( "RadarPreso", PlayerInfo[playerid][RadarPreso]);
  746.       INI_Save();
  747.       INI_Close();
  748.     }
  749.     else
  750.     {
  751.       INI_Open(string);
  752.       PlayerInfo[playerid][Punteggio] = INI_ReadInt("Score");
  753.       PlayerInfo[playerid][Desideri][dSpada] = INI_ReadInt("Spada");
  754.       PlayerInfo[playerid][Desideri][dColtello] = INI_ReadInt("Coltello");
  755.       PlayerInfo[playerid][Desideri][dBazooka] = INI_ReadInt("Bazooka");
  756.       PlayerInfo[playerid][Sfera1] = INI_ReadInt("Sfera1");
  757.       PlayerInfo[playerid][Sfera2] = INI_ReadInt("Sfera2");
  758.       PlayerInfo[playerid][Sfera3] = INI_ReadInt("Sfera3");
  759.       PlayerInfo[playerid][Sfera4] = INI_ReadInt("Sfera4");
  760.       PlayerInfo[playerid][Sfera5] = INI_ReadInt("Sfera5");
  761.       PlayerInfo[playerid][Sfera6] = INI_ReadInt("Sfera6");
  762.       PlayerInfo[playerid][Sfera7] = INI_ReadInt("Sfera7");
  763.       PlayerInfo[playerid][RadarPreso] = INI_ReadInt("RadarPreso");
  764.       INI_Close();
  765.     }
  766.     new skin = GetPlayerSkin(playerid);
  767.     new string2[256];
  768.     new name2[MAX_PLAYER_NAME];
  769.     GetPlayerName(playerid,name2,sizeof(name2));
  770.     format(string2, sizeof(string2), "Tavole/%s.%d.ini", name2,skin);
  771.     if(INI_Exist(string2))
  772.     {
  773.       INI_Open(string2);
  774.       PlayerInfo[playerid][Stats][Stile][skin] = INI_ReadInt("Stile");
  775.       PlayerInfo[playerid][Stats][Attacco][skin] = INI_ReadInt("Attacco");
  776.       PlayerInfo[playerid][Stats][Velocita][skin] = INI_ReadInt("Velocita");
  777.       PlayerInfo[playerid][Stats][AuraMax][skin] = INI_ReadInt("AuraMax");
  778.       PlayerInfo[playerid][Stats][SaluteMax][skin] = INI_ReadInt("SaluteMax");
  779.       PlayerInfo[playerid][Stats][AuraSize][skin] = INI_ReadFloat("AuraSize");
  780.       INI_Save();
  781.       INI_Close();
  782.       SendClientMessage(playerid,COLOR_LIGHTBLUE,"Questo personaggio è personalizzato. Per cambiare la sua tavola vai sul menu del salone.");
  783.     }
  784.     else SendClientMessage(playerid,COLOR_LIGHTBLUE,"Questo personaggio non è personalizzato. Se vuoi farlo vai sul menu del salone.");
  785.     if(PlayerInfo[playerid][Stats][Stile][skin] != 0) SetPlayerFightingStyle(playerid,PlayerInfo[playerid][Stats][Stile][skin]);
  786.     SetPlayerScore(playerid,PlayerInfo[playerid][Punteggio]);
  787.     if(GetPlayerTeam(playerid) == 2 && PlayerInfo[playerid][Desideri][dSpada] == 1)    GivePlayerWeapon(playerid,WEAPON_KATANA,1);
  788.     if(GetPlayerTeam(playerid) == 5 && PlayerInfo[playerid][Desideri][dColtello] == 1) GivePlayerWeapon(playerid,WEAPON_KNIFE,1);
  789.     if(GetPlayerTeam(playerid) == 10 && PlayerInfo[playerid][Desideri][dBazooka] == 1) GivePlayerWeapon(playerid,WEAPON_HEATSEEKER,20);
  790.     if(PlayerInfo[playerid][Stats][SaluteMax][skin] > 5)
  791.     {
  792.       SetPlayerHealth(playerid, PlayerInfo[playerid][Stats][SaluteMax][skin]);
  793.       SetPlayerArmour(playerid, PlayerInfo[playerid][Stats][SaluteMax][skin]);
  794.     }
  795.     if(PlayerInfo[playerid][RadarPreso] == 1)
  796.     {
  797.       if(PlayerInfo[playerid][Sfera1] == 0) SetPlayerMapIcon(playerid, 1, -537.200683,-102.969543,63.296875, 56, 0, MAPICON_GLOBAL);
  798.       if(PlayerInfo[playerid][Sfera2] == 0) SetPlayerMapIcon(playerid, 2, -2670.812255,1933.930419,217.273895, 56, 0, MAPICON_GLOBAL);
  799.       if(PlayerInfo[playerid][Sfera3] == 0) SetPlayerMapIcon(playerid, 3, 1451.416748,-1076.615478,213.382812, 56, 0, MAPICON_GLOBAL);
  800.       if(PlayerInfo[playerid][Sfera4] == 0) SetPlayerMapIcon(playerid, 4, -1363.999755,493.684875,29.944622, 56, 0, MAPICON_GLOBAL);
  801.       if(PlayerInfo[playerid][Sfera5] == 0) SetPlayerMapIcon(playerid, 5, -61.429683,-37.518638,25.980148, 56, 0, MAPICON_GLOBAL);
  802.       if(PlayerInfo[playerid][Sfera6] == 0) SetPlayerMapIcon(playerid, 6, 281.206451,1816.537475,1.007812, 56, 0, MAPICON_GLOBAL);
  803.       if(PlayerInfo[playerid][Sfera7] == 0) SetPlayerMapIcon(playerid, 7, 2323.700439,1283.225341,97.661628, 56, 0, MAPICON_GLOBAL);
  804.     }
  805.     return 1;
  806. }
  807.  
  808. //-=-=-=-=-=OnPlayerDeath=-=-=-=-=-
  809.  
  810. public OnPlayerDeath(playerid,killerid,reason)
  811. {
  812.   new string[256];
  813.   new playname[MAX_PLAYER_NAME];
  814.   new killname[MAX_PLAYER_NAME];
  815.   new Float:X,Float:Y,Float:Z;
  816.   DBZ_Update(playerid);
  817.   //KillTimer(TimerUpdate[playerid]);
  818.   Delete3DTextLabel(Name3DText[playerid]);
  819.   CreateExplosionEx(playerid,0,12,1);
  820.   PlaySound(playerid,SOUND_AWARD_TRACK_STOP);
  821.   GetPlayerPos(playerid,X,Y,Z);
  822.   CreatePickup(1240,5,X,Y,Z);
  823.   GetPlayerName(playerid,playname,sizeof(playname));
  824.   GetPlayerName(killerid,killname,sizeof(killname));
  825.   SetPlayerColor(playerid,COLOR_BLACK);
  826.   HideProgressBarForPlayer(playerid, BarraAura[playerid]);
  827.   for(new i=0;i<MAX_PLAYERS;i++)
  828.   {
  829.     new iname[MAX_PLAYER_NAME];
  830.     GetPlayerName(i,iname,sizeof(iname));
  831.     if(ScommessaPlayer[i] == playerid)
  832.     {
  833.       format(string,sizeof(string),"Hai perso la scommessa su di %s(%d) e i Punti tolti prima non ti vengono restituiti.",playname,playerid);
  834.       SendClientMessage(i,COLOR_RED,string);
  835.       format(string,sizeof(string),"%s(%d) aveva scommesso su di te e ha perso %d PdD grazie a te!",iname,i,ScommessaSoldi[i]);
  836.       SendClientMessage(playerid,COLOR_RED,string);
  837.       GameTextForPlayer(i,"~r~Scommessa Persa",2000,5);
  838.       PlaySound(playerid,SOUND_SLAP);
  839.       ScommessaPlayer[i] = null;
  840.       ScommessaSoldi[i] = 0;
  841.     }
  842.     if(ScommessaPlayer[i] == killerid)
  843.     {
  844.       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]);
  845.       SendClientMessage(i,COLOR_LIGHTBLUE,string);
  846.       format(string,sizeof(string),"%s(%d) aveva scommesso su di te e ha vinto %d PdD grazie a te!",iname,i,2*ScommessaSoldi[i]);
  847.       SendClientMessage(killerid,COLOR_LIGHTBLUE,string);
  848.       AddPlayerScore(i,ScommessaSoldi[i]);
  849.       AddPlayerScore(i,ScommessaSoldi[i]);
  850.       GameTextForPlayer(i,"~g~Scommessa Vinta",2000,5);
  851.       PlaySound(playerid,SOUND_CHECKPOINT_RED);
  852.       ScommessaPlayer[i] = null;
  853.       ScommessaSoldi[i] = 0;
  854.     }
  855.   }
  856.   ForceClassSelection(playerid);
  857.   if(killerid != INVALID_PLAYER_ID)
  858.   {
  859.     format(string,sizeof(string),"~b~%s ~r~e' stato battuto da ~b~%s.", playname, killname);
  860.     GameTextForAll(string,2000,5);
  861.     SendDeathMessage(killerid,playerid,reason);
  862.     print(string);
  863.     AddPlayerScore(killerid,10);
  864.     return 1;
  865.   }
  866.   else
  867.   {
  868.     new success = 0;
  869.     for(new i=0;i<MAX_PLAYERS;i++)
  870.     {
  871.       if(IsPlayerNearPlayer(100, playerid, i) && !IsPlayerNPC(i) && IsPlayerConnected(i) && i != playerid) //Se non è stato riconosciuto nessuno dal server come killerid
  872.       {
  873.         GetPlayerName(i, killname,sizeof(killname));
  874.         format(string,sizeof(string),"~b~%s ~r~e' stato battuto da ~b~%s.",playname,killname);
  875.         AddPlayerScore(i, 10);
  876.         GameTextForAll(string, 2000, 5);
  877.         SendDeathMessage(i, playerid, 16);
  878.         print(string);
  879.         success = 1;
  880.         break;
  881.       }
  882.       else continue;
  883.     }
  884.     if(!success)
  885.     {
  886.       format(string,sizeof(string),"~b~%s ~r~e' morto.", playname);
  887.       GameTextForAll(string, 2000, 5);
  888.       SendDeathMessage(killerid, playerid, 56);
  889.       print(string);
  890.     }
  891.    
  892.   }
  893.   return 1;
  894. }
  895.  
  896. //-=-=-=-=-=OnPlayerConnect=-=-=-=-=-
  897.  
  898. public OnPlayerConnect(playerid)
  899. {
  900.     new string[256];
  901.     new name[MAX_PLAYER_NAME];
  902.     VoteKick[playerid] = 0;
  903.     GetPlayerName(playerid,name,sizeof(name));
  904.     format(string,sizeof(string),"[ENTRATA]%s è entrato nel server con l'id %d.",name,playerid);
  905.     SendClientMessageToAll(COLOR_GREEN,string);
  906.     SetPlayerColor(playerid,COLOR_BLACK);
  907.     muted[playerid] = 0;
  908.     new SRegole[450];
  909.     for(new i=0;i<sizeof(Regole);i++)
  910.     format(SRegole,sizeof(SRegole),"%s%s",SRegole,Regole[i]);
  911.     ShowPlayerDialog(playerid, DIALOGO_REGOLE, DIALOG_STYLE_MSGBOX,"L'inosservanza delle regole puo' portare al ban.", SRegole, "Gioca", "Esci");
  912.     //Moderazione server
  913.     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."); }
  914.     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."); }
  915.     if(strfind(name, "Clade", true) != null) { AdminLevel[playerid] = ADMIN; SendClientMessage(playerid,COLOR_ADMIN,"Clade: Sei un'admin. Puoi usare tutti i comandi moderativi. /ah."); }
  916.     if(strfind(name, "Andrexz", true) != null) { AdminLevel[playerid] = ADMIN; SendClientMessage(playerid,COLOR_ADMIN,"Andrexz: Sei un'admin. Puoi usare tutti i comandi moderativi. /ah."); }
  917.     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."); }
  918.     TdCombo[playerid] = TextDrawCreate(350.00,371.00,"COMBO");
  919.     TextDrawUseBox(TdCombo[playerid],0);
  920.     TextDrawFont(TdCombo[playerid],3);
  921.     TextDrawSetShadow(TdCombo[playerid],0);
  922.     TextDrawSetOutline(TdCombo[playerid],2);
  923.     TextDrawBackgroundColor(TdCombo[playerid],COLOR_BLACK);
  924.     TextDrawColor(TdCombo[playerid], COLOR_WHITE);
  925.     TextDrawAlignment(TdCombo[playerid],3);
  926.     TextDrawLetterSize(TdCombo[playerid],0.6,1.6);
  927.     ScommessaPlayer[playerid] = null;
  928.     ScommessaSoldi[playerid] = 0;
  929.     BarraAura[playerid] = CreateProgressBar(549.0, 25.0, _, _, 0x0000FFFF, 100.0);
  930.    
  931.     ScrittaBarra1[playerid] = TextDrawCreate(562.000000, 44.000000, "FLOAT");
  932.     TextDrawBackgroundColor(ScrittaBarra1[playerid], 255);
  933.     TextDrawFont(ScrittaBarra1[playerid], 1);
  934.     TextDrawLetterSize(ScrittaBarra1[playerid], 0.500000, 1.000000);
  935.     TextDrawColor(ScrittaBarra1[playerid], -16776961);
  936.     TextDrawSetOutline(ScrittaBarra1[playerid], 0);
  937.     TextDrawSetProportional(ScrittaBarra1[playerid], 1);
  938.     TextDrawSetShadow(ScrittaBarra1[playerid], 1);
  939.  
  940.     ScrittaBarra2[playerid] = TextDrawCreate(562.000000, 66.000000, "FLOAT");
  941.     TextDrawBackgroundColor(ScrittaBarra2[playerid], 255);
  942.     TextDrawFont(ScrittaBarra2[playerid], 1);
  943.     TextDrawLetterSize(ScrittaBarra2[playerid], 0.500000, 1.000000);
  944.     TextDrawColor(ScrittaBarra2[playerid], -1);
  945.     TextDrawSetOutline(ScrittaBarra2[playerid], 0);
  946.     TextDrawSetProportional(ScrittaBarra2[playerid], 1);
  947.     TextDrawSetShadow(ScrittaBarra2[playerid], 1);
  948.  
  949.     ScrittaBarra3[playerid] = TextDrawCreate(560.000000, 22.000000, "FLOAT");
  950.     TextDrawBackgroundColor(ScrittaBarra3[playerid], 255);
  951.     TextDrawFont(ScrittaBarra3[playerid], 1);
  952.     TextDrawLetterSize(ScrittaBarra3[playerid], 0.500000, 1.000000);
  953.     TextDrawColor(ScrittaBarra3[playerid], -1);
  954.     TextDrawSetOutline(ScrittaBarra3[playerid], 0);
  955.     TextDrawSetProportional(ScrittaBarra3[playerid], 1);
  956.     TextDrawSetShadow(ScrittaBarra3[playerid], 1);
  957.     return 1;
  958. }
  959.  
  960. //-=-=-=-=-=OnPlayerDisconnect=-=-=-=-=-
  961.  
  962. public OnPlayerDisconnect(playerid, reason)
  963. {
  964.   new string[256];
  965.   new name[MAX_PLAYER_NAME];
  966.   GetPlayerName(playerid,name,sizeof(name));
  967.   DBZ_Update(playerid);
  968.  
  969.   TextDrawDestroy(TdCombo[playerid]);
  970.   Delete3DTextLabel(Name3DText[playerid]);
  971.   DestroyProgressBar(BarraAura[playerid]);
  972.   KillTimer(ComboTimer[playerid]);
  973.   //KillTimer(TimerUpdate[playerid]);
  974.   VoteKick[playerid] = 0;
  975.   AdminLevel[playerid] = 0;
  976.   ScommessaPlayer[playerid] = -1;
  977.   ScommessaSoldi[playerid] = 0;
  978.   muted[playerid] = 0;
  979.   Combo[playerid] = 0;
  980.   switch(reason)
  981.   {
  982.  
  983.       case 0:
  984.       {
  985.         format(string,sizeof(string),"[TIMEOUT]%s è crashato dal server.",name);
  986.         SendClientMessageToAll(COLOR_RED,string);
  987.         print(string);
  988.       }
  989.  
  990.       case 1:
  991.       {
  992.         format(string,sizeof(string),"[USCITA]%s è uscito dal server.",name);
  993.         SendClientMessageToAll(COLOR_RED,string);
  994.         print(string);
  995.       }
  996.  
  997.       case 2:
  998.       {
  999.         format(string,sizeof(string),"[KICK/BAN]%s è stato cacciato dal server.",name);
  1000.         SendClientMessageToAll(COLOR_RED,string);
  1001.         print(string);
  1002.       }
  1003.  
  1004.   }
  1005.   return 1;
  1006. }
  1007.  
  1008. //-=-=-=-=-=OnPlayerUpdate=-=-=-=-=-
  1009.  
  1010. public OnPlayerUpdate(playerid)
  1011. {
  1012.   W_OnPlayerUpdate(playerid);
  1013.   new weapon;
  1014.   weapon = GetPlayerWeapon(playerid);
  1015.   if(weapon != 0 && weapon != WEAPON_KNIFE && weapon != WEAPON_KATANA && weapon != WEAPON_HEATSEEKER)
  1016.   {
  1017.     new name[MAX_PLAYER_NAME];
  1018.     new string[256];
  1019.     SetPlayerPos(playerid,PrigioneX,PrigioneY,PrigioneZ);
  1020.     SetPlayerInterior(playerid,6);
  1021.     GetPlayerName(playerid,name,sizeof(name));
  1022.     format(string, sizeof(string), "-SSB- %s è stato bannato dal server per 'Uso di cheat(armi)'.", name);
  1023.     SendClientMessageToAll(COLOR_KICK/BAN,string);
  1024.     SendClientMessage(playerid,COLOR_KICK/BAN,"Regola n°1: Non si possono usare cheats(trucchi) in questo server. Pena: Ban.");
  1025.     SendClientMessage(playerid,COLOR_KICK/BAN,"Il sistema anti-weapon hack ha rilevato un arma proibita in tuo possesso.");
  1026.     GameTextForPlayer(playerid,"ORA SEI DISCONNESSO. /Q PER USCIRE DAL GIOCO.",300000,5);
  1027.     format(string,sizeof(string),"Cheat(Armi: %d)",weapon);
  1028.     BanEx(playerid, string);
  1029.     return 1;
  1030.   }
  1031.   return 1;
  1032. }
  1033.  
  1034. //-=-=-=-=-=OnPlayerText=-=-=-=-=-
  1035.  
  1036. public OnPlayerText(playerid,text[])
  1037. {
  1038.   if(!FrasePulita(playerid,text))
  1039.   {
  1040.     if(GetPVarInt(playerid, "Insulti") < 4)
  1041.     {
  1042.       SetPVarInt(playerid,"Insulti", GetPVarInt(playerid, "Insulti") + 1);
  1043.       SendClientMessage(playerid,COLOR_RED, "Anti Insulti: +1");
  1044.     }
  1045.     else
  1046.     {
  1047.       new name[MAX_PLAYER_NAME];
  1048.       new string[256];
  1049.       SetPlayerPos(playerid,PrigioneX,PrigioneY,PrigioneZ);
  1050.       SetPlayerInterior(playerid,6);
  1051.       GetPlayerName(playerid,name,sizeof(name));
  1052.       format(string, sizeof(string), "-SSB- %s è stato bannato dal server per 'Vocaboli vietati'.", name);
  1053.       SendClientMessageToAll(COLOR_KICK/BAN,string);
  1054.       SendClientMessage(playerid,COLOR_KICK/BAN,"Regola n°1: Non si possono offendere gli altri giocatori con insulti. Pena: Kick.");
  1055.       SendClientMessage(playerid,COLOR_KICK/BAN,"Il sistema anti-insulti ti ha contato più di 3 insulti.");
  1056.       GameTextForPlayer(playerid,"ORA SEI DISCONNESSO. /Q PER USCIRE DAL GIOCO.",300000,5);
  1057.       Kick(playerid);
  1058.     }
  1059.     return 0;
  1060.   }
  1061.   if(muted[playerid] == 1)
  1062.   {
  1063.     SendClientMessage(playerid,COLOR_RED,"Non puoi parlare. Un moderatore ti ha mutato.");
  1064.     return 0;
  1065.   }
  1066.   return 1;
  1067. }
  1068.  
  1069. //-=-=-=-=-=OnPlayerCommandText=-=-=-=-=-
  1070.  
  1071. public OnPlayerCommandText(playerid, cmdtext[])
  1072. {
  1073.   new cmd[256];
  1074.   new idx;
  1075.   new tmp[256];
  1076.   new giveplayer[MAX_PLAYER_NAME];
  1077.   new sendername[MAX_PLAYER_NAME];
  1078.   cmd = strtok(cmdtext, idx);
  1079.  
  1080.   if(GetPlayerInterior(playerid) == 6) return SendClientMessage(playerid,COLOR_RED,"Non puoi usare comandi. Un moderatore ti ha incarcerato!");
  1081.   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ù.");
  1082.  
  1083.   if(strcmp(cmd,"/desiderio",true) == 0)
  1084.   {
  1085.     if(PlayerInfo[playerid][Sfera1] == 1 && PlayerInfo[playerid][Sfera2] == 1 &&
  1086.     PlayerInfo[playerid][Sfera3] == 1 && PlayerInfo[playerid][Sfera4] == 1 &&
  1087.     PlayerInfo[playerid][Sfera5] == 1 && PlayerInfo[playerid][Sfera6] == 1 &&
  1088.     PlayerInfo[playerid][Sfera7] == 1)
  1089.     {
  1090.       SendClientMessage(playerid,COLOR_RED,"HAI TROVATO TUTTE E SETTE LE SFERE DEL DRAGO!!! ORA PUOI ESPRIMERE IL DESIDERIO!!!");
  1091.       SendPlayerMessageToAll(playerid,"Shenron Compari!!");
  1092.       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", "");
  1093.       PlayerInfo[playerid][Sfera1] = 0;
  1094.       PlayerInfo[playerid][Sfera2] = 0;
  1095.       PlayerInfo[playerid][Sfera3] = 0;
  1096.       PlayerInfo[playerid][Sfera4] = 0;
  1097.       PlayerInfo[playerid][Sfera5] = 0;
  1098.       PlayerInfo[playerid][Sfera6] = 0;
  1099.       PlayerInfo[playerid][Sfera7] = 0;
  1100.       PlayerInfo[playerid][RadarPreso] = 0;
  1101.       DBZ_Update(playerid);
  1102.       return 1;
  1103.     }
  1104.     return SendClientMessage(playerid,COLOR_RED,"Non hai trovato ancora le sette sfere del drago.");
  1105.   }
  1106.  
  1107.   if(strcmp(cmd,"/help",true) == 0)
  1108.   {
  1109.     SendClientMessage(playerid,COLOR_WHITE,   "____________________________________________________HELP____________________________________________________");
  1110.     SendClientMessage(playerid,COLOR_YELLOW,  "Benvenuto a Dragonball Z Death Match 4.0 by [GF]Sasino97. Per guardare la pagina delle novita usa /novita.");
  1111.     SendClientMessage(playerid,COLOR_BLUE,    "COLORI: Per aprire una legenda dei colori dei giocatori usa /colori. E' molto utile ai nuovi giocatori.");
  1112.     SendClientMessage(playerid,COLOR_YELLOW,  "TRSFORMAZIONE: Alcuni personaggi possono trasformarsi in Super Saiyan scrivendo almeno /tra come comando.");
  1113.     SendClientMessage(playerid,COLOR_BLUE,    "FUSIONE: Goku e Vegeta possono usare il comando /fus per diventare rispettivamente Gogeta o Vegeku.");
  1114.     SendClientMessage(playerid,COLOR_YELLOW,  "ATTACCO SPECIALE: Tutti i personaggi possono creare colpi speciali mettendo almeno /att come comando.");
  1115.     SendClientMessage(playerid,COLOR_BLUE,    "PRESA ENERGIA: Solo il Dr.Gelo e C19 possono assorbire aura mettendo almeno /ene come comando.");
  1116.     SendClientMessage(playerid,COLOR_YELLOW,  "RIGENERAZIONE: Tutti i personaggi possono rigenerare un po di vita mettendo almeno /rig come comando.");
  1117.     SendClientMessage(playerid,COLOR_RED,     "Per andare all'altra pagina usa /help2.");
  1118.     SendClientMessage(playerid,COLOR_WHITE,   "____________________________________________________________________________________________________________");
  1119.     PlaySound(playerid, SOUND_CAMERA_SHOT);
  1120.     return 1;
  1121.   }
  1122.  
  1123.   if(strcmp(cmd,"/help2",true) == 0)
  1124.   {
  1125.     SendClientMessage(playerid,COLOR_WHITE,  "________________________________________________HELP_2________________________________________________");
  1126.     SendClientMessage(playerid,COLOR_BLUE,   "COLPO D'AURA: Tutti i personaggi possono creare piccoli colpi d'aura con il tasto ALT.");
  1127.     SendClientMessage(playerid,COLOR_YELLOW, "CARICA AURA: Tutti i personaggi tranne i cyborg(Androidi) possono caricare l'energia tenendo MMB.");
  1128.     SendClientMessage(playerid,COLOR_BLUE,   "ASCESA: Tutti i personaggi possono salire a velocità dipendente dal personaggio con il tasto SHIFT.");
  1129.     SendClientMessage(playerid,COLOR_YELLOW, "DISCESA: Tutti i personaggi possono scendere a velocità dipendente dal personaggio con il tasto C.");
  1130.     SendClientMessage(playerid,COLOR_BLUE,   "POTENZA: Per scegliere consapevolmente un personaggio, usa /potenza e scoprirai le sue caratteristiche.");
  1131.     SendClientMessage(playerid,COLOR_YELLOW, "MOVIMENTO RAPIDO: Tutti i personaggi possono spostarsi in avanti velocemente tenendo premuto SPAZIO.");
  1132.     SendClientMessage(playerid,COLOR_YELLOW, "MOVIMENTO LENTO: Tenendo premuto CLICK SINISTRO durante una mossa di movimento, essa verrà rallentata.");
  1133.     SendClientMessage(playerid,COLOR_BLUE,   "AUTODISTRUZIONE: Tutti i personaggi possono autodistruggersi con il comando /kill o /kamikaze.");
  1134.     SendClientMessage(playerid,COLOR_RED,    "Per andare all'altra pagina usa /help3.");
  1135.     SendClientMessage(playerid,COLOR_WHITE,  "______________________________________________________________________________________________________");
  1136.     PlaySound(playerid, SOUND_CAMERA_SHOT);
  1137.     return 1;
  1138.   }
  1139.  
  1140.   if(strcmp(cmd,"/help3",true) == 0)
  1141.   {
  1142.     SendClientMessage(playerid,COLOR_WHITE, "_________________________________________________HELP_3_________________________________________________");
  1143.     SendClientMessage(playerid,COLOR_YELLOW,"ROTAZIONE: Per ruotare di 45 gradi premi una volta INVIO. 4 volte ti fanno fare un mezzo giro mentre 8");
  1144.     SendClientMessage(playerid,COLOR_BLUE,  "volte ti faranno compiere un giro completo su te stesso verso destra. La mossa non consuma aura.");
  1145.     SendClientMessage(playerid,COLOR_YELLOW,"PERSONALIZZAZIONE: Per personalizzare un personaggio vai al menu nel salone. Questa modalità viene pagata");
  1146.     SendClientMessage(playerid,COLOR_BLUE,  "con i Punti del Drago(PdD) per aumentare le proprie statistiche. Per informazioni usa /pershelp");
  1147.     SendClientMessage(playerid,COLOR_YELLOW,"REPORT: Qualsiasi giocatore puo riportare delle violazioni commesse da un altro giocatore con /report.");
  1148.     SendClientMessage(playerid,COLOR_BLUE,  "NON CI SONO MODERATORI?: Per verificare la loro presenza usa /admins. Altrimenti se c'è un giocatore");
  1149.     SendClientMessage(playerid,COLOR_YELLOW,"che non rispetta le regole ma il SSB non riesce a fermarlo puoi votare con /votekick [playerid].");
  1150.     SendClientMessage(playerid,COLOR_BLUE,  "SCOMMESSA: Per scommettere dei PdD su un giocatore vai al menu del Salone, e inserisci le informazioni.");
  1151.     SendClientMessage(playerid,COLOR_WHITE, "________________________________________________________________________________________________________");
  1152.     PlaySound(playerid, SOUND_CAMERA_SHOT);
  1153.     return 1;
  1154.   }
  1155.  
  1156.   if(strcmp(cmd,"/novita",true) == 0)
  1157.   {
  1158.     SendClientMessage(playerid,COLOR_WHITE, "___________________________________________________NOVITA'___________________________________________________");
  1159.     SendClientMessage(playerid,COLOR_BLUE,  "4.0: Aggiornato il sistema caricamento aura e il sistema personalizzazione dei personaggi.");
  1160.     SendClientMessage(playerid,COLOR_YELLOW,"^^^ Riparato il combometro. Riparate altre funzioni incorrette nello script.");
  1161.     SendClientMessage(playerid,COLOR_BLUE,  "3.1: Aggiunto il sistema repeating timer alla pressione dei tasti del volo e dell'aura.");
  1162.     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.");
  1163.     SendClientMessage(playerid,COLOR_BLUE,  "2.7: Aggiunta la possibilità di scommettere sulla vittoria di un altro giocatore. Vai al menu del salone.");
  1164.     SendClientMessage(playerid,COLOR_YELLOW,"2.6: Menu del torneo spostato al salone delle scommesse, dove si potranno fare le stesse cose di prima.");
  1165.     SendClientMessage(playerid,COLOR_BLUE,  "2.4: Tolto il comando /pers per la personalizzazione, e aggiunto al menu del torneo l'opzione stessa.");
  1166.     SendClientMessage(playerid,COLOR_YELLOW,"2.1: Aggiunta una nuova modalità! La modalità \"Personalizzazione Suprema\" funzionante con /pers.");
  1167.     SendClientMessage(playerid,COLOR_BLUE,  "1.9: Aggiunta una nuova modalità! La modalità \"Caccia alle sfere del drago\". Trovate le 7 sfere del");
  1168.     //SendClientMessage(playerid,COLOR_YELLOW,"drago, si potrà scegliere tra uno dei 3 desideri disponibili nel menu di scelta desiderio con /desiderio.");
  1169.     //SendClientMessage(playerid,COLOR_BLUE,  "1.6: Aggiunti 13 BOT, o Non-Playing Characters(NPC). 12 si trovano al torneo, mentre 1 alla zona allenamento.");
  1170.     SendClientMessage(playerid,COLOR_WHITE, "____________________________________________________________________________________________________________");
  1171.     PlaySound(playerid, SOUND_CAMERA_SHOT);
  1172.     return 1;
  1173.   }
  1174.  
  1175.   if(strcmp(cmd,"/pershelp",true) == 0)
  1176.   {
  1177.     SendClientMessage(playerid,COLOR_WHITE, "______________________________________________PERSONALIZZA_HELP______________________________________________");
  1178.     SendClientMessage(playerid,COLOR_YELLOW,"Andare sul menu del salone, scegliere 'Personalizza il personaggio'. Scegliere un'opzione da eseguire fra:");
  1179.     SendClientMessage(playerid,COLOR_BLUE,  "'Cambia stile di combattimento', 'Cambia attacco speciale', 'Imposta velocità\aura', Aumenta difesa.");
  1180.     SendClientMessage(playerid,COLOR_YELLOW,"Quando ci si disconnetterà i dati saranno salvati. Quando si spawna i dati verranno caricati, ugualmente");
  1181.     SendClientMessage(playerid,COLOR_BLUE,  "a quando si ci trasforma con \"/tra\". Dopo aver scelto una di queste, comparirà un dialogo, dove si puo");
  1182.     SendClientMessage(playerid,COLOR_YELLOW,"scegliere se mantenere la tavola precedente, o salvare quella attuale. Per pagare si usano i PdD, ovvero");
  1183.     SendClientMessage(playerid,COLOR_BLUE,  "i Punti del Drago. Essi sono i punti ottenuti sconfiggendo gli altri giocatori. Molti oggetti costosi");
  1184.     SendClientMessage(playerid,COLOR_YELLOW,"possono risultare svantaggiosi, infatti la velocità x80 è veloce, solo che non è precisa, quindi è complicato");
  1185.     SendClientMessage(playerid,COLOR_BLUE,  "centrare bene il palazzo dove si vuole salire sopra o altro. Adesso sai cos'è la personalizzazione.");
  1186.     SendClientMessage(playerid,COLOR_WHITE, "______________________________________________________________________________________________________________");
  1187.     PlaySound(playerid, SOUND_CAMERA_SHOT);
  1188.     return 1;
  1189.   }
  1190.  
  1191.   if(strcmp(cmd,"/colori",true)==0)
  1192.   {
  1193.     SendClientMessage(playerid,COLOR_BLACK,    "_________________COLORI_GIOCATORI_______________");
  1194.     SendClientMessage(playerid,COLOR_LIGHTBLUE,"Azzurro: Cyborg(Androide).");
  1195.     SendClientMessage(playerid,COLOR_PINK,     "Rosa: Guerrieri deboli.");
  1196.     SendClientMessage(playerid,COLOR_WHITE,    "Bianco: Guerrieri semplici.");
  1197.     SendClientMessage(playerid,COLOR_YELLOW,   "Giallo: Trasformato 1 volta.");
  1198.     SendClientMessage(playerid,COLOR_ORANGE,   "Arancione: Trasformato 2 volte.");
  1199.     SendClientMessage(playerid,COLOR_RED,      "Rosso: Trasformato 3 volte.");
  1200.     SendClientMessage(playerid,COLOR_GREEN,    "Verde: Fuso con un altro corpo.");
  1201.     SendClientMessage(playerid,COLOR_BLUE,     "Blu: Fuso con un altro corpo e trasformato.");
  1202.     SendClientMessage(playerid,COLOR_WHITE,    "Usa /colori2 per andare all'altra pagina.");
  1203.     SendClientMessage(playerid,COLOR_BLACK,    "________________________________________________");
  1204.     PlaySound(playerid, SOUND_CAMERA_SHOT);
  1205.     return 1;
  1206.   }
  1207.  
  1208.   if(strcmp(cmd,"/colori2",true)==0)
  1209.   {
  1210.     SendClientMessage(playerid,COLOR_BLACK,    "_________COLORI_ATTACCHI_SPECIALI_______");
  1211.     SendClientMessage(playerid,COLOR_WHITE,    "Bianco: Potenza di 10.000.");
  1212.     SendClientMessage(playerid,COLOR_YELLOW,   "Giallo: Potenza di 20.000.");
  1213.     SendClientMessage(playerid,COLOR_PINK,     "Rosa: Potenza di 50.000.");
  1214.     SendClientMessage(playerid,COLOR_RED,      "Rosso: Potenza di 100.000.");
  1215.     SendClientMessage(playerid,COLOR_GREEN,    "Verde: Potenza di 500.000.");
  1216.     SendClientMessage(playerid,COLOR_BLUE,     "Blu: Potenza di 1.000.000.");
  1217.     SendClientMessage(playerid,COLOR_BLACK,    "________________________________________");
  1218.     PlaySound(playerid, SOUND_CAMERA_SHOT);
  1219.     return 1;
  1220.   }
  1221.  
  1222.   if(strcmp(cmd,"/potenza",true) == 0)
  1223.   {
  1224.     new skin = GetPlayerSkin(playerid);
  1225.     PlaySound(playerid, SOUND_PROPERTY_PURCHASED);
  1226.     if(skin == GOKU0)
  1227.     {
  1228.       SendClientMessage(playerid,COLOR_WHITE, "_____________________GOKU______________________");
  1229.       SendClientMessage(playerid,COLOR_WHITE, "Attacco Speciale: Kamehameha.");
  1230.       SendClientMessage(playerid,COLOR_WHITE, "Quantità d'aura massima: 100.");
  1231.       SendClientMessage(playerid,COLOR_WHITE, "Velocità di carica aura: 5 unità per click.");
  1232.       SendClientMessage(playerid,COLOR_WHITE, "Velocità di rigenerazione: 2 hp per invio.");
  1233.       SendClientMessage(playerid,COLOR_WHITE, "Consumo autodistruzione: 50 unità.");
  1234.       SendClientMessage(playerid,COLOR_WHITE, "Velocità in volo: 5 metri per invio.");
  1235.       SendClientMessage(playerid,COLOR_WHITE, "_______________________________________________");
  1236.       return 1;
  1237.     }
  1238.     if(skin == GOKU1)
  1239.     {
  1240.       SendClientMessage(playerid,COLOR_WHITE, "_____________________GOKU_SUPER_SAIYAN_____________________");
  1241.       SendClientMessage(playerid,COLOR_YELLOW, "Attacco Speciale: Kamehameha Furiosa.");
  1242.       SendClientMessage(playerid,COLOR_YELLOW, "Quantità d'aura massima: 105.");
  1243.       SendClientMessage(playerid,COLOR_YELLOW, "Velocità di carica aura: 6 unità per click.");
  1244.       SendClientMessage(playerid,COLOR_YELLOW, "Velocità di rigenerazione: 4 hp per invio.");
  1245.       SendClientMessage(playerid,COLOR_YELLOW, "Consumo autodistruzione: 60 unità.");
  1246.       SendClientMessage(playerid,COLOR_YELLOW, "Velocità in volo: 6 metri per invio.");
  1247.       SendClientMessage(playerid,COLOR_WHITE, "___________________________________________________________");
  1248.       return 1;
  1249.     }
  1250.     if(skin == GOKU2)
  1251.     {
  1252.       SendClientMessage(playerid,COLOR_WHITE, "_____________________GOKU_SUPER_SAIYAN_2_____________________");
  1253.       SendClientMessage(playerid,COLOR_ORANGE, "Attacco Speciale: Super Kamehameha.");
  1254.       SendClientMessage(playerid,COLOR_ORANGE, "Quantità d'aura massima: 110.");
  1255.       SendClientMessage(playerid,COLOR_ORANGE, "Velocità di carica aura: 7 unità per click.");
  1256.       SendClientMessage(playerid,COLOR_ORANGE, "Velocità di rigenerazione: 6 hp per invio.");
  1257.       SendClientMessage(playerid,COLOR_ORANGE, "Consumo autodistruzione: 80 unità.");
  1258.       SendClientMessage(playerid,COLOR_ORANGE, "Velocità in volo: 8 metri per invio.");
  1259.       SendClientMessage(playerid,COLOR_WHITE, "_____________________________________________________________");
  1260.       return 1;
  1261.     }
  1262.     if(skin == GOKU3)
  1263.     {
  1264.       SendClientMessage(playerid,COLOR_WHITE, "_____________________GOKU_SUPER_SAIYAN_3_____________________");
  1265.       SendClientMessage(playerid,COLOR_RED, "Attacco Speciale: Kamehameha MAX Intensità.");
  1266.       SendClientMessage(playerid,COLOR_RED, "Quantità d'aura massima: 120.");
  1267.       SendClientMessage(playerid,COLOR_RED, "Velocità di carica aura: 8 unità per click.");
  1268.       SendClientMessage(playerid,COLOR_RED, "Velocità di rigenerazione: 8 hp per invio.");
  1269.       SendClientMessage(playerid,COLOR_RED, "Consumo autodistruzione: 90 unità.");
  1270.       SendClientMessage(playerid,COLOR_RED, "Velocità in volo: 10 metri per invio.");
  1271.       SendClientMessage(playerid,COLOR_WHITE, "_____________________________________________________________");
  1272.       return 1;
  1273.     }
  1274.     if(skin == VEGETA0)
  1275.     {
  1276.       SendClientMessage(playerid,COLOR_WHITE, "_____________________VEGETA______________________");
  1277.       SendClientMessage(playerid,COLOR_WHITE, "Attacco Speciale: Cannone Esplosivo.");
  1278.       SendClientMessage(playerid,COLOR_WHITE, "Quantità d'aura massima: 100.");
  1279.       SendClientMessage(playerid,COLOR_WHITE, "Velocità di carica aura: 5 unità per click.");
  1280.       SendClientMessage(playerid,COLOR_WHITE, "Velocità di rigenerazione: 2 hp per invio.");
  1281.       SendClientMessage(playerid,COLOR_WHITE, "Consumo autodistruzione: 50 unità.");
  1282.       SendClientMessage(playerid,COLOR_WHITE, "Velocità in volo: 5 metri per invio.");
  1283.       SendClientMessage(playerid,COLOR_WHITE, "_________________________________________________");
  1284.       return 1;
  1285.     }
  1286.     if(skin == VEGETA1)
  1287.     {
  1288.       SendClientMessage(playerid,COLOR_WHITE, "_____________________VEGETA_SUPER_SAIYAN_____________________");
  1289.       SendClientMessage(playerid,COLOR_YELLOW, "Attacco Speciale: Attacco Big Bang.");
  1290.       SendClientMessage(playerid,COLOR_YELLOW, "Quantità d'aura massima: 105.");
  1291.       SendClientMessage(playerid,COLOR_YELLOW, "Velocità di carica aura: 6 unità per click.");
  1292.       SendClientMessage(playerid,COLOR_YELLOW, "Velocità di rigenerazione: 4 hp per invio.");
  1293.       SendClientMessage(playerid,COLOR_YELLOW, "Consumo autodistruzione: 60 unità.");
  1294.       SendClientMessage(playerid,COLOR_YELLOW, "Velocità in volo: 6 metri per invio.");
  1295.       SendClientMessage(playerid,COLOR_WHITE, "_____________________________________________________________");
  1296.       return 1;
  1297.     }
  1298.     if(skin == VEGETAS)
  1299.     {
  1300.       SendClientMessage(playerid,COLOR_WHITE, "_____________________SUPER_VEGETA_____________________");
  1301.       SendClientMessage(playerid,COLOR_ORANGE, "Attacco Speciale: Lampo Finale.");
  1302.       SendClientMessage(playerid,COLOR_ORANGE, "Quantità d'aura massima: 105.");
  1303.       SendClientMessage(playerid,COLOR_ORANGE, "Velocità di carica aura: 6 unità per click.");
  1304.       SendClientMessage(playerid,COLOR_ORANGE, "Velocità di rigenerazione: 4 hp per invio.");
  1305.       SendClientMessage(playerid,COLOR_ORANGE, "Consumo autodistruzione: 60 unità.");
  1306.       SendClientMessage(playerid,COLOR_ORANGE, "Velocità in volo: 7 metri per invio.");
  1307.       SendClientMessage(playerid,COLOR_WHITE, "______________________________________________________");
  1308.       return 1;
  1309.     }
  1310.     if(skin == VEGETA2)
  1311.     {
  1312.       SendClientMessage(playerid,COLOR_WHITE, "_____________________VEGETA_SUPER_SAIYAN_2_____________________");
  1313.       SendClientMessage(playerid,COLOR_RED, "Attacco Speciale: Lampo Finale.");
  1314.       SendClientMessage(playerid,COLOR_RED, "Quantità d'aura massima: 110.");
  1315.       SendClientMessage(playerid,COLOR_RED, "Velocità di carica aura: 7 unità per click.");
  1316.       SendClientMessage(playerid,COLOR_RED, "Velocità di rigenerazione: 6 hp per invio.");
  1317.       SendClientMessage(playerid,COLOR_RED, "Consumo autodistruzione: 80 unità.");
  1318.       SendClientMessage(playerid,COLOR_RED, "Velocità in volo: 8 metri per invio.");
  1319.       SendClientMessage(playerid,COLOR_WHITE, "_______________________________________________________________");
  1320.       return 1;
  1321.     }
  1322.     if(skin == TRUNKS0)
  1323.     {
  1324.       SendClientMessage(playerid,COLOR_WHITE, "_____________________TRUNKS______________________");
  1325.       SendClientMessage(playerid,COLOR_WHITE, "Attacco Speciale: Masenko.");
  1326.       SendClientMessage(playerid,COLOR_WHITE, "Quantità d'aura massima: 100.");
  1327.       SendClientMessage(playerid,COLOR_WHITE, "Velocità di carica aura: 5 unità per click.");
  1328.       SendClientMessage(playerid,COLOR_WHITE, "Velocità di rigenerazione: 2 hp per invio.");
  1329.       SendClientMessage(playerid,COLOR_WHITE, "Consumo autodistruzione: 50 unità.");
  1330.       SendClientMessage(playerid,COLOR_WHITE, "Velocità in volo: 5 metri per invio.");
  1331.       SendClientMessage(playerid,COLOR_WHITE, "_________________________________________________");
  1332.       return 1;
  1333.     }
  1334.     if(skin == TRUNKS1)
  1335.     {
  1336.       SendClientMessage(playerid,COLOR_WHITE, "_____________________TRUNKS_SUPER_SAIYAN_____________________");
  1337.       SendClientMessage(playerid,COLOR_YELLOW, "Attacco Speciale: Attacco Bruciante.");
  1338.       SendClientMessage(playerid,COLOR_YELLOW, "Quantità d'aura massima: 105.");
  1339.       SendClientMessage(playerid,COLOR_YELLOW, "Velocità di carica aura: 6 unità per click.");
  1340.       SendClientMessage(playerid,COLOR_YELLOW, "Velocità di rigenerazione: 4 hp per invio.");
  1341.       SendClientMessage(playerid,COLOR_YELLOW, "Consumo autodistruzione: 60 unità.");
  1342.       SendClientMessage(playerid,COLOR_YELLOW, "Velocità in volo: 6 metri per invio.");
  1343.       SendClientMessage(playerid,COLOR_WHITE, "_____________________________________________________________");
  1344.       return 1;
  1345.     }
  1346.     if(skin == TRUNKSS)
  1347.     {
  1348.       SendClientMessage(playerid,COLOR_WHITE, "_____________________SUPER_TRUNKS_____________________");
  1349.       SendClientMessage(playerid,COLOR_ORANGE, "Attacco Speciale: Distruttore Letale.");
  1350.       SendClientMessage(playerid,COLOR_ORANGE, "Quantità d'aura massima: 105.");
  1351.       SendClientMessage(playerid,COLOR_ORANGE, "Velocità di carica aura: 6 unità per click.");
  1352.       SendClientMessage(playerid,COLOR_ORANGE, "Velocità di rigenerazione: 4 hp per invio.");
  1353.       SendClientMessage(playerid,COLOR_ORANGE, "Consumo autodistruzione: 60 unità.");
  1354.       SendClientMessage(playerid,COLOR_ORANGE, "Velocità in volo: 7 metri per invio.");
  1355.       SendClientMessage(playerid,COLOR_WHITE, "______________________________________________________");
  1356.       return 1;
  1357.     }
  1358.     if(skin == GOHAN0)
  1359.     {
  1360.       SendClientMessage(playerid,COLOR_WHITE, "_____________________GOHAN______________________");
  1361.       SendClientMessage(playerid,COLOR_WHITE, "Attacco Speciale: Super Masenko.");
  1362.       SendClientMessage(playerid,COLOR_WHITE, "Quantità d'aura massima: 100.");
  1363.       SendClientMessage(playerid,COLOR_WHITE, "Velocità di carica aura: 5 unità per click.");
  1364.       SendClientMessage(playerid,COLOR_WHITE, "Velocità di rigenerazione: 2 hp per invio.");
  1365.       SendClientMessage(playerid,COLOR_WHITE, "Consumo autodistruzione: 50 unità.");
  1366.       SendClientMessage(playerid,COLOR_WHITE, "Velocità in volo: 5 metri per invio.");
  1367.       SendClientMessage(playerid,COLOR_WHITE, "________________________________________________");
  1368.       return 1;
  1369.     }
  1370.     if(skin == GOHAN1)
  1371.     {
  1372.       SendClientMessage(playerid,COLOR_WHITE, "_____________________GOHAN_SUPER_SAIYAN_____________________");
  1373.       SendClientMessage(playerid,COLOR_YELLOW, "Attacco Speciale: Super Kamehameha.");
  1374.       SendClientMessage(playerid,COLOR_YELLOW, "Quantità d'aura massima: 105.");
  1375.       SendClientMessage(playerid,COLOR_YELLOW, "Velocità di carica aura: 6 unità per click.");
  1376.       SendClientMessage(playerid,COLOR_YELLOW, "Velocità di rigenerazione: 4 hp per invio.");
  1377.       SendClientMessage(playerid,COLOR_YELLOW, "Consumo autodistruzione: 60 unità.");
  1378.       SendClientMessage(playerid,COLOR_YELLOW, "Velocità in volo: 8 metri per invio.");
  1379.       SendClientMessage(playerid,COLOR_WHITE, "____________________________________________________________");
  1380.       return 1;
  1381.     }
  1382.     if(skin == GOHAN2)
  1383.     {
  1384.       SendClientMessage(playerid,COLOR_WHITE, "_____________________GOHAN_SUPER_SAIYAN_2_____________________");
  1385.       SendClientMessage(playerid,COLOR_ORANGE, "Attacco Speciale: Kamehameha MAX Intensità.");
  1386.       SendClientMessage(playerid,COLOR_ORANGE, "Quantità d'aura massima: 115.");
  1387.       SendClientMessage(playerid,COLOR_ORANGE, "Velocità di carica aura: 7 unità per click.");
  1388.       SendClientMessage(playerid,COLOR_ORANGE, "Velocità di rigenerazione: 6 hp per invio.");
  1389.       SendClientMessage(playerid,COLOR_ORANGE, "Consumo autodistruzione: 80 unità.");
  1390.       SendClientMessage(playerid,COLOR_ORANGE, "Velocità in volo: 10 metri per invio.");
  1391.       SendClientMessage(playerid,COLOR_WHITE, "______________________________________________________________");
  1392.       return 1;
  1393.     }
  1394.     if(skin == CRILIN)
  1395.     {
  1396.       SendClientMessage(playerid,COLOR_WHITE, "_____________________CRILIN______________________");
  1397.       SendClientMessage(playerid,COLOR_WHITE, "Attacco Speciale: Kamehameha.");
  1398.       SendClientMessage(playerid,COLOR_WHITE, "Quantità d'aura massima: 100.");
  1399.       SendClientMessage(playerid,COLOR_WHITE, "Velocità di carica aura: 5 unità per click.");
  1400.       SendClientMessage(playerid,COLOR_WHITE, "Velocità di rigenerazione: 2 hp per invio.");
  1401.       SendClientMessage(playerid,COLOR_WHITE, "Consumo autodistruzione: 50 unità.");
  1402.       SendClientMessage(playerid,COLOR_WHITE, "Velocità in volo: 5 metri per invio.");
  1403.       SendClientMessage(playerid,COLOR_WHITE, "_________________________________________________");
  1404.       return 1;
  1405.     }
  1406.     if(skin == YAMCHA)
  1407.     {
  1408.       SendClientMessage(playerid,COLOR_WHITE, "______________________YAMCHA______________________");
  1409.       SendClientMessage(playerid,COLOR_WHITE, "Attacco Speciale: Artiglio Del Lupo Esplosivo.");
  1410.       SendClientMessage(playerid,COLOR_WHITE, "Quantità d'aura massima: 100.");
  1411.       SendClientMessage(playerid,COLOR_WHITE, "Velocità di carica aura: 5 unità per click.");
  1412.       SendClientMessage(playerid,COLOR_WHITE, "Velocità di rigenerazione: 2 hp per invio.");
  1413.       SendClientMessage(playerid,COLOR_WHITE, "Consumo autodistruzione: 50 unità.");
  1414.       SendClientMessage(playerid,COLOR_WHITE, "Velocità in volo: 5 metri per invio.");
  1415.       SendClientMessage(playerid,COLOR_WHITE, "__________________________________________________");
  1416.       return 1;
  1417.     }
  1418.     if(skin == TENSHINSHAN)
  1419.     {
  1420.       SendClientMessage(playerid,COLOR_WHITE, "______________________TENSHINSHAN______________________");
  1421.       SendClientMessage(playerid,COLOR_WHITE, "Attacco Speciale: Triplo Raggio.");
  1422.       SendClientMessage(playerid,COLOR_WHITE, "Quantità d'aura massima: 100.");
  1423.       SendClientMessage(playerid,COLOR_WHITE, "Velocità di carica aura: 5 unità per click.");
  1424.       SendClientMessage(playerid,COLOR_WHITE, "Velocità di rigenerazione: 2 hp per invio.");
  1425.       SendClientMessage(playerid,COLOR_WHITE, "Consumo autodistruzione: 50 unità.");
  1426.       SendClientMessage(playerid,COLOR_WHITE, "Velocità in volo: 5 metri per invio.");
  1427.       SendClientMessage(playerid,COLOR_WHITE, "_______________________________________________________");
  1428.       return 1;
  1429.     }
  1430.     if(skin == GELO)
  1431.     {
  1432.       SendClientMessage(playerid,COLOR_WHITE, "______________________DOTTOR_GELO______________________");
  1433.       SendClientMessage(playerid,COLOR_LIGHTBLUE, "Attacco Speciale: Raggio Energetico.");
  1434.       SendClientMessage(playerid,COLOR_LIGHTBLUE, "Quantità d'aura massima: 0.");
  1435.       SendClientMessage(playerid,COLOR_LIGHTBLUE, "Velocità di carica aura: 0 unità per click.");
  1436.       SendClientMessage(playerid,COLOR_LIGHTBLUE, "Velocità di rigenerazione: 1 hp per invio.");
  1437.       SendClientMessage(playerid,COLOR_LIGHTBLUE, "Consumo autodistruzione: 0 unità.");
  1438.       SendClientMessage(playerid,COLOR_LIGHTBLUE, "Velocità in volo: 6 metri per invio.");
  1439.       SendClientMessage(playerid,COLOR_WHITE, "_______________________________________________________");
  1440.       return 1;
  1441.     }
  1442.     if(skin == C19)
  1443.     {
  1444.       SendClientMessage(playerid,COLOR_WHITE, "______________________CYBORG_N°_19______________________");
  1445.       SendClientMessage(playerid,COLOR_LIGHTBLUE, "Attacco Speciale: Raggio Energetico.");
  1446.       SendClientMessage(playerid,COLOR_LIGHTBLUE, "Quantità d'aura massima: 0.");
  1447.       SendClientMessage(playerid,COLOR_LIGHTBLUE, "Velocità di carica aura: 0 unità per click.");
  1448.       SendClientMessage(playerid,COLOR_LIGHTBLUE, "Velocità di rigenerazione: 1 hp per invio.");
  1449.       SendClientMessage(playerid,COLOR_LIGHTBLUE, "Consumo autodistruzione: 0 unità.");
  1450.       SendClientMessage(playerid,COLOR_LIGHTBLUE, "Velocità in volo: 6 metri per invio.");
  1451.       SendClientMessage(playerid,COLOR_WHITE, "________________________________________________________");
  1452.       return 1;
  1453.     }
  1454.     if(skin == C18)
  1455.     {
  1456.       SendClientMessage(playerid,COLOR_WHITE, "______________________CYBORG_N°_18______________________");
  1457.       SendClientMessage(playerid,COLOR_LIGHTBLUE, "Attacco Speciale: Raggio Energetico.");
  1458.       SendClientMessage(playerid,COLOR_LIGHTBLUE, "Quantità d'aura massima: 0.");
  1459.       SendClientMessage(playerid,COLOR_LIGHTBLUE, "Velocità di carica aura: 0 unità per click.");
  1460.       SendClientMessage(playerid,COLOR_LIGHTBLUE, "Velocità di rigenerazione: 1 hp per invio.");
  1461.       SendClientMessage(playerid,COLOR_LIGHTBLUE, "Consumo autodistruzione: 0 unità.");
  1462.       SendClientMessage(playerid,COLOR_LIGHTBLUE, "Velocità in volo: 6 metri per invio.");
  1463.       SendClientMessage(playerid,COLOR_WHITE, "________________________________________________________");
  1464.       return 1;
  1465.     }
  1466.     if(skin == C17)
  1467.     {
  1468.       SendClientMessage(playerid,COLOR_WHITE, "______________________CYBORG_N°_17______________________");
  1469.       SendClientMessage(playerid,COLOR_LIGHTBLUE, "Attacco Speciale: Sfere Energetiche.");
  1470.       SendClientMessage(playerid,COLOR_LIGHTBLUE, "Quantità d'aura massima: 0.");
  1471.       SendClientMessage(playerid,COLOR_LIGHTBLUE, "Velocità di carica aura: 0 unità per click.");
  1472.       SendClientMessage(playerid,COLOR_LIGHTBLUE, "Velocità di rigenerazione: 1 hp per invio.");
  1473.       SendClientMessage(playerid,COLOR_LIGHTBLUE, "Consumo autodistruzione: 0 unità.");
  1474.       SendClientMessage(playerid,COLOR_LIGHTBLUE, "Velocità in volo: 6 metri per invio.");
  1475.       SendClientMessage(playerid,COLOR_WHITE, "________________________________________________________");
  1476.       return 1;
  1477.     }
  1478.     if(skin == C16)
  1479.     {
  1480.       SendClientMessage(playerid,COLOR_WHITE, "______________________CYBORG_N°_16______________________");
  1481.       SendClientMessage(playerid,COLOR_LIGHTBLUE, "Attacco Speciale: Lanciarazzi Incorporato.");
  1482.       SendClientMessage(playerid,COLOR_LIGHTBLUE, "Quantità d'aura massima: 0.");
  1483.       SendClientMessage(playerid,COLOR_LIGHTBLUE, "Velocità di carica aura: 0 unità per click.");
  1484.       SendClientMessage(playerid,COLOR_LIGHTBLUE, "Velocità di rigenerazione: 1 hp per invio.");
  1485.       SendClientMessage(playerid,COLOR_LIGHTBLUE, "Consumo autodistruzione: 0 unità.");
  1486.       SendClientMessage(playerid,COLOR_LIGHTBLUE, "Velocità in volo: 6 metri per invio.");
  1487.       SendClientMessage(playerid,COLOR_WHITE, "________________________________________________________");
  1488.       return 1;
  1489.     }
  1490.     if(skin == SATAN)
  1491.     {
  1492.       SendClientMessage(playerid,COLOR_WHITE, "______________________MISTER_SATAN______________________");
  1493.       SendClientMessage(playerid,COLOR_VIOLET, "Attacco Speciale: Il Campione.");
  1494.       SendClientMessage(playerid,COLOR_VIOLET, "Quantità d'aura massima: 70.");
  1495.       SendClientMessage(playerid,COLOR_VIOLET, "Velocità di carica aura: 3 unità per click.");
  1496.       SendClientMessage(playerid,COLOR_VIOLET, "Velocità di rigenerazione: 1 hp per invio.");
  1497.       SendClientMessage(playerid,COLOR_VIOLET, "Consumo autodistruzione: 20 unità.");
  1498.       SendClientMessage(playerid,COLOR_VIOLET, "Velocità in volo: 3 metri per invio.");
  1499.       SendClientMessage(playerid,COLOR_WHITE, "________________________________________________________");
  1500.       return 1;
  1501.     }
  1502.     if(skin == VIDEL)
  1503.     {
  1504.       SendClientMessage(playerid,COLOR_WHITE, "______________________VIDEL______________________");
  1505.       SendClientMessage(playerid,COLOR_VIOLET, "Attacco Speciale: Gran Bomba D'Aura.");
  1506.       SendClientMessage(playerid,COLOR_VIOLET, "Quantità d'aura massima: 90.");
  1507.       SendClientMessage(playerid,COLOR_VIOLET, "Velocità di carica aura: 4 unità per click.");
  1508.       SendClientMessage(playerid,COLOR_VIOLET, "Velocità di rigenerazione: 1 hp per invio.");
  1509.       SendClientMessage(playerid,COLOR_VIOLET, "Consumo autodistruzione: 40 unità.");
  1510.       SendClientMessage(playerid,COLOR_VIOLET, "Velocità in volo: 4 metri per invio.");
  1511.       SendClientMessage(playerid,COLOR_WHITE, "_________________________________________________");
  1512.       return 1;
  1513.     }
  1514.     if(skin == VEGEKU0)
  1515.     {
  1516.       SendClientMessage(playerid,COLOR_WHITE, "______________________VEGEKU______________________");
  1517.       SendClientMessage(playerid,COLOR_GREEN, "Attacco Speciale: Lampo Finale.");
  1518.       SendClientMessage(playerid,COLOR_GREEN, "Quantità d'aura massima: 125.");
  1519.       SendClientMessage(playerid,COLOR_GREEN, "Velocità di carica aura: 8 unità per click.");
  1520.       SendClientMessage(playerid,COLOR_GREEN, "Velocità di rigenerazione: 8 hp per invio.");
  1521.       SendClientMessage(playerid,COLOR_GREEN, "Consumo autodistruzione: 90 unità.");
  1522.       SendClientMessage(playerid,COLOR_GREEN, "Velocità in volo: 10 metri per invio.");
  1523.       SendClientMessage(playerid,COLOR_WHITE, "__________________________________________________");
  1524.       return 1;
  1525.     }
  1526.     if(skin == VEGEKU1)
  1527.     {
  1528.       SendClientMessage(playerid,COLOR_WHITE, "______________________SUPER_VEGEKU______________________");
  1529.       SendClientMessage(playerid,COLOR_BLUE, "Attacco Speciale: Kamehameha Finale.");
  1530.       SendClientMessage(playerid,COLOR_BLUE, "Quantità d'aura massima: 150.");
  1531.       SendClientMessage(playerid,COLOR_BLUE, "Velocità di carica aura: 10 unità per click.");
  1532.       SendClientMessage(playerid,COLOR_BLUE, "Velocità di rigenerazione: 10 hp per invio.");
  1533.       SendClientMessage(playerid,COLOR_BLUE, "Consumo autodistruzione: 100 unità.");
  1534.       SendClientMessage(playerid,COLOR_BLUE, "Velocità in volo: 15 metri per invio.");
  1535.       SendClientMessage(playerid,COLOR_WHITE, "________________________________________________________");
  1536.       return 1;
  1537.     }
  1538.     if(skin == GOGETA)
  1539.     {
  1540.       SendClientMessage(playerid,COLOR_WHITE, "______________________SUPER_GOGETA______________________");
  1541.       SendClientMessage(playerid,COLOR_BLUE, "Attacco Speciale: Kamehameha Big Bang.");
  1542.       SendClientMessage(playerid,COLOR_BLUE, "Quantità d'aura massima: 150.");
  1543.       SendClientMessage(playerid,COLOR_BLUE, "Velocità di carica aura: 10 unità per click.");
  1544.       SendClientMessage(playerid,COLOR_BLUE, "Velocità di rigenerazione: 10 hp per invio.");
  1545.       SendClientMessage(playerid,COLOR_BLUE, "Consumo autodistruzione: 100 unità.");
  1546.       SendClientMessage(playerid,COLOR_BLUE, "Velocità in volo: 15 metri per invio.");
  1547.       SendClientMessage(playerid,COLOR_WHITE, "________________________________________________________");
  1548.       return 1;
  1549.     }
  1550.     PlaySound(playerid, SOUND_AMMUNATION_BUY_WEAPON_DENIED);
  1551.     return SendClientMessage(playerid,COLOR_YELLOW,"ERRORE: Personaggio non valido. Avvisare programmatore.");
  1552.   }
  1553.  
  1554.   if(strcmp(cmd, "/kamikaze", true) == 0 || strcmp(cmd, "/kill", true) == 0 )
  1555.   {
  1556.   new string[256];
  1557.   new skin = GetPlayerSkin(playerid);
  1558.   new name[MAX_PLAYER_NAME];
  1559.   new Float:X, Float:Y, Float:Z;
  1560.   new aura = GetPlayerMoney(playerid);
  1561.   GetPlayerPos(playerid,X,Y,Z);
  1562.   GetPlayerName(playerid,name,sizeof(name));
  1563.   PlaySound(playerid, SOUND_RACE_GO);
  1564.     if(skin == GOKU0 || skin == VEGETA0 || skin == TRUNKS0 || skin == GOHAN0 || skin == CRILIN || skin == TENSHINSHAN || skin == YAMCHA)
  1565.     {
  1566.       if(aura < 50) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  1567.       GivePlayerMoney(playerid,-50);
  1568.       CreateExplosion(X,Y,Z,7,50);
  1569.       CreateExplosion(X+10,Y,Z,7,50);
  1570.       CreateExplosion(X-10,Y,Z,7,50);
  1571.       CreateExplosion(X,Y+10,Z,7,50);
  1572.       CreateExplosion(X,Y-10,Z,7,50);
  1573.       CreateExplosion(X,Y,Z+10,7,50);
  1574.       CreateExplosion(X,Y,Z+20,7,50);
  1575.       CreateExplosion(X,Y,Z+30,7,50);
  1576.       Kill(playerid);
  1577.       format(string,sizeof(string),"Yaaaaaaaaa!");
  1578.       SendPlayerMessageToAll(playerid,string);
  1579.       return 1;
  1580.     }
  1581.     else if(skin == GOKU1 || skin == VEGETA1 || skin == TRUNKS1 || skin == GOHAN1 || skin == VEGETAS || skin == TRUNKSS)
  1582.     {
  1583.     if(aura < 60) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  1584.       GivePlayerMoney(playerid,-60);
  1585.       CreateExplosion(X,Y+2,Z,7,60);
  1586.       CreateExplosion(X,Y,Z+10,7,50);
  1587.       CreateExplosion(X,Y,Z+20,7,50);
  1588.       CreateExplosion(X,Y,Z+30,7,50);
  1589.       Kill(playerid);
  1590.       format(string,sizeof(string),"Eeeeaaaaah!");
  1591.       SendPlayerMessageToAll(playerid,string);
  1592.       return 1;
  1593.     }
  1594.     else if(IsPlayerAnAndroid(playerid))
  1595.     {
  1596.       CreateExplosion(X,Y,Z,7,80);
  1597.       CreateExplosion(X,Y,Z+10,7,50);
  1598.       CreateExplosion(X,Y,Z+20,7,50);
  1599.       CreateExplosion(X,Y,Z+30,7,50);
  1600.       Kill(playerid);
  1601.       format(string,sizeof(string),"Autodistruzione tra 0 secondi!");
  1602.       SendPlayerMessageToAll(playerid,string);
  1603.       return 1;
  1604.     }
  1605.     else if(skin == GOKU2 || skin == GOHAN2)
  1606.     {
  1607.       if(aura < 80) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  1608.       GivePlayerMoney(playerid,-80);
  1609.       CreateExplosion(X,Y,Z,7,80);
  1610.       CreateExplosion(X,Y,Z+10,7,50);
  1611.       CreateExplosion(X,Y,Z+20,7,50);
  1612.       CreateExplosion(X,Y,Z+30,7,50);
  1613.       Kill(playerid);
  1614.       format(string,sizeof(string),"Eaaaaah!");
  1615.       SendPlayerMessageToAll(playerid,string);
  1616.       return 1;
  1617.     }
  1618.     else if(skin == VEGETA2)
  1619.     {
  1620.       if(aura < 80) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  1621.       GivePlayerMoney(playerid,-80);
  1622.       CreateExplosion(X,Y,Z,7,80);
  1623.       CreateExplosion(X,Y,Z+10,7,50);
  1624.       CreateExplosion(X,Y,Z+20,7,50);
  1625.       CreateExplosion(X,Y,Z+30,7,50);
  1626.       Kill(playerid);
  1627.       format(string,sizeof(string),"Trunks, Kakaroth, Bulma, Addio!");
  1628.       SendPlayerMessageToAll(playerid,string);
  1629.       return 1;
  1630.     }
  1631.  
  1632.     else if(skin == GOKU3 || skin == VEGEKU0)
  1633.     {
  1634.       if(aura < 90) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  1635.       GivePlayerMoney(playerid,-90);
  1636.       CreateExplosion(X,Y,Z,7,100);
  1637.       CreateExplosion(X,Y,Z+10,7,50);
  1638.       CreateExplosion(X,Y,Z+20,7,50);
  1639.       CreateExplosion(X,Y,Z+30,7,50);
  1640.       Kill(playerid);
  1641.       format(string,sizeof(string),"Addio!!!");
  1642.       SendPlayerMessageToAll(playerid,string);
  1643.       return 1;
  1644.     }
  1645.     else if(skin == SATAN)
  1646.     {
  1647.       if(aura < 20) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  1648.       GivePlayerMoney(playerid,-20);
  1649.       CreateExplosion(X,Y,Z,11,10);
  1650.       Kill(playerid);
  1651.       format(string,sizeof(string),"Saluta il campione mondiale!");
  1652.       SendPlayerMessageToAll(playerid,string);
  1653.       return 1;
  1654.     }
  1655.     else if(skin == VIDEL)
  1656.     {
  1657.       if(aura < 40) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  1658.       GivePlayerMoney(playerid,-40);
  1659.       CreateExplosion(X,Y,Z,11,30);
  1660.       Kill(playerid);
  1661.       format(string,sizeof(string),"Devo proprio!! Aaaaaa!");
  1662.       SendPlayerMessageToAll(playerid,string);
  1663.       return 1;
  1664.     }
  1665.     else if(skin == VEGEKU1 || skin == GOGETA)
  1666.     {
  1667.       if(aura < 100) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  1668.       GivePlayerMoney(playerid,-100);
  1669.       CreateExplosion(X,Y,Z,11,120);
  1670.       CreateExplosion(X,Y,Z+10,7,60);
  1671.       CreateExplosion(X,Y,Z+20,7,80);
  1672.       CreateExplosion(X,Y,Z+30,7,100);
  1673.       format(string,sizeof(string),"Addio!! Forse io riusciro a sopravvivere!");
  1674.       SendPlayerMessageToAll(playerid,string);
  1675.       return 1;
  1676.     }
  1677.     PlaySound(playerid, SOUND_AMMUNATION_BUY_WEAPON_DENIED);
  1678.     return SendClientMessage(playerid,COLOR_YELLOW,"ERRORE: Personaggio non valido. Avvisare programmatore.");
  1679.   }
  1680.  
  1681.   if(strfind(cmd,"/rig", true) != null)
  1682.   {
  1683.   new Float:health;
  1684.   new skin = GetPlayerSkin(playerid);
  1685.   new Float:X, Float:Y, Float:Z;
  1686.   new aura = GetPlayerMoney(playerid);
  1687.   GetPlayerPos(playerid,X,Y,Z);
  1688.   GetPlayerHealth(playerid, health);
  1689.   if(health > PlayerInfo[playerid][Stats][SaluteMax][skin]) return SendClientMessage(playerid,COLOR_YELLOW,"Hai gia la vita gia al massimo.");
  1690.     if(skin == GOKU0 || skin == VEGETA0 || skin == TRUNKS0 || skin == GOHAN0 || skin == CRILIN || skin == YAMCHA || skin == TENSHINSHAN)
  1691.     {
  1692.       if(aura < 5) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  1693.       SetPlayerHealth(playerid,health+2);
  1694.       GivePlayerMoney(playerid,-5);
  1695.       ApplyAnimationEx(playerid,"FOOD","EAT_Pizza",4.1,0,1,1,1,1);
  1696.       ShowAttackName(playerid,"~w~Recupero Salute");
  1697.       return 1;
  1698.     }
  1699.     else if(skin == GOKU1 || skin == VEGETA1 || skin == TRUNKS1 || skin == GOHAN1 || skin == VEGETAS || skin == TRUNKSS)
  1700.     {
  1701.       if(aura < 5) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  1702.       SetPlayerHealth(playerid,health+4);
  1703.       GivePlayerMoney(playerid,-5);
  1704.       ApplyAnimationEx(playerid,"FOOD","EAT_Pizza",4.1,0,1,1,1,1);
  1705.       ShowAttackName(playerid,"~w~Recupero Salute Dei SSJ");
  1706.       return 1;
  1707.     }
  1708.     else if(skin == GOKU2 || skin == VEGETA2 || skin == GOHAN2)
  1709.     {
  1710.       if(aura < 5) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  1711.       SetPlayerHealth(playerid,health+6);
  1712.       GivePlayerMoney(playerid,-5);
  1713.       ApplyAnimationEx(playerid,"FOOD","EAT_Pizza",4.1,0,1,1,1,1);
  1714.       ShowAttackName(playerid,"~w~Recupero Salute Dei SSJ2");
  1715.       return 1;
  1716.     }
  1717.     else if(skin == GOKU3 || skin == VEGEKU0)
  1718.     {
  1719.       if(aura < 5) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  1720.       SetPlayerHealth(playerid,health+8);
  1721.       GivePlayerMoney(playerid,-5);
  1722.       ApplyAnimationEx(playerid,"FOOD","EAT_Pizza",4.1,0,1,1,1,1);
  1723.       ShowAttackName(playerid,"~w~Super Recupero Salute");
  1724.       return 1;
  1725.     }
  1726.     else if(skin == VEGEKU1 || skin == GOGETA)
  1727.     {
  1728.       if(aura < 5) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  1729.       SetPlayerHealth(playerid,health+10);
  1730.       GivePlayerMoney(playerid,-5);
  1731.       ApplyAnimationEx(playerid,"FOOD","EAT_Pizza",4.1,0,1,1,1,1);
  1732.       ShowAttackName(playerid,"~w~Iper Recupero Salute");
  1733.       return 1;
  1734.     }
  1735.     else if(skin == SATAN || skin == VIDEL)
  1736.     {
  1737.       if(aura < 5) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  1738.       SetPlayerHealth(playerid,health+1);
  1739.       GivePlayerMoney(playerid,-5);
  1740.       ApplyAnimationEx(playerid,"FOOD","EAT_Pizza",4.1,0,1,1,1,1);
  1741.       ShowAttackName(playerid,"~w~Panino al prosciutto");
  1742.       return 1;
  1743.     }
  1744.     else if(IsPlayerAnAndroid(playerid))
  1745.     {
  1746.       SetPlayerHealth(playerid,health+1);
  1747.       ShowAttackName(playerid,"~w~Dispositivo Rigenerativo");
  1748.       return 1;
  1749.     }
  1750.     PlaySound(playerid, SOUND_AMMUNATION_BUY_WEAPON_DENIED);
  1751.     return SendClientMessage(playerid,COLOR_YELLOW,"ERRORE: Personaggio non valido. Avvisare programmatore.");
  1752.   }
  1753.  
  1754.   if(strfind(cmd,"/fus", true) != null)
  1755.   {
  1756.   new team = GetPlayerTeam(playerid);
  1757.   new string[256];
  1758.   new name[MAX_PLAYER_NAME];
  1759.   new aura = GetPlayerMoney(playerid);
  1760.   new Float:X, Float:Y, Float:Z;
  1761.   GetPlayerPos(playerid,X,Y,Z);
  1762.   GetPlayerName(playerid,name,sizeof(name));
  1763.     if(team == 0)
  1764.     {
  1765.       if(GetPlayerSkin(playerid) == GOGETA) return SendClientMessage(playerid,COLOR_YELLOW,"La fusione scade quando muori.");
  1766.       if(GetPlayerSkin(playerid) == VEGEKU0
  1767.       || GetPlayerSkin(playerid) == VEGEKU1) return SendClientMessage(playerid,COLOR_YELLOW,"Non puoi usare la danza della fusione mentre sei gia fuso con gli orecchini potara.");
  1768.       if(aura < 80) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  1769.       format(string,sizeof(string),"Fuuuuu....siò..nè!");
  1770.       SendPlayerMessageToAll(playerid,string);
  1771.       format(string,sizeof(string),"Sono colui che ti sconfiggerà!!");
  1772.       SendPlayerMessageToAll(playerid,string);
  1773.       CreateExplosion(X,Y,Z+5,11,3);
  1774.       SetPlayerSkin(playerid,GOGETA);
  1775.       SetPlayerColor(playerid,COLOR_BLUE);
  1776.       GivePlayerMoney(playerid,-80);
  1777.       ApplyAnimationEx(playerid,"DAM_JUMP","Jump_Roll",4.1,0,1,1,1,1);
  1778.       GameTextForPlayer(playerid,"Super Gogeta",1000,5);
  1779.       Delete3DTextLabel(Name3DText[playerid]);
  1780.       Name3DText[playerid] = Create3DTextLabel("SUPER GOGETA", COLOR_BLUE, X, Y, Z+0.2, 20, 0, 0);
  1781.       Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);
  1782.       PlaySound(playerid, SOUND_RACE_GO);
  1783.       ShowAttackName(playerid,"~b~Super Gogeta");
  1784.       return 1;
  1785.     }
  1786.     if(team == 1)
  1787.     {
  1788.       if(GetPlayerSkin(playerid) == VEGEKU0
  1789.       || GetPlayerSkin(playerid) == VEGEKU1) return SendClientMessage(playerid,COLOR_YELLOW,"La fusione scade quando muori.");
  1790.       if(GetPlayerSkin(playerid) == GOGETA) return SendClientMessage(playerid,COLOR_YELLOW,"Non puoi fonderti con gli orecchini potara, sei gia fuso con la danza della fusione!");
  1791.       if(aura < 40) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  1792.       format(string,sizeof(string),"Avanti Vegeta, metti questo orecchino!!");
  1793.       SendPlayerMessageToAll(playerid,string);
  1794.       format(string,sizeof(string),"Hey!!");
  1795.       SendPlayerMessageToAll(playerid,string);
  1796.       CreateExplosion(X,Y,Z+5,11,3);
  1797.       SetPlayerSkin(playerid,VEGEKU0);
  1798.       SetPlayerColor(playerid,COLOR_GREEN);
  1799.       GivePlayerMoney(playerid,-40);
  1800.       ApplyAnimationEx(playerid,"DAM_JUMP","Jump_Roll",4.1,0,1,1,1,1);
  1801.       GameTextForPlayer(playerid,"Vegeku",1000,5);
  1802.       Name3DText[playerid] = Create3DTextLabel("VEGEKU", COLOR_GREEN, X, Y, Z+0.2, 20, 0, 0);
  1803.       Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);
  1804.       PlaySound(playerid, SOUND_RACE_GO);
  1805.       ShowAttackName(playerid,"~g~Vegeku");
  1806.       return 1;
  1807.     }
  1808.     return SendClientMessage(playerid,COLOR_RED,"Solo Goku e Vegeta possono fondersi.");
  1809.   }
  1810.  
  1811.   if(strcmp(cmd,"/tavolaagg", true) == 0)
  1812.   {
  1813.     new skin = GetPlayerSkin(playerid);
  1814.     new string2[256];
  1815.     new name2[MAX_PLAYER_NAME];
  1816.     GetPlayerName(playerid,name2,sizeof(name2));
  1817.     format(string2, sizeof(string2), "Tavole/%s.%d.ini", name2,skin);
  1818.     if(INI_Exist(string2))
  1819.     {
  1820.       INI_Open(string2);
  1821.       PlayerInfo[playerid][Stats][Stile][skin] = INI_ReadInt("Stile");
  1822.       PlayerInfo[playerid][Stats][Attacco][skin] = INI_ReadInt("Attacco");
  1823.       PlayerInfo[playerid][Stats][Velocita][skin] = INI_ReadInt("Velocita");
  1824.       PlayerInfo[playerid][Stats][AuraMax][skin] = INI_ReadInt("AuraMax");
  1825.       PlayerInfo[playerid][Stats][SaluteMax][skin] = INI_ReadInt("SaluteMax");
  1826.       PlayerInfo[playerid][Stats][AuraSize][skin] = INI_ReadFloat("AuraSize");
  1827.       INI_Save();
  1828.       INI_Close();
  1829.       SendClientMessage(playerid,COLOR_LIGHTBLUE,"Questo personaggio è personalizzato. Per cambiare la sua tavola vai sul menu del salone.");
  1830.       return 1;
  1831.     }
  1832.     return SendClientMessage(playerid,COLOR_LIGHTBLUE,"Questo personaggio non è personalizzato. Se vuoi farlo vai sul menu del salone.");
  1833.   }
  1834.   if(strfind(cmd,"/tra", true) != null)
  1835.   {
  1836.     new skinid = GetPlayerSkin(playerid);
  1837.     new string[256];
  1838.     new name[MAX_PLAYER_NAME];
  1839.     new aura = GetPlayerMoney(playerid);
  1840.     new Float:X, Float:Y, Float:Z;
  1841.     GetPlayerPos(playerid,X,Y,Z);
  1842.     GetPlayerName(playerid,name,sizeof(name));
  1843.     PlaySound(playerid, SOUND_RACE_GO);
  1844.     if(skinid == GOKU0)
  1845.     {
  1846.       if(aura < 30 && GetPlayerInterior(playerid) != INTERIOR_SALONE) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  1847.       Delete3DTextLabel(Name3DText[playerid]);
  1848.       format(string,sizeof(string),"Super Saiyan!!!");
  1849.       SetPlayerSkin(playerid,GOKU1);
  1850.       CreateExplosion(X,Y,Z+5,11,3);
  1851.       SetPlayerColor(playerid,COLOR_YELLOW);
  1852.       if(GetPlayerInterior(playerid) != 3)GivePlayerMoney(playerid,-30);
  1853.       SendPlayerMessageToAll(playerid,string);
  1854.       Name3DText[playerid] = Create3DTextLabel("GOKU SSJ", COLOR_WHITE, X, Y, Z+0.2, 20, 0, 0);
  1855.       Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);
  1856.       ShowAttackName(playerid,"~y~Goku Super Saiyan");
  1857.       OnPlayerCommandText(playerid,"/tavolaagg");
  1858.       return 1;
  1859.     }
  1860.     else if(skinid == GOKU1)
  1861.     {
  1862.       if(aura < 40 && GetPlayerInterior(playerid) != INTERIOR_SALONE) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  1863.       Delete3DTextLabel(Name3DText[playerid]);
  1864.       format(string,sizeof(string),"Preparati alla seconda trasformazione!!!");
  1865.       SetPlayerSkin(playerid,GOKU2);
  1866.       CreateExplosion(X,Y,Z+5,11,3);
  1867.       SetPlayerColor(playerid,COLOR_ORANGE);
  1868.       if(GetPlayerInterior(playerid) != 3)GivePlayerMoney(playerid,-40);
  1869.       SendPlayerMessageToAll(playerid,string);
  1870.       Delete3DTextLabel(Name3DText[playerid]);
  1871.       Name3DText[playerid] = Create3DTextLabel("GOKU SSJ2", COLOR_ORANGE, X, Y, Z+0.2, 20, 0, 0);
  1872.       Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);
  1873.       ShowAttackName(playerid,"~p~Goku Super Saiyan 2");
  1874.       OnPlayerCommandText(playerid,"/tavolaagg");
  1875.       return 1;
  1876.     }
  1877.     else if(skinid == GOKU2)
  1878.     {
  1879.       if(aura < 50 && GetPlayerInterior(playerid) != INTERIOR_SALONE) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  1880.       Delete3DTextLabel(Name3DText[playerid]);
  1881.       format(string,sizeof(string),"Non hai speranze contro la terza forma di super Saiyan!!!");
  1882.       SetPlayerSkin(playerid,GOKU3);
  1883.       CreateExplosion(X,Y,Z+5,11,3);
  1884.       SetPlayerColor(playerid,COLOR_RED);
  1885.       if(GetPlayerInterior(playerid) != 3) GivePlayerMoney(playerid,-50);
  1886.       SendPlayerMessageToAll(playerid,string);
  1887.       Name3DText[playerid] = Create3DTextLabel("GOKU SSJ3", COLOR_RED, X, Y, Z+0.2, 20, 0, 0);
  1888.       Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);
  1889.       ShowAttackName(playerid,"~r~Goku Super Saiyan 3");
  1890.       OnPlayerCommandText(playerid,"/tavolaagg");
  1891.       return 1;
  1892.     }
  1893.     else if(skinid == GOKU3)
  1894.     {
  1895.       format(string,sizeof(string),"Mi e finita l'aura!!");
  1896.       Delete3DTextLabel(Name3DText[playerid]);
  1897.       SetPlayerSkin(playerid,GOKU0);
  1898.       CreateExplosion(X,Y,Z+5,11,3);
  1899.       SetPlayerColor(playerid,COLOR_WHITE);
  1900.       if(GetPlayerInterior(playerid) != 3) ResetPlayerMoney(playerid);
  1901.       SendPlayerMessageToAll(playerid,string);
  1902.       Name3DText[playerid] = Create3DTextLabel("GOKU", COLOR_WHITE, X, Y, Z+0.2, 20, 0, 0);
  1903.       Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);
  1904.       ShowAttackName(playerid,"~w~Goku");
  1905.       OnPlayerCommandText(playerid,"/tavolaagg");
  1906.       return 1;
  1907.     }
  1908.     else if(skinid == VEGETA0)
  1909.     {
  1910.       if(aura < 30 && GetPlayerInterior(playerid) != INTERIOR_SALONE) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  1911.       Delete3DTextLabel(Name3DText[playerid]);
  1912.       format(string,sizeof(string),"Sono un super Saiyan!!");
  1913.       SetPlayerSkin(playerid,VEGETA1);
  1914.       CreateExplosion(X,Y,Z+5,11,3);
  1915.       SetPlayerColor(playerid,COLOR_YELLOW);
  1916.       if(GetPlayerInterior(playerid) != 3) GivePlayerMoney(playerid,-30);
  1917.       SendPlayerMessageToAll(playerid,string);
  1918.       Name3DText[playerid] = Create3DTextLabel("VEGETA SSJ", COLOR_YELLOW, X, Y, Z+0.2, 20, 0, 0);
  1919.       Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);
  1920.       ShowAttackName(playerid,"~y~Vegeta Super Saiyan");
  1921.       OnPlayerCommandText(playerid,"/tavolaagg");
  1922.       return 1;
  1923.     }
  1924.     else if(skinid == VEGETA1)
  1925.     {
  1926.       if(aura < 35 && GetPlayerInterior(playerid) != INTERIOR_SALONE) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  1927.       Delete3DTextLabel(Name3DText[playerid]);
  1928.       format(string,sizeof(string),"Ora sono Super Vegeta!!");
  1929.       SetPlayerSkin(playerid,VEGETAS);
  1930.       CreateExplosion(X,Y,Z+5,11,3);
  1931.       SetPlayerColor(playerid,COLOR_ORANGE);
  1932.       if(GetPlayerInterior(playerid) != 3) GivePlayerMoney(playerid,-35);
  1933.       SendPlayerMessageToAll(playerid,string);
  1934.       Name3DText[playerid] = Create3DTextLabel("SUPER VEGETA", COLOR_ORANGE, X, Y, Z+0.2, 20, 0, 0);
  1935.       Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);
  1936.       ShowAttackName(playerid,"~p~Super Vegeta");
  1937.       OnPlayerCommandText(playerid,"/tavolaagg");
  1938.       return 1;
  1939.     }
  1940.     else if(skinid == VEGETAS)
  1941.     {
  1942.       if(aura < 40 && GetPlayerInterior(playerid) != INTERIOR_SALONE) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  1943.       Delete3DTextLabel(Name3DText[playerid]);
  1944.       format(string,sizeof(string),"Bene, eccomi che arrivo!!");
  1945.       SetPlayerSkin(playerid,VEGETA2);
  1946.       CreateExplosion(X,Y,Z+5,11,3);
  1947.       SetPlayerColor(playerid,COLOR_RED);
  1948.       if(GetPlayerInterior(playerid) != 3) GivePlayerMoney(playerid,-40);
  1949.       SendPlayerMessageToAll(playerid,string);
  1950.       Name3DText[playerid] = Create3DTextLabel("VEGETA SSJ2", COLOR_RED, X, Y, Z+0.2, 20, 0, 0);
  1951.       Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);
  1952.       ShowAttackName(playerid,"~r~Vegeta Super Saiyan 2");
  1953.       OnPlayerCommandText(playerid,"/tavolaagg");
  1954.       return 1;
  1955.     }
  1956.     else if(skinid == VEGETA2)
  1957.     {
  1958.       format(string,sizeof(string),"Oh no!!");
  1959.       Delete3DTextLabel(Name3DText[playerid]);
  1960.       SetPlayerSkin(playerid,VEGETA0);
  1961.       CreateExplosion(X,Y,Z+5,11,3);
  1962.       SetPlayerColor(playerid,COLOR_WHITE);
  1963.       if(GetPlayerInterior(playerid) != 3) ResetPlayerMoney(playerid);
  1964.       SendPlayerMessageToAll(playerid,string);
  1965.       Name3DText[playerid] = Create3DTextLabel("VEGETA", COLOR_WHITE, X, Y, Z+0.2, 20, 0, 0);
  1966.       Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);
  1967.       ShowAttackName(playerid,"~w~Vegeta");
  1968.       OnPlayerCommandText(playerid,"/tavolaagg");
  1969.       return 1;
  1970.     }
  1971.     else if(skinid == TRUNKS0)
  1972.     {
  1973.       if(aura < 30 && GetPlayerInterior(playerid) != INTERIOR_SALONE) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  1974.       Delete3DTextLabel(Name3DText[playerid]);
  1975.       format(string,sizeof(string),"Combattiamo!!!");
  1976.       SetPlayerSkin(playerid,TRUNKS1);
  1977.       CreateExplosion(X,Y,Z+5,11,3);
  1978.       SetPlayerColor(playerid,COLOR_YELLOW);
  1979.       if(GetPlayerInterior(playerid) != 3) GivePlayerMoney(playerid,-30);
  1980.       SendPlayerMessageToAll(playerid,string);
  1981.       Name3DText[playerid] = Create3DTextLabel("TRUNKS SSJ", COLOR_YELLOW, X, Y, Z+0.2, 20, 0, 0);
  1982.       Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);
  1983.       ShowAttackName(playerid,"~y~Trunks Super Saiyan");
  1984.       OnPlayerCommandText(playerid,"/tavolaagg");
  1985.       return 1;
  1986.     }
  1987.     else if(skinid == TRUNKS1)
  1988.     {
  1989.       if(aura < 20 && GetPlayerInterior(playerid) != INTERIOR_SALONE) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  1990.       Delete3DTextLabel(Name3DText[playerid]);
  1991.       format(string,sizeof(string),"Yaaah ho superato il limite dei super saiyan!!");
  1992.       SetPlayerSkin(playerid,TRUNKSS);
  1993.       CreateExplosion(X,Y,Z+5,11,3);
  1994.       SetPlayerColor(playerid,COLOR_ORANGE);
  1995.       if(GetPlayerInterior(playerid) != 3) GivePlayerMoney(playerid,-20);
  1996.       SendPlayerMessageToAll(playerid,string);
  1997.       Name3DText[playerid] = Create3DTextLabel("SUPER TRUNKS", COLOR_ORANGE, X, Y, Z+0.2, 20, 0, 0);
  1998.       Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);
  1999.       ShowAttackName(playerid,"~p~Super Trunks");
  2000.       OnPlayerCommandText(playerid,"/tavolaagg");
  2001.       return 1;
  2002.     }
  2003.     else if(skinid == TRUNKSS)
  2004.     {
  2005.       format(string,sizeof(string),"Ma cosa mi sta succedendo!");
  2006.       Delete3DTextLabel(Name3DText[playerid]);
  2007.       SetPlayerSkin(playerid,TRUNKS0);
  2008.       CreateExplosion(X,Y,Z+5,11,3);
  2009.       SetPlayerColor(playerid,COLOR_WHITE);
  2010.       if(GetPlayerInterior(playerid) != 3) ResetPlayerMoney(playerid);
  2011.       SendPlayerMessageToAll(playerid,string);
  2012.       Name3DText[playerid] = Create3DTextLabel("TRUNKS", COLOR_WHITE, X, Y, Z+0.2, 20, 0, 0);
  2013.       Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);
  2014.       ShowAttackName(playerid,"~w~Trunks");
  2015.       OnPlayerCommandText(playerid,"/tavolaagg");
  2016.       return 1;
  2017.     }
  2018.     else if(skinid == GOHAN0)
  2019.     {
  2020.       if(aura < 30 && GetPlayerInterior(playerid) != INTERIOR_SALONE) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2021.       Delete3DTextLabel(Name3DText[playerid]);
  2022.       format(string,sizeof(string),"Preparati alla trasformazione in super Saiyan!!!");
  2023.       SetPlayerSkin(playerid,GOHAN1);
  2024.       CreateExplosion(X,Y,Z+5,11,3);
  2025.       SetPlayerColor(playerid,COLOR_YELLOW);
  2026.       if(GetPlayerInterior(playerid) != 3) GivePlayerMoney(playerid,-30);
  2027.       SendPlayerMessageToAll(playerid,string);
  2028.       Name3DText[playerid] = Create3DTextLabel("GOHAN SSJ", COLOR_YELLOW, X, Y, Z+0.2, 20, 0, 0);
  2029.       Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);
  2030.       ShowAttackName(playerid,"~y~Gohan Super Saiyan");
  2031.       OnPlayerCommandText(playerid,"/tavolaagg");
  2032.       return 1;
  2033.      }
  2034.      else if(skinid ==  GOHAN1)
  2035.      {
  2036.       if(aura < 20 && GetPlayerInterior(playerid) != INTERIOR_SALONE) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2037.       Delete3DTextLabel(Name3DText[playerid]);
  2038.       format(string,sizeof(string),"Sono un super saiyan tra i super saiyan!!!");
  2039.       SetPlayerSkin(playerid,GOHAN2);
  2040.       CreateExplosion(X,Y,Z+5,11,3);
  2041.       SetPlayerColor(playerid,COLOR_ORANGE);
  2042.       if(GetPlayerInterior(playerid) != 3) GivePlayerMoney(playerid,-20);
  2043.       SendPlayerMessageToAll(playerid,string);
  2044.       Name3DText[playerid] = Create3DTextLabel("GOHAN SSJ2", COLOR_ORANGE, X, Y, Z+0.2, 20, 0, 0);
  2045.       Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);
  2046.       ShowAttackName(playerid,"~p~Gohan Super Saiyan 2");
  2047.       OnPlayerCommandText(playerid,"/tavolaagg");
  2048.       return 1;
  2049.      }
  2050.      else if(skinid ==  GOHAN2)
  2051.      {
  2052.       format(string,sizeof(string),"Oh no! Mi è finita l'energia!");
  2053.       Delete3DTextLabel(Name3DText[playerid]);
  2054.       SetPlayerSkin(playerid,GOHAN0);
  2055.       CreateExplosion(X,Y,Z+5,11,3);
  2056.       SetPlayerColor(playerid,COLOR_WHITE);
  2057.       if(GetPlayerInterior(playerid) != INTERIOR_SALONE) ResetPlayerMoney(playerid);
  2058.       SendPlayerMessageToAll(playerid,string);
  2059.       Name3DText[playerid] = Create3DTextLabel("GOHAN", COLOR_WHITE, X, Y, Z+0.2, 20, 0, 0);
  2060.       Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);
  2061.       ShowAttackName(playerid,"~w~Gohan");
  2062.       OnPlayerCommandText(playerid,"/tavolaagg");
  2063.       return 1;
  2064.      }
  2065.      else if(skinid == VEGEKU0)
  2066.      {
  2067.       if(aura < 60 && GetPlayerInterior(playerid) != INTERIOR_SALONE) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2068.       Delete3DTextLabel(Name3DText[playerid]);
  2069.       format(string,sizeof(string),"Dai il benvenuto a Super Vegeku!");
  2070.       SetPlayerSkin(playerid,VEGEKU1);
  2071.       CreateExplosion(X,Y,Z+5,11,3);
  2072.       SetPlayerColor(playerid,COLOR_BLUE);
  2073.       if(GetPlayerInterior(playerid) != INTERIOR_SALONE) GivePlayerMoney(playerid,-60);
  2074.       SendPlayerMessageToAll(playerid,string);
  2075.       Name3DText[playerid] = Create3DTextLabel("SUPER VEGEKU", COLOR_BLUE, X, Y, Z+0.2, 20, 0, 0);
  2076.       Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);
  2077.       ShowAttackName(playerid,"~b~Super Vegeku");
  2078.       OnPlayerCommandText(playerid,"/tavolaagg");
  2079.       return 1;
  2080.      }
  2081.      else if(skinid == VEGEKU1)
  2082.      {
  2083.       format(string,sizeof(string),"L'effetto di potenza della fusione sembra diminuire!");
  2084.       Delete3DTextLabel(Name3DText[playerid]);
  2085.       SetPlayerSkin(playerid,VEGEKU0);
  2086.       CreateExplosion(X,Y,Z+5,11,3);
  2087.       SetPlayerColor(playerid,COLOR_GREEN);
  2088.       if(GetPlayerInterior(playerid) != INTERIOR_SALONE) ResetPlayerMoney(playerid);
  2089.       SendPlayerMessageToAll(playerid,string);
  2090.       Name3DText[playerid] = Create3DTextLabel("VEGEKU", COLOR_GREEN, X, Y, Z+0.2, 20, 0, 0);
  2091.       Attach3DTextLabelToPlayer(Name3DText[playerid], playerid, X, Y, Z+0.4);
  2092.       ShowAttackName(playerid,"~g~Vegeku");
  2093.       OnPlayerCommandText(playerid,"/tavolaagg");
  2094.       return 1;
  2095.     }
  2096.  
  2097.   return SendClientMessage(playerid,COLOR_YELLOW,"Questo personaggio non è in grado di trasformarsi.");
  2098. }
  2099.  
  2100.   if(strfind(cmd,"/en", true) != null)
  2101.   {
  2102.     new string[256];
  2103.     new name[MAX_PLAYER_NAME];
  2104.     new skin = GetPlayerSkin(playerid);
  2105.     new Float:X, Float:Y, Float:Z;
  2106.     new Float:health;
  2107.     GetPlayerPos(playerid,X,Y,Z);
  2108.     GetPlayerName(playerid,name,sizeof(name));
  2109.     for(new i=0;i<MAX_PLAYERS;i++)
  2110.     {
  2111.       if(skin == GELO || skin == C19)
  2112.       {
  2113.         if(IsPlayerNearPlayer(2,playerid,i) && i != playerid)
  2114.         {
  2115.           format(string,sizeof(string),"Prenderò la tua energia!");
  2116.           SendPlayerMessageToAll(playerid,string);
  2117.           GetPlayerHealth(playerid, health);
  2118.           SetPlayerHealth(playerid,health+25);
  2119.           GetPlayerHealth(i, health);
  2120.           SetPlayerHealth(i,health-25);
  2121.           PlaySound(playerid, SOUND_RACE_GO);
  2122.           return 1;
  2123.         }
  2124.         return GameTextForPlayer(playerid,"Non sei vicino a nessuno",1000,5);
  2125.       }
  2126.     }
  2127.    return SendClientMessage(playerid,COLOR_YELLOW,"Solo il Dottor Gelo e il Cyborg N°19 possono assorbire l'energia.");
  2128.   }
  2129.  
  2130. if(strfind(cmd,"/att", true) != null)
  2131. {
  2132.   new string[256];
  2133.   new name[MAX_PLAYER_NAME];
  2134.   new skin = GetPlayerSkin(playerid);
  2135.   new Float:X, Float:Y, Float:Z;
  2136.   new aura = GetPlayerMoney(playerid);
  2137.   GetPlayerPos(playerid,X,Y,Z);
  2138.   GetPlayerName(playerid,name,sizeof(name));
  2139.   PlaySound(playerid, SOUND_RACE_GO);
  2140.   if(GetTickCount() - TickCount[playerid] < 10000) return GameTextForPlayer(playerid,"~r~Devi aspettare 10 secondi tra un attacco e l'altro.",2000,5);
  2141.   TickCount[playerid] = GetTickCount();
  2142.   if(PlayerInfo[playerid][Stats][Attacco][skin] != NORMAL_ATTACK_SCRIPT)
  2143.   {
  2144.     if(PlayerInfo[playerid][Stats][Attacco][skin] == KAMEHAMEHA)
  2145.     {
  2146.       if(aura < 25 && !IsPlayerAnAndroid(playerid)) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2147.       format(string,sizeof(string),"Kamehame...ha!!!");
  2148.       SendPlayerMessageToAll(playerid,string);
  2149.       if(!IsPlayerAnAndroid(playerid)) GivePlayerMoney(playerid,-25);
  2150.       ApplyAnimationEx(playerid,"BASEBALL","Bat_3",4.1,0,1,1,1,1);
  2151.       CreateExplosionEx(playerid,5,11,5);
  2152.       CreateExplosionEx(playerid,10,11,5);
  2153.       CreateExplosionEx(playerid,15,11,5);
  2154.       CreateExplosionEx(playerid,20,11,5);
  2155.       CreateExplosionEx(playerid,25,11,5);
  2156.       CreateExplosionEx(playerid,30,11,5);
  2157.       CreateExplosionEx(playerid,35,11,5);
  2158.       CreateExplosionEx(playerid,40,11,5);
  2159.       CreateExplosionEx(playerid,45,11,5);
  2160.       CreateExplosionEx(playerid,50,11,5);
  2161.       ShowAttackName(playerid,"~w~Kamehameha(+)");
  2162.     }
  2163.     if(PlayerInfo[playerid][Stats][Attacco][skin] == KAMEHAMEHA_FURIA)
  2164.     {
  2165.       if(aura < 30 && !IsPlayerAnAndroid(playerid)) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2166.       format(string,sizeof(string),"Kame..hame...haaaaaaa!!");
  2167.       SendPlayerMessageToAll(playerid,string);
  2168.       if(!IsPlayerAnAndroid(playerid)) GivePlayerMoney(playerid,-30);
  2169.       ApplyAnimationEx(playerid,"BASEBALL","Bat_3",4.1,0,1,1,1,1);
  2170.       CreateExplosionEx(playerid,5,11,5);
  2171.       CreateExplosionEx(playerid,10,11,5);
  2172.       CreateExplosionEx(playerid,15,11,15);
  2173.       CreateExplosionEx(playerid,20,11,15);
  2174.       CreateExplosionEx(playerid,25,11,15);
  2175.       CreateExplosionEx(playerid,30,11,15);
  2176.       CreateExplosionEx(playerid,35,11,15);
  2177.       CreateExplosionEx(playerid,40,11,15);
  2178.       CreateExplosionEx(playerid,45,11,15);
  2179.       CreateExplosionEx(playerid,50,11,15);
  2180.       CreateExplosionEx(playerid,55,11,15);
  2181.       ShowAttackName(playerid,"~y~Kamehameha Furiosa(+)");
  2182.     }
  2183.     if(PlayerInfo[playerid][Stats][Attacco][skin] == SUPER_KAMEHAMEHA)
  2184.     {
  2185.       if(aura < 35 && !IsPlayerAnAndroid(playerid)) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2186.       format(string,sizeof(string),"Questa è una Kamehame..haaa!!!");
  2187.       SendPlayerMessageToAll(playerid,string);
  2188.       if(!IsPlayerAnAndroid(playerid)) GivePlayerMoney(playerid,-35);
  2189.       ApplyAnimationEx(playerid,"BASEBALL","Bat_3",4.1,0,1,1,1,1);
  2190.       CreateExplosionEx(playerid,5,11,5);
  2191.       CreateExplosionEx(playerid,10,11,5);
  2192.       CreateExplosionEx(playerid,15,11,15);
  2193.       CreateExplosionEx(playerid,20,11,15);
  2194.       CreateExplosionEx(playerid,25,11,15);
  2195.       CreateExplosionEx(playerid,30,11,15);
  2196.       CreateExplosionEx(playerid,35,7,15);
  2197.       CreateExplosionEx(playerid,40,7,15);
  2198.       CreateExplosionEx(playerid,45,7,15);
  2199.       CreateExplosionEx(playerid,50,7,15);
  2200.       CreateExplosionEx(playerid,55,7,15);
  2201.       CreateExplosionEx(playerid,60,7,15);
  2202.       ShowAttackName(playerid,"~p~Super Kamehameha(+)");
  2203.     }
  2204.     if(PlayerInfo[playerid][Stats][Attacco][skin] == KAMEHAMEHA_MAX)
  2205.     {
  2206.       if(aura < 40 && !IsPlayerAnAndroid(playerid)) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2207.       format(string,sizeof(string),"Kame..........hame.....haaaaaa!");
  2208.       SendPlayerMessageToAll(playerid,string);
  2209.       if(!IsPlayerAnAndroid(playerid)) GivePlayerMoney(playerid,-40);
  2210.       ApplyAnimationEx(playerid,"BASEBALL","Bat_3",4.1,0,1,1,1,1);
  2211.       CreateExplosionEx(playerid,5,11,5);
  2212.       CreateExplosionEx(playerid,10,11,5);
  2213.       CreateExplosionEx(playerid,15,11,5);
  2214.       CreateExplosionEx(playerid,20,11,5);
  2215.       CreateExplosionEx(playerid,25,7,5);
  2216.       CreateExplosionEx(playerid,30,7,5);
  2217.       CreateExplosionEx(playerid,35,7,5);
  2218.       CreateExplosionEx(playerid,40,7,5);
  2219.       CreateExplosionEx(playerid,45,7,5);
  2220.       CreateExplosionEx(playerid,50,7,5);
  2221.       CreateExplosionEx(playerid,55,7,5);
  2222.       CreateExplosionEx(playerid,60,7,5);
  2223.       CreateExplosionEx(playerid,65,7,5);
  2224.       CreateExplosionEx(playerid,70,7,5);
  2225.       CreateExplosionEx(playerid,75,7,5);
  2226.       CreateExplosionEx(playerid,80,7,5);
  2227.       ShowAttackName(playerid,"~r~Kamehameha MAX Intensita'(+)");
  2228.     }
  2229.     if(PlayerInfo[playerid][Stats][Attacco][skin] == CANNONE_ESPLOSIVO)
  2230.     {
  2231.       if(aura < 25 && !IsPlayerAnAndroid(playerid)) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2232.       format(string,sizeof(string),"Cannone Eslposivo!!");
  2233.       SendPlayerMessageToAll(playerid,string);
  2234.       if(!IsPlayerAnAndroid(playerid)) GivePlayerMoney(playerid,-25);
  2235.       ApplyAnimationEx(playerid,"BASEBALL","Bat_3",4.1,0,1,1,1,1);
  2236.       CreateExplosionEx(playerid,5,11,5);
  2237.       CreateExplosionEx(playerid,10,11,5);
  2238.       CreateExplosionEx(playerid,15,11,10);
  2239.       CreateExplosionEx(playerid,20,11,10);
  2240.       CreateExplosionEx(playerid,25,11,10);
  2241.       CreateExplosionEx(playerid,30,11,10);
  2242.       CreateExplosionEx(playerid,35,11,10);
  2243.       CreateExplosionEx(playerid,40,11,10);
  2244.       CreateExplosionEx(playerid,45,11,10);
  2245.       CreateExplosionEx(playerid,50,11,10);
  2246.       ShowAttackName(playerid,"~w~Cannone Esplosivo(+)");
  2247.     }
  2248.     if(PlayerInfo[playerid][Stats][Attacco][skin] == BIG_BANG_ATTACK)
  2249.     {
  2250.       if(aura < 30 && !IsPlayerAnAndroid(playerid)) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2251.       format(string,sizeof(string),"Attacco Big Bang!!");
  2252.       SendPlayerMessageToAll(playerid,string);
  2253.       if(!IsPlayerAnAndroid(playerid)) GivePlayerMoney(playerid,-30);
  2254.       ApplyAnimationEx(playerid,"POLICE","CopTraf_Stop",4.1,0,1,1,1,1);
  2255.       CreateExplosionEx(playerid,35,7,30);
  2256.       CreateExplosionEx(playerid,40,7,30);
  2257.       ShowAttackName(playerid,"~y~Attacco Big Bang(+)");
  2258.     }
  2259.     if(PlayerInfo[playerid][Stats][Attacco][skin] == LAMPO_FINALE)
  2260.     {
  2261.       if(aura < 30 && !IsPlayerAnAndroid(playerid)) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2262.       format(string,sizeof(string),"Ora basta! Lampoo Finaleeee!");
  2263.       SendPlayerMessageToAll(playerid,string);
  2264.       if(!IsPlayerAnAndroid(playerid)) GivePlayerMoney(playerid,-30);
  2265.       ApplyAnimationEx(playerid,"PED","ARRESTgun",4.1,0,1,1,1,1);
  2266.       CreateExplosionEx(playerid,5,11,5);
  2267.       CreateExplosionEx(playerid,10,11,5);
  2268.       CreateExplosionEx(playerid,15,11,20);
  2269.       CreateExplosionEx(playerid,20,11,20);
  2270.       CreateExplosionEx(playerid,25,11,20);
  2271.       CreateExplosionEx(playerid,30,11,20);
  2272.       CreateExplosionEx(playerid,35,11,20);
  2273.       CreateExplosionEx(playerid,40,11,20);
  2274.       CreateExplosionEx(playerid,45,11,20);
  2275.       CreateExplosionEx(playerid,50,11,20);
  2276.       CreateExplosionEx(playerid,55,11,20);
  2277.       CreateExplosionEx(playerid,60,11,20);
  2278.       ShowAttackName(playerid,"~r~Lampo Finale(+)");
  2279.     }
  2280.     if(PlayerInfo[playerid][Stats][Attacco][skin] == MASENKO)
  2281.     {
  2282.       if(aura < 25 && !IsPlayerAnAndroid(playerid)) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2283.       format(string,sizeof(string),"Masenko!!");
  2284.       SendPlayerMessageToAll(playerid,string);
  2285.       if(!IsPlayerAnAndroid(playerid)) GivePlayerMoney(playerid,-25);
  2286.       ApplyAnimationEx(playerid,"MISC","plyr_shkhead",4.1,0,1,1,1,1);
  2287.       CreateExplosionEx(playerid,5,11,5);
  2288.       CreateExplosionEx(playerid,10,11,5);
  2289.       CreateExplosionEx(playerid,15,11,10);
  2290.       CreateExplosionEx(playerid,20,11,10);
  2291.       CreateExplosionEx(playerid,25,11,10);
  2292.       CreateExplosionEx(playerid,30,11,10);
  2293.       CreateExplosionEx(playerid,35,11,10);
  2294.       CreateExplosionEx(playerid,40,11,10);
  2295.       CreateExplosionEx(playerid,45,11,10);
  2296.       CreateExplosionEx(playerid,50,11,10);
  2297.       ShowAttackName(playerid,"~w~Masenko(+)");
  2298.     }
  2299.     if(PlayerInfo[playerid][Stats][Attacco][skin] == ATTACCO_BRUCIANTE)
  2300.     {
  2301.       if(aura < 25 && !IsPlayerAnAndroid(playerid)) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2302.       format(string,sizeof(string),"Attacco bruciante!!!");
  2303.       SendPlayerMessageToAll(playerid,string);
  2304.       if(!IsPlayerAnAndroid(playerid)) GivePlayerMoney(playerid,-25);
  2305.       ApplyAnimationEx(playerid,"MISC","plyr_shkhead",4.1,0,1,1,1,1);
  2306.       CreateExplosionEx(playerid,30,1,40);
  2307.       CreateExplosionEx(playerid,35,1,40);
  2308.       ShowAttackName(playerid,"~y~Attacco Bruciante(+)");
  2309.     }
  2310.     if(PlayerInfo[playerid][Stats][Attacco][skin] == DISTRUTTORE_LETALE)
  2311.     {
  2312.       if(aura < 30 && !IsPlayerAnAndroid(playerid)) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2313.       format(string,sizeof(string),"Distruttore Letale!!");
  2314.       SendPlayerMessageToAll(playerid,string);
  2315.       if(!IsPlayerAnAndroid(playerid)) GivePlayerMoney(playerid,-30);
  2316.       ApplyAnimationEx(playerid,"GRENADE","WEAPON_throw",4.1,0,1,1,1,1);
  2317.       CreateExplosionEx(playerid,15,7,10);
  2318.       ShowAttackName(playerid,"~p~Distruttore Letale(+)");
  2319.     }
  2320.     if(PlayerInfo[playerid][Stats][Attacco][skin] == ARTIGLIO_DEL_LUPO)
  2321.     {
  2322.       if(aura < 25 && !IsPlayerAnAndroid(playerid)) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2323.       format(string,sizeof(string),"Artiglio..del...lupo!! Auuuuu!!");
  2324.       SendPlayerMessageToAll(playerid,string);
  2325.       if(!IsPlayerAnAndroid(playerid)) GivePlayerMoney(playerid,-25);
  2326.       ApplyAnimationEx(playerid,"PARK","Tai_Chi_Loop",4.0,1,0,0,0,0);
  2327.       CreateExplosionEx(playerid,15,7,20);
  2328.       ShowAttackName(playerid,"~w~Artiglio Del Lupo Esplosivo(+)");
  2329.     }
  2330.     if(PlayerInfo[playerid][Stats][Attacco][skin] == TRIPLO_RAGGIO)
  2331.     {
  2332.       if(aura < 25 && !IsPlayerAnAndroid(playerid)) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2333.       format(string,sizeof(string),"Ecco la mia nuova tecnica! Triplo Raggio!");
  2334.       SendPlayerMessageToAll(playerid,string);
  2335.       if(!IsPlayerAnAndroid(playerid)) GivePlayerMoney(playerid,-25);
  2336.       ApplyAnimationEx(playerid,"MISC","plyr_shkhead",4.1,0,1,1,1,1);
  2337.       CreateExplosionEx(playerid,20,6,5);
  2338.       CreateExplosionEx(playerid,25,6,5);
  2339.       ShowAttackName(playerid,"~w~Triplo Raggio(+)");
  2340.     }
  2341.     if(PlayerInfo[playerid][Stats][Attacco][skin] == RAGGIO_ENERGETICO)
  2342.     {
  2343.       if(aura < 25 && !IsPlayerAnAndroid(playerid)) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2344.       format(string,sizeof(string),"Muori!!!");
  2345.       SendPlayerMessageToAll(playerid,string);
  2346.       if(!IsPlayerAnAndroid(playerid)) GivePlayerMoney(playerid,-25);
  2347.       ApplyAnimationEx(playerid,"MISC","KAT_Throw_O",4.1,0,1,1,1,1);
  2348.       CreateExplosionEx(playerid,5,11,5);
  2349.       CreateExplosionEx(playerid,10,11,5);
  2350.       CreateExplosionEx(playerid,15,11,5);
  2351.       CreateExplosionEx(playerid,20,11,5);
  2352.       CreateExplosionEx(playerid,25,11,5);
  2353.       CreateExplosionEx(playerid,30,11,5);
  2354.       CreateExplosionEx(playerid,35,11,5);
  2355.       CreateExplosionEx(playerid,40,11,5);
  2356.       CreateExplosionEx(playerid,45,11,5);
  2357.       CreateExplosionEx(playerid,50,11,5);
  2358.       CreateExplosionEx(playerid,55,11,5);
  2359.       CreateExplosionEx(playerid,60,11,5);
  2360.       ShowAttackName(playerid,"~y~Raggio Energetico(+)");
  2361.     }
  2362.     if(PlayerInfo[playerid][Stats][Attacco][skin] == SFERE_ENERGETICHE)
  2363.     {
  2364.       if(aura < 35 && !IsPlayerAnAndroid(playerid)) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2365.       format(string,sizeof(string),"Questo è il colpo di grazia!!");
  2366.       SendPlayerMessageToAll(playerid,string);
  2367.       if(!IsPlayerAnAndroid(playerid)) GivePlayerMoney(playerid,-35);
  2368.       ApplyAnimationEx(playerid,"SHOP","SHP_Gun_Fire",4.1,0,1,1,1,1);
  2369.       CreateExplosionEx(playerid,20,7,35);
  2370.       CreateExplosionEx(playerid,30,7,35);
  2371.       ShowAttackName(playerid,"~y~Sfere Energetiche(+)");
  2372.     }
  2373.     if(PlayerInfo[playerid][Stats][Attacco][skin] == LANCIARAZZI)
  2374.     {
  2375.       if(aura < 30 && !IsPlayerAnAndroid(playerid)) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2376.       format(string,sizeof(string),"Apertura Cannone In Corso...");
  2377.       SendPlayerMessageToAll(playerid,string);
  2378.       if(!IsPlayerAnAndroid(playerid)) GivePlayerMoney(playerid,-30);
  2379.       ApplyAnimationEx(playerid,"ROCKET","RocketFire",4.1,0,1,1,1,1);
  2380.       CreateExplosionEx(playerid,15,11,5);
  2381.       CreateExplosionEx(playerid,20,11,5);
  2382.       CreateExplosionEx(playerid,25,7,15);
  2383.       CreateExplosionEx(playerid,30,7,15);
  2384.       CreateExplosionEx(playerid,35,7,15);
  2385.       CreateExplosionEx(playerid,40,7,15);
  2386.       CreateExplosionEx(playerid,45,7,15);
  2387.       CreateExplosionEx(playerid,50,7,15);
  2388.       CreateExplosionEx(playerid,55,7,15);
  2389.       CreateExplosionEx(playerid,60,7,15);
  2390.       CreateExplosionEx(playerid,65,7,15);
  2391.       CreateExplosionEx(playerid,70,7,15);
  2392.       ShowAttackName(playerid,"~y~Lanciarazzi Incorporato(+)");
  2393.     }
  2394.     if(PlayerInfo[playerid][Stats][Attacco][skin] == IL_CAMPIONE)
  2395.     {
  2396.       if(aura < 15 && !IsPlayerAnAndroid(playerid)) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2397.       if(!IsPlayerAnAndroid(playerid)) GivePlayerMoney(playerid,-15);
  2398.       ApplyAnimationEx(playerid,"POLICE","CopTraf_Stop",4.1,0,1,1,1,1);
  2399.       format(string,sizeof(string),"Ha ha ha haaa!");
  2400.       SendPlayerMessageToAll(playerid,string);
  2401.       CreateExplosionEx(playerid,10,11,2);
  2402.       ShowAttackName(playerid,"~w~Il Campione(+)");
  2403.     }
  2404.     if(PlayerInfo[playerid][Stats][Attacco][skin] == GRAN_BOMBA_AURA)
  2405.     {
  2406.       if(aura < 20 && !IsPlayerAnAndroid(playerid)) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2407.       format(string,sizeof(string),"Prendi questa!!!");
  2408.       SendPlayerMessageToAll(playerid,string);
  2409.       if(!IsPlayerAnAndroid(playerid)) GivePlayerMoney(playerid,-20);
  2410.       ApplyAnimationEx(playerid,"POLICE","CopTraf_Stop",4.1,0,1,1,1,1);
  2411.       CreateExplosionEx(playerid,20,11,10);
  2412.       ShowAttackName(playerid,"~w~Gran Bomba D'Aura(+)");
  2413.     }
  2414.     if(PlayerInfo[playerid][Stats][Attacco][skin] == KAMEHAMEHA_FINALE)
  2415.     {
  2416.       if(aura < 90 && !IsPlayerAnAndroid(playerid)) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2417.       format(string,sizeof(string),"Di le tue preghiere!! Kamehameha Finaleee!!!");
  2418.       SendPlayerMessageToAll(playerid,string);
  2419.       if(!IsPlayerAnAndroid(playerid)) GivePlayerMoney(playerid,-90);
  2420.       ApplyAnimationEx(playerid,"BASEBALL","Bat_3",4.1,0,1,1,1,1);
  2421.       CreateExplosionEx(playerid,5,11,5);
  2422.       CreateExplosionEx(playerid,10,11,5);
  2423.       CreateExplosionEx(playerid,15,11,5);
  2424.       CreateExplosionEx(playerid,20,11,15);
  2425.       CreateExplosionEx(playerid,25,7,15);
  2426.       CreateExplosionEx(playerid,30,7,25);
  2427.       CreateExplosionEx(playerid,35,7,35);
  2428.       CreateExplosionEx(playerid,40,7,35);
  2429.       CreateExplosionEx(playerid,45,7,45);
  2430.       CreateExplosionEx(playerid,50,7,45);
  2431.       CreateExplosionEx(playerid,55,7,55);
  2432.       CreateExplosionEx(playerid,60,7,75);
  2433.       CreateExplosionEx(playerid,65,7,75);
  2434.       CreateExplosionEx(playerid,70,7,75);
  2435.       CreateExplosionEx(playerid,75,7,75);
  2436.       CreateExplosionEx(playerid,80,7,75);
  2437.       CreateExplosionEx(playerid,85,7,75);
  2438.       CreateExplosionEx(playerid,90,7,100);
  2439.       CreateExplosionEx(playerid,95,7,100);
  2440.       CreateExplosionEx(playerid,100,7,100);
  2441.       ShowAttackName(playerid,"~b~Kamehameha Finale(+)");
  2442.     }
  2443.     if(PlayerInfo[playerid][Stats][Attacco][skin] == KAMEHAMEHA_BIG_BANG)
  2444.     {
  2445.       if(aura < 90 && !IsPlayerAnAndroid(playerid)) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2446.       format(string,sizeof(string),"Sparisci Dal Pianeta!! Kamehameha Big Bang!!!");
  2447.       SendPlayerMessageToAll(playerid,string);
  2448.       if(!IsPlayerAnAndroid(playerid)) GivePlayerMoney(playerid,-90);
  2449.       ApplyAnimationEx(playerid,"BASEBALL","Bat_3",4.1,0,1,1,1,1);
  2450.       CreateExplosionEx(playerid,5,12,1);
  2451.       CreateExplosionEx(playerid,7,12,1);
  2452.       CreateExplosionEx(playerid,10,12,1);
  2453.       CreateExplosionEx(playerid,12,12,1);
  2454.       CreateExplosionEx(playerid,15,12,1);
  2455.       CreateExplosionEx(playerid,17,12,1);
  2456.       CreateExplosionEx(playerid,20,12,1);
  2457.       CreateExplosionEx(playerid,22,12,1);
  2458.       CreateExplosionEx(playerid,25,12,1);
  2459.       CreateExplosionEx(playerid,27,12,1);
  2460.       CreateExplosionEx(playerid,30,12,1);
  2461.       CreateExplosionEx(playerid,32,12,1);
  2462.       CreateExplosionEx(playerid,35,12,1);
  2463.       CreateExplosionEx(playerid,37,12,1);
  2464.       CreateExplosionEx(playerid,40,12,2);
  2465.       CreateExplosionEx(playerid,42,12,2);
  2466.       CreateExplosionEx(playerid,45,12,2);
  2467.       CreateExplosionEx(playerid,47,12,2);
  2468.       CreateExplosionEx(playerid,50,7,100);
  2469.       CreateExplosionEx(playerid,52,7,100);
  2470.       CreateExplosionEx(playerid,55,7,100);
  2471.       CreateExplosionEx(playerid,57,7,100);
  2472.       CreateExplosionEx(playerid,60,7,100);
  2473.       CreateExplosionEx(playerid,62,7,100);
  2474.       CreateExplosionEx(playerid,65,7,100);
  2475.       CreateExplosionEx(playerid,67,7,100);
  2476.       CreateExplosionEx(playerid,70,7,100);
  2477.       ShowAttackName(playerid,"~b~Kamehameha Big Bang(+)");
  2478.     }
  2479.     if(PlayerInfo[playerid][Stats][Attacco][skin] == SUPER_MASENKO)
  2480.     {
  2481.       if(aura < 25 && !IsPlayerAnAndroid(playerid)) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2482.       format(string,sizeof(string),"Masenko!!");
  2483.       SendPlayerMessageToAll(playerid,string);
  2484.       if(!IsPlayerAnAndroid(playerid)) GivePlayerMoney(playerid,-25);
  2485.       ApplyAnimationEx(playerid,"MISC","plyr_shkhead",4.1,0,1,1,1,1);
  2486.       CreateExplosionEx(playerid,5,11,5);
  2487.       CreateExplosionEx(playerid,10,11,5);
  2488.       CreateExplosionEx(playerid,15,11,10);
  2489.       CreateExplosionEx(playerid,20,11,10);
  2490.       CreateExplosionEx(playerid,25,11,10);
  2491.       CreateExplosionEx(playerid,30,7,10);
  2492.       CreateExplosionEx(playerid,35,7,10);
  2493.       CreateExplosionEx(playerid,40,7,15);
  2494.       CreateExplosionEx(playerid,45,7,15);
  2495.       CreateExplosionEx(playerid,50,7,15);
  2496.       CreateExplosionEx(playerid,55,7,15);
  2497.       CreateExplosionEx(playerid,60,7,15);
  2498.       ShowAttackName(playerid,"~w~Super Masenko(+)");
  2499.     }
  2500.     return 1;
  2501.   }
  2502.   for(new i=0;i<MAX_PLAYERS;i++)
  2503.   {
  2504.     if(skin == GOKU0)
  2505.     {
  2506.       if(aura < 25) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2507.       format(string,sizeof(string),"Kamehame...ha!!!");
  2508.       SendPlayerMessageToAll(playerid,string);
  2509.       GivePlayerMoney(playerid,-25);
  2510.       ApplyAnimationEx(playerid,"BASEBALL","Bat_3",4.1,0,1,1,1,1);
  2511.       CreateExplosionEx(playerid,5,11,5);
  2512.       CreateExplosionEx(playerid,10,11,5);
  2513.       CreateExplosionEx(playerid,15,11,5);
  2514.       CreateExplosionEx(playerid,20,11,5);
  2515.       CreateExplosionEx(playerid,25,11,5);
  2516.       CreateExplosionEx(playerid,30,11,5);
  2517.       CreateExplosionEx(playerid,35,11,5);
  2518.       CreateExplosionEx(playerid,40,11,5);
  2519.       CreateExplosionEx(playerid,45,11,5);
  2520.       CreateExplosionEx(playerid,50,11,5);
  2521.       ShowAttackName(playerid,"~w~Kamehameha");
  2522.       return 1;
  2523.     }
  2524.     else if(skin == VEGETA0)
  2525.     {
  2526.       if(aura < 25) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2527.       format(string,sizeof(string),"Cannone Eslposivo!!");
  2528.       SendPlayerMessageToAll(playerid,string);
  2529.       GivePlayerMoney(playerid,-25);
  2530.       ApplyAnimationEx(playerid,"BASEBALL","Bat_3",4.1,0,1,1,1,1);
  2531.       CreateExplosionEx(playerid,5,11,5);
  2532.       CreateExplosionEx(playerid,10,11,5);
  2533.       CreateExplosionEx(playerid,15,11,10);
  2534.       CreateExplosionEx(playerid,20,11,10);
  2535.       CreateExplosionEx(playerid,25,11,10);
  2536.       CreateExplosionEx(playerid,30,11,10);
  2537.       CreateExplosionEx(playerid,35,11,10);
  2538.       CreateExplosionEx(playerid,40,11,10);
  2539.       CreateExplosionEx(playerid,45,11,10);
  2540.       CreateExplosionEx(playerid,50,11,10);
  2541.       ShowAttackName(playerid,"~w~Cannone Esplosivo");
  2542.       return 1;
  2543.     }
  2544.     else if(skin == TRUNKS0)
  2545.     {
  2546.       if(aura < 25) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2547.       format(string,sizeof(string),"Masenko!!");
  2548.       SendPlayerMessageToAll(playerid,string);
  2549.       GivePlayerMoney(playerid,-25);
  2550.       ApplyAnimationEx(playerid,"MISC","plyr_shkhead",4.1,0,1,1,1,1);
  2551.       CreateExplosionEx(playerid,5,11,5);
  2552.       CreateExplosionEx(playerid,10,11,5);
  2553.       CreateExplosionEx(playerid,15,11,10);
  2554.       CreateExplosionEx(playerid,20,11,10);
  2555.       CreateExplosionEx(playerid,25,11,10);
  2556.       CreateExplosionEx(playerid,30,11,10);
  2557.       CreateExplosionEx(playerid,35,11,10);
  2558.       CreateExplosionEx(playerid,40,11,10);
  2559.       CreateExplosionEx(playerid,45,11,10);
  2560.       CreateExplosionEx(playerid,50,11,10);
  2561.       ShowAttackName(playerid,"~w~Masenko");
  2562.       return 1;
  2563.     }
  2564.     else if(skin == TRUNKS1)
  2565.     {
  2566.       if(aura < 25) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2567.       format(string,sizeof(string),"Attacco bruciante!!!");
  2568.       SendPlayerMessageToAll(playerid,string);
  2569.       GivePlayerMoney(playerid,-25);
  2570.       ApplyAnimationEx(playerid,"MISC","plyr_shkhead",4.1,0,1,1,1,1);
  2571.       CreateExplosionEx(playerid,30,1,40);
  2572.       CreateExplosionEx(playerid,35,1,40);
  2573.       ShowAttackName(playerid,"~y~Attacco Bruciante");
  2574.       return 1;
  2575.     }
  2576.     else if(skin == GOHAN0)
  2577.     {
  2578.       if(aura < 25) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2579.       format(string,sizeof(string),"Masenko!!");
  2580.       SendPlayerMessageToAll(playerid,string);
  2581.       GivePlayerMoney(playerid,-25);
  2582.       ApplyAnimationEx(playerid,"MISC","plyr_shkhead",4.1,0,1,1,1,1);
  2583.       CreateExplosionEx(playerid,5,11,5);
  2584.       CreateExplosionEx(playerid,10,11,5);
  2585.       CreateExplosionEx(playerid,15,11,10);
  2586.       CreateExplosionEx(playerid,20,11,10);
  2587.       CreateExplosionEx(playerid,25,11,10);
  2588.       CreateExplosionEx(playerid,30,7,10);
  2589.       CreateExplosionEx(playerid,35,7,10);
  2590.       CreateExplosionEx(playerid,40,7,15);
  2591.       CreateExplosionEx(playerid,45,7,15);
  2592.       CreateExplosionEx(playerid,50,7,15);
  2593.       CreateExplosionEx(playerid,55,7,15);
  2594.       CreateExplosionEx(playerid,60,7,15);
  2595.       ShowAttackName(playerid,"~w~Super Masenko");
  2596.       return 1;
  2597.     }
  2598.     else if(skin == GOKU1)
  2599.     {
  2600.       if(aura < 30) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2601.       format(string,sizeof(string),"Kame..hame...haaaaaaa!!");
  2602.       SendPlayerMessageToAll(playerid,string);
  2603.       GivePlayerMoney(playerid,-30);
  2604.       ApplyAnimationEx(playerid,"BASEBALL","Bat_3",4.1,0,1,1,1,1);
  2605.       CreateExplosionEx(playerid,5,11,5);
  2606.       CreateExplosionEx(playerid,10,11,5);
  2607.       CreateExplosionEx(playerid,15,11,15);
  2608.       CreateExplosionEx(playerid,20,11,15);
  2609.       CreateExplosionEx(playerid,25,11,15);
  2610.       CreateExplosionEx(playerid,30,11,15);
  2611.       CreateExplosionEx(playerid,35,11,15);
  2612.       CreateExplosionEx(playerid,40,11,15);
  2613.       CreateExplosionEx(playerid,45,11,15);
  2614.       CreateExplosionEx(playerid,50,11,15);
  2615.       CreateExplosionEx(playerid,55,11,15);
  2616.       ShowAttackName(playerid,"~y~Kamehameha Furiosa");
  2617.       return 1;
  2618.     }
  2619.     else if(skin == VEGETA1)
  2620.     {
  2621.       if(aura < 30) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2622.       format(string,sizeof(string),"Attacco Big Bang!!");
  2623.       SendPlayerMessageToAll(playerid,string);
  2624.       GivePlayerMoney(playerid,-30);
  2625.       ApplyAnimationEx(playerid,"POLICE","CopTraf_Stop",4.1,0,1,1,1,1);
  2626.       CreateExplosionEx(playerid,35,7,30);
  2627.       CreateExplosionEx(playerid,40,7,30);
  2628.       ShowAttackName(playerid,"~y~Attacco Big Bang");
  2629.       return 1;
  2630.     }
  2631.     else if(skin == VEGETA2)
  2632.     {
  2633.       if(aura < 30) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2634.       format(string,sizeof(string),"Ora basta! Lampoo Finaleeee!");
  2635.       SendPlayerMessageToAll(playerid,string);
  2636.       GivePlayerMoney(playerid,-30);
  2637.       ApplyAnimationEx(playerid,"PED","ARRESTgun",4.1,0,1,1,1,1);
  2638.       CreateExplosionEx(playerid,5,11,5);
  2639.       CreateExplosionEx(playerid,10,11,5);
  2640.       CreateExplosionEx(playerid,15,11,20);
  2641.       CreateExplosionEx(playerid,20,11,20);
  2642.       CreateExplosionEx(playerid,25,11,20);
  2643.       CreateExplosionEx(playerid,30,11,20);
  2644.       CreateExplosionEx(playerid,35,11,20);
  2645.       CreateExplosionEx(playerid,40,11,20);
  2646.       CreateExplosionEx(playerid,45,11,20);
  2647.       CreateExplosionEx(playerid,50,11,20);
  2648.       CreateExplosionEx(playerid,55,11,20);
  2649.       CreateExplosionEx(playerid,60,11,20);
  2650.       ShowAttackName(playerid,"~r~Lampo Finale");
  2651.       return 1;
  2652.     }
  2653.     else if(skin == VEGETAS)
  2654.     {
  2655.       if(aura < 30) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2656.       format(string,sizeof(string),"Prendi questo! Lampo Finale!!");
  2657.       SendPlayerMessageToAll(playerid,string);
  2658.       GivePlayerMoney(playerid,-30);
  2659.       ApplyAnimationEx(playerid,"PED","ARRESTgun",4.1,0,1,1,1,1);
  2660.       CreateExplosionEx(playerid,5,11,5);
  2661.       CreateExplosionEx(playerid,10,11,5);
  2662.       CreateExplosionEx(playerid,15,11,20);
  2663.       CreateExplosionEx(playerid,20,11,20);
  2664.       CreateExplosionEx(playerid,25,11,20);
  2665.       CreateExplosionEx(playerid,30,11,20);
  2666.       CreateExplosionEx(playerid,35,11,20);
  2667.       CreateExplosionEx(playerid,40,11,20);
  2668.       CreateExplosionEx(playerid,45,11,20);
  2669.       CreateExplosionEx(playerid,50,11,20);
  2670.       CreateExplosionEx(playerid,55,11,20);
  2671.       CreateExplosionEx(playerid,60,11,20);
  2672.       ShowAttackName(playerid,"~p~Lampo Finale");
  2673.       return 1;
  2674.     }
  2675.     else if(skin == TRUNKSS)
  2676.     {
  2677.       if(aura < 30) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2678.       format(string,sizeof(string),"Distruttore Letale!!");
  2679.       SendPlayerMessageToAll(playerid,string);
  2680.       GivePlayerMoney(playerid,-30);
  2681.       ApplyAnimationEx(playerid,"GRENADE","WEAPON_throw",4.1,0,1,1,1,1);
  2682.       CreateExplosionEx(playerid,15,7,10);
  2683.       ShowAttackName(playerid,"~p~Distruttore Letale");
  2684.       return 1;
  2685.     }
  2686.     else if(skin == CRILIN)
  2687.     {
  2688.       if(aura < 25) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2689.       format(string,sizeof(string),"Kamehaaaa!!");
  2690.       SendPlayerMessageToAll(playerid,string);
  2691.       GivePlayerMoney(playerid,-25);
  2692.       ApplyAnimationEx(playerid,"BASEBALL","Bat_3",4.1,0,1,1,1,1);
  2693.       CreateExplosionEx(playerid,5,11,5);
  2694.       CreateExplosionEx(playerid,10,11,5);
  2695.       CreateExplosionEx(playerid,15,11,5);
  2696.       CreateExplosionEx(playerid,20,11,5);
  2697.       CreateExplosionEx(playerid,25,11,5);
  2698.       CreateExplosionEx(playerid,30,11,5);
  2699.       CreateExplosionEx(playerid,35,11,5);
  2700.       CreateExplosionEx(playerid,40,11,5);
  2701.       CreateExplosionEx(playerid,45,11,5);
  2702.       CreateExplosionEx(playerid,50,11,5);
  2703.       ShowAttackName(playerid,"~w~Kamehameha");
  2704.       return 1;
  2705.     }
  2706.     else if(skin == TENSHINSHAN)
  2707.     {
  2708.       if(aura < 25) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2709.       format(string,sizeof(string),"Ecco la mia nuova tecnica! Triplo Raggio!");
  2710.       SendPlayerMessageToAll(playerid,string);
  2711.       GivePlayerMoney(playerid,-25);
  2712.       ApplyAnimationEx(playerid,"MISC","plyr_shkhead",4.1,0,1,1,1,1);
  2713.       CreateExplosionEx(playerid,20,6,5);
  2714.       CreateExplosionEx(playerid,25,6,5);
  2715.       ShowAttackName(playerid,"~w~Triplo Raggio");
  2716.       return 1;
  2717.     }
  2718.     else if(skin == YAMCHA)
  2719.     {
  2720.       if(aura < 25) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2721.       format(string,sizeof(string),"Artiglio..del...lupo!! Auuuuu!!");
  2722.       SendPlayerMessageToAll(playerid,string);
  2723.       GivePlayerMoney(playerid,-25);
  2724.       ApplyAnimationEx(playerid,"PARK","Tai_Chi_Loop",4.0,1,0,0,0,0);
  2725.       CreateExplosionEx(playerid,15,7,20);
  2726.       ShowAttackName(playerid,"~w~Artiglio Del Lupo Esplosivo");
  2727.       return 1;
  2728.     }
  2729.     else if(skin == GOHAN1)
  2730.     {
  2731.       if(aura < 35) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2732.       format(string,sizeof(string),"Questa è una Kamehame..haaa!!!");
  2733.       SendPlayerMessageToAll(playerid,string);
  2734.       GivePlayerMoney(playerid,-35);
  2735.       ApplyAnimationEx(playerid,"BASEBALL","Bat_3",4.1,0,1,1,1,1);
  2736.       CreateExplosionEx(playerid,5,11,5);
  2737.       CreateExplosionEx(playerid,10,11,5);
  2738.       CreateExplosionEx(playerid,15,11,15);
  2739.       CreateExplosionEx(playerid,20,11,15);
  2740.       CreateExplosionEx(playerid,25,11,15);
  2741.       CreateExplosionEx(playerid,30,11,15);
  2742.       CreateExplosionEx(playerid,35,7,15);
  2743.       CreateExplosionEx(playerid,40,7,15);
  2744.       CreateExplosionEx(playerid,45,7,15);
  2745.       CreateExplosionEx(playerid,50,7,15);
  2746.       CreateExplosionEx(playerid,55,7,15);
  2747.       CreateExplosionEx(playerid,60,7,15);
  2748.       ShowAttackName(playerid,"~p~Super Kamehameha");
  2749.       return 1;
  2750.     }
  2751.     else if(skin == GOHAN2)
  2752.     {
  2753.       if(aura < 40) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2754.       format(string,sizeof(string),"Preparati! Kame....hame.....haaaaaa!");
  2755.       SendPlayerMessageToAll(playerid,string);
  2756.       GivePlayerMoney(playerid,-40);
  2757.       ApplyAnimationEx(playerid,"BASEBALL","Bat_3",4.1,0,1,1,1,1);
  2758.       CreateExplosionEx(playerid,5,11,5);
  2759.       CreateExplosionEx(playerid,10,11,5);
  2760.       CreateExplosionEx(playerid,15,11,5);
  2761.       CreateExplosionEx(playerid,20,11,5);
  2762.       CreateExplosionEx(playerid,25,7,5);
  2763.       CreateExplosionEx(playerid,30,7,5);
  2764.       CreateExplosionEx(playerid,35,7,5);
  2765.       CreateExplosionEx(playerid,40,7,5);
  2766.       CreateExplosionEx(playerid,45,7,5);
  2767.       CreateExplosionEx(playerid,50,7,5);
  2768.       CreateExplosionEx(playerid,55,7,5);
  2769.       CreateExplosionEx(playerid,60,7,5);
  2770.       CreateExplosionEx(playerid,65,7,5);
  2771.       CreateExplosionEx(playerid,70,7,5);
  2772.       CreateExplosionEx(playerid,75,7,5);
  2773.       CreateExplosionEx(playerid,80,7,5);
  2774.       ShowAttackName(playerid,"~r~Kamehameha MAX Intensita'");
  2775.       return 1;
  2776.     }
  2777.     else if(skin == GOKU2)
  2778.     {
  2779.       if(aura < 35) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2780.       format(string,sizeof(string),"Questa è una Kamehame..haaa!!!");
  2781.       SendPlayerMessageToAll(playerid,string);
  2782.       GivePlayerMoney(playerid,-35);
  2783.       ApplyAnimationEx(playerid,"BASEBALL","Bat_3",4.1,0,1,1,1,1);
  2784.       CreateExplosionEx(playerid,5,11,5);
  2785.       CreateExplosionEx(playerid,10,11,5);
  2786.       CreateExplosionEx(playerid,15,11,15);
  2787.       CreateExplosionEx(playerid,20,11,15);
  2788.       CreateExplosionEx(playerid,25,11,15);
  2789.       CreateExplosionEx(playerid,30,11,15);
  2790.       CreateExplosionEx(playerid,35,7,15);
  2791.       CreateExplosionEx(playerid,40,7,15);
  2792.       CreateExplosionEx(playerid,45,7,15);
  2793.       CreateExplosionEx(playerid,50,7,15);
  2794.       CreateExplosionEx(playerid,55,7,15);
  2795.       CreateExplosionEx(playerid,60,7,15);
  2796.       ShowAttackName(playerid,"~p~Super Kamehameha");
  2797.       return 1;
  2798.     }
  2799.     else if(skin == GELO)
  2800.     {
  2801.       format(string,sizeof(string),"Prendi questo insetto!");
  2802.       SendPlayerMessageToAll(playerid,string);
  2803.       ApplyAnimationEx(playerid,"MISC","KAT_Throw_O",4.1,0,1,1,1,1);
  2804.       CreateExplosionEx(playerid,5,11,5);
  2805.       CreateExplosionEx(playerid,10,11,5);
  2806.       CreateExplosionEx(playerid,15,11,5);
  2807.       CreateExplosionEx(playerid,20,11,5);
  2808.       CreateExplosionEx(playerid,25,11,5);
  2809.       CreateExplosionEx(playerid,30,11,5);
  2810.       CreateExplosionEx(playerid,35,11,5);
  2811.       CreateExplosionEx(playerid,40,11,5);
  2812.       CreateExplosionEx(playerid,45,11,5);
  2813.       CreateExplosionEx(playerid,50,11,5);
  2814.       CreateExplosionEx(playerid,55,11,5);
  2815.       CreateExplosionEx(playerid,60,11,5);
  2816.       ShowAttackName(playerid,"~y~Raggio Energetico");
  2817.       return 1;
  2818.     }
  2819.     else if(skin == C19)
  2820.     {
  2821.       ApplyAnimationEx(playerid,"MISC","KAT_Throw_O",4.1,0,1,1,1,1);
  2822.       format(string,sizeof(string),"Haha!!");
  2823.       SendPlayerMessageToAll(playerid,string);
  2824.       ApplyAnimationEx(playerid,"MISC","KAT_Throw_O",4.1,0,1,1,1,1);
  2825.       CreateExplosionEx(playerid,5,11,5);
  2826.       CreateExplosionEx(playerid,10,11,5);
  2827.       CreateExplosionEx(playerid,15,11,5);
  2828.       CreateExplosionEx(playerid,20,11,5);
  2829.       CreateExplosionEx(playerid,25,11,5);
  2830.       CreateExplosionEx(playerid,30,11,5);
  2831.       CreateExplosionEx(playerid,35,11,5);
  2832.       CreateExplosionEx(playerid,40,11,5);
  2833.       CreateExplosionEx(playerid,45,11,5);
  2834.       CreateExplosionEx(playerid,50,11,5);
  2835.       CreateExplosionEx(playerid,55,11,5);
  2836.       CreateExplosionEx(playerid,60,11,5);
  2837.       ShowAttackName(playerid,"~y~Raggio Energetico");
  2838.       return 1;
  2839.     }
  2840.     else if(skin == C16)
  2841.     {
  2842.       format(string,sizeof(string),"Apertura Cannone In Corso...");
  2843.       SendPlayerMessageToAll(playerid,string);
  2844.       ApplyAnimationEx(playerid,"ROCKET","RocketFire",4.1,0,1,1,1,1);
  2845.       CreateExplosionEx(playerid,15,11,5);
  2846.       CreateExplosionEx(playerid,20,11,5);
  2847.       CreateExplosionEx(playerid,25,7,15);
  2848.       CreateExplosionEx(playerid,30,7,15);
  2849.       CreateExplosionEx(playerid,35,7,15);
  2850.       CreateExplosionEx(playerid,40,7,15);
  2851.       CreateExplosionEx(playerid,45,7,15);
  2852.       CreateExplosionEx(playerid,50,7,15);
  2853.       CreateExplosionEx(playerid,55,7,15);
  2854.       CreateExplosionEx(playerid,60,7,15);
  2855.       CreateExplosionEx(playerid,65,7,15);
  2856.       CreateExplosionEx(playerid,70,7,15);
  2857.       ShowAttackName(playerid,"~y~Lanciarazzi Incorporato");
  2858.       return 1;
  2859.     }
  2860.     else if(skin == C17)
  2861.     {
  2862.       format(string,sizeof(string),"Questo è il colpo di grazia!!");
  2863.       SendPlayerMessageToAll(playerid,string);
  2864.       ApplyAnimationEx(playerid,"SHOP","SHP_Gun_Fire",4.1,0,1,1,1,1);
  2865.       CreateExplosionEx(playerid,30,7,20);
  2866.       CreateExplosionEx(playerid,40,7,20);
  2867.       ShowAttackName(playerid,"~y~Sfere Energetiche");
  2868.       return 1;
  2869.     }
  2870.     else if(skin == C18)
  2871.     {
  2872.       format(string,sizeof(string),"Muori!!!");
  2873.       SendPlayerMessageToAll(playerid,string);
  2874.       ApplyAnimationEx(playerid,"MISC","KAT_Throw_O",4.1,0,1,1,1,1);
  2875.       CreateExplosionEx(playerid,5,11,5);
  2876.       CreateExplosionEx(playerid,10,11,5);
  2877.       CreateExplosionEx(playerid,15,11,5);
  2878.       CreateExplosionEx(playerid,20,11,5);
  2879.       CreateExplosionEx(playerid,25,11,5);
  2880.       CreateExplosionEx(playerid,30,11,5);
  2881.       CreateExplosionEx(playerid,35,11,5);
  2882.       CreateExplosionEx(playerid,40,11,5);
  2883.       CreateExplosionEx(playerid,45,11,5);
  2884.       CreateExplosionEx(playerid,50,11,5);
  2885.       CreateExplosionEx(playerid,55,11,5);
  2886.       CreateExplosionEx(playerid,60,11,5);
  2887.       ShowAttackName(playerid,"~y~Raggio Energetico");
  2888.       return 1;
  2889.     }
  2890.     else if(skin == GOKU3)
  2891.     {
  2892.       if(aura < 40) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2893.       format(string,sizeof(string),"Kame..........hame.....haaaaaa!");
  2894.       SendPlayerMessageToAll(playerid,string);
  2895.       GivePlayerMoney(playerid,-40);
  2896.       ApplyAnimationEx(playerid,"BASEBALL","Bat_3",4.1,0,1,1,1,1);
  2897.       CreateExplosionEx(playerid,5,11,5);
  2898.       CreateExplosionEx(playerid,10,11,5);
  2899.       CreateExplosionEx(playerid,15,11,5);
  2900.       CreateExplosionEx(playerid,20,11,5);
  2901.       CreateExplosionEx(playerid,25,7,5);
  2902.       CreateExplosionEx(playerid,30,7,5);
  2903.       CreateExplosionEx(playerid,35,7,5);
  2904.       CreateExplosionEx(playerid,40,7,5);
  2905.       CreateExplosionEx(playerid,45,7,5);
  2906.       CreateExplosionEx(playerid,50,7,5);
  2907.       CreateExplosionEx(playerid,55,7,5);
  2908.       CreateExplosionEx(playerid,60,7,5);
  2909.       CreateExplosionEx(playerid,65,7,5);
  2910.       CreateExplosionEx(playerid,70,7,5);
  2911.       CreateExplosionEx(playerid,75,7,5);
  2912.       CreateExplosionEx(playerid,80,7,5);
  2913.       ShowAttackName(playerid,"~r~Kamehameha MAX Intensita'");
  2914.       return 1;
  2915.     }
  2916.     else if(skin == VEGEKU0)
  2917.     {
  2918.       if(aura < 40) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2919.       format(string,sizeof(string),"Lampooo Finaleee!!!");
  2920.       SendPlayerMessageToAll(playerid,string);
  2921.       GivePlayerMoney(playerid,-40);
  2922.       ApplyAnimationEx(playerid,"PED","ARRESTgun",4.1,0,1,1,1,1);
  2923.       CreateExplosionEx(playerid,5,11,5);
  2924.       CreateExplosionEx(playerid,10,11,5);
  2925.       CreateExplosionEx(playerid,15,11,5);
  2926.       CreateExplosionEx(playerid,20,11,5);
  2927.       CreateExplosionEx(playerid,25,7,5);
  2928.       CreateExplosionEx(playerid,30,7,5);
  2929.       CreateExplosionEx(playerid,35,7,5);
  2930.       CreateExplosionEx(playerid,40,7,5);
  2931.       CreateExplosionEx(playerid,45,7,5);
  2932.       CreateExplosionEx(playerid,50,7,5);
  2933.       CreateExplosionEx(playerid,55,7,5);
  2934.       CreateExplosionEx(playerid,60,7,5);
  2935.       CreateExplosionEx(playerid,65,7,5);
  2936.       CreateExplosionEx(playerid,70,7,5);
  2937.       CreateExplosionEx(playerid,75,7,5);
  2938.       CreateExplosionEx(playerid,80,7,5);
  2939.       CreateExplosionEx(playerid,85,7,5);
  2940.       CreateExplosionEx(playerid,90,7,5);
  2941.       ShowAttackName(playerid,"~g~Lampo Finale");
  2942.       return 1;
  2943.     }
  2944.     else if(skin == SATAN)
  2945.     {
  2946.       if(aura < 15) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2947.       GivePlayerMoney(playerid,-15);
  2948.       ApplyAnimationEx(playerid,"POLICE","CopTraf_Stop",4.1,0,1,1,1,1);
  2949.       format(string,sizeof(string),"Ha ha ha haaa!");
  2950.       SendPlayerMessageToAll(playerid,string);
  2951.       CreateExplosionEx(playerid,10,11,2);
  2952.       ShowAttackName(playerid,"~w~Il Campione");
  2953.       return 1;
  2954.     }
  2955.     else if(skin == VIDEL)
  2956.     {
  2957.       if(aura < 20) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2958.       format(string,sizeof(string),"Prendi questa!!!");
  2959.       SendPlayerMessageToAll(playerid,string);
  2960.       GivePlayerMoney(playerid,-20);
  2961.       ApplyAnimationEx(playerid,"POLICE","CopTraf_Stop",4.1,0,1,1,1,1);
  2962.       CreateExplosionEx(playerid,20,11,10);
  2963.       ShowAttackName(playerid,"~w~Gran Bomba D'Aura");
  2964.       return 1;
  2965.     }
  2966.     else if(skin == VEGEKU1)
  2967.     {
  2968.       if(aura < 90) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2969.       format(string,sizeof(string),"Di le tue preghiere!! Kamehameha Finaleee!!!");
  2970.       SendPlayerMessageToAll(playerid,string);
  2971.       GivePlayerMoney(playerid,-90);
  2972.       ApplyAnimationEx(playerid,"BASEBALL","Bat_3",4.1,0,1,1,1,1);
  2973.       CreateExplosionEx(playerid,5,11,5);
  2974.       CreateExplosionEx(playerid,10,11,5);
  2975.       CreateExplosionEx(playerid,15,11,5);
  2976.       CreateExplosionEx(playerid,20,11,15);
  2977.       CreateExplosionEx(playerid,25,7,15);
  2978.       CreateExplosionEx(playerid,30,7,25);
  2979.       CreateExplosionEx(playerid,35,7,35);
  2980.       CreateExplosionEx(playerid,40,7,35);
  2981.       CreateExplosionEx(playerid,45,7,45);
  2982.       CreateExplosionEx(playerid,50,7,45);
  2983.       CreateExplosionEx(playerid,55,7,55);
  2984.       CreateExplosionEx(playerid,60,7,75);
  2985.       CreateExplosionEx(playerid,65,7,75);
  2986.       CreateExplosionEx(playerid,70,7,75);
  2987.       CreateExplosionEx(playerid,75,7,75);
  2988.       CreateExplosionEx(playerid,80,7,75);
  2989.       CreateExplosionEx(playerid,85,7,75);
  2990.       CreateExplosionEx(playerid,90,7,100);
  2991.       CreateExplosionEx(playerid,95,7,100);
  2992.       CreateExplosionEx(playerid,100,7,100);
  2993.       ShowAttackName(playerid,"~b~Kamehameha Finale");
  2994.       return 1;
  2995.     }
  2996.     else if(skin == GOGETA)
  2997.     {
  2998.       if(aura < 90) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  2999.       format(string,sizeof(string),"Sparisci Dal Pianeta!! Kamehameha Big Bang!!!");
  3000.       SendPlayerMessageToAll(playerid,string);
  3001.       GivePlayerMoney(playerid,-90);
  3002.       ApplyAnimationEx(playerid,"BASEBALL","Bat_3",4.1,0,1,1,1,1);
  3003.       CreateExplosionEx(playerid,5,12,1);
  3004.       CreateExplosionEx(playerid,7,12,1);
  3005.       CreateExplosionEx(playerid,10,12,1);
  3006.       CreateExplosionEx(playerid,12,12,1);
  3007.       CreateExplosionEx(playerid,15,12,1);
  3008.       CreateExplosionEx(playerid,17,12,1);
  3009.       CreateExplosionEx(playerid,20,12,1);
  3010.       CreateExplosionEx(playerid,22,12,1);
  3011.       CreateExplosionEx(playerid,25,12,1);
  3012.       CreateExplosionEx(playerid,27,12,1);
  3013.       CreateExplosionEx(playerid,30,12,1);
  3014.       CreateExplosionEx(playerid,32,12,1);
  3015.       CreateExplosionEx(playerid,35,12,1);
  3016.       CreateExplosionEx(playerid,37,12,1);
  3017.       CreateExplosionEx(playerid,40,12,2);
  3018.       CreateExplosionEx(playerid,42,12,2);
  3019.       CreateExplosionEx(playerid,45,12,2);
  3020.       CreateExplosionEx(playerid,47,12,2);
  3021.       CreateExplosionEx(playerid,50,7,100);
  3022.       CreateExplosionEx(playerid,52,7,100);
  3023.       CreateExplosionEx(playerid,55,7,100);
  3024.       CreateExplosionEx(playerid,57,7,100);
  3025.       CreateExplosionEx(playerid,60,7,100);
  3026.       CreateExplosionEx(playerid,62,7,100);
  3027.       CreateExplosionEx(playerid,65,7,100);
  3028.       CreateExplosionEx(playerid,67,7,100);
  3029.       CreateExplosionEx(playerid,70,7,100);
  3030.       ShowAttackName(playerid,"~b~Kamehameha Big Bang");
  3031.       return 1;
  3032.     }
  3033.   }
  3034.   PlaySound(playerid, SOUND_AMMUNATION_BUY_WEAPON_DENIED);
  3035.   return SendClientMessage(playerid,COLOR_YELLOW,"ERRORE: Personaggio non valido. Avvisare programmatore.");
  3036. }
  3037.  
  3038.     if (strcmp(cmdtext, "/afk", true) == 0)
  3039.     {
  3040.       new name[MAX_PLAYER_NAME];
  3041.       new string[256];
  3042.       TogglePlayerControllable(playerid,0);
  3043.       GetPlayerName(playerid,name,sizeof(name));
  3044.       format(string, sizeof(string),"%s è in stato \"non al computer\"(/afk).", name);
  3045.       SendClientMessageToAll(COLOR_ADMIN, string);
  3046.       PlaySound(playerid, SOUND_RACE_GO);
  3047.       return 1;
  3048.     }
  3049.  
  3050.     if (strcmp(cmdtext, "/back", true) == 0)
  3051.     {
  3052.       new name[MAX_PLAYER_NAME];
  3053.       new string[256];
  3054.       TogglePlayerControllable(playerid,1);
  3055.       GetPlayerName(playerid,name,sizeof(name));
  3056.       format(string, sizeof(string),"%s è tornato in stato attivo(/back).", name);
  3057.       SendClientMessageToAll(COLOR_ADMIN, string);
  3058.       PlaySound(playerid, SOUND_RACE_GO);
  3059.       return 1;
  3060.     }
  3061.  
  3062. //________________________________________________________COMANDI_ADMIN_______________________________________________________________________
  3063.  
  3064.   if(strfind(cmd, "/ah", true) != null)
  3065.   {
  3066.     if(AdminLevel[playerid] == GIOCATORE) return SendClientMessage(playerid,COLOR_RED,DENY_MESSAGE);
  3067.     SendClientMessage(playerid, COLOR_ADMIN,"__________________ADMIN_HELP__________________");
  3068.     if(AdminLevel[playerid] >= MODERATORE)
  3069.     {
  3070.       SendClientMessage(playerid, COLOR_ADMIN,"/kick, /ban, /a, /mute, /unmute,");
  3071.       SendClientMessage(playerid, COLOR_ADMIN,"/freeze, /unfreeze,");
  3072.       SendClientMessage(playerid, COLOR_ADMIN,"/slap, /goto, /bring.");
  3073.     }
  3074.     if(AdminLevel[playerid] >= ADMINSECONDARIO)
  3075.     {
  3076.       SendClientMessage(playerid, COLOR_ADMIN,"/asay, /cc, /sethealth, /setskin,");
  3077.       SendClientMessage(playerid, COLOR_ADMIN,"/jail, /unjail, /explode, /restart.");
  3078.     }
  3079.     if(AdminLevel[playerid] >= ADMIN)
  3080.     {
  3081.       SendClientMessage(playerid, COLOR_ADMIN,"/exit, /musica, /kickall,");
  3082.       SendClientMessage(playerid, COLOR_ADMIN,"/kickplayers, /kickallbutme.");
  3083.     }
  3084.     if(AdminLevel[playerid] >= DEBUGGER)
  3085.     {
  3086.       SendClientMessage(playerid, COLOR_ADMIN,"/savepos, /stiletesto, /esplosione.");
  3087.       SendClientMessage(playerid, COLOR_ADMIN,"______________________________________________");
  3088.     }
  3089.     PlaySound(playerid, SOUND_RACE_GO);
  3090.     return 1;
  3091.   }
  3092.  
  3093.   if(strcmp(cmd,"/exit", true) == 0)
  3094.   {
  3095.     if(AdminLevel[playerid] < ADMIN) return SendClientMessage(playerid,COLOR_RED,DENY_MESSAGE);
  3096.     SendRconCommand("exit");
  3097.     SendClientMessageToAll(COLOR_RED,"Server chiuso a tutti i giocatori e admin.");
  3098.     return 1;
  3099.   }
  3100.        if(strcmp(cmd,"/musica", true) == 0)
  3101.        {
  3102.          if(AdminLevel[playerid] < ADMIN) return SendClientMessage(playerid,COLOR_RED,DENY_MESSAGE);
  3103.          new x_nr[256];
  3104.          x_nr = strtok(cmdtext, idx);
  3105.          new temp = strval(x_nr);
  3106.          if(!strval(x_nr)) return SendClientMessage(playerid,COLOR_YELLOW,"USO: /musica [0-8].");
  3107.          if(temp > 8 || temp < 1) return SendClientMessage(playerid,COLOR_YELLOW,"USO: /musica [0-8].");
  3108.          if(strcmp(x_nr,"0",true) == 0) PlaySound(playerid, SOUND_AWARD_TRACK_STOP);
  3109.          if(strcmp(x_nr,"1",true) == 0) PlaySound(playerid, SOUND_DUAL_TRACK_START);
  3110.          if(strcmp(x_nr,"2",true) == 0) PlaySound(playerid, SOUND_BEE_TRACK_START);
  3111.          if(strcmp(x_nr,"3",true) == 0) PlaySound(playerid, SOUND_AWARD_TRACK_START);
  3112.          if(strcmp(x_nr,"4",true) == 0) PlaySound(playerid, SOUND_DRIVING_AWARD_TRACK_START);
  3113.          if(strcmp(x_nr,"5",true) == 0) PlaySound(playerid, SOUND_BIKE_AWARD_TRACK_START);
  3114.          if(strcmp(x_nr,"6",true) == 0) PlaySound(playerid, SOUND_PILOT_AWARD_TRACK_START);
  3115.          if(strcmp(x_nr,"7",true) == 0) PlaySound(playerid, SOUND_GOGO_TRACK_START);
  3116.          if(strcmp(x_nr,"8",true) == 0) PlaySound(playerid, SOUND_OTB_TRACK_START);
  3117.          return 1;
  3118.         }
  3119.  
  3120.     if(strcmp(cmd, "/cc", true) == 0)
  3121.     {
  3122.       if(AdminLevel[playerid] < ADMINSECONDARIO) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
  3123.       SendClientMessageToAll(COLOR_ADMIN,"\n");
  3124.       SendClientMessageToAll(COLOR_ADMIN,"\n");
  3125.       SendClientMessageToAll(COLOR_ADMIN,"\n");
  3126.       SendClientMessageToAll(COLOR_ADMIN,"\n");
  3127.       SendClientMessageToAll(COLOR_ADMIN,"\n");
  3128.       SendClientMessageToAll(COLOR_ADMIN,"\n");
  3129.       SendClientMessageToAll(COLOR_ADMIN,"\n");
  3130.       SendClientMessageToAll(COLOR_ADMIN,"\n");
  3131.       SendClientMessageToAll(COLOR_ADMIN,"\n");
  3132.       SendClientMessageToAll(COLOR_ADMIN,"\n");
  3133.       GameTextForAll("~b~CHAT SVUOTATA!",2000,5);
  3134.       PlaySound(playerid, SOUND_RACE_GO);
  3135.       return 1;
  3136.     }
  3137.  
  3138.     if(strcmp(cmd, "/esplosione", true) == 0)
  3139.     {
  3140.       if(AdminLevel[playerid] < DEBUGGER) return SendClientMessage(playerid, COLOR_RED, "COMANDO DEBUG!");
  3141.       tmp = strtok(cmdtext,idx);
  3142.       new type = strval(tmp);
  3143.       CreateExplosionEx(playerid,10,type,0.1);
  3144.       PlaySound(playerid, SOUND_RACE_GO);
  3145.       return 1;
  3146.     }
  3147.  
  3148.     if(strcmp(cmd, "/stiletesto", true) == 0)
  3149.     {
  3150.       if(AdminLevel[playerid] < DEBUGGER) return SendClientMessage(playerid, COLOR_RED, "COMANDO DEBUG!");
  3151.       tmp = strtok(cmdtext,idx);
  3152.       new style = strval(tmp);
  3153.       GameTextForPlayer(playerid,"PROVA",1000,style);
  3154.       PlaySound(playerid, SOUND_RACE_GO);
  3155.       return 1;
  3156.     }
  3157.  
  3158.     if(strcmp(cmd, "/savepos", true) == 0)
  3159.     {
  3160.       if(AdminLevel[playerid] < DEBUGGER) return SendClientMessage(playerid, COLOR_RED, "COMANDO DEBUG!");
  3161.       new Float:x, Float:y, Float:z, Float:Zangle, Float:angle;
  3162.       new vehicleid = GetPlayerVehicleID(playerid);
  3163.       GetPlayerPos(playerid,x,y,z);
  3164.       GetPlayerFacingAngle(playerid,angle);
  3165.       GetVehicleZAngle(vehicleid, Zangle);
  3166.       SendClientMessage(playerid,COLOR_YELLOW,"Posizione Salvata.");
  3167.       print("    ");
  3168.       print("__________________________________________________");
  3169.       print("________________POSIZIONE_SALVATA_________________");
  3170.       if(!IsPlayerInAnyVehicle(playerid)) printf("%f,%f,%f,%f",x,y,z,angle);
  3171.       if(IsPlayerInAnyVehicle(playerid)) printf("CreateVehicle(MOD,%f,%f,%f,%f,CO1,CO2,1000000)",x,y,z,Zangle);
  3172.       printf("Interior: %d",GetPlayerInterior(playerid));
  3173.       print("    ");
  3174.       PlaySound(playerid, SOUND_RACE_GO);
  3175.       return 1;
  3176.     }
  3177.  
  3178.     if(strcmp(cmd, "/setskin", true) == 0)
  3179.     {
  3180.         if(AdminLevel[playerid] < ADMINSECONDARIO) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
  3181.         new tmp2[256];
  3182.         tmp = strtok(cmdtext, idx);
  3183.         new otherplayer = strval(tmp);
  3184.         tmp2 = strtok(cmdtext, idx);
  3185.         new skin = strval(tmp2);
  3186.         if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_WHITE, "USO: /setskin [playerid] [skinid].");
  3187.         if(!strlen(tmp2)) return SendClientMessage(playerid, COLOR_WHITE, "USO: /setskin [playerid] [skinid].");
  3188.         if(!IsPlayerConnected(otherplayer)) return SendClientMessage(playerid, COLOR_WHITE, "Invalid Player ID.");
  3189.         SetPlayerSkin(otherplayer, skin);
  3190.         SendClientMessage(otherplayer, COLOR_WHITE, "Un admin ti ha cambiato skin.");
  3191.         PlaySound(playerid, SOUND_RACE_GO);
  3192.         return 1;
  3193.     }
  3194.  
  3195.     if(strcmp(cmd, "/restart", true) == 0)
  3196.     {
  3197.       if(AdminLevel[playerid] < ADMINSECONDARIO) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
  3198.       GameTextForAll("RESTART GAMEMODE. ATTENDI CONNESSO PER FAVORE.",10000,1);
  3199.       GameModeExit();
  3200.       PlaySound(playerid, SOUND_RACE_GO);
  3201.       return 1;
  3202.     }
  3203.  
  3204.     if(strcmp(cmd, "/ban", true) == 0)
  3205.     {
  3206.       if(AdminLevel[playerid] < MODERATORE) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
  3207.       tmp = strtok(cmdtext, idx);
  3208.       if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_YELLOW, "USO: /ban [playerid].");
  3209.       new playerid2;
  3210.       playerid2 = strval(tmp);
  3211.       new string[256];
  3212.       new name[MAX_PLAYER_NAME];
  3213.       new name2[MAX_PLAYER_NAME];
  3214.       SetPlayerPos(playerid2,PrigioneX,PrigioneY,PrigioneZ);
  3215.       SetPlayerInterior(playerid2,6);
  3216.       GetPlayerName(playerid,name,sizeof(name));
  3217.       GetPlayerName(playerid2,name2,sizeof(name2));
  3218.       format(string,sizeof(string),"L'admin %s(%d) ha bannato il giocatore %s(%d).",name,playerid,name2,playerid2);
  3219.       SendClientMessageToAll(COLOR_KICK/BAN,string);
  3220.       print(string);
  3221.       format(string,sizeof(string),"Sei stato bannato dall'admin %s(%d).",name,playerid);
  3222.       SendClientMessage(playerid2,COLOR_KICK/BAN,string);
  3223.       format(string,sizeof(string),"Hai bannato il giocatore %s(%d).",name2,playerid2);
  3224.       SendClientMessage(playerid,COLOR_KICK/BAN,string);
  3225.       format(string,sizeof(string),"ADMIN BAN(%s)",name);
  3226.       GameTextForPlayer(playerid,"ORA SEI DISCONNESSO. /Q PER USCIRE DAL GIOCO.",300000,5);
  3227.       BanEx(playerid2,string);
  3228.       PlaySound(playerid, SOUND_RACE_GO);
  3229.       return 1;
  3230.     }
  3231.  
  3232.     if(strcmp(cmd, "/kickplayers", true) == 0)
  3233.     {
  3234.       new name[24];
  3235.       new string[256];
  3236.       if(AdminLevel[playerid] < ADMIN) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
  3237.       for(new i=0;i<MAX_PLAYERS;i++)
  3238.       {
  3239.         if(i != playerid && AdminLevel[i] < MODERATORE && !IsPlayerNPC(i))
  3240.         {
  3241.           GetPlayerName(playerid,name,sizeof(name));
  3242.           format(string,sizeof(string),"L'admin %s ha kickato tutti i giocatori normali.",name);
  3243.           SendClientMessageToAll(COLOR_KICK/BAN,string);
  3244.           print(string);
  3245.           Kick(i);
  3246.         }
  3247.       }
  3248.       PlaySound(playerid, SOUND_RACE_GO);
  3249.       return 1;
  3250.     }
  3251.  
  3252.     if(strcmp(cmd, "/kickallbutme", true) == 0)
  3253.     {
  3254.       new name[24];
  3255.       new string[256];
  3256.       if(AdminLevel[playerid] < ADMIN) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
  3257.       for(new i=0;i<MAX_PLAYERS;i++)
  3258.       {
  3259.         if(i != playerid)
  3260.         {
  3261.           GetPlayerName(playerid,name,sizeof(name));
  3262.           format(string,sizeof(string),"L'admin %s ha kickato tutti escluso se stesso.",name);
  3263.           SendClientMessageToAll(COLOR_KICK/BAN,string);
  3264.           print(string);
  3265.           Kick(i);
  3266.         }
  3267.       }
  3268.       PlaySound(playerid, SOUND_RACE_GO);
  3269.       return 1;
  3270.     }
  3271.  
  3272.     if(strcmp(cmd, "/kickall", true) == 0)
  3273.     {
  3274.       new name[24];
  3275.       new string[256];
  3276.       if(AdminLevel[playerid] < ADMIN) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
  3277.       for(new i=0;i<MAX_PLAYERS;i++)
  3278.       {
  3279.           GetPlayerName(playerid,name,sizeof(name));
  3280.           format(string,sizeof(string),"L'admin %s ha kickato tutti incluso se stesso.",name);
  3281.           SendClientMessageToAll(COLOR_KICK/BAN,string);
  3282.           print(string);
  3283.           Kick(i);
  3284.       }
  3285.       PlaySound(playerid, SOUND_RACE_GO);
  3286.       return 1;
  3287.     }
  3288.  
  3289.     if(strcmp(cmd, "/kick", true) == 0)
  3290.     {
  3291.       if(AdminLevel[playerid] < MODERATORE) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
  3292.       tmp = strtok(cmdtext, idx);
  3293.       if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_YELLOW, "USO: /kick [playerid].");
  3294.       new playerid2;
  3295.       playerid2 = strval(tmp);
  3296.       new string[256];
  3297.       SetPlayerPos(playerid2,PrigioneX,PrigioneY,PrigioneZ);
  3298.       SetPlayerInterior(playerid2,6);
  3299.       new name[MAX_PLAYER_NAME];
  3300.       new name2[MAX_PLAYER_NAME];
  3301.       GetPlayerName(playerid,name,sizeof(name));
  3302.       GetPlayerName(playerid2,name2,sizeof(name2));
  3303.       format(string,sizeof(string),"L'admin %s(%d) ha kickato il giocatore %s(%d).",name,playerid,name2,playerid2);
  3304.       SendClientMessageToAll(COLOR_KICK/BAN,string);
  3305.       print(string);
  3306.       format(string,sizeof(string),"Sei stato kickato dall'admin %s(%d).",name,playerid);
  3307.       SendClientMessage(playerid2,COLOR_KICK/BAN,string);
  3308.       format(string,sizeof(string),"Hai kickato il giocatore %s(%d).",name2,playerid2);
  3309.       SendClientMessage(playerid,COLOR_KICK/BAN,string);
  3310.       GameTextForPlayer(playerid,"ORA SEI DISCONNESSO. /Q PER USCIRE DAL GIOCO.",300000,5);
  3311.       Kick(playerid2);
  3312.       PlaySound(playerid, SOUND_RACE_GO);
  3313.       return 1;
  3314.     }
  3315.  
  3316.     if(strcmp(cmd, "/votekick", true) == 0)
  3317.     {
  3318.       new string[256];
  3319.       tmp = strtok(cmdtext, idx);
  3320.       if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_YELLOW, "USO: /votekick [playerid].");
  3321.       new playerid2;
  3322.       playerid2 = strval(tmp);
  3323.       new name[MAX_PLAYER_NAME];
  3324.       new name2[MAX_PLAYER_NAME];
  3325.       GetPlayerName(playerid,name,sizeof(name));
  3326.       GetPlayerName(playerid2,name2,sizeof(name2));
  3327.       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);
  3328.       SendClientMessageToAll(COLOR_KICK/BAN,string);
  3329.       print(string);
  3330.       format(string,sizeof(string),"Il giocatore %s(%d) vota per il tuo kick. Con %d voti totali verrai kickato.",name,playerid,MAX_VOTES);
  3331.       SendClientMessage(playerid2,COLOR_KICK/BAN,string);
  3332.       format(string,sizeof(string),"Hai votato per il kick del giocatore %s(%d). Con %d voti totali verrà kickato.",name2,playerid2,MAX_VOTES);
  3333.       SendClientMessage(playerid,COLOR_KICK/BAN,string);
  3334.       PlaySound(playerid, SOUND_RACE_GO);
  3335.       VoteKick[playerid2] ++;
  3336.       if(VoteKick[playerid2] >= MAX_VOTES)
  3337.       {
  3338.         SetPlayerPos(playerid2,PrigioneX,PrigioneY,PrigioneZ);
  3339.         SetPlayerInterior(playerid2,6);
  3340.         GameTextForPlayer(playerid,"ORA SEI DISCONNESSO. /Q PER USCIRE DAL GIOCO.",300000,5);
  3341.         format(string,sizeof(string),"Il server ha kickato il giocatore %s(%d) per %d voti contro di lui.",name2,playerid2,MAX_VOTES);
  3342.         SendClientMessageToAll(COLOR_KICK/BAN,string);
  3343.         print(string);
  3344.         format(string,sizeof(string),"Sei stato kickato dal server per aver ricevuto %d voti kick contro te.",MAX_VOTES);
  3345.         SendClientMessage(playerid2,COLOR_KICK/BAN,string);
  3346.         Kick(playerid2);
  3347.       }
  3348.       return 1;
  3349.     }
  3350.  
  3351.     if(strcmp(cmd, "/fakekick", true) == 0)
  3352.     {
  3353.       SendClientMessageToAll(0xFF0000AA,"Server closed the connection.");
  3354.       PlaySound(playerid, SOUND_RACE_GO);
  3355.       CreateExplosionEx(playerid,0,12,10);
  3356.       return 1;
  3357.     }
  3358.  
  3359.     if(strcmp(cmd, "/goto", true) == 0)
  3360.     {
  3361.       if(AdminLevel[playerid] < MODERATORE) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
  3362.       tmp = strtok(cmdtext, idx);
  3363.       if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_YELLOW, "USO: /goto [playerid].");
  3364.       new playerid2;
  3365.       playerid2 = strval(tmp);
  3366.       new string[256];
  3367.       new name[MAX_PLAYER_NAME];
  3368.       new name2[MAX_PLAYER_NAME];
  3369.       new Float:x, Float:y, Float:z;
  3370.       GetPlayerName(playerid,name,sizeof(name));
  3371.       GetPlayerName(playerid2,name2,sizeof(name2));
  3372.       format(string,sizeof(string),"l'admin %s(%d) si è teletrasportato da te.",name,playerid);
  3373.       SendClientMessage(playerid2,COLOR_RED,string);
  3374.       format(string,sizeof(string),"ti sei teletrasportato dal giocatore %s(%d).",name2,playerid2);
  3375.       SendClientMessage(playerid,COLOR_RED,string);
  3376.       GetPlayerPos(playerid2,x,y,z);
  3377.       SetPlayerPos(playerid,x+1,y+1,z);
  3378.       PlaySound(playerid, SOUND_RACE_GO);
  3379.       return 1;
  3380.     }
  3381.    
  3382.     if(strcmp(cmd, "/bring", true) == 0)
  3383.     {
  3384.       if(AdminLevel[playerid] < MODERATORE) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
  3385.       tmp = strtok(cmdtext, idx);
  3386.       if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_YELLOW, "USO: /goto [playerid].");
  3387.       new playerid2;
  3388.       playerid2 = strval(tmp);
  3389.       new string[256];
  3390.       new name[MAX_PLAYER_NAME];
  3391.       new name2[MAX_PLAYER_NAME];
  3392.       new Float:x, Float:y, Float:z;
  3393.       GetPlayerName(playerid,name,sizeof(name));
  3394.       GetPlayerName(playerid2,name2,sizeof(name2));
  3395.       format(string,sizeof(string),"L'admin %s(%d) ti ha teletrasportato da lui.",name,playerid);
  3396.       SendClientMessage(playerid2,COLOR_RED,string);
  3397.       format(string,sizeof(string),"Hai teletrasportato il giocatore %s(%d) da te.",name2,playerid2);
  3398.       SendClientMessage(playerid,COLOR_RED,string);
  3399.       GetPlayerPos(playerid,x,y,z);
  3400.       SetPlayerPos(playerid2,x+1,y+1,z);
  3401.       PlaySound(playerid, SOUND_RACE_GO);
  3402.       return 1;
  3403.     }
  3404.  
  3405.     if(strcmp(cmd, "/slap", true) == 0)
  3406.     {
  3407.       if(AdminLevel[playerid] < MODERATORE) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
  3408.       tmp = strtok(cmdtext, idx);
  3409.       if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_YELLOW, "USO: /slap [playerid].");
  3410.       new playerid2;
  3411.       playerid2 = strval(tmp);
  3412.       new string[256];
  3413.       new name[MAX_PLAYER_NAME];
  3414.       new name2[MAX_PLAYER_NAME];
  3415.       new Float:x, Float:y, Float:z;
  3416.       GetPlayerName(playerid,name,sizeof(name));
  3417.       GetPlayerName(playerid2,name2,sizeof(name2));
  3418.       format(string,sizeof(string),"Sei stato slappato dall'admin %s(%d).",name,playerid);
  3419.       SendClientMessage(playerid2,COLOR_RED,string);
  3420.       format(string,sizeof(string),"Hai slappato il giocatore %s(%d).",name2,playerid2);
  3421.       SendClientMessage(playerid,COLOR_RED,string);
  3422.       GetPlayerPos(playerid2,x,y,z);
  3423.       SetPlayerPos(playerid2,x,y,z+5);
  3424.       PlaySound(playerid, SOUND_RACE_GO);
  3425.       return 1;
  3426.     }
  3427.  
  3428.     if(strcmp(cmd, "/mute", true) == 0)
  3429.     {
  3430.       if(AdminLevel[playerid] < MODERATORE) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
  3431.       tmp = strtok(cmdtext, idx);
  3432.       if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_YELLOW, "USO: /mute [playerid].");
  3433.       new playerid2;
  3434.       playerid2 = strval(tmp);
  3435.       new string[256];
  3436.       new name[MAX_PLAYER_NAME];
  3437.       new name2[MAX_PLAYER_NAME];
  3438.       GetPlayerName(playerid,name,sizeof(name));
  3439.       GetPlayerName(playerid2,name2,sizeof(name2));
  3440.       format(string,sizeof(string),"L'admin %s(%d) ha mutato il giocatore %s(%d).",name,playerid,name2,playerid2);
  3441.       print(string);
  3442.       format(string,sizeof(string),"Sei stato mutato dall'admin %s(%d).",name,playerid);
  3443.       SendClientMessage(playerid2,COLOR_RED,string);
  3444.       format(string,sizeof(string),"Hai mutato il giocatore %s(%d).",name2,playerid2);
  3445.       SendClientMessage(playerid,COLOR_RED,string);
  3446.       muted[playerid2] = 1;
  3447.       PlaySound(playerid, SOUND_RACE_GO);
  3448.       return 1;
  3449.     }
  3450.  
  3451.     if(strcmp(cmd, "/unmute", true) == 0)
  3452.     {
  3453.       if(AdminLevel[playerid] < MODERATORE) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
  3454.       tmp = strtok(cmdtext, idx);
  3455.       if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_YELLOW, "USO: /unmute [playerid].");
  3456.       new playerid2;
  3457.       playerid2 = strval(tmp);
  3458.       new string[256];
  3459.       new name[MAX_PLAYER_NAME];
  3460.       new name2[MAX_PLAYER_NAME];
  3461.       GetPlayerName(playerid,name,sizeof(name));
  3462.       GetPlayerName(playerid2,name2,sizeof(name2));
  3463.       format(string,sizeof(string),"L'admin %s(%d) ha unmutato il giocatore %s(%d).",name,playerid,name2,playerid2);
  3464.       print(string);
  3465.       format(string,sizeof(string),"Sei stato unmutato dall'admin %s(%d).",name,playerid);
  3466.       SendClientMessage(playerid2,COLOR_RED,string);
  3467.       format(string,sizeof(string),"Hai unmutato il giocatore %s(%d).",name2,playerid2);
  3468.       SendClientMessage(playerid,COLOR_RED,string);
  3469.       muted[playerid2] = 0;
  3470.       PlaySound(playerid, SOUND_RACE_GO);
  3471.       return 1;
  3472.     }
  3473.  
  3474.     if(strcmp(cmd, "/a", true) == 0)
  3475.     {
  3476.         if(AdminLevel[playerid] == GIOCATORE) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
  3477.         PlaySound(playerid, SOUND_RACE_GO);
  3478.         GetPlayerName(playerid, sendername, sizeof(sendername));
  3479.         new length = strlen(cmdtext);
  3480.         while ((idx < length) && (cmdtext[idx] <= ' '))
  3481.         {
  3482.             idx++;
  3483.         }
  3484.         new offset = idx;
  3485.         new result[64];
  3486.         while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  3487.         {
  3488.             result[idx - offset] = cmdtext[idx];
  3489.             idx++;
  3490.         }
  3491.         result[idx - offset] = EOS;
  3492.         if(!strlen(result))
  3493.         {
  3494.             SendClientMessage(playerid, COLOR_YELLOW, "USO: /a [testo].");
  3495.             return 1;
  3496.         }
  3497.         if(AdminLevel[playerid] != GIOCATORE)
  3498.         {
  3499.             new string[256];
  3500.             format(string, sizeof(string), "[CHAT MODERATORI]%s: %s", sendername, result);
  3501.             SendMessageToAdmins(COLOR_ADMIN,string);
  3502.             return 1;
  3503.         }
  3504.     }
  3505.  
  3506.     if(strcmp(cmd, "/report", true) == 0)
  3507.     {
  3508.         new string[256];
  3509.         GetPlayerName(playerid, sendername, sizeof(sendername));
  3510.         tmp = strtok(cmdtext,idx);
  3511.         PlaySound(playerid, SOUND_RACE_GO);
  3512.         new player2 = strval(tmp);
  3513.         GetPlayerName(player2, giveplayer, sizeof(giveplayer));
  3514.         new length = strlen(cmdtext);
  3515.         while ((idx < length) && (cmdtext[idx] <= ' '))
  3516.         {
  3517.             idx++;
  3518.         }
  3519.         new offset = idx;
  3520.         new result[64];
  3521.         while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  3522.         {
  3523.             result[idx - offset] = cmdtext[idx];
  3524.             idx++;
  3525.         }
  3526.         result[idx - offset] = EOS;
  3527.         if(!strlen(result)) return SendClientMessage(playerid, COLOR_YELLOW, "USO: /report [playerid] [reason].");
  3528.         if(!strval(tmp)) return SendClientMessage(playerid, COLOR_YELLOW, "USO: /report [playerid] [reason].");
  3529.         if(!IsPlayerConnected(player2)) return SendClientMessage(playerid, COLOR_YELLOW, "Giocatore non connesso.");
  3530.         if(IsPlayerNPC(player2)) return SendClientMessage(playerid, COLOR_YELLOW, "I NPC non possono essere reportati!");
  3531.         format(string, sizeof(string), "Report da %s su di %s: %s", sendername, giveplayer, result);
  3532.         SendMessageToAdmins(COLOR_ADMIN,string);
  3533.         SendClientMessage(playerid, COLOR_RED, "Report inviato ai moderatori.");
  3534.         return 1;
  3535.     }
  3536.  
  3537.     if(strcmp(cmd, "/sethealth", true) == 0)
  3538.     {
  3539.         if(AdminLevel[playerid] < ADMINSECONDARIO) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
  3540.         tmp = strtok(cmdtext, idx);
  3541.         if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_YELLOW, "USO: /sethealth [playerid] [quantità].");
  3542.         new playa;
  3543.         new Float:health;
  3544.         playa = strval(tmp);
  3545.         tmp = strtok(cmdtext, idx);
  3546.         PlaySound(playerid, SOUND_RACE_GO);
  3547.         health = strval(tmp);
  3548.         GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  3549.         GetPlayerName(playerid, sendername, sizeof(sendername));
  3550.         new string[256];
  3551.         SetPlayerHealth(playa, health);
  3552.         format(string, sizeof(string), "Hai impostato la salute di %s a %f hp.", giveplayer, health);
  3553.         SendClientMessage(playerid,COLOR_WHITE, string);
  3554.         format(string, sizeof(string), "Admin %s ti ha impostato la salute a %f hp.",sendername,health);
  3555.         SendClientMessage(playa,COLOR_WHITE, string);
  3556.         return 1;
  3557.     }
  3558.  
  3559.     if(strcmp(cmd, "/freeze", true) == 0)
  3560.     {
  3561.       if(AdminLevel[playerid] < MODERATORE) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
  3562.       tmp = strtok(cmdtext, idx);
  3563.       if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_YELLOW, "USO: /freeze [playerid].");
  3564.       new playerid2;
  3565.       playerid2 = strval(tmp);
  3566.       new string[256];
  3567.       new name[MAX_PLAYER_NAME];
  3568.       PlaySound(playerid, SOUND_RACE_GO);
  3569.       new name2[MAX_PLAYER_NAME];
  3570.       GetPlayerName(playerid,name,sizeof(name));
  3571.       GetPlayerName(playerid2,name2,sizeof(name2));
  3572.       format(string,sizeof(string),"L'admin %s(%d) ha freezato il giocatore %s(%d).",name,playerid,name2,playerid2);
  3573.       print(string);
  3574.       format(string,sizeof(string),"Sei stato freezato dall'admin %s(%d).",name,playerid);
  3575.       SendClientMessage(playerid2,COLOR_YELLOW,string);
  3576.       format(string,sizeof(string),"Hai freezato il giocatore %s(%d).",name2,playerid2);
  3577.       SendClientMessage(playerid,COLOR_YELLOW,string);
  3578.       TogglePlayerControllable(playerid2, 0);
  3579.       return 1;
  3580.     }
  3581.  
  3582.     if(strcmp(cmd, "/unfreeze", true) == 0)
  3583.     {
  3584.     if(AdminLevel[playerid] < MODERATORE) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
  3585.     tmp = strtok(cmdtext, idx);
  3586.     if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_YELLOW, "USO: /freeze [playerid].");
  3587.     new playerid2;
  3588.     playerid2 = strval(tmp);
  3589.     new string[256];
  3590.     new name[MAX_PLAYER_NAME];
  3591.     new name2[MAX_PLAYER_NAME];
  3592.     GetPlayerName(playerid,name,sizeof(name));
  3593.     GetPlayerName(playerid2,name2,sizeof(name2));
  3594.     PlaySound(playerid, SOUND_RACE_GO);
  3595.     format(string,sizeof(string),"L'admin %s(%d) ha unfreezato il giocatore %s(%d).",name,playerid,name2,playerid2);
  3596.     print(string);
  3597.     format(string,sizeof(string),"Sei stato unfreezato dall'admin %s(%d).",name,playerid);
  3598.     SendClientMessage(playerid2,COLOR_YELLOW,string);
  3599.     format(string,sizeof(string),"Hai unfreezato il giocatore %s(%d).",name2,playerid2);
  3600.     SendClientMessage(playerid,COLOR_YELLOW,string);
  3601.     TogglePlayerControllable(playerid2, 1);
  3602.     return 1;
  3603.     }
  3604.  
  3605.     if(strcmp(cmd, "/jail", true) == 0)
  3606.     {
  3607.     if(AdminLevel[playerid] < ADMINSECONDARIO) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
  3608.     tmp = strtok(cmdtext, idx);
  3609.     if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_YELLOW, "USO: /jail [playerid].");
  3610.     new playerid2;
  3611.     playerid2 = strval(tmp);
  3612.     new string[256];
  3613.     PlaySound(playerid, SOUND_RACE_GO);
  3614.     new name[MAX_PLAYER_NAME];
  3615.     new name2[MAX_PLAYER_NAME];
  3616.     GetPlayerName(playerid,name,sizeof(name));
  3617.     GetPlayerName(playerid2,name2,sizeof(name2));
  3618.     format(string,sizeof(string),"L'admin %s(%d) ha jailato il giocatore %s(%d).",name,playerid,name2,playerid2);
  3619.     print(string);
  3620.     format(string,sizeof(string),"Sei stato jailato dall'admin %s(%d).",name,playerid);
  3621.     SendClientMessage(playerid2,COLOR_YELLOW,string);
  3622.     format(string,sizeof(string),"Hai jailato il giocatore %s(%d).",name2,playerid2);
  3623.     SendClientMessage(playerid,COLOR_YELLOW,string);
  3624.     SetPlayerPos(playerid2,PrigioneX,PrigioneY,PrigioneZ);
  3625.     SetPlayerInterior(playerid2,6);
  3626.     return 1;
  3627.     }
  3628.  
  3629.     if(strcmp(cmd, "/unjail", true) == 0)
  3630.     {
  3631.       if(AdminLevel[playerid] < ADMINSECONDARIO) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
  3632.       tmp = strtok(cmdtext, idx);
  3633.       if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_YELLOW, "USO: /jail [playerid].");
  3634.       new playerid2;
  3635.       playerid2 = strval(tmp);
  3636.       PlaySound(playerid, SOUND_RACE_GO);
  3637.       new string[256];
  3638.       new name[MAX_PLAYER_NAME];
  3639.       new name2[MAX_PLAYER_NAME];
  3640.       GetPlayerName(playerid,name,sizeof(name));
  3641.       GetPlayerName(playerid2,name2,sizeof(name2));
  3642.       format(string,sizeof(string),"L'admin %s(%d) ha jailato il giocatore %s(%d).",name,playerid,name2,playerid2);
  3643.       print(string);
  3644.       format(string,sizeof(string),"Sei stato jailato dall'admin %s(%d).",name,playerid);
  3645.       SendClientMessage(playerid2,COLOR_YELLOW,string);
  3646.       format(string,sizeof(string),"Hai jailato il giocatore %s(%d).",name2,playerid2);
  3647.       SendClientMessage(playerid,COLOR_YELLOW,string);
  3648.       Kill(playerid2);
  3649.       return 1;
  3650.     }
  3651.  
  3652.     if(strcmp(cmd, "/explode", true) == 0)
  3653.     {
  3654.         if(AdminLevel[playerid] < ADMINSECONDARIO) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
  3655.         tmp = strtok(cmdtext, idx);
  3656.         if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_YELLOW, "USO: /explode [playerid].");
  3657.         new playa;
  3658.         playa = strval(tmp);
  3659.         PlaySound(playerid, SOUND_RACE_GO);
  3660.         GetPlayerName(playa, giveplayer, sizeof(giveplayer));
  3661.         GetPlayerName(playerid, sendername, sizeof(sendername));
  3662.         new string[256];
  3663.         format(string, sizeof(string), "L' admin %s ha fatto esplodere il giocatore %s.",sendername, giveplayer);
  3664.         SendClientMessageToAll(COLOR_WHITE, string);
  3665.         new Float:boomx, Float:boomy, Float:boomz;
  3666.         GetPlayerPos(playa,boomx, boomy, boomz);
  3667.         CreateExplosion(boomx, boomy , boomz, 7, 20);
  3668.         return 1;
  3669.     }
  3670.  
  3671.     if(strcmp(cmd, "/asay", true) == 0)
  3672.     {
  3673.         if(AdminLevel[playerid] < ADMINSECONDARIO) return SendClientMessage(playerid, COLOR_RED, DENY_MESSAGE);
  3674.         new length = strlen(cmdtext);
  3675.         PlaySound(playerid, SOUND_RACE_GO);
  3676.         while ((idx < length) && (cmdtext[idx] <= ' '))
  3677.         {
  3678.             idx++;
  3679.         }
  3680.         new offset = idx;
  3681.         new result[64];
  3682.         while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
  3683.         {
  3684.             result[idx - offset] = cmdtext[idx];
  3685.             idx++;
  3686.         }
  3687.         result[idx - offset] = EOS;
  3688.         if(!strlen(result)) return SendClientMessage(playerid, COLOR_YELLOW, "USO: /asay [messaggio].");
  3689.         new string[256];
  3690.         format(string, sizeof(string), "Admin: %s", result);
  3691.         SendClientMessageToAll(COLOR_LIGHTBLUE,string);
  3692.         return 1;
  3693.     }
  3694.  
  3695.     if (strcmp(cmd, "/admins", true) == 0)
  3696.     {
  3697.  
  3698.             for(new i = 0; i < MAX_PLAYERS; i++)
  3699.             {
  3700.                 if(IsPlayerConnected(i) && AdminLevel[i] != GIOCATORE)
  3701.                 {
  3702.                     new string[256];
  3703.                     GetPlayerName(i, sendername, sizeof(sendername));
  3704.                     SendClientMessage(playerid, COLOR_RED,                             "Moderatori Online:");
  3705.                     if(AdminLevel[i] == MODERATORE) format(string, 256,                "Moderatore: %s", sendername);
  3706.                     if(AdminLevel[i] == ADMINSECONDARIO) format(string, 256,           "Admin livello 1: %s", sendername);
  3707.                     if(AdminLevel[i] == ADMIN) format(string, 256,                     "Admin livello 2: %s", sendername);
  3708.                     if(AdminLevel[i] == DEBUGGER||IsPlayerAdmin(i)) format(string, 256,"Admin livello 3: %s", sendername);
  3709.                     SendClientMessage(playerid, COLOR_ADMIN, string);
  3710.                     PlaySound(playerid, SOUND_RACE_GO);
  3711.                     return 1;
  3712.                 }
  3713.                 return SendClientMessage(playerid,COLOR_RED,"Nessun moderatore connesso.");
  3714.            }
  3715.  
  3716.     }
  3717.   return SendClientMessage(playerid,COLOR_WHITE,"SERVER: Comando Sconosciuto. Per un aiuto usa /help, /help2 e /help3.");
  3718. }
  3719.  
  3720. //-=-=-=-=-=OnPlayerRequestClass=-=-=-=-=-
  3721.  
  3722. public OnPlayerRequestClass(playerid,classid)
  3723. {
  3724.   SetPlayerPos(playerid,-249.000000,6.000000,117.000000);
  3725.   SetPlayerFacingAngle(playerid,0.000000);
  3726.   SetPlayerCameraPos(playerid,-249.000000,9.000000,117.000000);
  3727.   SetPlayerCameraLookAt(playerid,-249.000000,6.000000,117.000000);
  3728.   PlaySound(playerid,SOUND_AWARD_TRACK_START);
  3729.   new team = GetPlayerTeam(playerid);
  3730.   if(team == 0)       GameTextForPlayer(playerid,"   ~r~Goku~>~",1000,4);
  3731.   else if(team == 1)  GameTextForPlayer(playerid,"~<~~b~Vegeta~>~",1000,4);
  3732.   else if(team == 2)  GameTextForPlayer(playerid,"~<~~y~Trunks~>~",1000,4);
  3733.   else if(team == 3)  GameTextForPlayer(playerid,"~<~~g~Gohan~>~",1000,4);
  3734.   else if(team == 4)  GameTextForPlayer(playerid,"~<~~p~Mr.Satan~>~",1000,4);
  3735.   else if(team == 5)  GameTextForPlayer(playerid,"~<~~r~Videl~>~",1000,4);
  3736.   else if(team == 6)  GameTextForPlayer(playerid,"~<~~b~Crilin~>~",1000,4);
  3737.   else if(team == 7)  GameTextForPlayer(playerid,"~<~~y~Yamcha~>~",1000,4);
  3738.   else if(team == 8)  GameTextForPlayer(playerid,"~<~~g~Tenshinshan~>~",1000,4);
  3739.   else if(team == 9)  GameTextForPlayer(playerid,"~<~~p~Dr.Gelo~>~",1000,4);
  3740.   else if(team == 10) GameTextForPlayer(playerid,"~<~~r~C16~>~",1000,4);
  3741.   else if(team == 11) GameTextForPlayer(playerid,"~<~~b~C17~>~",1000,4);
  3742.   else if(team == 12) GameTextForPlayer(playerid,"~<~~y~C18~>~",1000,4);
  3743.   else if(team == 13) GameTextForPlayer(playerid,"~<~~g~C19",1000,4);
  3744.   return 1;
  3745. }
  3746.  
  3747. /*//-=-=-=-=-=OnPlayerUpdateKi=-=-=-=-=-
  3748.  
  3749. public OnPlayerUpdateKi(playerid)
  3750. {
  3751.  
  3752.   return 1;
  3753. }*/
  3754.  
  3755. //-=-=-=-=-=OnDialogResponse=-=-=-=-=-
  3756.  
  3757. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  3758. {
  3759.   new string[256];
  3760.   new name[MAX_PLAYER_NAME];
  3761.   switch(dialogid)
  3762.   {
  3763.     case DIALOGO_KILL:
  3764.     {
  3765.       if(!response) return 1;
  3766.       SetPlayerHealth(playerid,0);
  3767.       SendClientMessage(playerid,COLOR_LIGHTBLUE,"Adesso puoi cambiare personaggio e battleground.");
  3768.     }
  3769.     case DIALOGO_SPAWN:
  3770.     {
  3771.       GetPlayerName(playerid,name,sizeof(name));
  3772.       SendClientMessage(playerid,COLOR_RED,"Per personalizzare il tuo personaggio, vai al Salone.");
  3773.       PlaySound(playerid,SOUND_BEE_TRACK_STOP);
  3774.       //Fa aspettare 2 secondi al giocatore immobile per evitare Timeouts
  3775.       TogglePlayerControllable(playerid,false);
  3776.       GameTextForPlayer(playerid,"Caricamento zona in corso...",2000,5);
  3777.       SetTimerEx("Unfreeze",2000,0,"i",playerid);
  3778.       if(!response)
  3779.       {
  3780.         rand = random(sizeof(RandomSpawns));
  3781.         SetPlayerPos(playerid,RandomSpawns[rand][0],RandomSpawns[rand][1],RandomSpawns[rand][2]);
  3782.         SetPlayerInterior(playerid,0);
  3783.         TogglePlayerControllable(playerid,true);
  3784.         format(string,sizeof(string),"INFO: {FF0000}%s {FFFF00}è spawnato in un battleground {33AA33}casuale.",name);
  3785.         SendClientMessageToAll(COLOR_YELLOW,string);
  3786.         GameTextForPlayer(playerid,"~r~COMBATTI!",2000,5);
  3787.         return 1;
  3788.       }
  3789.       switch(listitem)
  3790.       {
  3791.         case BATTLEGROUND_PANOPTICON:
  3792.         {
  3793.           rand = random(sizeof(RandomPanopticon));
  3794.           SetPlayerPos(playerid,RandomPanopticon[rand][0],RandomPanopticon[rand][1],RandomPanopticon[rand][2]);
  3795.           SetPlayerInterior(playerid,0);
  3796.           TogglePlayerControllable(playerid,true);
  3797.           format(string,sizeof(string),"INFO: {FF0000}%s {FFFF00}è spawnato nel battleground {33AA33}Villaggio Abbandonato.",name);
  3798.           SendClientMessageToAll(COLOR_YELLOW,string);
  3799.           GameTextForPlayer(playerid,"~r~COMBATTI!",2000,5);
  3800.           print(string);
  3801.         }
  3802.         case BATTLEGROUND_TORNEO:
  3803.         {
  3804.           rand = random(sizeof(RandomTorneo));
  3805.           SetPlayerPos(playerid,RandomTorneo[rand][0],RandomTorneo[rand][1],RandomTorneo[rand][2]);
  3806.           SetPlayerInterior(playerid,0);
  3807.           TogglePlayerControllable(playerid,true);
  3808.           format(string,sizeof(string),"INFO: {FF0000}%s {FFFF00}è spawnato nel battleground {33AA33}Torneo Tenkaichi.",name);
  3809.           SendClientMessageToAll(COLOR_YELLOW,string);
  3810.           PlayerPlaySound(playerid,SOUND_OTB_TRACK_START,370.051879,-2023.086547,7.671875);
  3811.           //CreatePlayerObject(playerid, 18864, 370.051879,-2023.086547,7.671875, 0, 0, 0); //NEVE NATALIZIA         FOR CHRISTMAS UNCOMMENT THIS LINE
  3812.           GameTextForPlayer(playerid,"~r~COMBATTI!",2000,5);
  3813.           print(string);
  3814.         }
  3815.         case BATTLEGROUND_UNDERWATER:
  3816.         {
  3817.           rand = random(sizeof(RandomUnderwater));
  3818.           SetPlayerPos(playerid,RandomUnderwater[rand][0],RandomUnderwater[rand][1],RandomUnderwater[rand][2]);
  3819.           SetPlayerInterior(playerid,0);
  3820.           TogglePlayerControllable(playerid,true);
  3821.           format(string,sizeof(string),"INFO: {FF0000}%s {FFFF00}è spawnato nel battleground {33AA33}Sotto il mare",name);
  3822.           SendClientMessageToAll(COLOR_YELLOW,string);
  3823.           GameTextForPlayer(playerid,"~r~COMBATTI!",2000,5);
  3824.           print(string);
  3825.         }
  3826.         case BATTLEGROUND_GRATTACIELO:
  3827.         {
  3828.           rand = random(sizeof(RandomGrattacielo));
  3829.           SetPlayerPos(playerid,RandomGrattacielo[rand][0],RandomGrattacielo[rand][1],RandomGrattacielo[rand][2]);
  3830.           SetPlayerInterior(playerid,0);
  3831.           TogglePlayerControllable(playerid,true);
  3832.           format(string,sizeof(string),"INFO: {FF0000}%s {FFFF00}è spawnato nel battleground {33AA33}Grattacielo.",name);
  3833.           SendClientMessageToAll(COLOR_YELLOW,string);
  3834.           GameTextForPlayer(playerid,"~r~COMBATTI!",2000,5);
  3835.           print(string);
  3836.         }
  3837.         case BATTLEGROUND_PONTE:
  3838.         {
  3839.           rand = random(sizeof(RandomPonte));
  3840.           SetPlayerPos(playerid,RandomPonte[rand][0],RandomPonte[rand][1],RandomPonte[rand][2]);
  3841.           SetPlayerInterior(playerid,0);
  3842.           TogglePlayerControllable(playerid,true);
  3843.           GameTextForPlayer(playerid,"~r~COMBATTI!",2000,5);
  3844.           format(string,sizeof(string),"INFO: {FF0000}%s {FFFF00}è spawnato nel battleground {33AA33}Ponte.",name);
  3845.           SendClientMessageToAll(COLOR_YELLOW,string);
  3846.           print(string);
  3847.         }
  3848.         case BATTLEGROUND_ALLENAMENTO:
  3849.         {
  3850.           rand = random(sizeof(RandomAllenamento));
  3851.           SetPlayerPos(playerid,RandomAllenamento[rand][0],RandomAllenamento[rand][1],RandomAllenamento[rand][2]);
  3852.           SetPlayerInterior(playerid,0);
  3853.           TogglePlayerControllable(playerid,true);
  3854.           GameTextForPlayer(playerid,"~r~COMBATTI!",2000,5);
  3855.           format(string,sizeof(string),"INFO: {FF0000}%s {FFFF00}è spawnato nel battleground {33AA33}Zona di allenamento.",name);
  3856.           SendClientMessageToAll(COLOR_YELLOW,string);
  3857.           print(string);
  3858.         }
  3859.         case BATTLEGROUND_AREA51:
  3860.         {
  3861.           rand = random(sizeof(RandomArea51));
  3862.           SetPlayerPos(playerid,RandomArea51[rand][0],RandomArea51[rand][1],RandomArea51[rand][2]);
  3863.           SetPlayerInterior(playerid,0);
  3864.           TogglePlayerControllable(playerid,true);
  3865.           GameTextForPlayer(playerid,"~r~COMBATTI!",2000,5);
  3866.           format(string,sizeof(string),"INFO: {FF0000}%s {FFFF00}è spawnato nel battleground {33AA33}Area 51.",name);
  3867.           SendClientMessageToAll(COLOR_YELLOW,string);
  3868.           print(string);
  3869.         }
  3870.         case BATTLEGROUND_CASINO:
  3871.         {
  3872.           rand = random(sizeof(RandomCasino));
  3873.           SetPlayerPos(playerid,RandomCasino[rand][0],RandomCasino[rand][1],RandomCasino[rand][2]);
  3874.           SetPlayerInterior(playerid,0);
  3875.           TogglePlayerControllable(playerid,true);
  3876.           format(string,sizeof(string),"INFO: {FF0000}%s {FFFF00}è spawnato nel battleground {33AA33}Casinò.",name);
  3877.           SendClientMessageToAll(COLOR_YELLOW,string);
  3878.           GameTextForPlayer(playerid,"~r~COMBATTI!",2000,5);
  3879.           print(string);
  3880.         }
  3881.         case BATTLEGROUND_SALONE:
  3882.         {
  3883.           rand = random(sizeof(RandomCasino));
  3884.           SetPlayerPos(playerid,830.6016,5.9404,1004.1797);
  3885.           SetPlayerInterior(playerid,3);
  3886.           TogglePlayerControllable(playerid,true);
  3887.           format(string,sizeof(string),"INFO: {FF0000}%s {FFFF00}è spawnato nel battleground {33AA33}Salone.",name);
  3888.           SendClientMessageToAll(COLOR_YELLOW,string);
  3889.           GameTextForPlayer(playerid,"~r~BENVENUTO AL SALONE!",2000,5);
  3890.           ResetPlayerMoney(playerid);
  3891.           print(string);
  3892.         }
  3893.  
  3894.       }
  3895.       return 1;
  3896.     }
  3897.     case DIALOGO_REGOLE:
  3898.     {
  3899.       if(!response)
  3900.       {
  3901.         GetPlayerName(playerid,name,sizeof(name));
  3902.         format(string, sizeof(string), "-SSB- %s è stato kickato dal server per non aver accettato il regolamento.", name);
  3903.         SendClientMessageToAll(COLOR_KICK/BAN,string);
  3904.         SendClientMessage(playerid,COLOR_KICK/BAN,"Per giocare devi LEGGERE ed ACCETTARE il regolamento.");
  3905.         SendClientMessage(playerid,COLOR_KICK/BAN,"Se secondo te il regolamento ha qualcosa di sbagliato vai sul forum grovefamily.forumfree.it.");
  3906.         GameTextForPlayer(playerid,"ORA SEI DISCONNESSO. /Q PER USCIRE DAL GIOCO.",300000,5);
  3907.         print(string);
  3908.         Kick(playerid);
  3909.       }
  3910.       return 1;
  3911.     }
  3912.     case DIALOGO_SHENRON:
  3913.     {
  3914.       switch(listitem)
  3915.       {
  3916.         case 0:
  3917.         {
  3918.           PlayerInfo[playerid][Desideri][dSpada] = 1;
  3919.           SendClientMessage(playerid,COLOR_GREEN,"Hai desiderato la spada per Trunks!");
  3920.           SendClientMessage(playerid,COLOR_GREEN,"Quando selezionerai Trunks avrai una spada!!");
  3921.         }
  3922.         case 1:
  3923.         {
  3924.           PlayerInfo[playerid][Desideri][dColtello] = 1;
  3925.           SendClientMessage(playerid,COLOR_GREEN,"Hai desiderato il pugnale per Videl!");
  3926.           SendClientMessage(playerid,COLOR_GREEN,"Quando selezionerai Videl avrai un coltello!!");
  3927.         }
  3928.         case 2:
  3929.         {
  3930.           PlayerInfo[playerid][Desideri][dBazooka] = 1;
  3931.           SendClientMessage(playerid,COLOR_GREEN,"Hai desiderato il lanciarazzi per C16!");
  3932.           SendClientMessage(playerid,COLOR_GREEN,"Quando selezionerai C16 avrai un lanciarazzi!!");
  3933.         }
  3934.  
  3935.       }
  3936.       return 1;
  3937.     }
  3938.  
  3939.     case DIALOGO_SALVARE:
  3940.     {
  3941.       new skin = GetPlayerSkin(playerid);
  3942.       new string2[256];
  3943.       new name2[MAX_PLAYER_NAME];
  3944.       if(!response)
  3945.       {
  3946.         GetPlayerName(playerid,name2,sizeof(name2));
  3947.         format(string2, sizeof(string2), "Tavole/%s.%d.ini", name2,skin);
  3948.         if(INI_Exist(string2))
  3949.         {
  3950.           INI_Open(string2);
  3951.           PlayerInfo[playerid][Stats][Stile][skin] = INI_ReadInt("Stile");
  3952.           PlayerInfo[playerid][Stats][Attacco][skin] = INI_ReadInt("Attacco");
  3953.           PlayerInfo[playerid][Stats][Velocita][skin] = INI_ReadInt("Velocita");
  3954.           PlayerInfo[playerid][Stats][AuraMax][skin] = INI_ReadInt("AuraMax");
  3955.           PlayerInfo[playerid][Stats][SaluteMax][skin] = INI_ReadInt("SaluteMax");
  3956.           PlayerInfo[playerid][Stats][AuraSize][skin] = INI_ReadFloat("AuraSize");
  3957.           INI_Close();
  3958.           TogglePlayerControllable(playerid,false);
  3959.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Stai ricaricando i dati precedenti per questo personaggio...");
  3960.           GameTextForPlayer(playerid,"Caricamento...",5000,5);
  3961.           SetTimerEx("Unfreeze",5000,0,"i",playerid);
  3962.           SetTimerEx("Caricamento25",1000,0,"i",playerid);
  3963.           SetTimerEx("Caricamento50",2500,0,"i",playerid);
  3964.           SetTimerEx("Caricamento100",5000,0,"i",playerid);
  3965.           return 1;
  3966.         }
  3967.         else if(!INI_Exist(string2))
  3968.         {
  3969.           GetPlayerName(playerid,name2,sizeof(name2));
  3970.           format(string2, sizeof(string2), "Tavole/%s.%d.ini", name2,skin);
  3971.           INI_Open(string2);
  3972.           INI_WriteInt("Stile", 0);
  3973.           INI_WriteInt("Attacco", 0);
  3974.           INI_WriteInt("Velocita", 0);
  3975.           INI_WriteInt("AuraMax", 0);
  3976.           INI_WriteInt("SaluteMax", 0);
  3977.           INI_WriteFloat("AuraSize", 0);
  3978.           INI_Save();
  3979.           INI_Close();
  3980.           GameTextForPlayer(playerid,"Caricamento...",1000,5);
  3981.           SetTimerEx("Unfreeze",1000,0,"i",playerid);
  3982.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Questo personaggio non ha una tavola precedente, quindi è stato tutto azzerato.");
  3983.           GetPlayerName(playerid,name,sizeof(name));
  3984.           format(string2, sizeof(string), "Dragonball/%s.ini", name, skin);
  3985.           INI_Open(string2);
  3986.         //{
  3987.             PlayerInfo[playerid][Punteggio] = INI_ReadInt("Score");
  3988.             SetPlayerScore(playerid,PlayerInfo[playerid][Punteggio]);
  3989.             INI_Close();
  3990.         //}
  3991.           return 1;
  3992.         }
  3993.       }
  3994.       else
  3995.       {
  3996.         GetPlayerName(playerid,name2,sizeof(name2));
  3997.         format(string2, sizeof(string2), "Tavole/%s.%d.ini", name2,skin);
  3998.         INI_Open(string2);
  3999.         INI_WriteInt("Stile", PlayerInfo[playerid][Stats][Stile][skin]);
  4000.         INI_WriteInt("Attacco", PlayerInfo[playerid][Stats][Attacco][skin]);
  4001.         INI_WriteInt("Velocita", PlayerInfo[playerid][Stats][Velocita][skin]);
  4002.         INI_WriteInt("AuraMax", PlayerInfo[playerid][Stats][AuraMax][skin]);
  4003.         INI_WriteInt("SaluteMax", PlayerInfo[playerid][Stats][SaluteMax][skin]);
  4004.         INI_WriteFloat("AuraSize", PlayerInfo[playerid][Stats][AuraSize][skin]);
  4005.         INI_Save();
  4006.         INI_Close();
  4007.         //Fa aspettare 3 secondi al giocatore immobile per evitare Timeouts
  4008.         TogglePlayerControllable(playerid,false);
  4009.         SendClientMessage(playerid,COLOR_LIGHTBLUE,"Stai salvando la personalizzazione di questo personaggio...");
  4010.         GameTextForPlayer(playerid,"Salvataggio...",3000,5);
  4011.         SetTimerEx("Unfreeze",3000,0,"i",playerid);
  4012.         return 1;
  4013.       }
  4014.     }
  4015.     case DIALOGO_PERSONALIZZA://CLICCARE "FIND" E INSERIRE "1997" PER TROVARE IMMEDIATAMENTE QUESTA SEZIONE DELLO SCRIPT
  4016.     {
  4017.       if(!response)
  4018.       {
  4019.         ShowPlayerDialog(playerid, DIALOGO_SALVARE, DIALOG_STYLE_MSGBOX, SECONDARY_DIALOG_TEXT, "Salvare la nuova tavola o ricaricare quella precedente?", "Salva", "Annulla");
  4020.         return 1;
  4021.       }
  4022.       switch(listitem)
  4023.       {
  4024.         case 0:
  4025.         {
  4026.           ShowPlayerDialog(playerid, DIALOGO_STILE, DIALOG_STYLE_LIST, "Scegli uno stile di combattimento (CLICK DESTRO + INVIO)", TEXT_DIALOGO_STILE, "Applica", "Indietro");
  4027.         }
  4028.         case 1:
  4029.         {
  4030.           ShowPlayerDialog(playerid, DIALOGO_ATTACCO, DIALOG_STYLE_LIST, "Scegli il tuo Attacco Speciale", TEXT_DIALOGO_ATTACCO1,"Applica","Indietro");
  4031.         }
  4032.         case 2:
  4033.         {
  4034.           ShowPlayerDialog(playerid, DIALOGO_PIU_VELOCITA, DIALOG_STYLE_LIST, "Imposta la tua velocità di slancio", TEXT_DIALOGO_VELOCITA,"Applica","Indietro");
  4035.         }
  4036.         case 3:
  4037.         {
  4038.           if(IsPlayerAnAndroid(playerid))
  4039.           {
  4040.             GameTextForPlayer(playerid,"~r~I Cyborg(Androidi) non hanno aura!",1000,5);
  4041.             ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4042.             return 1;
  4043.           }
  4044.           ShowPlayerDialog(playerid, DIALOGO_PIU_AURA, DIALOG_STYLE_LIST, "Imposta la quantità massima d'aura.",TEXT_DIALOGO_AURA,"Applica","Indietro");
  4045.         }
  4046.         case 4:
  4047.         {
  4048.           ShowPlayerDialog(playerid, DIALOGO_PIU_SALUTE, DIALOG_STYLE_LIST, "Imposta la quantità massima di salute.",TEXT_DIALOGO_SALUTE,"Applica","Indietro");
  4049.         }
  4050.         case 5:
  4051.         {
  4052.           ShowPlayerDialog(playerid, DIALOGO_AURA_SIZE, DIALOG_STYLE_MSGBOX, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_SIZE, "Applica", "Indietro");
  4053.         }
  4054.         case 6:
  4055.         {
  4056.           ShowPlayerDialog(playerid, DIALOGO_AURA_SIZE2, DIALOG_STYLE_MSGBOX, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_SIZE2, "Applica", "Indietro");
  4057.         }
  4058.       }
  4059.       return 1;
  4060.     }
  4061.     case DIALOGO_AURA_SIZE:
  4062.     {
  4063.       new skin = GetPlayerSkin(playerid);
  4064.       if(!response) return ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4065.       if(GetPlayerScore(playerid) < 20) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4066.       AddPlayerScore(playerid,-20);
  4067.       GameTextForPlayer(playerid,"Caricamento",500,5);
  4068.       SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 20 Punti del Drago per ricevere l'oggetto \"Incremento di 0.5 su grandezza aura\"!");
  4069.       ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4070.       if(PlayerInfo[playerid][Stats][AuraSize][skin] == 0.0) PlayerInfo[playerid][Stats][AuraSize][skin] = 1.5;
  4071.       else PlayerInfo[playerid][Stats][AuraSize][skin] += 0.5;
  4072.       return 1;
  4073.     }
  4074.     case DIALOGO_AURA_SIZE2:
  4075.     {
  4076.       new skin = GetPlayerSkin(playerid);
  4077.       if(!response) return ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4078.       if(GetPlayerScore(playerid) < 5) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4079.       AddPlayerScore(playerid,-5);
  4080.       GameTextForPlayer(playerid,"Caricamento",500,5);
  4081.       SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 5 Punti del Drago per ricevere l'oggetto \"Decremento di 0.5 su grandezza aura\"!");
  4082.       ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4083.       if(PlayerInfo[playerid][Stats][AuraSize][skin] == 0.5) PlayerInfo[playerid][Stats][AuraSize][skin] = 0.5;
  4084.       else PlayerInfo[playerid][Stats][AuraSize][skin] -= 0.5;
  4085.       return 1;
  4086.     }
  4087.     case DIALOGO_STILE:
  4088.     {
  4089.       new skin = GetPlayerSkin(playerid);
  4090.       if(!response) return ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4091.       switch(listitem)
  4092.       {
  4093.         case 0:
  4094.         {
  4095.           if(GetPlayerScore(playerid) < 20) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4096.           SetPlayerFightingStyle(playerid, FIGHT_STYLE_KUNGFU);
  4097.           PlayerInfo[playerid][Stats][Stile][skin] = FIGHT_STYLE_KUNGFU;
  4098.           AddPlayerScore(playerid,-20);
  4099.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4100.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 20 Punti del Drago per ricevere l'oggetto \"Stile dei guerrieri Z\"!");
  4101.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4102.         }
  4103.         case 1:
  4104.         {
  4105.           if(GetPlayerScore(playerid) < 10) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4106.           SetPlayerFightingStyle(playerid, FIGHT_STYLE_BOXING);
  4107.           PlayerInfo[playerid][Stats][Stile][skin] = FIGHT_STYLE_BOXING;
  4108.           AddPlayerScore(playerid,-10);
  4109.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4110.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 10 Punti del Drago per ricevere l'oggetto \"Stile dei guerrieri deboli\"!");
  4111.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4112.         }
  4113.         case 2:
  4114.         {
  4115.           if(GetPlayerScore(playerid) < 25) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4116.           SetPlayerFightingStyle(playerid, FIGHT_STYLE_KNEEHEAD);
  4117.           PlayerInfo[playerid][Stats][Stile][skin] = FIGHT_STYLE_KNEEHEAD;
  4118.           AddPlayerScore(playerid,-25);
  4119.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4120.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 25 Punti del Drago per ricevere l'oggetto \"Stile degli androidi forti\"!");
  4121.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4122.         }
  4123.         case 3:
  4124.         {
  4125.           if(GetPlayerScore(playerid) < 15) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4126.           SetPlayerFightingStyle(playerid, FIGHT_STYLE_GRABKICK);
  4127.           PlayerInfo[playerid][Stats][Stile][skin] = FIGHT_STYLE_GRABKICK;
  4128.           AddPlayerScore(playerid,-15);
  4129.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4130.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 15 Punti del Drago per ricevere l'oggetto \"Stile degli androidi deboli\"!");
  4131.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4132.         }
  4133.  
  4134.       }
  4135.       return 1;
  4136.     }
  4137.     case DIALOGO_ATTACCO:
  4138.     {
  4139.       new skin = GetPlayerSkin(playerid);
  4140.       if(!response) return ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4141.  
  4142.       switch(listitem)
  4143.       {
  4144.         case 0:
  4145.         {
  4146.           if(GetPlayerScore(playerid) < 30) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4147.           PlayerInfo[playerid][Stats][Attacco][skin] = KAMEHAMEHA;
  4148.           AddPlayerScore(playerid,-30);
  4149.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4150.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 30 Punti del Drago per ricevere l'oggetto \"Kamehameha\"!");
  4151.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4152.         }
  4153.         case 1:
  4154.         {
  4155.           if(GetPlayerScore(playerid) < 40) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4156.           PlayerInfo[playerid][Stats][Attacco][skin] = KAMEHAMEHA_FURIA;
  4157.           AddPlayerScore(playerid,-40);
  4158.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4159.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 40 Punti del Drago per ricevere l'oggetto \"Kamehameha Furiosa\"!");
  4160.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4161.         }
  4162.         case 2:
  4163.         {
  4164.           if(GetPlayerScore(playerid) < 50) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4165.           PlayerInfo[playerid][Stats][Attacco][skin] = SUPER_KAMEHAMEHA;
  4166.           AddPlayerScore(playerid,-50);
  4167.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4168.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 50 Punti del Drago per ricevere l'oggetto \"Super Kamehameha\"!");
  4169.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4170.         }
  4171.         case 3:
  4172.         {
  4173.           if(GetPlayerScore(playerid) < 60) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4174.           PlayerInfo[playerid][Stats][Attacco][skin] = KAMEHAMEHA_MAX;
  4175.           AddPlayerScore(playerid,-60);
  4176.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4177.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 60 Punti del Drago per ricevere l'oggetto \"Kamehameha A Massima Intensità\"!");
  4178.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4179.         }
  4180.         case 4:
  4181.         {
  4182.           if(GetPlayerScore(playerid) < 30) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4183.           PlayerInfo[playerid][Stats][Attacco][skin] = CANNONE_ESPLOSIVO;
  4184.           AddPlayerScore(playerid,-30);
  4185.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4186.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 30 Punti del Drago per ricevere l'oggetto \"Cannone Esplosivo\"!");
  4187.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4188.         }
  4189.         case 5:
  4190.         {
  4191.           if(GetPlayerScore(playerid) < 40) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4192.           PlayerInfo[playerid][Stats][Attacco][skin] = BIG_BANG_ATTACK;
  4193.           AddPlayerScore(playerid,-40);
  4194.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4195.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 40 Punti del Drago per ricevere l'oggetto \"Attacco Big Bang\"!");
  4196.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4197.         }
  4198.         case 6:
  4199.         {
  4200.           if(GetPlayerScore(playerid) < 50) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4201.           PlayerInfo[playerid][Stats][Attacco][skin] = LAMPO_FINALE;
  4202.           AddPlayerScore(playerid,-50);
  4203.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4204.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 50 Punti del Drago per ricevere l'oggetto \"Lampo Finale\"!");
  4205.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4206.         }
  4207.         case 7:
  4208.         {
  4209.           if(GetPlayerScore(playerid) < 20) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4210.           PlayerInfo[playerid][Stats][Attacco][skin] = MASENKO;
  4211.           AddPlayerScore(playerid,-20);
  4212.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4213.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 20 Punti del Drago per ricevere l'oggetto \"Masenko\"!");
  4214.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4215.         }
  4216.         case 8:
  4217.         {
  4218.           if(GetPlayerScore(playerid) < 40) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4219.           PlayerInfo[playerid][Stats][Attacco][skin] = SUPER_MASENKO;
  4220.           AddPlayerScore(playerid,-40);
  4221.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4222.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 40 Punti del Drago per ricevere l'oggetto \"Super Masenko\"!");
  4223.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4224.         }
  4225.         case 9:
  4226.         {
  4227.           if(GetPlayerScore(playerid) < 30) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4228.           PlayerInfo[playerid][Stats][Attacco][skin] = ATTACCO_BRUCIANTE;
  4229.           AddPlayerScore(playerid,-30);
  4230.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4231.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 30 Punti del Drago per ricevere l'oggetto \"Attacco Bruciante\"!");
  4232.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4233.         }
  4234.         case 10: { ShowPlayerDialog(playerid, DIALOGO_ATTACCO2, DIALOG_STYLE_LIST, "Scegli l'Attacco Speciale da usare con /att.", TEXT_DIALOGO_ATTACCO2,"Applica","Indietro"); }
  4235.       }
  4236.       return 1;
  4237.     }
  4238.     case DIALOGO_SALVA_PARTITA:
  4239.     {
  4240.       switch(listitem)
  4241.       {
  4242.         case 0: return 1;
  4243.         case 1:
  4244.         {
  4245.           DBZ_Update(playerid);
  4246.           GameTextForPlayer(playerid,"Dati di gioco salvati",2000,5);
  4247.           return 1;
  4248.         }
  4249.         case 2:
  4250.         {
  4251.           DBZ_Update(playerid);
  4252.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4253.           return 1;
  4254.         }
  4255.         case 3:
  4256.         {
  4257.           ShowPlayerDialog(playerid, DIALOGO_SCOMMESSE, DIALOG_STYLE_INPUT,"Scommessa battaglia:", "Scegli il giocatore su cui scommettere","Avanti","Annulla");
  4258.           return 1;
  4259.         }
  4260.         case 4:
  4261.         {
  4262.           new SRegole[450];
  4263.           for(new i=0;i<sizeof(Regole);i++) format(SRegole,sizeof(SRegole),"%s%s",SRegole,Regole[i]);
  4264.           ShowPlayerDialog(playerid, DIALOGO_REGOLE, DIALOG_STYLE_MSGBOX,"Hai aperto il messaggio delle regole.", SRegole, "Esci", "");
  4265.           return 1;
  4266.         }
  4267.         case 5:
  4268.         {
  4269.           OnPlayerCommandText(playerid,"/help");
  4270.           return 1;
  4271.         }
  4272.         case 6:
  4273.         {
  4274.           DBZ_Update(playerid);
  4275.           SetPlayerHealth(playerid,0);
  4276.           ForceClassSelection(playerid);
  4277.           return 1;
  4278.         }
  4279.       }
  4280.     }
  4281.     case DIALOGO_SCOMMESSE://scrivere 2011 per trovare questa parte di script
  4282.     {
  4283.       if(!response) return 1;
  4284.       new namescomm[MAX_PLAYER_NAME];
  4285.       GetPlayerName(ScommessaPlayer[playerid],namescomm,sizeof(namescomm));
  4286.       format(string,sizeof(string),"Puoi scommettere una sola volta finchè %s(%d) non vince o perde.",namescomm,ScommessaPlayer[playerid]);
  4287.       if(ScommessaPlayer[playerid] != null) return SendClientMessage(playerid,COLOR_RED,string);
  4288.       if(!strval(inputtext)) return ShowPlayerDialog(playerid, DIALOGO_SCOMMESSE, DIALOG_STYLE_INPUT,"Inserisci solo numeri!", "Scegli il giocatore su cui scommettere","Avanti","Annulla");
  4289.       if(!IsPlayerConnected(strval(inputtext))) return ShowPlayerDialog(playerid, DIALOGO_SCOMMESSE, DIALOG_STYLE_INPUT,"Inserisci un ID valido!", "Scegli il giocatore su cui scommettere","Avanti","Annulla");
  4290.       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");
  4291.       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");
  4292.       ScommessaPlayer[playerid] = strval(inputtext);
  4293.       ShowPlayerDialog(playerid, DIALOGO_SCOMMESSE2, DIALOG_STYLE_INPUT,"Scommessa battaglia:", "Scegli la quantita di punti del Drago da scommettere","Avanti","Annulla");
  4294.       return 1;
  4295.     }
  4296.     case DIALOGO_SCOMMESSE2:
  4297.     {
  4298.       if(!response)
  4299.       {
  4300.         ScommessaPlayer[playerid] = null;
  4301.         SendClientMessage(playerid,COLOR_RED,"Tutte le tue scommesse attuali sono state annullate.");
  4302.         return 1;
  4303.       }
  4304.       new score = GetPlayerScore(playerid);
  4305.       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");
  4306.       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");
  4307.       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");
  4308.       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");
  4309.       ScommessaSoldi[playerid] = strval(inputtext);
  4310.       new scommettitore[MAX_PLAYER_NAME];
  4311.       new scommesso[MAX_PLAYER_NAME];
  4312.       new quota = ScommessaSoldi[playerid];
  4313.       new playerid2 = ScommessaPlayer[playerid];
  4314.       GetPlayerName(playerid,scommettitore,sizeof(scommettitore));
  4315.       GetPlayerName(playerid2,scommesso,sizeof(scommesso));
  4316.       format(string,sizeof(string),"Hai puntato %d Punti del Drago su di %s(%d).",quota,scommesso,playerid2);
  4317.       SendClientMessage(playerid,COLOR_LIGHTBLUE,string);
  4318.       format(string,sizeof(string),"%s(%d) ha puntato %d Punti del Drago su di te.",scommettitore,playerid,quota);
  4319.       SendClientMessage(playerid2,COLOR_LIGHTBLUE,string);
  4320.       AddPlayerScore(playerid,-quota);
  4321.       return 1;
  4322.     }
  4323.     case DIALOGO_PIU_AURA:
  4324.     {
  4325.       new skin = GetPlayerSkin(playerid);
  4326.       if(!response) return ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4327.       switch(listitem)
  4328.       {
  4329.         case 0:
  4330.         {
  4331.           if(GetPlayerScore(playerid) < 10) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4332.           PlayerInfo[playerid][Stats][AuraMax][skin] = 100;
  4333.           AddPlayerScore(playerid,-10);
  4334.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4335.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 10 Punti del Drago per ricevere l'oggetto \"100 Unità Aura\"!");
  4336.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4337.         }
  4338.         case 1:
  4339.         {
  4340.           if(GetPlayerScore(playerid) < 35) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4341.           PlayerInfo[playerid][Stats][AuraMax][skin] = 125;
  4342.           AddPlayerScore(playerid,-35);
  4343.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4344.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 35 Punti del Drago per ricevere l'oggetto \"125 Unità Aura\"!");
  4345.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4346.         }
  4347.         case 2:
  4348.         {
  4349.           if(GetPlayerScore(playerid) < 60) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4350.           PlayerInfo[playerid][Stats][AuraMax][skin] = 150;
  4351.           AddPlayerScore(playerid,-60);
  4352.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4353.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 60 Punti del Drago per ricevere l'oggetto \"150 Unità Aura\"!");
  4354.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4355.         }
  4356.         case 3:
  4357.         {
  4358.           if(GetPlayerScore(playerid) < 110) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4359.           PlayerInfo[playerid][Stats][AuraMax][skin] = 200;
  4360.           AddPlayerScore(playerid,-110);
  4361.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4362.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 110 Punti del Drago per ricevere l'oggetto \"200 Unità Aura\"!");
  4363.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4364.         }
  4365.         case 4:
  4366.         {
  4367.           if(GetPlayerScore(playerid) < 135) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4368.           PlayerInfo[playerid][Stats][AuraMax][skin] = 225;
  4369.           AddPlayerScore(playerid,-135);
  4370.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4371.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 135 Punti del Drago per ricevere l'oggetto \"225 Unità Aura\"!");
  4372.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4373.         }
  4374.         case 5:
  4375.         {
  4376.           if(GetPlayerScore(playerid) < 160) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4377.           PlayerInfo[playerid][Stats][AuraMax][skin] = 250;
  4378.           AddPlayerScore(playerid,-160);
  4379.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4380.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 160 Punti del Drago per ricevere l'oggetto \"250 Unità Aura\"!");
  4381.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4382.         }
  4383.         case 6:
  4384.         {
  4385.           if(GetPlayerScore(playerid) < 210) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4386.           PlayerInfo[playerid][Stats][AuraMax][skin] = 300;
  4387.           AddPlayerScore(playerid,-210);
  4388.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4389.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 210 Punti del Drago per ricevere l'oggetto \"300 Unità Aura\"!");
  4390.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4391.         }
  4392.         case 7:
  4393.         {
  4394.           if(GetPlayerScore(playerid) < 260) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4395.           PlayerInfo[playerid][Stats][AuraMax][skin] = 350;
  4396.           AddPlayerScore(playerid,-260);
  4397.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4398.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 260 Punti del Drago per ricevere l'oggetto \"350 Unità Aura\"!");
  4399.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4400.         }
  4401.         case 8:
  4402.         {
  4403.           if(GetPlayerScore(playerid) < 310) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4404.           PlayerInfo[playerid][Stats][AuraMax][skin] = 400;
  4405.           AddPlayerScore(playerid,-310);
  4406.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4407.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 310 Punti del Drago per ricevere l'oggetto \"400 Unità Aura\"!");
  4408.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4409.         }
  4410.         case 9:
  4411.         {
  4412.           if(GetPlayerScore(playerid) < 410) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4413.           PlayerInfo[playerid][Stats][AuraMax][skin] = 500;
  4414.           AddPlayerScore(playerid,-410);
  4415.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4416.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 410 Punti del Drago per ricevere l'oggetto \"500 Unità Aura\"!");
  4417.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4418.         }
  4419.       }
  4420.       return 1;
  4421.     }
  4422.     case DIALOGO_PIU_SALUTE:
  4423.     {
  4424.       new skin = GetPlayerSkin(playerid);
  4425.       if(!response) return ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4426.       switch(listitem)
  4427.       {
  4428.         case 0:
  4429.         {
  4430.           if(GetPlayerScore(playerid) < 10) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4431.           PlayerInfo[playerid][Stats][SaluteMax][skin] = 100;
  4432.           AddPlayerScore(playerid,-10);
  4433.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4434.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 10 Punti del Drago per ricevere l'oggetto \"100 HP\"!");
  4435.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4436.         }
  4437.         case 1:
  4438.         {
  4439.           if(GetPlayerScore(playerid) < 25) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4440.           PlayerInfo[playerid][Stats][SaluteMax][skin] = 150;
  4441.           AddPlayerScore(playerid,-25);
  4442.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4443.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 25 Punti del Drago per ricevere l'oggetto \"150 HP\"!");
  4444.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4445.         }
  4446.         case 2:
  4447.         {
  4448.           if(GetPlayerScore(playerid) < 50) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4449.           PlayerInfo[playerid][Stats][SaluteMax][skin] = 200;
  4450.           AddPlayerScore(playerid,-50);
  4451.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4452.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 50 Punti del Drago per ricevere l'oggetto \"200 HP\"!");
  4453.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4454.         }
  4455.         case 3:
  4456.         {
  4457.           if(GetPlayerScore(playerid) < 75) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4458.           PlayerInfo[playerid][Stats][SaluteMax][skin] = 250;
  4459.           AddPlayerScore(playerid,-75);
  4460.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4461.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 75 Punti del Drago per ricevere l'oggetto \"250 HP\"!");
  4462.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4463.         }
  4464.         case 4:
  4465.         {
  4466.           if(GetPlayerScore(playerid) < 100) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4467.           PlayerInfo[playerid][Stats][SaluteMax][skin] = 300;
  4468.           AddPlayerScore(playerid,-100);
  4469.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4470.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 100 Punti del Drago per ricevere l'oggetto \"300 HP\"!");
  4471.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4472.         }
  4473.         case 5:
  4474.         {
  4475.           if(GetPlayerScore(playerid) < 125) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4476.           PlayerInfo[playerid][Stats][SaluteMax][skin] = 350;
  4477.           AddPlayerScore(playerid,-125);
  4478.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4479.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 125 Punti del Drago per ricevere l'oggetto \"350 HP\"!");
  4480.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4481.         }
  4482.         case 6:
  4483.         {
  4484.           if(GetPlayerScore(playerid) < 150) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4485.           PlayerInfo[playerid][Stats][SaluteMax][skin] = 400;
  4486.           AddPlayerScore(playerid,-150);
  4487.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4488.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 150 Punti del Drago per ricevere l'oggetto \"400 HP\"!");
  4489.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4490.         }
  4491.         case 7:
  4492.         {
  4493.           if(GetPlayerScore(playerid) < 175) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4494.           PlayerInfo[playerid][Stats][SaluteMax][skin] = 450;
  4495.           AddPlayerScore(playerid,-175);
  4496.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4497.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 175 Punti del Drago per ricevere l'oggetto \"450 HP\"!");
  4498.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4499.         }
  4500.         case 8:
  4501.         {
  4502.           if(GetPlayerScore(playerid) < 200) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4503.           PlayerInfo[playerid][Stats][SaluteMax][skin] = 500;
  4504.           AddPlayerScore(playerid,-200);
  4505.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4506.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 200 Punti del Drago per ricevere l'oggetto \"500 HP\"!");
  4507.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4508.         }
  4509.       }
  4510.       return 1;
  4511.     }
  4512.     case DIALOGO_PIU_VELOCITA:
  4513.     {
  4514.       new skin = GetPlayerSkin(playerid);
  4515.       if(!response) return ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4516.       switch(listitem)
  4517.       {
  4518.         case 0:
  4519.         {
  4520.           if(GetPlayerScore(playerid) < 25) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4521.           PlayerInfo[playerid][Stats][Velocita][skin] = 10;
  4522.           AddPlayerScore(playerid,-25);
  4523.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4524.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 25 Punti del Drago per ricevere l'oggetto \"Velocità 10 MPI\"!");
  4525.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4526.         }
  4527.         case 1:
  4528.         {
  4529.           if(GetPlayerScore(playerid) < 50) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4530.           PlayerInfo[playerid][Stats][Velocita][skin] = 20;
  4531.           AddPlayerScore(playerid,-50);
  4532.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4533.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 50 Punti del Drago per ricevere l'oggetto \"Velocità 20 MPI\"!");
  4534.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4535.         }
  4536.         case 2:
  4537.         {
  4538.           if(GetPlayerScore(playerid) < 75) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4539.           PlayerInfo[playerid][Stats][Velocita][skin] = 30;
  4540.           AddPlayerScore(playerid,-75);
  4541.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4542.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 75 Punti del Drago per ricevere l'oggetto \"Velocità 30 MPI\"!");
  4543.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4544.         }
  4545.         case 3:
  4546.         {
  4547.           if(GetPlayerScore(playerid) < 100) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4548.           PlayerInfo[playerid][Stats][Velocita][skin] = 40;
  4549.           AddPlayerScore(playerid,-100);
  4550.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4551.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 100 Punti del Drago per ricevere l'oggetto \"Velocità 40 MPI\"!");
  4552.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4553.         }
  4554.         case 4:
  4555.         {
  4556.           if(GetPlayerScore(playerid) < 125) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4557.           PlayerInfo[playerid][Stats][Velocita][skin] = 50;
  4558.           AddPlayerScore(playerid,-125);
  4559.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4560.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 125 Punti del Drago per ricevere l'oggetto \"Velocità 50 MPI\"!");
  4561.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4562.         }
  4563.         case 5:
  4564.         {
  4565.           if(GetPlayerScore(playerid) < 150) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4566.           PlayerInfo[playerid][Stats][Velocita][skin] = 60;
  4567.           AddPlayerScore(playerid,-150);
  4568.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4569.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 150 Punti del Drago per ricevere l'oggetto \"Velocità 60 MPI\"!");
  4570.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4571.         }
  4572.         case 6:
  4573.         {
  4574.           if(GetPlayerScore(playerid) < 175) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4575.           PlayerInfo[playerid][Stats][Velocita][skin] = 70;
  4576.           AddPlayerScore(playerid,-175);
  4577.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4578.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 175 Punti del Drago per ricevere l'oggetto \"Velocità 70 MPI\"!");
  4579.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4580.         }
  4581.         case 7:
  4582.         {
  4583.           if(GetPlayerScore(playerid) < 200) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4584.           PlayerInfo[playerid][Stats][Velocita][skin] = 80;
  4585.           AddPlayerScore(playerid,-200);
  4586.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4587.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 200 Punti del Drago per ricevere l'oggetto \"Velocità 80 MPI\"!");
  4588.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4589.         }
  4590.       }
  4591.       return 1;
  4592.     }
  4593.     case DIALOGO_ATTACCO2:
  4594.     {
  4595.       new skin = GetPlayerSkin(playerid);
  4596.       if(!response) return ShowPlayerDialog(playerid, DIALOGO_ATTACCO, DIALOG_STYLE_LIST, "Scegli l'Attacco Speciale da usare con /att.", TEXT_DIALOGO_ATTACCO1,"Applica","Indietro");
  4597.  
  4598.       switch(listitem)
  4599.       {
  4600.         case 0:
  4601.         {
  4602.           if(GetPlayerScore(playerid) < 40) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4603.           PlayerInfo[playerid][Stats][Attacco][skin] = DISTRUTTORE_LETALE;
  4604.           AddPlayerScore(playerid,-40);
  4605.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4606.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 40 Punti del Drago per ricevere l'oggetto \"Distruttore Letale\"!");
  4607.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4608.         }
  4609.         case 1:
  4610.         {
  4611.           if(GetPlayerScore(playerid) < 45) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4612.           PlayerInfo[playerid][Stats][Attacco][skin] = ARTIGLIO_DEL_LUPO;
  4613.           AddPlayerScore(playerid,-45);
  4614.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4615.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 45 Punti del Drago per ricevere l'oggetto \"Artiglio Del Lupo Esplosivo\"!");
  4616.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4617.         }
  4618.         case 2:
  4619.         {
  4620.           if(GetPlayerScore(playerid) < 45) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4621.           PlayerInfo[playerid][Stats][Attacco][skin] = TRIPLO_RAGGIO;
  4622.           AddPlayerScore(playerid,-45);
  4623.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4624.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 45 Punti del Drago per ricevere l'oggetto \"Triplo Raggio\"!");
  4625.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4626.         }
  4627.         case 3:
  4628.         {
  4629.           if(GetPlayerScore(playerid) < 30) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4630.           PlayerInfo[playerid][Stats][Attacco][skin] = RAGGIO_ENERGETICO;
  4631.           AddPlayerScore(playerid,-30);
  4632.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4633.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 30 Punti del Drago per ricevere l'oggetto \"Raggio Energetico\"!");
  4634.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4635.         }
  4636.         case 4:
  4637.         {
  4638.           if(GetPlayerScore(playerid) < 50) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4639.           PlayerInfo[playerid][Stats][Attacco][skin] = SFERE_ENERGETICHE;
  4640.           AddPlayerScore(playerid,-50);
  4641.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4642.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 50 Punti del Drago per ricevere l'oggetto \"Sfere Energetiche\"!");
  4643.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4644.         }
  4645.         case 5:
  4646.         {
  4647.           if(GetPlayerScore(playerid) < 50) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4648.           PlayerInfo[playerid][Stats][Attacco][skin] = LANCIARAZZI;
  4649.           AddPlayerScore(playerid,-50);
  4650.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4651.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 50 Punti del Drago per ricevere l'oggetto \"Lanciarazzi Incorporato\"!");
  4652.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4653.         }
  4654.         case 6:
  4655.         {
  4656.           if(GetPlayerScore(playerid) < 10) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4657.           PlayerInfo[playerid][Stats][Attacco][skin] = IL_CAMPIONE;
  4658.           AddPlayerScore(playerid,-10);
  4659.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4660.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 10 Punti del Drago per ricevere l'oggetto \"Il Campione\"!");
  4661.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4662.         }
  4663.         case 7:
  4664.         {
  4665.           if(GetPlayerScore(playerid) < 15) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4666.           PlayerInfo[playerid][Stats][Attacco][skin] = GRAN_BOMBA_AURA;
  4667.           AddPlayerScore(playerid,-15);
  4668.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4669.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 15 Punti del Drago per ricevere l'oggetto \"Gran Bomba D'Aura\"!");
  4670.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4671.         }
  4672.         case 8:
  4673.         {
  4674.           if(GetPlayerScore(playerid) < 80) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4675.           PlayerInfo[playerid][Stats][Attacco][skin] = KAMEHAMEHA_FINALE;
  4676.           AddPlayerScore(playerid,-80);
  4677.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4678.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 80 Punti del Drago per ricevere l'oggetto \"Kamehameha Finale\"!");
  4679.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4680.         }
  4681.         case 9:
  4682.         {
  4683.           if(GetPlayerScore(playerid) < 100) return SendClientMessage(playerid,COLOR_RED,NO_PUNTI_MESSAGE);
  4684.           PlayerInfo[playerid][Stats][Attacco][skin] = KAMEHAMEHA_BIG_BANG;
  4685.           AddPlayerScore(playerid,-100);
  4686.           GameTextForPlayer(playerid,"Caricamento",500,5);
  4687.           SendClientMessage(playerid,COLOR_LIGHTBLUE,"Hai pagato 100 Punti del Drago per ricevere l'oggetto \"Kamehameha Big Bang\"!");
  4688.           ShowPlayerDialog(playerid, DIALOGO_PERSONALIZZA, DIALOG_STYLE_LIST, SECONDARY_DIALOG_TEXT, TEXT_DIALOGO_MENU,"Continua","Termina");
  4689.         }
  4690.       }
  4691.       return 1;
  4692.     }
  4693.   }
  4694.   return 0;
  4695. }
  4696.  
  4697. //-=-=-=-=-=OnPlayerInteriorChange=-=-=-=-=-
  4698.  
  4699. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  4700. {
  4701.   new string[256];
  4702.   new name[MAX_PLAYER_NAME];
  4703.   if(newinteriorid != INTERIOR_SALONE && newinteriorid != INTERIOR_OUTSIDE && newinteriorid != INTERIOR_SALONE)
  4704.   {
  4705.     SetPlayerPos(playerid,PrigioneX,PrigioneY,PrigioneZ);
  4706.     SetPlayerInterior(playerid,6);
  4707.     GetPlayerName(playerid,name,sizeof(name));
  4708.     format(string, sizeof(string), "-SSB- %s è stato bannato dal server per 'Uso di cheat(interior change)'.", name);
  4709.     SendClientMessageToAll(COLOR_KICK/BAN,string);
  4710.     SendClientMessage(playerid,COLOR_KICK/BAN,"Regola n°1: Non si possono usare cheats(trucchi) in questo server. Pena: Ban.");
  4711.     SendClientMessage(playerid,COLOR_KICK/BAN,"Il sistema anti-interior-change ha scoperto che non ti trovi ne all'aperto ne in prigione.");
  4712.     GameTextForPlayer(playerid,"ORA SEI DISCONNESSO. /Q PER USCIRE DAL GIOCO.",300000,5);
  4713.     BanEx(playerid,"CHEAT(INTERIOR CHANGE)");
  4714.   }
  4715.   return 1;
  4716. }
  4717.  
  4718. //-=-=-=-=-=OnPlayerPickUpPickup=-=-=-=-=-
  4719.  
  4720. public OnPlayerPickUpPickup(playerid, pickupid)
  4721. {
  4722.   if(pickupid == SalvaPartita)
  4723.   {
  4724.     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", "");
  4725.     SetPlayerPos(playerid,822.736999,4.064427,1004.179687);//Ti sposta piu a sinistra per evitare il re-pickup.
  4726.     return 1;
  4727.   }
  4728.   if(pickupid == Drago1)
  4729.   {
  4730.     if(PlayerInfo[playerid][Sfera1] == 1) return GameTextForPlayer(playerid,"Questa sfera l'hai gia presa",500,5);
  4731.     PlayerInfo[playerid][Sfera1] = 1;
  4732.     SendClientMessage(playerid,COLOR_YELLOW,"Hai trovato la sfera del drago con 1 stella! Non dire a nessuno dove si trova!");
  4733.     SendClientMessage(playerid,COLOR_BLUE,"Quanto troverai tutte e sette le sfere potrai scegliere uno tra 3 desideri con /desiderio.");
  4734.     RemovePlayerMapIcon(playerid, 1);
  4735.     DBZ_Update(playerid);
  4736.     return 1;
  4737.   }
  4738.   if(pickupid == Drago2)
  4739.   {
  4740.     if(PlayerInfo[playerid][Sfera2] == 1) return GameTextForPlayer(playerid,"Questa sfera l'hai gia presa",500,5);
  4741.     PlayerInfo[playerid][Sfera2] = 1;
  4742.     SendClientMessage(playerid,COLOR_YELLOW,"Hai trovato la sfera del drago con 2 stelle! Non dire a nessuno dove si trova!");
  4743.     SendClientMessage(playerid,COLOR_BLUE,"Quanto troverai tutte e sette le sfere potrai scegliere uno tra 3 desideri con /desiderio.");
  4744.     RemovePlayerMapIcon(playerid, 2);
  4745.     DBZ_Update(playerid);
  4746.     return 1;
  4747.   }
  4748.   if(pickupid == Drago3)
  4749.   {
  4750.     if(PlayerInfo[playerid][Sfera3] == 1) return GameTextForPlayer(playerid,"Questa sfera l'hai gia presa",500,5);
  4751.     PlayerInfo[playerid][Sfera3] = 1;
  4752.     SendClientMessage(playerid,COLOR_YELLOW,"Hai trovato la sfera del drago con 3 stelle! Non dire a nessuno dove si trova!");
  4753.     SendClientMessage(playerid,COLOR_BLUE,"Quanto troverai tutte e sette le sfere potrai scegliere uno tra 3 desideri con /desiderio.");
  4754.     RemovePlayerMapIcon(playerid, 3);
  4755.     DBZ_Update(playerid);
  4756.     return 1;
  4757.   }
  4758.   if(pickupid == Drago4)
  4759.   {
  4760.     if(PlayerInfo[playerid][Sfera4] == 1) return GameTextForPlayer(playerid,"Questa sfera l'hai gia presa",500,5);
  4761.     PlayerInfo[playerid][Sfera4] = 1;
  4762.     SendClientMessage(playerid,COLOR_YELLOW,"Hai trovato la sfera del drago con 4 stelle! Non dire a nessuno dove si trova!");
  4763.     SendClientMessage(playerid,COLOR_BLUE,"Quanto troverai tutte e sette le sfere potrai scegliere uno tra 3 desideri con /desiderio.");
  4764.     RemovePlayerMapIcon(playerid, 4);
  4765.     DBZ_Update(playerid);
  4766.     return 1;
  4767.   }
  4768.   if(pickupid == Drago5)
  4769.   {
  4770.     if(PlayerInfo[playerid][Sfera5] == 1) return GameTextForPlayer(playerid,"Questa sfera l'hai gia presa",500,5);
  4771.     PlayerInfo[playerid][Sfera5] = 1;
  4772.     SendClientMessage(playerid,COLOR_YELLOW,"Hai trovato la sfera del drago con 5 stelle! Non dire a nessuno dove si trova!");
  4773.     SendClientMessage(playerid,COLOR_BLUE,"Quanto troverai tutte e sette le sfere potrai scegliere uno tra 3 desideri con /desiderio.");
  4774.     RemovePlayerMapIcon(playerid, 5);
  4775.     DBZ_Update(playerid);
  4776.     return 1;
  4777.   }
  4778.   if(pickupid == Drago6)
  4779.   {
  4780.     if(PlayerInfo[playerid][Sfera6] == 1) return GameTextForPlayer(playerid,"Questa sfera l'hai gia presa",500,5);
  4781.     PlayerInfo[playerid][Sfera6] = 1;
  4782.     SendClientMessage(playerid,COLOR_YELLOW,"Hai trovato la sfera del drago con 6 stelle! Non dire a nessuno dove si trova!");
  4783.     SendClientMessage(playerid,COLOR_BLUE,"Quanto troverai tutte e sette le sfere potrai scegliere uno tra 3 desideri con /desiderio.");
  4784.     RemovePlayerMapIcon(playerid, 6);
  4785.     DBZ_Update(playerid);
  4786.     return 1;
  4787.   }
  4788.   if(pickupid == Drago7)
  4789.   {
  4790.     if(PlayerInfo[playerid][Sfera7] == 1) return GameTextForPlayer(playerid,"Questa sfera l'hai gia presa",500,5);
  4791.     PlayerInfo[playerid][Sfera7] = 1;
  4792.     SendClientMessage(playerid,COLOR_YELLOW,"Hai trovato la sfera del drago con 7 stelle! Non dire a nessuno dove si trova!");
  4793.     SendClientMessage(playerid,COLOR_BLUE,  "Quanto troverai tutte e sette le sfere potrai scegliere uno tra 3 desideri con /desiderio.");
  4794.     RemovePlayerMapIcon(playerid, 7);
  4795.     DBZ_Update(playerid);
  4796.     return 1;
  4797.   }
  4798.   if(pickupid == Radar)
  4799.   {
  4800.     SendClientMessage(playerid,COLOR_YELLOW,"Hai trovato il 'Radar Del Drago'! Adesso potrai vedere piu semplicemente sul radar le sfere");
  4801.     SendClientMessage(playerid,COLOR_BLUE,  "del Drago! Una volta trovate tutte e sette potrai scegliere uno dei desideri disponibili!");
  4802.     if(PlayerInfo[playerid][Sfera1] == 0) SetPlayerMapIcon(playerid, 1, -537.200683,-102.969543,63.296875, 56, 0, MAPICON_GLOBAL);
  4803.     if(PlayerInfo[playerid][Sfera2] == 0) SetPlayerMapIcon(playerid, 2, -2670.812255,1933.930419,217.273895, 56, 0, MAPICON_GLOBAL);
  4804.     if(PlayerInfo[playerid][Sfera3] == 0) SetPlayerMapIcon(playerid, 3, 1451.416748,-1076.615478,213.382812, 56, 0, MAPICON_GLOBAL);
  4805.     if(PlayerInfo[playerid][Sfera4] == 0) SetPlayerMapIcon(playerid, 4, -1363.999755,493.684875,29.944622, 56, 0, MAPICON_GLOBAL);
  4806.     if(PlayerInfo[playerid][Sfera5] == 0) SetPlayerMapIcon(playerid, 5, -61.429683,-37.518638,25.980148, 56, 0, MAPICON_GLOBAL);
  4807.     if(PlayerInfo[playerid][Sfera6] == 0) SetPlayerMapIcon(playerid, 6, 281.206451,1816.537475,1.007812, 56, 0, MAPICON_GLOBAL);
  4808.     if(PlayerInfo[playerid][Sfera7] == 0) SetPlayerMapIcon(playerid, 7, 2323.700439,1283.225341,97.661628, 56, 0, MAPICON_GLOBAL);
  4809.     PlayerInfo[playerid][RadarPreso] = 1;
  4810.     return 1;
  4811.   }
  4812.   if(pickupid == Kill1 || pickupid == Kill2 || pickupid == Kill3 || pickupid == Kill4 || pickupid == Kill5 || pickupid == Kill6 || pickupid == Kill7 || pickupid == Kill8)
  4813.   {
  4814.     ShowPlayerDialog(playerid, DIALOGO_KILL, DIALOG_STYLE_MSGBOX, "Suicidio", "Vuoi suicidarti per cambiare battleground e personaggio?", "Si", "No");
  4815.     return 1;
  4816.   }
  4817.   return 1;
  4818. }
  4819.  
  4820. //-=-=-=-=-=OnPlayerKeyStateChange=-=-=-=-=-
  4821.  
  4822. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  4823. {
  4824.   if(GetPlayerInterior(playerid) == 3) return 1;
  4825.   if(newkeys == TASTO_ALT)
  4826.   {
  4827.     if(!IsPlayerAnAndroid(playerid))
  4828.     {
  4829.       new aura = GetPlayerMoney(playerid);
  4830.       if(aura < 5) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  4831.       CreateExplosionEx(playerid,10,12,0.1);
  4832.       GivePlayerMoney(playerid,-5);
  4833.     }
  4834.     CreateExplosionEx(playerid,10,12,0.1);
  4835.   }
  4836.  
  4837.   if(newkeys == TASTO_CLICK_CENTRALE)
  4838.   {
  4839.     AuraTimer[playerid] = SetTimerEx("CaricaAura", 250, true, "i", playerid);
  4840.     new skin = GetPlayerSkin(playerid);
  4841.    
  4842.     if(PlayerInfo[playerid][Stats][AuraSize][skin] == 0.0)
  4843.     {
  4844.    
  4845.         if(skin == SATAN || skin == VIDEL || skin == CRILIN || skin == YAMCHA || skin == TENSHINSHAN
  4846.          || skin == GELO || skin == C16 || skin == C17 || skin == C18 || skin == C19)
  4847.         {
  4848.             SetPlayerAttachedObject(playerid, 0, 19197, 1, 0.000000, 0.000000, 0.000000, 170.000000, 90.000000, 90.000000, 1.0, 1.0, 1.0);
  4849.             SetPlayerAttachedObject(playerid, 1, 19197, 1, 0.000000, 0.000000, 0.000000, 0.000000,   0.000000,   0.000000, 1.0, 1.0, 1.0);
  4850.             SetPlayerAttachedObject(playerid, 2, 19197, 1, 0.000000, 0.000000, 0.000000, 170.000000, 0.000000,   0.000000, 1.0, 1.0, 1.0);
  4851.  
  4852.         }
  4853.    
  4854.         else if(skin == GOKU0 || skin == VEGETA0 || skin == GOHAN0 || skin == TRUNKS0)
  4855.         {
  4856.             SetPlayerAttachedObject(playerid, 0, 19197, 1, 0.000000, 0.000000, 0.000000, 170.000000, 90.000000, 90.000000, 1.5, 1.5, 1.5);
  4857.             SetPlayerAttachedObject(playerid, 1, 19197, 1, 0.000000, 0.000000, 0.000000, 0.000000,   0.000000,   0.000000, 1.5, 1.5, 1.5);
  4858.             SetPlayerAttachedObject(playerid, 2, 19197, 1, 0.000000, 0.000000, 0.000000, 170.000000, 0.000000,   0.000000, 1.5, 1.5, 1.5);
  4859.         }
  4860.    
  4861.         else if(skin == GOKU1 || skin == VEGETA1 || skin == GOHAN1 || skin == TRUNKS1)
  4862.         {
  4863.             SetPlayerAttachedObject(playerid, 0, 19197, 1, 0.000000, 0.000000, 0.000000, 170.000000, 90.000000, 90.000000, 2.0, 2.0, 2.0);
  4864.             SetPlayerAttachedObject(playerid, 1, 19197, 1, 0.000000, 0.000000, 0.000000, 0.000000,   0.000000,   0.000000, 2.0, 2.0, 2.0);
  4865.             SetPlayerAttachedObject(playerid, 2, 19197, 1, 0.000000, 0.000000, 0.000000, 170.000000, 0.000000,   0.000000, 2.0, 2.0, 2.0);
  4866.         }
  4867.         else if(skin == GOKU2 || skin == VEGETA2 || skin == GOHAN2)
  4868.         {
  4869.             SetPlayerAttachedObject(playerid, 0, 19197, 1, 0.000000, 0.000000, 0.000000, 170.000000, 90.000000, 90.000000, 2.5, 2.5, 2.5);
  4870.             SetPlayerAttachedObject(playerid, 1, 19197, 1, 0.000000, 0.000000, 0.000000, 0.000000,   0.000000,   0.000000, 2.5, 2.5, 2.5);
  4871.             SetPlayerAttachedObject(playerid, 2, 19197, 1, 0.000000, 0.000000, 0.000000, 170.000000, 0.000000,   0.000000, 2.5, 2.5, 2.5);
  4872.         }
  4873.         else if(skin == VEGETAS || skin == TRUNKSS)
  4874.         {
  4875.             SetPlayerAttachedObject(playerid, 0, 19197, 1, 0.000000, 0.000000, 0.000000, 170.000000, 90.000000, 90.000000, 3.0, 3.0, 3.0);
  4876.             SetPlayerAttachedObject(playerid, 1, 19197, 1, 0.000000, 0.000000, 0.000000, 0.000000,   0.000000,   0.000000, 3.0, 3.0, 3.0);
  4877.             SetPlayerAttachedObject(playerid, 2, 19197, 1, 0.000000, 0.000000, 0.000000, 170.000000, 0.000000,   0.000000, 3.0, 3.0, 3.0);
  4878.         }
  4879.         else if(skin == VEGETAS || skin == TRUNKSS)
  4880.         {
  4881.             SetPlayerAttachedObject(playerid, 0, 19197, 1, 0.000000, 0.000000, 0.000000, 170.000000, 90.000000, 90.000000, 3.5, 3.5, 3.5);
  4882.             SetPlayerAttachedObject(playerid, 1, 19197, 1, 0.000000, 0.000000, 0.000000, 0.000000,   0.000000,   0.000000, 3.5, 3.5, 3.5);
  4883.             SetPlayerAttachedObject(playerid, 2, 19197, 1, 0.000000, 0.000000, 0.000000, 170.000000, 0.000000,   0.000000, 3.5, 3.5, 3.5);
  4884.         }
  4885.         else if(skin == GOKU3 || skin == VEGEKU0)
  4886.         {
  4887.             SetPlayerAttachedObject(playerid, 0, 19197, 1, 0.000000, 0.000000, 0.000000, 170.000000, 90.000000, 90.000000, 4.0, 4.0, 4.0);
  4888.             SetPlayerAttachedObject(playerid, 1, 19197, 1, 0.000000, 0.000000, 0.000000, 0.000000,   0.000000,   0.000000, 4.0, 4.0, 4.0);
  4889.             SetPlayerAttachedObject(playerid, 2, 19197, 1, 0.000000, 0.000000, 0.000000, 170.000000, 0.000000,   0.000000, 4.0, 4.0, 4.0);
  4890.         }
  4891.         else if(skin == VEGEKU1 || skin == GOGETA)
  4892.         {
  4893.             SetPlayerAttachedObject(playerid, 0, 19197, 1, 0.000000, 0.000000, 0.000000, 170.000000, 90.000000, 90.000000, 4.5, 4.5, 4.5);
  4894.             SetPlayerAttachedObject(playerid, 1, 19197, 1, 0.000000, 0.000000, 0.000000, 0.000000,   0.000000,   0.000000, 4.5, 4.5, 4.5);
  4895.             SetPlayerAttachedObject(playerid, 2, 19197, 1, 0.000000, 0.000000, 0.000000, 170.000000, 0.000000,   0.000000, 4.5, 4.5, 4.5);
  4896.         }
  4897.     }
  4898.     else
  4899.     {
  4900.         new Float: Size = PlayerInfo[playerid][Stats][AuraSize][skin];
  4901.         SetPlayerAttachedObject(playerid, 0, 19197, 1, 0.000000, 0.000000, 0.000000, 170.000000, 90.000000, 90.000000, Size, Size, Size);
  4902.         SetPlayerAttachedObject(playerid, 1, 19197, 1, 0.000000, 0.000000, 0.000000, 0.000000,   0.000000,   0.000000, Size, Size, Size);
  4903.         SetPlayerAttachedObject(playerid, 2, 19197, 1, 0.000000, 0.000000, 0.000000, 170.000000, 0.000000,   0.000000, Size, Size, Size);
  4904.     }
  4905.   }
  4906.   if(oldkeys == TASTO_CLICK_CENTRALE)
  4907.   {
  4908.     KillTimer(AuraTimer[playerid]);
  4909.     RemovePlayerAttachedObject(playerid, 0);
  4910.     RemovePlayerAttachedObject(playerid, 1);
  4911.     RemovePlayerAttachedObject(playerid, 2);
  4912.   }
  4913.  
  4914.   if(newkeys == TASTO_MAIUSC)
  4915.   {
  4916.     SpintaSuTimer[playerid] = SetTimerEx("SpintaSu", 100, true, "i", playerid);
  4917.   }
  4918.   if(oldkeys == TASTO_MAIUSC)
  4919.   {
  4920.     KillTimer(SpintaSuTimer[playerid]);
  4921.   }
  4922.  
  4923.   if(newkeys == TASTO_C)
  4924.   {
  4925.     SpintaGiuTimer[playerid] = SetTimerEx("SpintaGiu", 100, true, "i", playerid);
  4926.   }
  4927.   if(oldkeys == TASTO_C)
  4928.   {
  4929.     KillTimer(SpintaGiuTimer[playerid]);
  4930.   }
  4931.  
  4932.   if(newkeys == TASTO_SPAZIO)
  4933.   {
  4934.     SpintaAvantiTimer[playerid] = SetTimerEx("SpintaAvanti", 100, true, "i", playerid);
  4935.   }
  4936.   if(oldkeys == TASTO_SPAZIO)
  4937.   {
  4938.     KillTimer(SpintaAvantiTimer[playerid]);
  4939.   }
  4940.  
  4941.   // Tasti multipli          -------------------------------------
  4942.  
  4943.   if(newkeys == TASTO_MAIUSC + TASTO_CLICK_SINISTRO)
  4944.   {
  4945.     SpintaSuTimer2[playerid] = SetTimerEx("SpintaSuBreve", 150, true, "i", playerid);
  4946.   }
  4947.   if(oldkeys == TASTO_MAIUSC + TASTO_CLICK_SINISTRO)
  4948.   {
  4949.     KillTimer(SpintaSuTimer2[playerid]);
  4950.   }
  4951.  
  4952. //////////////
  4953.   if(newkeys == TASTO_C + TASTO_CLICK_SINISTRO)
  4954.   {
  4955.     SpintaGiuTimer2[playerid] = SetTimerEx("SpintaGiuBreve", 150, true, "i", playerid);
  4956.   }
  4957.   if(oldkeys == TASTO_C + TASTO_CLICK_SINISTRO)
  4958.   {
  4959.     KillTimer(SpintaGiuTimer2[playerid]);
  4960.   }
  4961.  
  4962. //////////////
  4963.   if(newkeys == TASTO_SPAZIO + TASTO_CLICK_SINISTRO)
  4964.   {
  4965.     SpintaAvantiTimer2[playerid] = SetTimerEx("SpintaAvantiBreve", 150, true, "i", playerid);
  4966.   }
  4967.   if(oldkeys == TASTO_SPAZIO + TASTO_CLICK_SINISTRO)
  4968.   {
  4969.     KillTimer(SpintaAvantiTimer2[playerid]);
  4970.   }
  4971.  
  4972.   //                        -------------------------------------
  4973.  
  4974.   if(newkeys == TASTO_INVIO)
  4975.   {
  4976.     new Float:ang;
  4977.     GetPlayerFacingAngle(playerid, ang);
  4978.     SetPlayerFacingAngle(playerid,ang -45);
  4979.     ClearAnimations(playerid);
  4980.   }
  4981.  
  4982.   if(newkeys == TASTO_TAB)
  4983.   {
  4984.     GameTextForPlayer(playerid,"Lo score corrisponde ai Punti del Drago.",5000,5);
  4985.   }
  4986.  
  4987.   if(newkeys & TASTO_CLICK_SINISTRO || newkeys & TASTO_CLICK_DESTRO && newkeys & TASTO_INVIO) //Combo
  4988.   {
  4989.     for(new i=0;i<MAX_PLAYERS;i++)
  4990.     {
  4991.       if(IsPlayerNearPlayer(1.0, playerid, i) && i != playerid)
  4992.       {
  4993.         if(GetTickCount() - ComboTick[playerid] < 550) return 1;
  4994.         ComboTick[playerid] = GetTickCount();
  4995.         KillTimer(ComboTimer[playerid]);
  4996.         Combo[playerid] += 1;
  4997.         new string[256];
  4998.         format(string,sizeof(string),"%d COMBO", Combo[playerid]);
  4999.         TextDrawSetString(TdCombo[playerid],string);
  5000.         TextDrawHideForPlayer(playerid,TdCombo[playerid]);
  5001.         TextDrawShowForPlayer(playerid,TdCombo[playerid]);
  5002.         ComboTimer[playerid] = SetTimerEx("OnPlayerFinishCombo",3000,false,"i",playerid);
  5003.       }
  5004.  
  5005.     }
  5006.  
  5007.   }
  5008.   return 1;
  5009. }
  5010.  
  5011. //-=-=-=-=-=OnPlayerFinishCombo=-=-=-=-=-
  5012.  
  5013. public OnPlayerFinishCombo(playerid)
  5014. {
  5015.   Combo[playerid] = 0;
  5016.   TextDrawHideForPlayer(playerid,TdCombo[playerid]);
  5017.   return 1;
  5018. }
  5019.  
  5020. //-=-=-=-=-=SpintaGiu=-=-=-=-=-
  5021.  
  5022. public SpintaGiu(playerid)
  5023. {
  5024.       new skin = GetPlayerSkin(playerid);
  5025.       new Float:X, Float:Y, Float:Z;
  5026.       new aura = GetPlayerMoney(playerid);
  5027.       GetPlayerPos(playerid,X,Y,Z);
  5028.       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; }
  5029.       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; }
  5030.       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; }
  5031.       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; }
  5032.       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; }
  5033.       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; }
  5034.       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; }
  5035.       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; }
  5036.  
  5037.       if(!IsPlayerAnAndroid(playerid))
  5038.       {
  5039.         if(aura < 2)
  5040.         {
  5041.           ClearAnimations(playerid);
  5042.           return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  5043.         }
  5044.         GivePlayerMoney(playerid,-2);
  5045.         if(skin == GOKU0) { SetPlayerPos(playerid,X,Y,Z-5); CreateExplosion(X,Y,Z+5,11,1); }
  5046.         if(skin == GOKU1) { SetPlayerPos(playerid,X,Y,Z-6); CreateExplosion(X,Y,Z+5,11,1); }
  5047.         if(skin == GOKU2) { SetPlayerPos(playerid,X,Y,Z-8); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z-8); }
  5048.         if(skin == GOKU3) { SetPlayerPos(playerid,X,Y,Z-10); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z-10); }
  5049.         if(skin == VEGETA0) { SetPlayerPos(playerid,X,Y,Z-5); CreateExplosion(X,Y,Z+5,11,1); }
  5050.         if(skin == VEGETA1) { SetPlayerPos(playerid,X,Y,Z-6); CreateExplosion(X,Y,Z+5,11,1); }
  5051.         if(skin == VEGETAS) { SetPlayerPos(playerid,X,Y,Z-7); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z-7); }
  5052.         if(skin == VEGETA2) { SetPlayerPos(playerid,X,Y,Z-8); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z-8); }
  5053.         if(skin == GOHAN0) { SetPlayerPos(playerid,X,Y,Z-5); CreateExplosion(X,Y,Z+5,11,1); }
  5054.         if(skin == GOHAN1) { SetPlayerPos(playerid,X,Y,Z-8); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z-8); }
  5055.         if(skin == GOHAN2) { SetPlayerPos(playerid,X,Y,Z-10); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z-10); }
  5056.         if(skin == TRUNKS0) { SetPlayerPos(playerid,X,Y,Z-5); CreateExplosion(X,Y,Z+5,11,1); }
  5057.         if(skin == TRUNKS1) { SetPlayerPos(playerid,X,Y,Z-6); CreateExplosion(X,Y,Z+5,11,1); }
  5058.         if(skin == TRUNKSS) { SetPlayerPos(playerid,X,Y,Z-7); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z-7); }
  5059.         if(skin == SATAN) { SetPlayerPos(playerid,X,Y,Z-3); CreateExplosion(X,Y,Z+5,11,1); }
  5060.         if(skin == VIDEL) { SetPlayerPos(playerid,X,Y,Z-4); CreateExplosion(X,Y,Z+5,11,1); }
  5061.         if(skin == CRILIN) { SetPlayerPos(playerid,X,Y,Z-5); CreateExplosion(X,Y,Z+5,11,1); }
  5062.         if(skin == YAMCHA) { SetPlayerPos(playerid,X,Y,Z-5); CreateExplosion(X,Y,Z+5,11,1); }
  5063.         if(skin == TENSHINSHAN) { SetPlayerPos(playerid,X,Y,Z-5); CreateExplosion(X,Y,Z+5,11,1); }
  5064.         if(skin == VEGEKU0) { SetPlayerPos(playerid,X,Y,Z-10); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z-10); }
  5065.         if(skin == VEGEKU1) { SetPlayerPos(playerid,X,Y,Z-15); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z-15); }
  5066.         if(skin == GOGETA) { SetPlayerPos(playerid,X,Y,Z-15); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z-15); }
  5067.         return 1;
  5068.       }
  5069.       SetPlayerPos(playerid,X,Y,Z-6);
  5070.       PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z);
  5071.       return 1;
  5072. }
  5073.  
  5074. //-=-=-=-=-=SpintaSu=-=-=-=-=-
  5075.  
  5076. public SpintaSu(playerid)
  5077. {
  5078.       new skin = GetPlayerSkin(playerid);
  5079.       new Float:X, Float:Y, Float:Z;
  5080.       new aura = GetPlayerMoney(playerid);
  5081.       GetPlayerPos(playerid,X,Y,Z);
  5082.       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; }
  5083.       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; }
  5084.       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; }
  5085.       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; }
  5086.       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; }
  5087.       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; }
  5088.       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; }
  5089.       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; }
  5090.  
  5091.       if(!IsPlayerAnAndroid(playerid))
  5092.       {
  5093.         if(aura < 2)
  5094.         {
  5095.           ClearAnimations(playerid);
  5096.           return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  5097.         }
  5098.         GivePlayerMoney(playerid,-2);
  5099.         if(skin == GOKU0) { SetPlayerPos(playerid,X,Y,Z+5); CreateExplosion(X,Y,Z-5,11,1); }
  5100.         if(skin == GOKU1) { SetPlayerPos(playerid,X,Y,Z+6); CreateExplosion(X,Y,Z-5,11,1); }
  5101.         if(skin == GOKU2) { SetPlayerPos(playerid,X,Y,Z+8); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z+8); }
  5102.         if(skin == GOKU3) { SetPlayerPos(playerid,X,Y,Z+10); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z+10); }
  5103.         if(skin == VEGETA0) { SetPlayerPos(playerid,X,Y,Z+5); CreateExplosion(X,Y,Z-5,11,1); }
  5104.         if(skin == VEGETA1) { SetPlayerPos(playerid,X,Y,Z+6); CreateExplosion(X,Y,Z-5,11,1); }
  5105.         if(skin == VEGETAS) { SetPlayerPos(playerid,X,Y,Z+7); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z+7); }
  5106.         if(skin == VEGETA2) { SetPlayerPos(playerid,X,Y,Z+8); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z+8); }
  5107.         if(skin == GOHAN0) { SetPlayerPos(playerid,X,Y,Z+5); CreateExplosion(X,Y,Z-5,11,1); }
  5108.         if(skin == GOHAN1) { SetPlayerPos(playerid,X,Y,Z+8); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z+8); }
  5109.         if(skin == GOHAN2) { SetPlayerPos(playerid,X,Y,Z+10); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z+10); }
  5110.         if(skin == TRUNKS0) { SetPlayerPos(playerid,X,Y,Z+5); CreateExplosion(X,Y,Z-5,11,1); }
  5111.         if(skin == TRUNKS1) { SetPlayerPos(playerid,X,Y,Z+6); CreateExplosion(X,Y,Z-5,11,1); }
  5112.         if(skin == TRUNKSS) { SetPlayerPos(playerid,X,Y,Z+7); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z+7); }
  5113.         if(skin == SATAN) { SetPlayerPos(playerid,X,Y,Z+3); CreateExplosion(X,Y,Z-5,11,1); }
  5114.         if(skin == VIDEL) { SetPlayerPos(playerid,X,Y,Z+4); CreateExplosion(X,Y,Z-5,11,1); }
  5115.         if(skin == CRILIN) { SetPlayerPos(playerid,X,Y,Z+5); CreateExplosion(X,Y,Z-5,11,1); }
  5116.         if(skin == YAMCHA) { SetPlayerPos(playerid,X,Y,Z+5); CreateExplosion(X,Y,Z-5,11,1); }
  5117.         if(skin == TENSHINSHAN) { SetPlayerPos(playerid,X,Y,Z+5); CreateExplosion(X,Y,Z-5,11,1); }
  5118.         if(skin == VEGEKU0) { SetPlayerPos(playerid,X,Y,Z+10); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z+10); }
  5119.         if(skin == VEGEKU1) { SetPlayerPos(playerid,X,Y,Z+15); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z+15); }
  5120.         if(skin == GOGETA) { SetPlayerPos(playerid,X,Y,Z+15); PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z+15); }
  5121.         return 1;
  5122.       }
  5123.       SetPlayerPos(playerid,X,Y,Z+6);
  5124.       PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z);
  5125.       return 1;
  5126. }
  5127.  
  5128. //-=-=-=-=-=OnPlayerHealthChange=-=-=-=-=-
  5129.  
  5130. public OnPlayerHealthChange(playerid, Float:newhealth, Float:oldhealth)
  5131. {
  5132.   new string[21];
  5133.   format(string, sizeof(string), "%d", floatround(newhealth));
  5134.   TextDrawSetString(ScrittaBarra2[playerid], string);
  5135.   TextDrawHideForPlayer(playerid, ScrittaBarra2[playerid]);
  5136.   TextDrawShowForPlayer(playerid, ScrittaBarra2[playerid]);
  5137.   return 1;
  5138. }
  5139.  
  5140. //-=-=-=-=-=OnPlayerArmourChange=-=-=-=-=-
  5141.  
  5142. public OnPlayerArmourChange(playerid, Float:newarmour, Float:oldarmour)
  5143. {
  5144.   new string[21];
  5145.   format(string, sizeof(string), "%d", floatround(newarmour));
  5146.   TextDrawSetString(ScrittaBarra1[playerid], string);
  5147.   TextDrawHideForPlayer(playerid, ScrittaBarra1[playerid]);
  5148.   TextDrawShowForPlayer(playerid, ScrittaBarra1[playerid]);
  5149.   return 1;
  5150. }
  5151.  
  5152. //-=-=-=-=-=OnPlayerMoneyChange=-=-=-=-=-
  5153.  
  5154. public OnPlayerMoneyChange(playerid, newmoney, oldmoney)
  5155. {
  5156.   new Float:salute;
  5157.   new aura = GetPlayerMoney(playerid);
  5158.   GetPlayerHealth(playerid,salute);
  5159.   if(salute < 5.0) SetPlayerHealth(playerid,0); //
  5160.   if(aura < 0) ResetPlayerMoney(playerid); //
  5161.   HideProgressBarForPlayer(playerid,BarraAura[playerid]);
  5162.   SetProgressBarValue(BarraAura[playerid], aura/5); //NOTE - Diviso 5 perche il max è 500 non 100
  5163.   ShowProgressBarForPlayer(playerid,BarraAura[playerid]);
  5164.  
  5165.   new string[21];
  5166.   format(string, sizeof(string), "%d", newmoney);
  5167.   TextDrawSetString(ScrittaBarra3[playerid], string);
  5168.   TextDrawHideForPlayer(playerid, ScrittaBarra3[playerid]);
  5169.   TextDrawShowForPlayer(playerid, ScrittaBarra3[playerid]);
  5170.   return 1;
  5171. }
  5172.  
  5173. //-=-=-=-=-=SpintaAvantiBreve=-=-=-=-=-
  5174.  
  5175. public SpintaAvantiBreve(playerid)
  5176. {
  5177.     new Float:X, Float:Y, Float:Z, Float:x2, Float:y2, Float:ang;
  5178.     GetPlayerPos(playerid, X, Y, Z);
  5179.     GetPlayerFacingAngle(playerid, ang);
  5180.     x2 = X + floatsin(-ang, degrees);
  5181.     y2 = Y + floatcos(-ang, degrees);
  5182.     SetPlayerPos(playerid, x2, y2, Z);
  5183.     return 1;
  5184. }
  5185.  
  5186. //-=-=-=-=-=SpintaSuBreve=-=-=-=-=-
  5187.  
  5188. public SpintaSuBreve(playerid)
  5189. {
  5190.     new Float:X, Float:Y, Float:Z;
  5191.     GetPlayerPos(playerid, X, Y, Z);
  5192.     SetPlayerPos(playerid, X, Y, Z+2);
  5193.     return 1;
  5194. }
  5195.  
  5196. //-=-=-=-=-=SpintaGiuBreve=-=-=-=-=-
  5197.  
  5198. public SpintaGiuBreve(playerid)
  5199. {
  5200.     new Float:X, Float:Y, Float:Z;
  5201.     GetPlayerPos(playerid, X, Y, Z);
  5202.     SetPlayerPos(playerid, X, Y, Z-1);
  5203.     return 1;
  5204. }
  5205.  
  5206. //-=-=-=-=-=SpintaAvanti=-=-=-=-=-
  5207.  
  5208. public SpintaAvanti(playerid)
  5209. {
  5210.     new Float:X,Float:Y,Float:Z,Float:x2,Float:y2,Float:x3,Float:y3,Float:ang;
  5211.     new aura = GetPlayerMoney(playerid);
  5212.     new skin = GetPlayerSkin(playerid);
  5213.     GetPlayerPos(playerid,X,Y,Z);
  5214.     GetPlayerFacingAngle(playerid, ang);
  5215.         if(PlayerInfo[playerid][Stats][Velocita][skin] == 10)
  5216.         {
  5217.           if(!IsPlayerAnAndroid(playerid))
  5218.           {
  5219.             if(aura < 1) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  5220.             GivePlayerMoney(playerid,-1);
  5221.           }
  5222.           x2 = X + (10 * floatsin(-ang, degrees));
  5223.           y2 = Y + (10 * floatcos(-ang, degrees));
  5224.           SetPlayerPos(playerid,x2,y2,Z);
  5225.           PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,x2,y2,Z);
  5226.           return 1;
  5227.         }
  5228.         if(PlayerInfo[playerid][Stats][Velocita][skin] == 20)
  5229.         {
  5230.           if(!IsPlayerAnAndroid(playerid))
  5231.           {
  5232.             if(aura < 2) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  5233.             GivePlayerMoney(playerid,-2);
  5234.           }
  5235.           x2 = X + (20 * floatsin(-ang, degrees));
  5236.           y2 = Y + (20 * floatcos(-ang, degrees));
  5237.           SetPlayerPos(playerid,x2,y2,Z);
  5238.           PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,x2,y2,Z);
  5239.           return 1;
  5240.         }
  5241.         if(PlayerInfo[playerid][Stats][Velocita][skin] == 30)
  5242.         {
  5243.           if(!IsPlayerAnAndroid(playerid))
  5244.           {
  5245.             if(aura < 3) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  5246.             GivePlayerMoney(playerid,-3);
  5247.           }
  5248.           x2 = X + (30 * floatsin(-ang, degrees));
  5249.           y2 = Y + (30 * floatcos(-ang, degrees));
  5250.           SetPlayerPos(playerid,x2,y2,Z);
  5251.           PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,x2,y2,Z);
  5252.           return 1;
  5253.         }
  5254.         if(PlayerInfo[playerid][Stats][Velocita][skin] == 40)
  5255.         {
  5256.           if(!IsPlayerAnAndroid(playerid))
  5257.           {
  5258.             if(aura < 4) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  5259.             GivePlayerMoney(playerid,-4);
  5260.           }
  5261.           x2 = X + (40 * floatsin(-ang, degrees));
  5262.           y2 = Y + (40 * floatcos(-ang, degrees));
  5263.           SetPlayerPos(playerid,x2,y2,Z);
  5264.           PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,x2,y2,Z);
  5265.           return 1;
  5266.         }
  5267.         if(PlayerInfo[playerid][Stats][Velocita][skin] == 50)
  5268.         {
  5269.           if(!IsPlayerAnAndroid(playerid))
  5270.           {
  5271.             if(aura < 5) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  5272.             GivePlayerMoney(playerid,-5);
  5273.           }
  5274.           x2 = X + (50 * floatsin(-ang, degrees));
  5275.           y2 = Y + (50 * floatcos(-ang, degrees));
  5276.           SetPlayerPos(playerid,x2,y2,Z);
  5277.           PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,x2,y2,Z);
  5278.           return 1;
  5279.         }
  5280.         if(PlayerInfo[playerid][Stats][Velocita][skin] == 60)
  5281.         {
  5282.           if(!IsPlayerAnAndroid(playerid))
  5283.           {
  5284.             if(aura < 6) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  5285.             GivePlayerMoney(playerid,-6);
  5286.           }
  5287.           x2 = X + (60 * floatsin(-ang, degrees));
  5288.           y2 = Y + (60 * floatcos(-ang, degrees));
  5289.           SetPlayerPos(playerid,x2,y2,Z);
  5290.           PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,x2,y2,Z);
  5291.           return 1;
  5292.         }
  5293.         if(PlayerInfo[playerid][Stats][Velocita][skin] == 70)
  5294.         {
  5295.           if(!IsPlayerAnAndroid(playerid))
  5296.           {
  5297.             if(aura < 7) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  5298.             GivePlayerMoney(playerid,-7);
  5299.           }
  5300.           x2 = X + (70 * floatsin(-ang, degrees));
  5301.           y2 = Y + (70 * floatcos(-ang, degrees));
  5302.           SetPlayerPos(playerid,x2,y2,Z);
  5303.           PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,x2,y2,Z);
  5304.           return 1;
  5305.         }
  5306.         if(PlayerInfo[playerid][Stats][Velocita][skin] == 80)
  5307.         {
  5308.           if(!IsPlayerAnAndroid(playerid))
  5309.           {
  5310.             if(aura < 8) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  5311.             GivePlayerMoney(playerid,-8);
  5312.           }
  5313.           x2 = X + (80 * floatsin(-ang, degrees));
  5314.           y2 = Y + (80 * floatcos(-ang, degrees));
  5315.           SetPlayerPos(playerid,x2,y2,Z);
  5316.           PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,x2,y2,Z);
  5317.           return 1;
  5318.         }
  5319.       if(!IsPlayerAnAndroid(playerid))
  5320.       {
  5321.         x3 = X + (-10 * floatsin(-ang, degrees));
  5322.         y3 = Y + (-10 * floatcos(-ang, degrees));
  5323.        
  5324.         if(aura < 1) return GameTextForPlayer(playerid,NO_AURA_MESSAGE,1000,5);
  5325.         GivePlayerMoney(playerid,-1);
  5326.        
  5327.         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); }
  5328.         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); }
  5329.         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); }
  5330.         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); }
  5331.         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); }
  5332.         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); }
  5333.         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); }
  5334.         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); }
  5335.         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); }
  5336.         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); }
  5337.         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); }
  5338.         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); }
  5339.         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); }
  5340.         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); }
  5341.         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); }
  5342.         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); }
  5343.         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); }
  5344.         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); }
  5345.         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); }
  5346.         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); }
  5347.         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); }
  5348.         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); }
  5349.         return 1;
  5350.       }
  5351.       GetPlayerPos(playerid,X,Y,Z);
  5352.       GetPlayerFacingAngle(playerid, ang);
  5353.       x2 = X + (6 * floatsin(-ang, degrees));
  5354.       y2 = Y + (6 * floatcos(-ang, degrees));
  5355.       PlayerPlaySound(playerid,SOUND_CAMERA_SHOT,X,Y,Z);
  5356.       SetPlayerPos(playerid,x2,y2,Z);
  5357.       return 1;
  5358. }
  5359.  
  5360. //-=-=-=-=-=CaricaAura=-=-=-=-=-
  5361.  
  5362. public CaricaAura(playerid)
  5363. {
  5364.     new skin = GetPlayerSkin(playerid);
  5365.     new aura = GetPlayerMoney(playerid);
  5366.     new Float:X, Float:Y, Float:Z;
  5367.     new AuraGiocatore = PlayerInfo[playerid][Stats][AuraMax][skin];
  5368.     GetPlayerPos(playerid,X,Y,Z);
  5369.     switch(skin)
  5370.     {
  5371.       case GOKU0:
  5372.       {
  5373.         if(AuraGiocatore > 50)
  5374.         {
  5375.           if(aura >= AuraGiocatore)
  5376.           {
  5377.             SetPlayerMoney(playerid,AuraGiocatore);
  5378.             return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5379.           }
  5380.           ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5381.           GivePlayerMoney(playerid,5);
  5382.           CreateExplosion(X,Y,Z+5,11,1);
  5383.           return 1;
  5384.         }
  5385.         if(aura >= 100)
  5386.         {
  5387.           SetPlayerMoney(playerid,100);
  5388.           return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5389.         }
  5390.         ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5391.         GivePlayerMoney(playerid,5);
  5392.         CreateExplosion(X,Y,Z+5,11,1);
  5393.       }
  5394.       case GOKU1:
  5395.       {
  5396.         if(AuraGiocatore > 50)
  5397.         {
  5398.           if(aura >= AuraGiocatore)
  5399.           {
  5400.             SetPlayerMoney(playerid,AuraGiocatore);
  5401.             return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5402.           }
  5403.           ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5404.           GivePlayerMoney(playerid,6);
  5405.           CreateExplosion(X,Y,Z+5,11,1);
  5406.           return 1;
  5407.         }
  5408.         if(aura >= 105)
  5409.         {
  5410.           SetPlayerMoney(playerid,105);
  5411.           return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5412.         }
  5413.         ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5414.         GivePlayerMoney(playerid,6);
  5415.         CreateExplosion(X,Y,Z+5,11,1);
  5416.       }
  5417.       case GOKU2:
  5418.       {
  5419.         if(AuraGiocatore > 50)
  5420.         {
  5421.           if(aura >= AuraGiocatore)
  5422.           {
  5423.             SetPlayerMoney(playerid,AuraGiocatore);
  5424.             return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5425.           }
  5426.           ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5427.           GivePlayerMoney(playerid,7);
  5428.           CreateExplosion(X,Y,Z+5,11,1);
  5429.           return 1;
  5430.         }
  5431.         if(aura >= 110)
  5432.         {
  5433.           SetPlayerMoney(playerid,110);
  5434.           return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5435.         }
  5436.         ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5437.         GivePlayerMoney(playerid,7);
  5438.         CreateExplosion(X,Y,Z+5,11,1);
  5439.       }
  5440.       case GOKU3:
  5441.       {
  5442.         if(AuraGiocatore > 50)
  5443.         {
  5444.           if(aura >= AuraGiocatore)
  5445.           {
  5446.             SetPlayerMoney(playerid,AuraGiocatore);
  5447.             return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5448.           }
  5449.           ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5450.           GivePlayerMoney(playerid,8);
  5451.           CreateExplosion(X,Y,Z+5,11,1);
  5452.           return 1;
  5453.         }
  5454.         if(aura >= 120)
  5455.         {
  5456.           SetPlayerMoney(playerid,120);
  5457.           return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5458.         }
  5459.         ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5460.         GivePlayerMoney(playerid,8);
  5461.         CreateExplosion(X,Y,Z+5,11,1);
  5462.       }
  5463.       case VEGETA0:
  5464.       {
  5465.         if(AuraGiocatore > 50)
  5466.         {
  5467.           if(aura >= AuraGiocatore)
  5468.           {
  5469.             SetPlayerMoney(playerid,AuraGiocatore);
  5470.             return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5471.           }
  5472.           ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5473.           GivePlayerMoney(playerid,5);
  5474.           CreateExplosion(X,Y,Z+5,11,1);
  5475.           return 1;
  5476.         }
  5477.         if(aura >= 100)
  5478.         {
  5479.           SetPlayerMoney(playerid,100);
  5480.           return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5481.         }
  5482.         ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5483.         GivePlayerMoney(playerid,5);
  5484.         CreateExplosion(X,Y,Z+5,11,1);
  5485.       }
  5486.       case VEGETA1:
  5487.       {
  5488.         if(AuraGiocatore > 50)
  5489.         {
  5490.           if(aura >= AuraGiocatore)
  5491.           {
  5492.             SetPlayerMoney(playerid,AuraGiocatore);
  5493.             return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5494.           }
  5495.           ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5496.           GivePlayerMoney(playerid,5);
  5497.           CreateExplosion(X,Y,Z+6,11,1);
  5498.           return 1;
  5499.         }
  5500.         if(aura >= 105)
  5501.         {
  5502.           SetPlayerMoney(playerid,105);
  5503.           return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5504.         }
  5505.         ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5506.         GivePlayerMoney(playerid,6);
  5507.         CreateExplosion(X,Y,Z+5,11,1);
  5508.       }
  5509.       case VEGETAS:
  5510.       {
  5511.         if(AuraGiocatore > 50)
  5512.         {
  5513.           if(aura >= AuraGiocatore)
  5514.           {
  5515.             SetPlayerMoney(playerid,AuraGiocatore);
  5516.             return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5517.           }
  5518.           ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5519.           GivePlayerMoney(playerid,6);
  5520.           CreateExplosion(X,Y,Z+5,11,1);
  5521.           return 1;
  5522.         }
  5523.         if(aura >= 105)
  5524.         {
  5525.           SetPlayerMoney(playerid,105);
  5526.           return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5527.         }
  5528.         ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5529.         GivePlayerMoney(playerid,6);
  5530.         CreateExplosion(X,Y,Z+5,11,1);
  5531.       }
  5532.       case VEGETA2:
  5533.       {
  5534.         if(AuraGiocatore > 50)
  5535.         {
  5536.           if(aura >= AuraGiocatore)
  5537.           {
  5538.             SetPlayerMoney(playerid,AuraGiocatore);
  5539.             return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5540.           }
  5541.           ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5542.           GivePlayerMoney(playerid,7);
  5543.           CreateExplosion(X,Y,Z+5,11,1);
  5544.           return 1;
  5545.         }
  5546.         if(aura >= 110)
  5547.         {
  5548.           SetPlayerMoney(playerid,110);
  5549.           return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5550.         }
  5551.         ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5552.         GivePlayerMoney(playerid,7);
  5553.         CreateExplosion(X,Y,Z+5,11,1);
  5554.       }
  5555.       case TRUNKS0:
  5556.       {
  5557.         if(AuraGiocatore > 50)
  5558.         {
  5559.           if(aura >= AuraGiocatore)
  5560.           {
  5561.             SetPlayerMoney(playerid,AuraGiocatore);
  5562.             return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5563.           }
  5564.           ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5565.           GivePlayerMoney(playerid,5);
  5566.           CreateExplosion(X,Y,Z+5,11,1);
  5567.           return 1;
  5568.         }
  5569.         if(aura >= 100)
  5570.         {
  5571.           SetPlayerMoney(playerid,100);
  5572.           return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5573.         }
  5574.         ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5575.         GivePlayerMoney(playerid,5);
  5576.         CreateExplosion(X,Y,Z+5,11,1);
  5577.       }
  5578.       case TRUNKS1:
  5579.       {
  5580.         if(AuraGiocatore > 50)
  5581.         {
  5582.           if(aura >= AuraGiocatore)
  5583.           {
  5584.             SetPlayerMoney(playerid,AuraGiocatore);
  5585.             return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5586.           }
  5587.           ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5588.           GivePlayerMoney(playerid,6);
  5589.           CreateExplosion(X,Y,Z+5,11,1);
  5590.           return 1;
  5591.         }
  5592.         if(aura >= 105)
  5593.         {
  5594.           SetPlayerMoney(playerid,105);
  5595.           return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5596.         }
  5597.         ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5598.         GivePlayerMoney(playerid,6);
  5599.         CreateExplosion(X,Y,Z+5,11,1);
  5600.       }
  5601.       case TRUNKSS:
  5602.       {
  5603.         if(AuraGiocatore > 50)
  5604.         {
  5605.           if(aura >= AuraGiocatore)
  5606.           {
  5607.             SetPlayerMoney(playerid,AuraGiocatore);
  5608.             return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5609.           }
  5610.           ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5611.           GivePlayerMoney(playerid,5);
  5612.           CreateExplosion(X,Y,Z+6,11,1);
  5613.           return 1;
  5614.         }
  5615.         if(aura >= 105)
  5616.         {
  5617.           SetPlayerMoney(playerid,105);
  5618.           return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5619.         }
  5620.         ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5621.         GivePlayerMoney(playerid,6);
  5622.         CreateExplosion(X,Y,Z+5,11,1);
  5623.       }
  5624.       case GOHAN0:
  5625.       {
  5626.         if(AuraGiocatore > 50)
  5627.         {
  5628.           if(aura >= AuraGiocatore)
  5629.           {
  5630.             SetPlayerMoney(playerid,AuraGiocatore);
  5631.             return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5632.           }
  5633.           ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5634.           GivePlayerMoney(playerid,5);
  5635.           CreateExplosion(X,Y,Z+5,11,1);
  5636.           return 1;
  5637.         }
  5638.         if(aura >= 100)
  5639.         {
  5640.           SetPlayerMoney(playerid,100);
  5641.           return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5642.         }
  5643.         ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5644.         GivePlayerMoney(playerid,5);
  5645.         CreateExplosion(X,Y,Z+5,11,1);
  5646.       }
  5647.       case GOHAN1:
  5648.       {
  5649.         if(AuraGiocatore > 50)
  5650.         {
  5651.           if(aura >= AuraGiocatore)
  5652.           {
  5653.             SetPlayerMoney(playerid,AuraGiocatore);
  5654.             return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5655.           }
  5656.           ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5657.           GivePlayerMoney(playerid,5);
  5658.           CreateExplosion(X,Y,Z+6,11,1);
  5659.           return 1;
  5660.         }
  5661.         if(aura >= 105)
  5662.         {
  5663.           SetPlayerMoney(playerid,105);
  5664.           return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5665.         }
  5666.         ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5667.         GivePlayerMoney(playerid,6);
  5668.         CreateExplosion(X,Y,Z+5,11,1);
  5669.       }
  5670.       case GOHAN2:
  5671.       {
  5672.         if(AuraGiocatore > 50)
  5673.         {
  5674.           if(aura >= AuraGiocatore)
  5675.           {
  5676.             SetPlayerMoney(playerid,AuraGiocatore);
  5677.             return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5678.           }
  5679.           ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5680.           GivePlayerMoney(playerid,7);
  5681.           CreateExplosion(X,Y,Z+5,11,1);
  5682.           return 1;
  5683.         }
  5684.         if(aura >= 115)
  5685.         {
  5686.           SetPlayerMoney(playerid,115);
  5687.           return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5688.         }
  5689.         ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5690.         GivePlayerMoney(playerid,7);
  5691.         CreateExplosion(X,Y,Z+5,11,1);
  5692.       }
  5693.       case VEGEKU0:
  5694.       {
  5695.         if(AuraGiocatore > 50)
  5696.         {
  5697.           if(aura >= AuraGiocatore)
  5698.           {
  5699.             SetPlayerMoney(playerid,AuraGiocatore);
  5700.             return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5701.           }
  5702.           ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5703.           GivePlayerMoney(playerid,8);
  5704.           CreateExplosion(X,Y,Z+8,11,1);
  5705.           return 1;
  5706.         }
  5707.         if(aura >= 125)
  5708.         {
  5709.           SetPlayerMoney(playerid,125);
  5710.           return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5711.         }
  5712.         ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5713.         GivePlayerMoney(playerid,8);
  5714.         CreateExplosion(X,Y,Z+5,11,1);
  5715.       }
  5716.       case VEGEKU1:
  5717.       {
  5718.         if(AuraGiocatore > 50)
  5719.         {
  5720.           if(aura >= AuraGiocatore)
  5721.           {
  5722.             SetPlayerMoney(playerid,AuraGiocatore);
  5723.             return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5724.           }
  5725.           ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5726.           GivePlayerMoney(playerid,10);
  5727.           CreateExplosion(X,Y,Z+5,11,1);
  5728.           return 1;
  5729.         }
  5730.         if(aura >= 150)
  5731.         {
  5732.           SetPlayerMoney(playerid,150);
  5733.           return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5734.         }
  5735.         ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5736.         GivePlayerMoney(playerid,10);
  5737.         CreateExplosion(X,Y,Z+5,11,1);
  5738.       }
  5739.       case GOGETA:
  5740.       {
  5741.         if(AuraGiocatore > 50)
  5742.         {
  5743.           if(aura >= AuraGiocatore)
  5744.           {
  5745.             SetPlayerMoney(playerid,AuraGiocatore);
  5746.             return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5747.           }
  5748.           ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5749.           GivePlayerMoney(playerid,10);
  5750.           CreateExplosion(X,Y,Z+5,11,1);
  5751.           return 1;
  5752.         }
  5753.         if(aura >= 150)
  5754.         {
  5755.           SetPlayerMoney(playerid,150);
  5756.           return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5757.         }
  5758.         ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5759.         GivePlayerMoney(playerid,10);
  5760.         CreateExplosion(X,Y,Z+5,11,1);
  5761.       }
  5762.       case SATAN:
  5763.       {
  5764.         if(AuraGiocatore > 50)
  5765.         {
  5766.           if(aura >= AuraGiocatore)
  5767.           {
  5768.             SetPlayerMoney(playerid,AuraGiocatore);
  5769.             return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5770.           }
  5771.           ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5772.           GivePlayerMoney(playerid,3);
  5773.           CreateExplosion(X,Y,Z+5,11,1);
  5774.           return 1;
  5775.         }
  5776.         if(aura >= 75)
  5777.         {
  5778.           SetPlayerMoney(playerid,75);
  5779.           return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5780.         }
  5781.         ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5782.         GivePlayerMoney(playerid,3);
  5783.         CreateExplosion(X,Y,Z+5,11,1);
  5784.       }
  5785.       case VIDEL:
  5786.       {
  5787.         if(AuraGiocatore > 50)
  5788.         {
  5789.           if(aura >= AuraGiocatore)
  5790.           {
  5791.             SetPlayerMoney(playerid,AuraGiocatore);
  5792.             return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5793.           }
  5794.           ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5795.           GivePlayerMoney(playerid,4);
  5796.           CreateExplosion(X,Y,Z+5,11,1);
  5797.           return 1;
  5798.         }
  5799.         if(aura >= 90)
  5800.         {
  5801.           SetPlayerMoney(playerid,90);
  5802.           return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5803.         }
  5804.         ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5805.         GivePlayerMoney(playerid,4);
  5806.         CreateExplosion(X,Y,Z+5,11,1);
  5807.       }
  5808.       case CRILIN:
  5809.       {
  5810.         if(AuraGiocatore > 50)
  5811.         {
  5812.           if(aura >= AuraGiocatore)
  5813.           {
  5814.             SetPlayerMoney(playerid,AuraGiocatore);
  5815.             return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5816.           }
  5817.           ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5818.           GivePlayerMoney(playerid,5);
  5819.           CreateExplosion(X,Y,Z+5,11,1);
  5820.           return 1;
  5821.         }
  5822.         if(aura >= 100)
  5823.         {
  5824.           SetPlayerMoney(playerid,100);
  5825.           return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5826.         }
  5827.         ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5828.         GivePlayerMoney(playerid,5);
  5829.         CreateExplosion(X,Y,Z+5,11,1);
  5830.       }
  5831.       case YAMCHA:
  5832.       {
  5833.         if(AuraGiocatore > 50)
  5834.         {
  5835.           if(aura >= AuraGiocatore)
  5836.           {
  5837.             SetPlayerMoney(playerid,AuraGiocatore);
  5838.             return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5839.           }
  5840.           ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5841.           GivePlayerMoney(playerid,5);
  5842.           CreateExplosion(X,Y,Z+5,11,1);
  5843.           return 1;
  5844.         }
  5845.         if(aura >= 100)
  5846.         {
  5847.           SetPlayerMoney(playerid,100);
  5848.           return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5849.         }
  5850.         ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5851.         GivePlayerMoney(playerid,5);
  5852.         CreateExplosion(X,Y,Z+5,11,1);
  5853.       }
  5854.       case TENSHINSHAN:
  5855.       {
  5856.         if(AuraGiocatore > 50)
  5857.         {
  5858.           if(aura >= AuraGiocatore)
  5859.           {
  5860.             SetPlayerMoney(playerid,AuraGiocatore);
  5861.             return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5862.           }
  5863.           ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5864.           GivePlayerMoney(playerid,5);
  5865.           CreateExplosion(X,Y,Z+5,11,1);
  5866.           return 1;
  5867.         }
  5868.         if(aura >= 100)
  5869.         {
  5870.           SetPlayerMoney(playerid,100);
  5871.           return GameTextForPlayer(playerid,"~r~Hai l'indicatore d'aura gia pieno.",1000,5);
  5872.         }
  5873.         ApplyAnimationEx(playerid,"CLOTHES","CLO_Buy",4.1,0,1,1,1,1);
  5874.         GivePlayerMoney(playerid,5);
  5875.         CreateExplosion(X,Y,Z+5,11,1);
  5876.       }
  5877.       case GELO:
  5878.       {
  5879.         GameTextForPlayer(playerid,"~r~I Cyborg(Androidi) non hanno aura!",1000,5);
  5880.       }
  5881.       case C16:
  5882.       {
  5883.         GameTextForPlayer(playerid,"~r~I Cyborg(Androidi) non hanno aura!",1000,5);
  5884.       }
  5885.       case C17:
  5886.       {
  5887.         GameTextForPlayer(playerid,"~r~I Cyborg(Androidi) non hanno aura!",1000,5);
  5888.       }
  5889.       case C18:
  5890.       {
  5891.         GameTextForPlayer(playerid,"~r~I Cyborg(Androidi) non hanno aura!",1000,5);
  5892.       }
  5893.       case C19:
  5894.       {
  5895.         GameTextForPlayer(playerid,"~r~I Cyborg(Androidi) non hanno aura!",1000,5);
  5896.       }
  5897.     }
  5898.     return 1;
  5899. }
  5900.  
  5901. //-=-=-=-=-=Unfreeze=-=-=-=-=-
  5902.  
  5903. public Unfreeze(playerid)
  5904. {
  5905.   TogglePlayerControllable(playerid,true);
  5906. }
  5907.  
  5908. //-=-=-=-=-=Caricamento25=-=-=-=-=-
  5909.  
  5910. public Caricamento25(playerid)
  5911. {
  5912.   new name[20];
  5913.   new string[256];
  5914.   new skin = GetPlayerSkin(playerid);
  5915.   GetPlayerName(playerid,name,sizeof(name));
  5916.   format(string, sizeof(string), "Dragonball/%s.ini", name,skin);
  5917.   INI_Open(string);
  5918. //{
  5919.     PlayerInfo[playerid][Punteggio] = INI_ReadInt("Score");
  5920.     SetPlayerScore(playerid,PlayerInfo[playerid][Punteggio]);
  5921.     INI_Close();
  5922. //}
  5923.   SendClientMessage(playerid,COLOR_RED,"Punti del drago caricati!");
  5924.   SendClientMessage(playerid,COLOR_RED,"Stile di combattimento caricato!");
  5925. }
  5926.  
  5927. //-=-=-=-=-=Caricamento50=-=-=-=-=-
  5928.  
  5929. public Caricamento50(playerid)
  5930. {
  5931.   SendClientMessage(playerid,COLOR_RED,"Attacco Speciale caricato!");
  5932.   SendClientMessage(playerid,COLOR_RED,"Velocità caricata!");
  5933. }
  5934.  
  5935. //-=-=-=-=-=Caricamento100=-=-=-=-=-
  5936.  
  5937. public Caricamento100(playerid)
  5938. {
  5939.   SendClientMessage(playerid,COLOR_RED,"Aura massima caricata!");
  5940.   SendClientMessage(playerid,COLOR_RED,"Salute massima caricata!");
  5941. }
  5942.  
  5943. //=-=-=-=-=-==-=-=-=-=-==-=-=-=-=-=FUNCTIONS=-=-=-=-=-==-=-=-=-=-==-=-=-=-=-=
  5944.  
  5945. //-=-=-=-=-=AddPlayerScore=-=-=-=-=-
  5946.  
  5947. stock AddPlayerScore(playerid, score)
  5948. {
  5949.   new attuale = GetPlayerScore(playerid);
  5950.   SetPlayerScore(playerid,attuale+score);
  5951.   return 1;
  5952. }
  5953.  
  5954. //-=-=-=-=-=SetPlayerMoney=-=-=-=-=-
  5955.  
  5956. stock SetPlayerMoney(playerid, money)
  5957. {
  5958.   ResetPlayerMoney(playerid);
  5959.   GivePlayerMoney(playerid,money);
  5960.   return 1;
  5961. }
  5962.  
  5963. //-=-=-=-=-=GivePlayerHealth=-=-=-=-=-
  5964.  
  5965. stock GivePlayerHealth(playerid, Float:health)
  5966. {
  5967.   SetPlayerHealth(playerid,GetPlayerHealth(playerid)+health);
  5968.   return 1;
  5969. }
  5970.  
  5971. //-=-=-=-=-=GivePlayerArmour=-=-=-=-=-
  5972.  
  5973. stock GivePlayerArmour(playerid, Float:armour)
  5974. {
  5975.   SetPlayerArmour(playerid,GetPlayerHealth(playerid)+armour);
  5976.   return 1;
  5977. }
  5978.  
  5979. //-=-=-=-=-=Kill=-=-=-=-=-
  5980.  
  5981. stock Kill(playerid)
  5982. {
  5983.   SetPlayerHealth(playerid,1);
  5984.   return 1;
  5985. }
  5986.  
  5987. //=-=-=-=-=-=-=SendMessageToAdmins=-=-=-=-=-=-=-
  5988.  
  5989. stock SendMessageToAdmins(color,const string[])
  5990. {
  5991.     for(new i = 0; i <= MAX_PLAYERS; i++)
  5992.     {
  5993.         if(IsPlayerConnected(i) == 1)
  5994.         {
  5995.             if (AdminLevel[i] != GIOCATORE)
  5996.             {
  5997.                 SendClientMessage(i, color, string);
  5998.             }
  5999.         }
  6000.     }
  6001.     return 1;
  6002. }
  6003.  
  6004. //=-=-=-=-=-=-=FrasePulita=-=-=-=-=-=-=-
  6005.  
  6006. stock FrasePulita(playerid,text[])        //By Soeh_
  6007. {
  6008.         new string[256];
  6009.         new name[MAX_PLAYER_NAME];
  6010.         GetPlayerName(playerid,name,sizeof(name));
  6011.         for(new i=0;i<sizeof(VocaboliVietati);i++)
  6012.         {
  6013.             if (strfind(text,VocaboliVietati[i],true) != null)
  6014.             {
  6015.                 if(playerid != INVALID_PLAYER_ID)
  6016.                 {
  6017.                   PlaySound(playerid, SOUND_ROULETTE_NO_CASH);
  6018.                   SendClientMessage(playerid,COLOR_RED,"ANTI-INSULTI: Sei stato mutato per aver usato una parola scorretta.");
  6019.                   format(string,sizeof(string),"-SSB- %s è stato mutato dal server per 'Uso di linguaggio inappropriato'.",name);
  6020.                   SendClientMessageToAll(COLOR_RED,string);
  6021.                   SendClientMessage(playerid,COLOR_RED,"Regola n°3: Non si possono offendere gli altri giocatori con insulti. Pena: Mute.");
  6022.                   muted[playerid] = true;
  6023.                   return 0;
  6024.                 }
  6025.               return 0;
  6026.             }
  6027.  
  6028.         }
  6029.         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)
  6030.         {
  6031.             if(playerid != INVALID_PLAYER_ID)
  6032.             {
  6033.                 SendClientMessage(playerid,COLOR_RED,"ANTI-SPAM: Sei stato mutato per aver tentato di spammare.");
  6034.                 PlaySound(playerid, SOUND_ROULETTE_NO_CASH);
  6035.                 format(string,sizeof(string),"-SSB- %s è stato mutato dal server per 'Pubblicità indesiderata'.",name);
  6036.                 SendClientMessageToAll(COLOR_RED,string);
  6037.                 SendClientMessage(playerid,COLOR_RED,"Regola n°4: Non si puo fare pubblicità indesiderata all'interno del server. Pena: Mute.");
  6038.                 muted[playerid] = true;
  6039.             }
  6040.             return 0;
  6041.         }
  6042.     return 1;
  6043. }
  6044.  
  6045. //=-=-=-=-=-=-=DBZ_Update=-=-=-=-=-=-=-
  6046.  
  6047. stock DBZ_Update(playerid)
  6048. {
  6049.   new name[MAX_PLAYER_NAME];
  6050.   new string[256];
  6051.   GetPlayerName(playerid,name,sizeof(name));
  6052.   format(string,sizeof(string),"Dragonball/%s.ini",name);
  6053.  
  6054.     if(INI_Exist(string))
  6055.     {
  6056.       INI_Remove(string);
  6057.       INI_Open(string);
  6058.       INI_WriteInt( "Score", GetPlayerScore(playerid));
  6059.       INI_WriteInt( "Spada", PlayerInfo[playerid][Desideri][dSpada]);
  6060.       INI_WriteInt( "Coltello", PlayerInfo[playerid][Desideri][dColtello]);
  6061.       INI_WriteInt( "Bazooka", PlayerInfo[playerid][Desideri][dBazooka]);
  6062.       INI_WriteInt( "Sfera1", PlayerInfo[playerid][Sfera1]);
  6063.       INI_WriteInt( "Sfera2", PlayerInfo[playerid][Sfera2]);
  6064.       INI_WriteInt( "Sfera3", PlayerInfo[playerid][Sfera3]);
  6065.       INI_WriteInt( "Sfera4", PlayerInfo[playerid][Sfera4]);
  6066.       INI_WriteInt( "Sfera5", PlayerInfo[playerid][Sfera5]);
  6067.       INI_WriteInt( "Sfera6", PlayerInfo[playerid][Sfera6]);
  6068.       INI_WriteInt( "Sfera7", PlayerInfo[playerid][Sfera7]);
  6069.       INI_Save();
  6070.       INI_Close();
  6071.     }
  6072.     return 1;
  6073. }
  6074.  
  6075. //=-=-=-=-=-=-=ShowAttackName=-=-=-=-=-=-=-
  6076.  
  6077. stock ShowAttackName(playerid, attackname[])
  6078. {
  6079.   for(new i=0;i<MAX_PLAYERS;i++)
  6080.   {
  6081.     if(IsPlayerNearPlayer(75,playerid,i)) GameTextForPlayer(i,attackname,2000,1);
  6082.   }
  6083.   return 1;
  6084. }
  6085.  
  6086. //=-=-=-=-=-=-=IsPlayerAnAndroid=-=-=-=-=-=-=-
  6087.  
  6088. stock IsPlayerAnAndroid(playerid)
  6089. {
  6090.   new team = GetPlayerTeam(playerid);
  6091.   if(team == 9 || team == 10 || team == 11 || team == 12 || team == 13) return 1;
  6092.   return 0;
  6093. }
  6094.  
  6095. stock ApplyAnimationEx(playerid, animlib[], animname[], Float:fDelta, loop, lockx, locky, freeze, time)
  6096. {
  6097.   ApplyAnimation(playerid, animlib, animname, fDelta, loop, lockx, locky, freeze, time, true);
  6098.   return 1;
  6099. }
  6100.  
  6101. //=-=-=-=-=-=-=PlaySound=-=-=-=-=-=-=-
  6102.  
  6103. stock PlaySound(playerid, sound)
  6104. {
  6105.     new Float:X, Float:Y, Float:Z;
  6106.     GetPlayerPos(playerid, X, Y, Z);
  6107.     PlayerPlaySound(playerid, sound, X, Y, Z);
  6108.     return sound;
  6109. }
  6110.  
  6111. //=-=-=-=-=-=-=strtok=-=-=-=-=-=-=-
  6112.  
  6113. stock strtok(const string[], &index)
  6114. {
  6115.     new length = strlen(string);
  6116.     while ((index < length) && (string[index] <= ' '))
  6117.     {
  6118.       index++;
  6119.     }
  6120.  
  6121.     new offset = index;
  6122.     new result[MAX_PLAYER_NAME];
  6123.     while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
  6124.     {
  6125.       result[index - offset] = string[index];
  6126.       index++;
  6127.     }
  6128.     result[index - offset] = EOS;
  6129.     return result;
  6130. }
  6131.  
  6132. //FINE DELLA DRAGONBALL Z DM BY SASINO
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement