fork download
  1.  
  2.  
  3.  
  4. #define MAX_MODESS 1
  5.  
  6.  
  7.  
  8.  
  9.  
  10. #include <a_samp>
  11. #include <a_http> /// <- Add this include, it's needed to HTTP() function.
  12. #include <YSI\y_ini>
  13. #include <timerfix>
  14. #include zcmd
  15. #include sscanf2
  16.  
  17. #include streamer
  18. #include admsys
  19. #pragma tabsize 0
  20.  
  21. #define COLOR_GREY 0xAFAFAFAA
  22. #define COLOR_GREEN 0x33AA33AA
  23. #define COLOR_RED 0xAA3333AA
  24. #define COLOR_YELLOW 0xFFFF00AA
  25. #define COLOR_WHITE 0xFFFFFFAA
  26. #define COLOR_BLUE 0x0000BBAA
  27. #define COLOR_LIGHTBLUE 0x33CCFFAA
  28. #define COLOR_ORANGE 0xFF9900AA
  29. #define COLOR_RED 0xAA3333AA
  30. #define COLOR_LIME 0x10F441AA
  31. #define COLOR_MAGENTA 0xFF00FFFF
  32. #define COLOR_NAVY 0x000080AA
  33. #define COLOR_AQUA 0xF0F8FFAA
  34. #define COLOR_CRIMSON 0xDC143CAA
  35. #define COLOR_FLBLUE 0x6495EDAA
  36. #define COLOR_BISQUE 0xFFE4C4AA
  37. #define COLOR_BLACK 0x000000AA
  38. #define COLOR_CHARTREUSE 0x7FFF00AA
  39. #define COLOR_BROWN 0XA52A2AAA
  40. #define COLOR_CORAL 0xFF7F50AA
  41. #define COLOR_GOLD 0xB8860BAA
  42. #define COLOR_GREENYELLOW 0xADFF2FAA
  43. #define COLOR_INDIGO 0x4B00B0AA
  44. #define COLOR_IVORY 0xFFFF82AA
  45. #define COLOR_LAWNGREEN 0x7CFC00AA
  46. #define COLOR_LIMEGREEN 0x32CD32AA //<--- Dark lime
  47. #define COLOR_MIDNIGHTBLUE 0X191970AA
  48. #define COLOR_MAROON 0x800000AA
  49. #define COLOR_OLIVE 0x808000AA
  50. #define COLOR_ORANGERED 0xFF4500AA
  51. #define COLOR_PINK 0xFFC0CBAA // - Light light pink
  52. #define COLOR_SEAGREEN 0x2E8B57AA
  53. #define COLOR_SPRINGGREEN 0x00FF7FAA
  54. #define COLOR_TOMATO 0xFF6347AA // - Tomato >:/ sounds wrong lol... well... :P
  55. #define COLOR_YELLOWGREEN 0x9ACD32AA //- like military green
  56. #define COLOR_MEDIUMAQUA 0x83BFBFAA
  57. #define COLOR_MEDIUMMAGENTA 0x8B008BAA // dark magenta ^^
  58.  
  59. #define rosso 0x660000FF
  60. #define verde 0x006600FF
  61. #define giallo 0xCC9900FF
  62.  
  63.  
  64.  
  65. #define DIALOG_REGISTER 1
  66. #define DIALOG_LOGIN 2
  67. #define DIALOG_SUCCESS_1 3
  68. #define DIALOG_SUCCESS_2 4
  69. #define PATH "/Users/%s.ini"
  70. #define COL_WHITE "{FFFFFF}"
  71. #define COL_RED "{F81414}"
  72. #define COL_GREEN "{00FF22}"
  73. #define COL_LIGHTBLUE "{00CED1}"
  74. new timerbarra;
  75. enum pInfo
  76. {
  77. pPass,
  78. pCash,
  79. pAdmin,
  80. pKills,
  81. pDeaths,
  82. pLingua,
  83. pPremium,
  84. pScore
  85. }
  86. new PlayerInfo[MAX_PLAYERS][pInfo];
  87.  
  88.  
  89.  
  90. forward LoadUser_data(playerid,name[],value[]);
  91. public LoadUser_data(playerid,name[],value[])
  92. {
  93. INI_Int("Password",PlayerInfo[playerid][pPass]);
  94. INI_Int("Cash",PlayerInfo[playerid][pCash]);
  95. INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
  96. INI_Int("Kills",PlayerInfo[playerid][pKills]);
  97. INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
  98. INI_Int("Lingua",PlayerInfo[playerid][pLingua]);
  99. INI_Int("Premium",PlayerInfo[playerid][pPremium]);
  100. INI_Int("Score",PlayerInfo[playerid][pScore]);
  101. return 1;
  102. }
  103. stock UserPath(playerid)
  104. {
  105. new string[128],playername[MAX_PLAYER_NAME];
  106. GetPlayerName(playerid,playername,sizeof(playername));
  107. format(string,sizeof(string),PATH,playername);
  108. return string;
  109. }
  110. /*Credits to Dracoblue*/
  111. stock udb_hash(buf[]) {
  112. new length=strlen(buf);
  113. new s1 = 1;
  114. new s2 = 0;
  115. new n;
  116. for (n=0; n<length; n++)
  117. {
  118. s1 = (s1 + buf[n]) % 65521;
  119. s2 = (s2 + s1) % 65521;
  120. }
  121. return (s2 << 16) + s1;
  122. }
  123.  
  124. forward GEOIP_HTTPREQUEST(playerid, response_code, location[]);
  125. public GEOIP_HTTPREQUEST(playerid, response_code, location[]) // The GEO-IP Callback.
  126. {
  127. new string[128];
  128. if(response_code == 200) {
  129. new Pname[64];
  130. GetPlayerName(playerid,Pname,sizeof(Pname));
  131. format(string, sizeof(string), "[+] %s [%s] [+]",Pname,location);
  132. SendClientMessage(playerid, COLOR_GREEN, string);
  133. return 1;
  134. }
  135. else {
  136. new Pname[64];
  137. GetPlayerName(playerid,Pname,sizeof(Pname));
  138. format(string, sizeof(string), "[+] %s [+]",Pname);
  139. SendClientMessage(playerid, COLOR_GREEN, string);
  140. return 0;
  141. }
  142. }
  143.  
  144. new Text:choosen;
  145.  
  146.  
  147. // Forward (make public) the function so the server can 'see' it
  148. forward NuovaMode(modeid);
  149.  
  150. // The timer function - the code to be executed when the timer is called goes here
  151. public NuovaMode(modeid)
  152. {
  153.  
  154.  
  155. if(modeid == 69) // a cazzo
  156. {
  157. modeid = random(MAX_MODESS);
  158. }
  159. if(modeid == 0)
  160. {
  161. SendRconCommand("changemode GM0");
  162. SendClientMessageToAll(giallo,"[MODALITA'] Toronto Drift");
  163. }
  164. if(modeid == 1)
  165. {
  166. SendRconCommand("changemode GM1");
  167. SendClientMessageToAll(giallo,"[MODALITA'] Los Santos Stunts");
  168. }
  169. // e così via
  170.  
  171.  
  172.  
  173. return 1;
  174. }
  175.  
  176.  
  177. new Text:ProgressBar;
  178. new ProgressBarAll = 1;
  179.  
  180. forward Inizializza(modeid);
  181. public Inizializza(modeid)
  182. {
  183.  
  184. TextDrawSetString(ProgressBar, "~l~..........");
  185. timerbarra = SetTimerEx("UpdateBars",1000,1,"i",modeid);
  186.  
  187. for(new i = 0; i < MAX_PLAYERS; i++)
  188. {
  189. MostraStatBox(i);
  190. TextDrawShowForPlayer(i,ProgressBar);
  191. new texter = random(13);
  192. if(texter == 0)
  193. {
  194. choosen = TextDrawCreate(-0.500, -2.000, "LOADSUK:loadsc1");
  195. TextDrawFont(choosen, 4);
  196. TextDrawTextSize(choosen, 641.500, 451.000);
  197. TextDrawColor(choosen, -1);
  198. TextDrawShowForAll(choosen);
  199. }
  200. if(texter == 1)
  201. {
  202. choosen = TextDrawCreate(-0.500, -2.000, "LOADSUK:loadsc10");
  203. TextDrawFont(choosen, 4);
  204. TextDrawTextSize(choosen, 641.500, 451.000);
  205. TextDrawColor(choosen, -1);
  206. TextDrawShowForAll(choosen);
  207. }
  208. if(texter == 2)
  209. {
  210. choosen = TextDrawCreate(-0.500, -2.000, "LOADSUK:loadsc11");
  211. TextDrawFont(choosen, 4);
  212. TextDrawTextSize(choosen, 641.500, 451.000);
  213. TextDrawColor(choosen, -1);
  214. TextDrawShowForAll(choosen);
  215. }
  216. if(texter == 3)
  217. {
  218. choosen = TextDrawCreate(-0.500, -2.000, "LOADSUK:loadsc12");
  219. TextDrawFont(choosen, 4);
  220. TextDrawTextSize(choosen, 641.500, 451.000);
  221. TextDrawColor(choosen, -1);
  222. TextDrawShowForAll(choosen);
  223. }
  224. if(texter == 4)
  225. {
  226. choosen = TextDrawCreate(-0.500, -2.000, "LOADSUK:loadsc13");
  227. TextDrawFont(choosen, 4);
  228. TextDrawTextSize(choosen, 641.500, 451.000);
  229. TextDrawColor(choosen, -1);
  230. TextDrawShowForAll(choosen);
  231. }
  232. if(texter == 5)
  233. {
  234. choosen = TextDrawCreate(-0.500, -2.000, "LOADSUK:loadsc14");
  235. TextDrawFont(choosen, 4);
  236. TextDrawTextSize(choosen, 641.500, 451.000);
  237. TextDrawColor(choosen, -1);
  238. TextDrawShowForAll(choosen);
  239. }
  240. if(texter == 6)
  241. {
  242. choosen = TextDrawCreate(-0.500, -2.000, "LOADSUK:loadsc2");
  243. TextDrawFont(choosen, 4);
  244. TextDrawTextSize(choosen, 641.500, 451.000);
  245. TextDrawColor(choosen, -1);
  246. TextDrawShowForAll(choosen);
  247. }
  248. if(texter == 7)
  249. {
  250. choosen = TextDrawCreate(-0.500, -2.000, "LOADSUK:loadsc3");
  251. TextDrawFont(choosen, 4);
  252. TextDrawTextSize(choosen, 641.500, 451.000);
  253. TextDrawColor(choosen, -1);
  254. TextDrawShowForAll(choosen);
  255. }
  256. if(texter == 8)
  257. {
  258. choosen = TextDrawCreate(-0.500, -2.000, "LOADSUK:loadsc4");
  259. TextDrawFont(choosen, 4);
  260. TextDrawTextSize(choosen, 641.500, 451.000);
  261. TextDrawColor(choosen, -1);
  262. TextDrawShowForAll(choosen);
  263. }
  264. if(texter == 9)
  265. {
  266. choosen = TextDrawCreate(-0.500, -2.000, "LOADSUK:loadsc5");
  267. TextDrawFont(choosen, 4);
  268. TextDrawTextSize(choosen, 641.500, 451.000);
  269. TextDrawColor(choosen, -1);
  270. TextDrawShowForAll(choosen);
  271. }
  272. if(texter == 10)
  273. {
  274. choosen = TextDrawCreate(-0.500, -2.000, "LOADSUK:loadsc6");
  275. TextDrawFont(choosen, 4);
  276. TextDrawTextSize(choosen, 641.500, 451.000);
  277. TextDrawColor(choosen, -1);
  278. TextDrawShowForAll(choosen);
  279. }
  280. if(texter == 11)
  281. {
  282. choosen = TextDrawCreate(-0.500, -2.000, "LOADSUK:loadsc7");
  283. TextDrawFont(choosen, 4);
  284. TextDrawTextSize(choosen, 641.500, 451.000);
  285. TextDrawColor(choosen, -1);
  286. TextDrawShowForAll(choosen);
  287. }
  288. if(texter == 12)
  289. {
  290. choosen = TextDrawCreate(-0.500, -2.000, "LOADSUK:loadsc8");
  291. TextDrawFont(choosen, 4);
  292. TextDrawTextSize(choosen, 641.500, 451.000);
  293. TextDrawColor(choosen, -1);
  294. TextDrawShowForAll(choosen);
  295. }
  296. if(texter == 13)
  297. {
  298. choosen = TextDrawCreate(-0.500, -2.000, "LOADSUK:loadsc9");
  299. TextDrawFont(choosen, 4);
  300. TextDrawTextSize(choosen, 641.500, 451.000);
  301. TextDrawColor(choosen, -1);
  302. TextDrawShowForAll(choosen);
  303. }
  304. }
  305.  
  306.  
  307.  
  308. forward UpdateBars(modeid);
  309. public UpdateBars(modeid)
  310. {
  311.  
  312. if(ProgressBarAll == 12) ProgressBarAll = 1;
  313. new str[30];
  314. if(ProgressBarAll == 0) format(str,sizeof(str),"~l~..........");
  315. else if(ProgressBarAll == 1) format(str,sizeof(str),"~w~.~l~.........");
  316. else if(ProgressBarAll == 2) format(str,sizeof(str),"~w~..~l~........");
  317. else if(ProgressBarAll == 3) format(str,sizeof(str),"~w~...~l~.......");
  318. else if(ProgressBarAll == 4) format(str,sizeof(str),"~w~....~l~......");
  319. else if(ProgressBarAll == 5) format(str,sizeof(str),"~w~.....~l~.....");
  320. else if(ProgressBarAll == 6) format(str,sizeof(str),"~w~......~l~....");
  321. else if(ProgressBarAll == 7) format(str,sizeof(str),"~w~.......~l~...");
  322. else if(ProgressBarAll == 8) format(str,sizeof(str),"~w~........~l~..");
  323. else if(ProgressBarAll == 9) format(str,sizeof(str),"~w~.........~l~.");
  324. else if(ProgressBarAll == 10) format(str,sizeof(str),"~w~.........~l~.");
  325. else if(ProgressBarAll == 11)
  326. {
  327.  
  328. for(new i = 0; i < MAX_PLAYERS; i++)
  329. {
  330.  
  331. TextDrawHideForPlayer(i,ProgressBar);
  332. TextDrawHideForPlayer(i,choosen);
  333. }
  334. format(str,sizeof(str),"~w~..........");
  335. KillTimer(timerbarra);
  336. NuovaMode(modeid);
  337. ProgressBarAll++;
  338. return 1;
  339. }
  340. TextDrawSetString(ProgressBar, str);
  341. ProgressBarAll++;
  342. return 1;
  343. }
  344.  
  345. public OnFilterScriptInit()
  346. {
  347. print("\n--------------------------------------");
  348. print(" Atlantide Everystuff RELOADED");
  349. print("--------------------------------------\n");
  350. SendRconCommand("language ENG/ITA");
  351. SendRconCommand("hostname Atlantis EveryStuff");
  352. SendRconCommand("gamemodetext Minimodes");
  353. SendRconCommand("mapname San Andreas");
  354. SendRconCommand("weburl scambioetico.org");
  355. SetTimerEx("Inizializza", 360, true,"i",69);
  356. ProgressBar = TextDrawCreate(520.000000,298.000000,"..........");
  357. TextDrawAlignment(ProgressBar,0);
  358. TextDrawBackgroundColor(ProgressBar,0x000000ff);
  359. TextDrawFont(ProgressBar,3);
  360. TextDrawLetterSize(ProgressBar,0.799999,12.899990);
  361. TextDrawColor(ProgressBar,0xffffffff);
  362. TextDrawSetOutline(ProgressBar,1);
  363. TextDrawSetProportional(ProgressBar,1);
  364. TextDrawSetShadow(ProgressBar,1);
  365. return 1;
  366. }
  367.  
  368. public OnFilterScriptExit()
  369. {
  370. return 1;
  371. }
  372.  
  373.  
  374. new Text:Textboxdraw0;
  375. new Text:Textboxdraw1;
  376. new Text:Textboxdraw2;
  377. new Text:Textboxdraw3[MAX_PLAYERS];
  378. new Text:Textboxdraw4[MAX_PLAYERS];
  379. new Text:Textboxdraw5[MAX_PLAYERS];
  380. new Text:Textboxdraw6[MAX_PLAYERS];
  381. new Text:Textboxdraw8[MAX_PLAYERS];
  382. new Text:TextWHITECross1;
  383. new Text:TextWHITECross2;
  384. new Text:TextWHITECross3;
  385. new Text:TextWHITECross4;
  386. new Text:TextWHITECross5;
  387.  
  388.  
  389. stock MostraCrossBianco(playerid)
  390. {
  391. TextDrawShowForPlayer(playerid,TextWHITECross1);
  392. TextDrawShowForPlayer(playerid,TextWHITECross2);
  393. TextDrawShowForPlayer(playerid,TextWHITECross3);
  394. TextDrawShowForPlayer(playerid,TextWHITECross4);
  395. TextDrawShowForPlayer(playerid,TextWHITECross5);
  396.  
  397. return 1;
  398. }
  399.  
  400.  
  401. stock NascondiCrossBianco(playerid)
  402. {
  403. TextDrawHideForPlayer(playerid,TextWHITECross1);
  404. TextDrawHideForPlayer(playerid,TextWHITECross2);
  405. TextDrawHideForPlayer(playerid,TextWHITECross3);
  406. TextDrawHideForPlayer(playerid,TextWHITECross4);
  407. TextDrawHideForPlayer(playerid,TextWHITECross5);
  408. return 1;
  409. }
  410.  
  411.  
  412. stock NascondiStatBox(playerid)
  413. {
  414. TextDrawHideForPlayer(playerid,Textboxdraw0);
  415. TextDrawHideForPlayer(playerid,Textboxdraw1);
  416. TextDrawHideForPlayer(playerid,Textboxdraw2);
  417. TextDrawHideForPlayer(playerid,Textboxdraw3[playerid]);
  418. TextDrawHideForPlayer(playerid,Textboxdraw4[playerid]);
  419. TextDrawHideForPlayer(playerid,Textboxdraw5[playerid]);
  420. TextDrawHideForPlayer(playerid,Textboxdraw6[playerid]);
  421. TextDrawHideForPlayer(playerid,Textboxdraw8[playerid]);
  422. return 1;
  423. }
  424.  
  425. stock MostraStatBox(playerid)
  426. {
  427. new textstring[90];
  428. format(textstring,90,"YOU HAVE: %i POINTS",GetPlayerScore(playerid));
  429. TextDrawSetString(Textboxdraw3[playerid],textstring);
  430. format(textstring,90,"MONEY: $%i",GetPlayerMoney(playerid));
  431. TextDrawSetString(Textboxdraw4[playerid],textstring);
  432. TextDrawSetString(Textboxdraw5[playerid],"YOU CAN EARN POINTS BY SIMPLY PLAYING");
  433. new morti = PlayerInfo[playerid][pDeaths];
  434. if(!morti) morti = 1;
  435. new Float:kd = floatdiv(PlayerInfo[playerid][pKills], morti);
  436. format(textstring,90,"KILLS: %d DEATHS: %d - K/D: %.2f",PlayerInfo[playerid][pKills],PlayerInfo[playerid][pDeaths],kd);
  437. TextDrawSetString(Textboxdraw6[playerid],textstring);
  438. TextDrawSetString(Textboxdraw8[playerid],"YOU CAN UNLOCK REWARDS WITH THOSE POINTS YOU EARN!");
  439. // TextDrawShowForPlayer(playerid,textscreen);
  440. TextDrawShowForPlayer(playerid,Textboxdraw1);
  441. TextDrawShowForPlayer(playerid,Textboxdraw2);
  442. TextDrawShowForPlayer(playerid,Textboxdraw3[playerid]);
  443. TextDrawShowForPlayer(playerid,Textboxdraw4[playerid]);
  444. TextDrawShowForPlayer(playerid,Textboxdraw5[playerid]);
  445. TextDrawShowForPlayer(playerid,Textboxdraw6[playerid]);
  446. TextDrawShowForPlayer(playerid,Textboxdraw8[playerid]);
  447. // TextDrawShowForPlayer(playerid,ProgressBar);
  448.  
  449. return 1;
  450. }
  451. new Text:PlayerTextdraw1;
  452.  
  453. public OnPlayerConnect(playerid)
  454. {
  455. if(IsPlayerNPC(playerid)) return 1;
  456. new req[256];
  457. new IP[16];
  458. GetPlayerIp(playerid,IP,sizeof(IP));
  459. // format(IP,sizeof(IP),"117.56.0.98"); //Un-comment this line if you want to put some random Dummy IP to test the script
  460.  
  461. if(strlen(IP)<1) return 1;
  462. format(req, sizeof(req),"geoip.cybernieve.com/?IP=%s",IP); //// Replace the address (geoip.cybernieve.com) if you've setup your own GEO-IP Server
  463. HTTP(playerid, HTTP_GET, req,"","GEOIP_HTTPREQUEST");
  464. SendClientMessage(playerid,COLOR_BLACK,"____________________________________________________________________");
  465. SendClientMessage(playerid,COLOR_GREY,"Benvenuto su Atlantis Everystuff® 2010/2011 V 1.12");
  466. SendClientMessage(playerid,COLOR_GREY,"per continuare loggati o registrati");
  467. SendClientMessage(playerid,COLOR_GREY,"Linee: nonsocontare - www.atlantisgaming.it");
  468. SendClientMessage(playerid,COLOR_BLACK,"____________________________________________________________________");
  469. PlayerTextdraw1 = TextDrawCreate(-0.500, -2.000, "LOADSUK:loadscuk");
  470. TextDrawFont(PlayerTextdraw1, 4);
  471. TextDrawTextSize(PlayerTextdraw1, 641.500, 451.000);
  472. TextDrawColor(PlayerTextdraw1, -1);
  473. TextDrawShowForPlayer(playerid, PlayerTextdraw1);
  474.  
  475. SetPlayerAdminLevel(playerid,5);
  476.  
  477. if(fexist(UserPath(playerid)))
  478. {
  479.  
  480. INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
  481. if(PlayerInfo[playerid][pLingua] == 0)
  482. {
  483. ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"Enter your password to login","Login","Exit");
  484. }
  485. if(PlayerInfo[playerid][pLingua] == 1)
  486. {
  487. ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_WHITE"Inserisci la tua password per effettuare il login","Login","Esci");
  488. }
  489. }
  490. else
  491. {
  492. ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,""COL_WHITE"Registration",""COL_WHITE"Create a new account to start having fun!","Next","Exit");
  493.  
  494.  
  495. }
  496. return 1;
  497. }
  498.  
  499. public OnPlayerDisconnect(playerid, reason)
  500. {
  501. new name[MAX_PLAYER_NAME], string[24+MAX_PLAYER_NAME];
  502. GetPlayerName(playerid, name, sizeof(name));
  503. if(reason == 1) format(string, sizeof(string), "[-] %s [/q]", name);
  504. if(reason == 0) format(string, sizeof(string), "[-] %s [CRASH]", name);
  505. if(reason == 2) format(string, sizeof(string), "[-] %s [ADMIN]", name);
  506. SendClientMessageToAll(COLOR_RED,string);
  507. print(string);
  508. new INI:File = INI_Open(UserPath(playerid));
  509. INI_SetTag(File,"data");
  510. INI_WriteInt(File,"Cash",GetPlayerMoney(playerid));
  511. INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
  512. INI_WriteInt(File,"Kills",PlayerInfo[playerid][pKills]);
  513. INI_WriteInt(File,"Deaths",PlayerInfo[playerid][pDeaths]);
  514. INI_WriteInt(File,"Lingua",PlayerInfo[playerid][pLingua]);
  515. INI_WriteInt(File,"Premium",PlayerInfo[playerid][pPremium]);
  516. INI_WriteInt(File,"Score",GetPlayerScore(playerid));
  517. INI_Close(File);
  518. return 1;
  519. }
  520.  
  521. public OnPlayerSpawn(playerid)
  522. {
  523. return 1;
  524. }
  525.  
  526. public OnPlayerDeath(playerid, killerid, reason)
  527. {
  528. return 1;
  529. }
  530.  
  531. public OnVehicleSpawn(vehicleid)
  532. {
  533. return 1;
  534. }
  535.  
  536. public OnVehicleDeath(vehicleid, killerid)
  537. {
  538. return 1;
  539. }
  540.  
  541. public OnPlayerText(playerid, text[])
  542. {
  543. return 1;
  544. }
  545.  
  546. public OnPlayerCommandText(playerid, cmdtext[])
  547. {
  548. if (strcmp("/mycommand", cmdtext, true, 10) == 0)
  549. {
  550. // Do something here
  551. return 1;
  552. }
  553. return 0;
  554. }
  555.  
  556. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  557. {
  558. return 1;
  559. }
  560.  
  561. public OnPlayerExitVehicle(playerid, vehicleid)
  562. {
  563. return 1;
  564. }
  565.  
  566. public OnPlayerStateChange(playerid, newstate, oldstate)
  567. {
  568. return 1;
  569. }
  570.  
  571. public OnPlayerEnterCheckpoint(playerid)
  572. {
  573. return 1;
  574. }
  575.  
  576. public OnPlayerLeaveCheckpoint(playerid)
  577. {
  578. return 1;
  579. }
  580.  
  581. public OnPlayerEnterRaceCheckpoint(playerid)
  582. {
  583. return 1;
  584. }
  585.  
  586. public OnPlayerLeaveRaceCheckpoint(playerid)
  587. {
  588. return 1;
  589. }
  590.  
  591. public OnRconCommand(cmd[])
  592. {
  593. return 1;
  594. }
  595.  
  596. public OnPlayerRequestSpawn(playerid)
  597. {
  598. return 1;
  599. }
  600.  
  601. public OnObjectMoved(objectid)
  602. {
  603. return 1;
  604. }
  605.  
  606. public OnPlayerObjectMoved(playerid, objectid)
  607. {
  608. return 1;
  609. }
  610.  
  611. public OnPlayerPickUpPickup(playerid, pickupid)
  612. {
  613. return 1;
  614. }
  615.  
  616. public OnVehicleMod(playerid, vehicleid, componentid)
  617. {
  618. return 1;
  619. }
  620.  
  621. public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
  622. {
  623. return 1;
  624. }
  625.  
  626. public OnVehicleRespray(playerid, vehicleid, color1, color2)
  627. {
  628. return 1;
  629. }
  630.  
  631. public OnPlayerSelectedMenuRow(playerid, row)
  632. {
  633. return 1;
  634. }
  635.  
  636. public OnPlayerExitedMenu(playerid)
  637. {
  638. return 1;
  639. }
  640.  
  641. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  642. {
  643. return 1;
  644. }
  645.  
  646. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  647. {
  648. return 1;
  649. }
  650.  
  651. public OnRconLoginAttempt(ip[], password[], success)
  652. {
  653. return 1;
  654. }
  655.  
  656. public OnPlayerUpdate(playerid) //The player changed something
  657. {
  658. new pName[MAX_PLAYER_NAME], string[128]; //I already explained it. Too much explaination for one line
  659. if(GetPlayerMoney(playerid) > Soldazzi[playerid]) //The player has more money then the string says (more 'bout that later)
  660. {
  661. GetPlayerName(playerid, pName, MAX_PLAYER_NAME); //Will get the player's name
  662. format(string, sizeof(string), "[AUTOBAN] %s è stato bannato: MONEY CHEAT.", pName); //Format's a script: "* 'pName' has been banned: MONEY CHEAT"
  663. SendClientMessageToAll(-1, string); //Send an message to ALL the active players with the formatted string: "* 'pName' has been banned: MONEY CHEAT" in an RED COLOR
  664. BanEx(playerid, "Money Cheat"); //Bans the player with the reason "Money Cheat"
  665. }
  666. return 1;
  667. }
  668.  
  669. public OnPlayerStreamIn(playerid, forplayerid)
  670. {
  671. return 1;
  672. }
  673.  
  674. public OnPlayerStreamOut(playerid, forplayerid)
  675. {
  676. return 1;
  677. }
  678.  
  679. stock CLS(playerid) {
  680. for(new i=0;i<100;i++) { SendClientMessage(playerid, -1, " "); }
  681. return 1; }
  682.  
  683.  
  684. stock a_GivePlayerMoney(playerid, money)
  685. {
  686. Soldazzi[playerid] += money; //Will increase the string: "+="
  687. GivePlayerMoney(playerid, money); //Give's the player money... DUH :P Don't use "a_GivePlayerMoney" here.
  688. }
  689.  
  690. stock a_SetPlayerMoney(playerid, money)
  691. {
  692. Soldazzi[playerid] = money; //Will set the string to the money ammount
  693. ResetPlayerMoney(playerid); //Reset's player money
  694. GivePlayerMoney(playerid, money); //Will give the player money. no a_GivePlayerMoney needed!
  695. }
  696.  
  697. public OnVehicleStreamIn(vehicleid, forplayerid)
  698. {
  699. return 1;
  700. }
  701.  
  702. public OnVehicleStreamOut(vehicleid, forplayerid)
  703. {
  704. return 1;
  705. }
  706.  
  707. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  708. {
  709. switch( dialogid )
  710. {
  711. case DIALOG_SUCCESS_1:
  712. {
  713. TextDrawHideForPlayer(playerid, PlayerTextdraw1);
  714. if (!response)
  715. {
  716. new INI:File = INI_Open(UserPath(playerid));
  717. INI_SetTag(File,"data");
  718. PlayerInfo[playerid][pLingua] = 1;
  719. INI_WriteInt(File,"Lingua",PlayerInfo[playerid][pLingua]);
  720. INI_Close(File);
  721. }
  722. if(response)
  723. {
  724. new INI:File = INI_Open(UserPath(playerid));
  725. INI_SetTag(File,"data");
  726. PlayerInfo[playerid][pLingua] = 0;
  727. INI_WriteInt(File,"Lingua",PlayerInfo[playerid][pLingua]);
  728. INI_Close(File);
  729.  
  730. }
  731. }
  732. case DIALOG_REGISTER:
  733. {
  734. if (!response) return Kick(playerid);
  735. if(response)
  736. {
  737. if(!strlen(inputtext)) return ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT, ""COL_WHITE"Registration",""COL_RED"Invalid password.\n"COL_WHITE"Enter a password to register","Next","Esci");
  738. new INI:File = INI_Open(UserPath(playerid));
  739. INI_SetTag(File,"data");
  740. INI_WriteInt(File,"Password",udb_hash(inputtext));
  741. INI_WriteInt(File,"Cash",0);
  742. INI_WriteInt(File,"Admin",0);
  743. INI_WriteInt(File,"Kills",0);
  744. INI_WriteInt(File,"Deaths",0);
  745. INI_WriteInt(File,"Premium",0);
  746. INI_WriteInt(File,"Score",0);
  747. INI_Close(File);
  748.  
  749. ShowPlayerDialog(playerid, DIALOG_SUCCESS_1, DIALOG_STYLE_MSGBOX,""COL_WHITE"Last step",""COL_WHITE"Choose server language","ENG","ITA");
  750. }
  751. }
  752.  
  753. case DIALOG_LOGIN:
  754. {
  755. if ( !response ) return Kick ( playerid );
  756. if( response )
  757. {
  758. if(udb_hash(inputtext) == PlayerInfo[playerid][pPass])
  759. {
  760. INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
  761. a_GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]);
  762. SetPlayerAdminLevel(playerid,PlayerInfo[playerid][pAdmin]);
  763. TextDrawHideForPlayer(playerid,PlayerTextdraw1 );
  764. if(PlayerInfo[playerid][pLingua] == 0)
  765. {
  766.  
  767. SendClientMessage(playerid,-1,"Welcome back to the server. Have a good time in here!");
  768. }
  769. if(PlayerInfo[playerid][pLingua] == 1)
  770. {
  771.  
  772. SendClientMessage(playerid,-1,"Bentornato in server. Divertiti!");
  773. }
  774.  
  775. }
  776. else
  777. {
  778. if(PlayerInfo[playerid][pLingua] == 0)
  779. {
  780. ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_RED"Invalid password.\n"COL_WHITE"Enter your password","Login","Exit");
  781. }
  782. if(PlayerInfo[playerid][pLingua] == 1)
  783. {
  784. ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,""COL_WHITE"Login",""COL_RED"Password errata.\n"COL_WHITE"Inserisci la password per entrare nel server","Login","Esci");
  785. }
  786. }
  787. return 1;
  788. }
  789. }
  790. }
  791. return 1;
  792. }
  793.  
  794. public OnPlayerClickPlayer(playerid, clickedplayerid, source)
  795. {
  796. return 1;
  797. }
  798.  
  799.  
  800.  
  801.  
  802.  
  803.  
  804.  
  805. // comandi
  806.  
  807. COMMAND:switchlanguage(playerid, params[])
  808. {
  809. if(PlayerInfo[playerid][pLingua] == 0)
  810. {
  811. PlayerInfo[playerid][pLingua] = 1;
  812. SendClientMessage(playerid,verde,"Ora la lingua principale è italiano.");
  813. return 1;
  814. }
  815. if(PlayerInfo[playerid][pLingua] == 1)
  816. {
  817. PlayerInfo[playerid][pLingua] = 0;
  818. SendClientMessage(playerid,verde,"Now your main language is english.");
  819. return 1;
  820. }
  821. return 1;
  822. }
  823.  
  824. COMMAND:changemode(playerid, params[])
  825. {
  826. if(!IsPlayerAdminEx(playerid)) return 1;
  827. if(isnull(params)) return SendClientMessage(playerid, ADMSYS_DEFAULT_COLOR1, "Usa: /changemode [id mode] - per una lista completa usa /modes");
  828. if(!isnumeric(params)) return SendClientMessage(playerid, ADMSYS_DEFAULT_COLOR1, "Usa: /changemode [id mode]");
  829. new vittima = strval(params); // iValue is now vittima
  830. if(vittima == 0)
  831. {
  832. SendRconCommand("changemode GM1");
  833.  
  834. }
  835. return 1;
  836. }
  837.  
  838. COMMAND:stats(playerid, params[])
  839. {
  840. if(PlayerInfo[playerid][pLingua] == 0)
  841. {
  842. new Hour, Minute, Second;
  843. gettime(Hour, Minute, Second);
  844. new Year, Month, Day, string[128], string1[128], string2[128];
  845. getdate(Year, Month, Day);
  846. format(string, sizeof(string),"Atlantis Everystuff ================ %02d:%02d:%02d %02d/%02d/%d ================ Stats", Hour, Minute, Second, Day, Month, Year);
  847. new playername[MAX_PLAYER_NAME];
  848. GetPlayerName(playerid,playername,sizeof(playername));
  849. new morti = PlayerInfo[playerid][pDeaths];
  850. if(!morti) morti = 1;
  851. new Float:kd = floatdiv(PlayerInfo[playerid][pKills], morti);
  852. new premiuml[128];
  853. if(PlayerInfo[playerid][pPremium] == 0){ format(premiuml,sizeof(premiuml),"None (/gopremium to see all advantages!)");}
  854. if(PlayerInfo[playerid][pPremium] == 1){ format(premiuml,sizeof(premiuml),"Silver");}
  855. if(PlayerInfo[playerid][pPremium] == 2){ format(premiuml,sizeof(premiuml),"Gold");}
  856. format(string1, sizeof(string1),"Name: %s | Money: %i | Kills: %i | Deaths: %i | Ratio: %.2f | Score: %i", playername, GetPlayerMoney(playerid), PlayerInfo[playerid][pKills], PlayerInfo[playerid][pDeaths], kd, GetPlayerScore(playerid));
  857. format(string2, sizeof(string2),"Lifetime Premium Level: %s", premiuml);
  858. SendClientMessage(playerid,giallo,string);
  859. SendClientMessage(playerid,giallo,string1);
  860.  
  861. SendClientMessage(playerid,giallo,string2);
  862. return 1;
  863. }
  864. if(PlayerInfo[playerid][pLingua] == 1)
  865. {
  866. new Hour, Minute, Second;
  867. gettime(Hour, Minute, Second);
  868. new Year, Month, Day, string[128], string1[128], string2[128];
  869. getdate(Year, Month, Day);
  870. format(string, sizeof(string),"Street Gang Wars ================ %02d:%02d:%02d %02d/%02d/%d ================ Info", Hour, Minute, Second, Day, Month, Year);
  871. new playername[MAX_PLAYER_NAME];
  872. GetPlayerName(playerid,playername,sizeof(playername));
  873. new morti = PlayerInfo[playerid][pDeaths];
  874. if(!morti) morti = 1;
  875. new Float:kd = floatdiv(PlayerInfo[playerid][pKills], morti);
  876. new premiuml[128];
  877. if(PlayerInfo[playerid][pPremium] == 0){ format(premiuml,sizeof(premiuml),"Nessuno (/gopremium per vedere tutti i vantaggi!)");}
  878. if(PlayerInfo[playerid][pPremium] == 1){ format(premiuml,sizeof(premiuml),"Silver");}
  879. if(PlayerInfo[playerid][pPremium] == 2){ format(premiuml,sizeof(premiuml),"Gold");}
  880. format(string1, sizeof(string1),"Nome: %s | Soldi: %i | Kills: %i | Deaths: %i | Ratio: %.2f | Punti: %i", playername, GetPlayerMoney(playerid), PlayerInfo[playerid][pKills], PlayerInfo[playerid][pDeaths], kd, GetPlayerScore(playerid));
  881. format(string2, sizeof(string2),"Livello Premium Permanente: %s", premiuml);
  882. SendClientMessage(playerid,giallo,string);
  883. SendClientMessage(playerid,giallo,string1);
  884. SendClientMessage(playerid,giallo,string2);
  885. return 1;
  886. }
  887. return 1;
  888. }
  889.  
  890. COMMAND:showstats(playerid, params[])
  891. {
  892. if(!IsPlayerAdminEx(playerid)) return 1;
  893. if(isnull(params)) return SendClientMessage(playerid, ADMSYS_DEFAULT_COLOR1, "Usa: /showstats [id]");
  894. if(!isnumeric(params)) return SendClientMessage(playerid, ADMSYS_DEFAULT_COLOR1, "Usa: /showstats [id]");
  895. new vittima = strval(params); // iValue is now vittima
  896. if(!IsPlayerConnected(vittima)) return SendClientMessage(playerid, ADMSYS_DEFAULT_COLOR1, "Giocatore non connesso.");
  897.  
  898. new Hour, Minute, Second;
  899. gettime(Hour, Minute, Second);
  900. new Year, Month, Day, string[128], string1[128], string2[128], string3[128];
  901. getdate(Year, Month, Day);
  902. format(string, sizeof(string),"Street Gang Wars ===ADMIN=== %02d:%02d:%02d %02d/%02d/%d ===ADMIN=== Stats", Hour, Minute, Second, Day, Month, Year);
  903. new playername[MAX_PLAYER_NAME];
  904. GetPlayerName(vittima,playername,sizeof(playername));
  905. new morti = PlayerInfo[vittima][pDeaths];
  906. if(!morti) morti = 1;
  907. new Float:kd = floatdiv(PlayerInfo[vittima][pKills], morti);
  908. new premiuml[128];
  909. if(PlayerInfo[vittima][pPremium] == 0){ format(premiuml,sizeof(premiuml),"Nessuno");}
  910. if(PlayerInfo[vittima][pPremium] == 1){ format(premiuml,sizeof(premiuml),"Silver");}
  911. if(PlayerInfo[vittima][pPremium] == 2){ format(premiuml,sizeof(premiuml),"Gold");}
  912. format(string1, sizeof(string1),"Nome: %s | Soldi: %i | Kills: %i | Deaths: %i | Ratio: %.2f | Punti: %i", playername, GetPlayerMoney(vittima), PlayerInfo[vittima][pKills], PlayerInfo[vittima][pDeaths], kd, GetPlayerScore(playerid));
  913. format(string2, sizeof(string2),"Livello Premium Permanente: %s", premiuml);
  914. new Float:allasalute, Float:allasalute2, ippo[16];
  915. GetPlayerHealth(vittima, allasalute);
  916. GetPlayerArmour(vittima, allasalute2);
  917. GetPlayerIp(vittima,ippo,sizeof(ippo));
  918. format(string3, sizeof(string3),"HP: %.1f | AP: %.1f | Indirizzo IP: %s | Ping attuale: %i | Interior: %i | Virtual World: %i", allasalute, allasalute2, ippo, GetPlayerPing(vittima), GetPlayerInterior(vittima), GetPlayerVirtualWorld(vittima));
  919. SendClientMessage(playerid,giallo,string);
  920. SendClientMessage(playerid,giallo,string1);
  921.  
  922. SendClientMessage(playerid,giallo,string2);
  923. SendClientMessage(playerid,giallo,string3);
  924. return 1;
  925. }
  926.  
  927. COMMAND:help(playerid, params[])
  928. {
  929. if(PlayerInfo[playerid][pLingua] == 0)
  930. {
  931.  
  932. SendClientMessage(playerid,giallo,"Street Gang Wars =============================================== Avaible Commands");
  933. SendClientMessage(playerid,giallo,"[SETTINGS] /switchlanguage");
  934. SendClientMessage(playerid,giallo,"[GENERAL] /help /admins /report");
  935. }
  936. if(PlayerInfo[playerid][pLingua] == 1)
  937. {
  938.  
  939. SendClientMessage(playerid,giallo,"Street Gang Wars ============================================= Comandi Disponibili");
  940. SendClientMessage(playerid,giallo,"[IMPOSTAZIONI] /switchlanguage");
  941. SendClientMessage(playerid,giallo,"[GENERALE] /aiuto /admins /report");
  942. }
  943. return 1;
  944. }
  945.  
  946. COMMAND:aiuto(playerid, params[])
  947. {
  948. return cmd_help(playerid, params);
  949. }
  950.  
  951. COMMAND:info(playerid, params[])
  952. {
  953. return cmd_stats(playerid, params);
  954. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:4: error: illegal character: '#'
#define MAX_MODESS 1
^
Main.java:4: error: class, interface, or enum expected
#define MAX_MODESS 1
        ^
Main.java:10: error: illegal character: '#'
#include <a_samp>
^
Main.java:11: error: illegal character: '#'
#include <a_http> /// <- Add this include, it's needed to HTTP() function.
^
Main.java:12: error: illegal character: '#'
#include <YSI\y_ini>
^
Main.java:12: error: illegal character: '\'
#include <YSI\y_ini>
             ^
Main.java:13: error: illegal character: '#'
#include <timerfix>
^
Main.java:14: error: illegal character: '#'
#include zcmd
^
Main.java:15: error: illegal character: '#'
#include sscanf2
^
Main.java:17: error: illegal character: '#'
#include streamer
^
Main.java:18: error: illegal character: '#'
#include admsys
^
Main.java:19: error: illegal character: '#'
#pragma tabsize 0
^
Main.java:21: error: illegal character: '#'
#define COLOR_GREY 0xAFAFAFAA
^
Main.java:22: error: illegal character: '#'
#define COLOR_GREEN 0x33AA33AA
^
Main.java:23: error: illegal character: '#'
#define COLOR_RED 0xAA3333AA
^
Main.java:24: error: illegal character: '#'
#define COLOR_YELLOW 0xFFFF00AA
^
Main.java:25: error: illegal character: '#'
#define COLOR_WHITE 0xFFFFFFAA
^
Main.java:26: error: illegal character: '#'
#define COLOR_BLUE 0x0000BBAA
^
Main.java:27: error: illegal character: '#'
#define COLOR_LIGHTBLUE 0x33CCFFAA
^
Main.java:28: error: illegal character: '#'
#define COLOR_ORANGE 0xFF9900AA
^
Main.java:29: error: illegal character: '#'
#define COLOR_RED 0xAA3333AA
^
Main.java:30: error: illegal character: '#'
#define COLOR_LIME 0x10F441AA
^
Main.java:31: error: illegal character: '#'
#define COLOR_MAGENTA 0xFF00FFFF
^
Main.java:32: error: illegal character: '#'
#define COLOR_NAVY 0x000080AA
^
Main.java:33: error: illegal character: '#'
#define COLOR_AQUA 0xF0F8FFAA
^
Main.java:34: error: illegal character: '#'
#define COLOR_CRIMSON 0xDC143CAA
^
Main.java:35: error: illegal character: '#'
#define COLOR_FLBLUE 0x6495EDAA
^
Main.java:36: error: illegal character: '#'
#define COLOR_BISQUE 0xFFE4C4AA
^
Main.java:37: error: illegal character: '#'
#define COLOR_BLACK 0x000000AA
^
Main.java:38: error: illegal character: '#'
#define COLOR_CHARTREUSE 0x7FFF00AA
^
Main.java:39: error: illegal character: '#'
#define COLOR_BROWN 0XA52A2AAA
^
Main.java:40: error: illegal character: '#'
#define COLOR_CORAL 0xFF7F50AA
^
Main.java:41: error: illegal character: '#'
#define COLOR_GOLD 0xB8860BAA
^
Main.java:42: error: illegal character: '#'
#define COLOR_GREENYELLOW 0xADFF2FAA
^
Main.java:43: error: illegal character: '#'
#define COLOR_INDIGO 0x4B00B0AA
^
Main.java:44: error: illegal character: '#'
#define COLOR_IVORY 0xFFFF82AA
^
Main.java:45: error: illegal character: '#'
#define COLOR_LAWNGREEN 0x7CFC00AA
^
Main.java:46: error: illegal character: '#'
#define COLOR_LIMEGREEN 0x32CD32AA //<--- Dark lime
^
Main.java:47: error: illegal character: '#'
#define COLOR_MIDNIGHTBLUE 0X191970AA
^
Main.java:48: error: illegal character: '#'
#define COLOR_MAROON 0x800000AA
^
Main.java:49: error: illegal character: '#'
#define COLOR_OLIVE 0x808000AA
^
Main.java:50: error: illegal character: '#'
#define COLOR_ORANGERED 0xFF4500AA
^
Main.java:51: error: illegal character: '#'
#define COLOR_PINK 0xFFC0CBAA // - Light light pink
^
Main.java:52: error: illegal character: '#'
#define COLOR_SEAGREEN 0x2E8B57AA
^
Main.java:53: error: illegal character: '#'
#define COLOR_SPRINGGREEN 0x00FF7FAA
^
Main.java:54: error: illegal character: '#'
#define COLOR_TOMATO 0xFF6347AA // - Tomato >:/ sounds wrong lol... well... :P
^
Main.java:55: error: illegal character: '#'
#define COLOR_YELLOWGREEN 0x9ACD32AA //- like military green
^
Main.java:56: error: illegal character: '#'
#define COLOR_MEDIUMAQUA 0x83BFBFAA
^
Main.java:57: error: illegal character: '#'
#define COLOR_MEDIUMMAGENTA 0x8B008BAA // dark magenta ^^
^
Main.java:59: error: illegal character: '#'
#define rosso 0x660000FF
^
Main.java:60: error: illegal character: '#'
#define verde 0x006600FF
^
Main.java:61: error: illegal character: '#'
#define giallo 0xCC9900FF
^
Main.java:65: error: illegal character: '#'
#define DIALOG_REGISTER 1
^
Main.java:66: error: illegal character: '#'
#define DIALOG_LOGIN 2
^
Main.java:67: error: illegal character: '#'
#define DIALOG_SUCCESS_1 3
^
Main.java:68: error: illegal character: '#'
#define DIALOG_SUCCESS_2 4
^
Main.java:69: error: illegal character: '#'
#define PATH "/Users/%s.ini"
^
Main.java:70: error: illegal character: '#'
#define COL_WHITE "{FFFFFF}"
^
Main.java:71: error: illegal character: '#'
#define COL_RED "{F81414}"
^
Main.java:72: error: illegal character: '#'
#define COL_GREEN "{00FF22}"
^
Main.java:73: error: illegal character: '#'
#define COL_LIGHTBLUE "{00CED1}"
^
Main.java:86: error: class, interface, or enum expected
new PlayerInfo[MAX_PLAYERS][pInfo];
^
Main.java:90: error: class, interface, or enum expected
forward LoadUser_data(playerid,name[],value[]);
^
Main.java:91: error: class, interface, or enum expected
public LoadUser_data(playerid,name[],value[])
       ^
Main.java:94: error: class, interface, or enum expected
	INI_Int("Cash",PlayerInfo[playerid][pCash]);
	^
Main.java:95: error: class, interface, or enum expected
	INI_Int("Admin",PlayerInfo[playerid][pAdmin]);
	^
Main.java:96: error: class, interface, or enum expected
	INI_Int("Kills",PlayerInfo[playerid][pKills]);
	^
Main.java:97: error: class, interface, or enum expected
    INI_Int("Deaths",PlayerInfo[playerid][pDeaths]);
    ^
Main.java:98: error: class, interface, or enum expected
    INI_Int("Lingua",PlayerInfo[playerid][pLingua]);
    ^
Main.java:99: error: class, interface, or enum expected
    INI_Int("Premium",PlayerInfo[playerid][pPremium]);
    ^
Main.java:100: error: class, interface, or enum expected
    INI_Int("Score",PlayerInfo[playerid][pScore]);
    ^
Main.java:101: error: class, interface, or enum expected
 	return 1;
 	^
Main.java:102: error: class, interface, or enum expected
}
^
Main.java:106: error: class, interface, or enum expected
	GetPlayerName(playerid,playername,sizeof(playername));
	^
Main.java:107: error: class, interface, or enum expected
	format(string,sizeof(string),PATH,playername);
	^
Main.java:108: error: class, interface, or enum expected
	return string;
	^
Main.java:109: error: class, interface, or enum expected
}
^
Main.java:113: error: class, interface, or enum expected
    new s1 = 1;
    ^
Main.java:114: error: class, interface, or enum expected
    new s2 = 0;
    ^
Main.java:115: error: class, interface, or enum expected
    new n;
    ^
Main.java:116: error: class, interface, or enum expected
    for (n=0; n<length; n++)
    ^
Main.java:116: error: class, interface, or enum expected
    for (n=0; n<length; n++)
              ^
Main.java:116: error: class, interface, or enum expected
    for (n=0; n<length; n++)
                        ^
Main.java:119: error: class, interface, or enum expected
       s2 = (s2 + s1)     % 65521;
       ^
Main.java:120: error: class, interface, or enum expected
    }
    ^
Main.java:122: error: class, interface, or enum expected
}
^
Main.java:125: error: class, interface, or enum expected
public GEOIP_HTTPREQUEST(playerid, response_code, location[]) // The GEO-IP Callback.
       ^
Main.java:128: error: class, interface, or enum expected
    if(response_code == 200) {
    ^
Main.java:130: error: class, interface, or enum expected
        GetPlayerName(playerid,Pname,sizeof(Pname));
        ^
Main.java:131: error: class, interface, or enum expected
        format(string, sizeof(string), "[+] %s [%s] [+]",Pname,location);
        ^
Main.java:132: error: class, interface, or enum expected
        SendClientMessage(playerid, COLOR_GREEN, string);
        ^
Main.java:133: error: class, interface, or enum expected
        return 1;
        ^
Main.java:134: error: class, interface, or enum expected
    }
    ^
Main.java:137: error: class, interface, or enum expected
        GetPlayerName(playerid,Pname,sizeof(Pname));
        ^
Main.java:138: error: class, interface, or enum expected
        format(string, sizeof(string), "[+] %s [+]",Pname);
        ^
Main.java:139: error: class, interface, or enum expected
        SendClientMessage(playerid, COLOR_GREEN, string);
        ^
Main.java:140: error: class, interface, or enum expected
        return 0;
        ^
Main.java:141: error: class, interface, or enum expected
    }
    ^
Main.java:148: error: class, interface, or enum expected
forward NuovaMode(modeid);
^
Main.java:151: error: class, interface, or enum expected
public NuovaMode(modeid)
       ^
100 errors
stdout

Standard output is empty