Advertisement
Guest User

Untitled

a guest
Mar 6th, 2015
346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 211.60 KB | None | 0 0
  1. /*********************************
  2. ** SWAT VS TERRORISTS **
  3. ** By [Svt]Mike **
  4. ** v4.1 **
  5. *********************************/
  6.  
  7. #include <a_samp>
  8. #include <dini>
  9.  
  10.  
  11.  
  12. /*******************************************************************************
  13. * <=[Defines]=> *
  14. *******************************************************************************/
  15.  
  16. #define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
  17. #define CmdsMenu 100
  18. #define ANTI_WEAPONS
  19. #define ANTI_ARMOUR
  20. #define ANTI_HEALTH
  21. #define MAX_SERVER_PLAYERS 50
  22. #define VEHICLE_RESPAWN_SECONDS 130
  23. #define CAR_HEALTH
  24. #define PLAYER_INFO
  25. // teams //
  26. #define TEAM_TERRORISTS 1
  27. #define TEAM_SWAT 2
  28. // Checkpoints //
  29. #define CHECKPOINT_NONE 0
  30. #define CHECKPOINT_CAR_FIXER_1 1
  31. #define CHECKPOINT_CAR_FIXER_2 2
  32.  
  33.  
  34. /*******************************************************************************
  35. * <=[ARMI]=> *
  36. *******************************************************************************/
  37. #define PISTOL 22
  38. #define SILENCED_PISTOL 23
  39. #define DEAGLE 24
  40. #define AK47 30
  41. #define M4 31
  42. #define TEC9 32
  43. #define MICRO_UZI 28
  44. #define MP5 29
  45. #define GRENADES 16
  46. #define MOLOTOV 18
  47. #define TEAR_GAS 17
  48. #define NIGHT_STICK 3
  49. #define KNIFE 4
  50. #define SHOTGUN 25
  51. #define SAWNOFF_SHOTGUN 26
  52. #define COMBAT_SHOTGUN 27
  53. #define MICRO_UZI 28
  54. #define SNIPER_RIFLE 34
  55. #define RPG 35
  56. #define ROCKET_LAUNCHER 36
  57. #define FLAME_THROWER 37
  58. #define MINIGUN 38
  59. #define SPRAY_PAINT 41
  60. #define FIRE_EXTINGUER 42
  61. #define PARACHUTE 46
  62. #define SACHET_CHARGERS 39
  63. #define DETONATOR 40
  64.  
  65. /*******************************************************************************
  66. * <=[Admins CMDS levels]=> *
  67. *******************************************************************************/
  68.  
  69. #define SLAP_LEVEL /**/ 2 //
  70. #define EXPLODE_LEVEL /**/ 4 //
  71.  
  72. /*******************************************************************************
  73. * <=[COLORS]=> *
  74. *******************************************************************************/
  75.  
  76. #define COLOR_GREY 0xAFAFAFAA //grey
  77. #define COLOR_LIGHTGREEN 0x81F628AA //lightgreen
  78. #define COLOR_YELLOW 0xFFFF00AA //yellow
  79. #define COLOR_LIGHTBLUE 0x33CCFFAA //lightblue
  80. #define COLOR_BLUE 0x0050F6AA //blue
  81. #define COLOR_GREEN 0x33AA33AA //green
  82. #define COLOR_RED 0xF60000AA //red
  83. #define COLOR_ORANGE 0xFF9900AA //orange
  84. #define COLOR_LIGHTRED 0xF60000AA //lightred
  85. #define COLOR_WHITE 0xFFFFFFFF //white
  86. #define COLOR_BLACK 0x000000AA //black
  87. #define COLOR_ZADMINBLUE 0x6D4CEBAA
  88. #define TERRORISTS_CHAT 0xF6F685AA
  89. #define SWAT_CHAT 0xACF6A6AA
  90.  
  91. #define AZZURRO 0x00FFFFEE // light blue
  92. #define FUCSIA 0xDB02CBF0 // purple
  93. #define ARANCIONE 0xFD6C02EE // orange
  94. #define GIALLO 0xF6F600AA // yellow
  95. #define ROSSO 0xF60000AA // red
  96. #define BLU 0x0000F6AA // blue
  97. #define VERDE 0x00C400AA // green
  98. #define VERDE_SCURO 0x003500F9 // dark green
  99. #define BIANCO 0xFFFFFFFF // white
  100. #define BLU_SCURO 0x0000A0AA // dark blue
  101. #define GRIGIO 0xCCCECCAA // grey
  102. #define MILITARE 0x759140AA // army color
  103. #define VERDE_CHIARO 0x00F200F4 // lightgreen
  104. #define COLOR_GOLD 0xE3C700AA // gold
  105. #define FBI 0x004CF6AA // blue2
  106. #define AVVISI 0xD6E9B0AA // dark white
  107. #define NERO 0x000000FF // black2
  108. #define ROSSO_SCURO 0x640000F2 // dark red
  109.  
  110. #define COL_WHITE "{FFFFFF}"
  111. #define COL_BLACK "{0E0101}"
  112. #define COL_GREY "{C3C3C3}"
  113. #define COL_GREEN "{6EF83C}"
  114. #define COL_RED "{F81414}"
  115. #define COL_YELLOW "{F3FF02}"
  116. #define COL_ORANGE "{FFAF00}"
  117. #define COL_CYAN "{00FFEE}"
  118. #define COL_LIGHTBLUE "{00C0FF}"
  119. #define COL_BLUE "{0049FF}"
  120.  
  121. /*******************************************************************************
  122. * <=[Forwards]=> *
  123. *******************************************************************************/
  124.  
  125. forward VitaPlayerAuto();
  126. forward CarInfo();
  127. forward OptionsConfiguration();
  128. forward ServerTeamWinning();
  129. forward Restart();
  130. forward PlayerInfoTimer();
  131. forward AntiArmourHack();
  132. forward AntiHealthHack();
  133. forward AntiWeaponsHack();
  134. forward FloodTimer(playerid);
  135. forward ServerConfiguration();
  136. forward UnMutePlayerTimer(playerid);
  137. forward TimerCarFixersCheckpoints();
  138. forward FixingTimer1(playerid);
  139. forward FixingTimer2(playerid);
  140. forward FixingTimer3(playerid);
  141. forward ReplaceJetpack();
  142. forward SpawnedPlayer(playerid);
  143. forward HealPlayers();
  144. forward AutomaticMessages();
  145. forward ReCountForBalance();
  146. /*******************************************************************************
  147. * <=[Variables]=> *
  148. *******************************************************************************/
  149.  
  150. new MuteTimer[MAX_SERVER_PLAYERS];
  151. new name[24],
  152. pname[24],
  153. string[256],str[256],
  154. incriminato[24],
  155. adminname[24],
  156. player;
  157.  
  158. enum PlayerData{
  159. gTeam[MAX_SERVER_PLAYERS],
  160. GoodKillings[MAX_SERVER_PLAYERS],
  161. BadKillings[MAX_SERVER_PLAYERS],
  162. Score[MAX_SERVER_PLAYERS],
  163. Deaths[MAX_SERVER_PLAYERS],
  164. pPassword2[256],
  165. pAdminlevel[MAX_SERVER_PLAYERS],
  166. pLoggedin[MAX_SERVER_PLAYERS],
  167. pFreezed[MAX_SERVER_PLAYERS],
  168. pMuted[MAX_SERVER_PLAYERS],
  169. pJailed[MAX_SERVER_PLAYERS],
  170. pMuteWarnings[MAX_SERVER_PLAYERS],
  171. pPingWarnings[MAX_SERVER_PLAYERS],
  172. pFlood[MAX_SERVER_PLAYERS],
  173. pFloodding[MAX_SERVER_PLAYERS]};
  174. new Account[MAX_SERVER_PLAYERS][PlayerData];
  175.  
  176. enum CommandLevels{
  177. Mute, UnMute,
  178. Spec, SpecOff,
  179. kick, ban, Explode,
  180. Jail, UnJail, Slap,
  181. GetIp, Setweather, Settime,
  182. Freeze, UnFreeze,
  183. Goto, Get,
  184. ClearChat, Gmx,
  185. MakeAdmin, MakeMeGodAdmin,
  186. AChat, AutoHealPlayers};
  187. new CmdsOptions[CommandLevels];
  188.  
  189. enum ServerData2{ // Cmds Enable/Disable
  190. Pm, Language,
  191. AutoLogin,
  192. AntiFlood,
  193. GetIp,
  194. Mute, UnMute, Explode,
  195. Spec, SpecOff, Slap,
  196. kick, ban,
  197. Jail, UnJail,
  198. Freeze, UnFreeze,
  199. Goto, Get, Setweather, Settime,
  200. ClearChat, Gmx,
  201. MakeAdmin, MakeMeGodAdmin,
  202. AChat, AutoHealPlayers};
  203. new ServerInfo[ServerData2];
  204.  
  205. enum ServerOptions{ // Options
  206. ConnectMessages,
  207. MaxAdminLevel, MaxMoney,
  208. MaxHealth, MaxArmour,
  209. MaxMuteWarnings,
  210. MaxFloodTimes,
  211. MaxFloodSeconds,
  212. AutoHealPlayers, BalanceSystem};
  213. new Options2[ServerOptions];
  214.  
  215. new SKIN[MAX_SERVER_PLAYERS];
  216. new BeginningSkin[MAX_SERVER_PLAYERS];
  217. new SetSkinToMeSkin[MAX_SERVER_PLAYERS];
  218.  
  219. new MenuDialog=185;
  220. new LanguageDialog=186;
  221. new BoxColorDialog=187;
  222. new FullHealthColorDialog=188;
  223. new HealthColorDialog=189;
  224. new TextColorDialog=190;
  225.  
  226. new Text:BlackIndicator[MAX_SERVER_PLAYERS];
  227. new Text:FullHealth[MAX_SERVER_PLAYERS];
  228. new Text:VehicleHealth[MAX_SERVER_PLAYERS];
  229. new Text:NameText[MAX_SERVER_PLAYERS];
  230. new Text:GMtext;
  231. new Text:CMDtext;
  232. new Text:BOX;
  233. new Text:STATStext[MAX_SERVER_PLAYERS];
  234.  
  235. new Float:CarHealth3;
  236.  
  237. enum ServerOptionsX{ // Options
  238. TextLanguage,
  239. Text1,
  240. Text2,
  241. Text3,
  242. Text4};
  243. new Options[ServerOptionsX];
  244.  
  245. new Float:PlayerHealth;
  246. new CriminalsAmmount;
  247. new SWATAmmount;
  248. new tempo1,
  249. tempo2,
  250. tempo3,
  251. tempo4,
  252. tempo5,
  253. tempo6,
  254. tempo7,
  255. tempo8;
  256.  
  257. new TerroristsCount;
  258. new SWATCount;
  259.  
  260. new Jetpack;
  261. #if defined PLAYER_INFO
  262. new Checkpoint[MAX_SERVER_PLAYERS];
  263. new Fixing[MAX_SERVER_PLAYERS];
  264. #endif
  265. new bool:Spawned[MAX_SERVER_PLAYERS];
  266. new bool:CamActive[MAX_SERVER_PLAYERS];
  267. new Jetpack2[MAX_SERVER_PLAYERS];
  268. new SWAT_ZONE_1;
  269. new SWAT_ZONE_2;
  270. new TERRORISTS_ZONE_1;
  271. new TERRORISTS_ZONE_2;
  272. new v1,v2,v3,v4,v5,v6,v7,v8,v9,v10,v11,v12,v13,v14,v15,v16,v17,v18,v19,v20,v21,v22,v23,v24,v25,v26,v27,v28,v29,v30,v31,v32,v33,v34,v35; // veicoli
  273.  
  274. /*******************************************************************************
  275. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *
  276. * | [SWAT] | *
  277. * | vs | *
  278. * | [Terrorists] | *
  279. * | ^^ By [Svt]Mike ^^ | *
  280. * | ^^ v4.1 ^^ | *
  281. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - *
  282. *******************************************************************************/
  283. public OnGameModeInit(){
  284. SetTimer("VitaPlayerAuto",100,1);
  285. SetTimer("CarInfo",100,1);
  286. SetTimer("OptionsConfiguration",5000,1);
  287. new file[256]; format(file,sizeof(file),"VHealthConfig.ini");
  288. if(!dini_Exists(file)){
  289. dini_Create(file);
  290. if(!dini_Isset(file,"TextLanguage")) dini_IntSet(file,"TextLanguage",2);
  291. if(!dini_Isset(file,"Text1Color")) dini_IntSet(file,"Text1Color",7);
  292. if(!dini_Isset(file,"Text2Color")) dini_IntSet(file,"Text2Color",5);
  293. if(!dini_Isset(file,"Text3Color")) dini_IntSet(file,"Text3Color",4);
  294. if(!dini_Isset(file,"Text4Color")) dini_IntSet(file,"Text4Color",1);}
  295. #if defined CAR_HEALTH
  296. for(new i=0; i<MAX_SERVER_PLAYERS; i++){
  297. BlackIndicator[i] = TextDrawCreate(235.000000, 386.000000, " ");
  298. TextDrawBackgroundColor(BlackIndicator[i], 255);
  299. TextDrawFont(BlackIndicator[i], 1);
  300. TextDrawLetterSize(BlackIndicator[i], 0.500000, 1.600000);
  301. TextDrawColor(BlackIndicator[i], 16711935);
  302. TextDrawSetOutline(BlackIndicator[i], 0);
  303. TextDrawSetProportional(BlackIndicator[i], 1);
  304. TextDrawSetShadow(BlackIndicator[i], 1);
  305. TextDrawUseBox(BlackIndicator[i], 1);
  306. TextDrawBoxColor(BlackIndicator[i], NERO);
  307. TextDrawTextSize(BlackIndicator[i], 410.000000, 0.000000);
  308.  
  309. FullHealth[i] = TextDrawCreate(238.000000, 390.000000, " ");
  310. TextDrawBackgroundColor(FullHealth[i], 255);
  311. TextDrawFont(FullHealth[i], 1);
  312. TextDrawLetterSize(FullHealth[i], 0.500000, 0.699999);
  313. TextDrawColor(FullHealth[i], 0x007B00AA);
  314. TextDrawSetOutline(FullHealth[i], 0);
  315. TextDrawSetProportional(FullHealth[i], 1);
  316. TextDrawSetShadow(FullHealth[i], 1);
  317. TextDrawUseBox(FullHealth[i], 1);
  318. TextDrawBoxColor(FullHealth[i], VERDE_SCURO);
  319. TextDrawTextSize(FullHealth[i], 407.000000, 0.000000);
  320.  
  321. VehicleHealth[i] = TextDrawCreate(238.000000, 390.000000, ".");
  322. TextDrawBackgroundColor(VehicleHealth[i], 255);
  323. TextDrawFont(VehicleHealth[i], 1);
  324. TextDrawLetterSize(VehicleHealth[i], 0.500000, 0.699999);
  325. TextDrawColor(VehicleHealth[i],VERDE_SCURO);
  326. TextDrawSetOutline(VehicleHealth[i], 0);
  327. TextDrawSetProportional(VehicleHealth[i], 1);
  328. TextDrawSetShadow(VehicleHealth[i], 0);
  329. TextDrawUseBox(VehicleHealth[i], 1);
  330. TextDrawBoxColor(VehicleHealth[i], VERDE_CHIARO);
  331. TextDrawTextSize(VehicleHealth[i], 407.000000, 0.000000); // spazio BOX
  332.  
  333. NameText[i] = TextDrawCreate(258.000000, 370.000000, "Vehicle Health");
  334. TextDrawBackgroundColor(NameText[i], 255);
  335. TextDrawFont(NameText[i], 1);
  336. TextDrawLetterSize(NameText[i], 0.500000, 1.300000);
  337. TextDrawColor(NameText[i], ROSSO);
  338. TextDrawSetOutline(NameText[i], 0);
  339. TextDrawSetProportional(NameText[i], 1);
  340. TextDrawSetShadow(NameText[i], 1);}
  341. #endif
  342.  
  343. BOX = TextDrawCreate(0.000000, 000.000000, "");
  344. TextDrawBackgroundColor(BOX, 0x000000FF);
  345. TextDrawFont(BOX, 2);
  346. TextDrawLetterSize(BOX, 0.350000, 1.100000);
  347. TextDrawColor(BOX, 0x000000FF);
  348. TextDrawSetOutline(BOX, 0);
  349. TextDrawSetProportional(BOX, 1);
  350. TextDrawSetShadow(BOX, 1);
  351. TextDrawUseBox(BOX, 1);
  352. TextDrawBoxColor(BOX, 0x000000FF);
  353. TextDrawTextSize(BOX, 629.000000, 0.000000);
  354.  
  355. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  356. STATStext[i] = TextDrawCreate(485.000000, 319.000000, " ");
  357. TextDrawBackgroundColor(STATStext[i], 0x000000FF);
  358. TextDrawFont(STATStext[i], 2);
  359. TextDrawLetterSize(STATStext[i], 0.350000, 1.100000);
  360. TextDrawColor(STATStext[i], 0x000000FF);
  361. TextDrawSetOutline(STATStext[i], 0);
  362. TextDrawSetProportional(STATStext[i], 1);
  363. TextDrawSetShadow(STATStext[i], 1);}
  364.  
  365. SetCorrectColor();
  366. print("Colors loaded:");
  367. format(string, sizeof(string), "- TextBoxColor=%d", dini_Int(file,"Text1Color"));
  368. print(string);
  369. format(string, sizeof(string), "- TextFullHealthColor=%d", dini_Int(file,"Text2Color"));
  370. print(string);
  371. format(string, sizeof(string), "- TextVehicleHealthColor=%d", dini_Int(file,"Text3Color"));
  372. print(string);
  373. format(string, sizeof(string), "- TextHealthTextColor=%d", dini_Int(file,"Text4Color"));
  374. print(string);
  375.  
  376. SWAT_ZONE_1 = GangZoneCreate(116.7788, 1833.426, 303.6248, 2038.527);
  377. SWAT_ZONE_2 = GangZoneCreate(-00.00000, 0000.000, 000.0000, 0000.000);
  378. TERRORISTS_ZONE_1 = GangZoneCreate(-430.2263,2560.7783,45.6875, 2830.542);
  379. TERRORISTS_ZONE_2 = GangZoneCreate(000.0000, 0000.00, 000.000, 0000.000);
  380.  
  381. format(file,sizeof(file),"Config/EnableCmds.ini");
  382. if(!fexist("Users/")){
  383. if(dini_Int(file, "Language")==1) print("\n\n > ATTENZIONE: La cartella 'Users' è mancante in Scriptfiles\nSYSTEM Inutilizzabile");else
  384. if(dini_Int(file, "Language")==2) print("\n\n > WARNING: Folder 'Users' Missing From Scriptfiles\n");
  385. return 1;}
  386. if(!fexist("Config/")){
  387. if(dini_Int(file, "Language")==1) print("\n\n > ATTENZIONE: La cartella 'Config' è mancante in Scriptfiles\nSYSTEM Inutilizzabile");else
  388. if(dini_Int(file, "Language")==2) print("\n\n > WARNING: Folder 'Config' Missing From Scriptfiles\n");
  389. return 1;}
  390.  
  391. if(!dini_Exists("aka.txt"))dini_Create("aka.txt");
  392. if(!dini_Exists(file)){
  393. dini_Create(file);
  394. if(ServerInfo[Language]==1) print("- COMANDI-ADMIN: La configurazione è stata creata in 'EnableCmds.ini'");else
  395. if(ServerInfo[Language]==2) print("- ADMIN-CMDS: Configuration has been created in 'EnableCmds.ini'");}
  396. if(!dini_Isset(file,"********************************************")) dini_IntSet(file,"********************************************",0);
  397. if(!dini_Isset(file,"Language")) dini_IntSet(file,"Language",2);
  398. if(!dini_Isset(file,"AntiFlood")) dini_IntSet(file,"AntiFlood",1);
  399. if(!dini_Isset(file,"ReadCmds")) dini_IntSet(file,"ReadCmds",1);
  400. if(!dini_Isset(file,"AutoLogin")) dini_IntSet(file,"AutoLogin",0);
  401. if(!dini_Isset(file,"Pm")) dini_IntSet(file,"Pm",1);
  402. if(!dini_Isset(file,"GetIp")) dini_IntSet(file,"GetIp",1);
  403. if(!dini_Isset(file,"Mute")) dini_IntSet(file,"Mute",1);
  404. if(!dini_Isset(file,"UnMute")) dini_IntSet(file,"UnMute",1);
  405. if(!dini_Isset(file,"Spec")) dini_IntSet(file,"Spec",1);
  406. if(!dini_Isset(file,"SpecOff")) dini_IntSet(file,"SpecOff",1);
  407. if(!dini_Isset(file,"SetTime")) dini_IntSet(file,"SetTime",1);
  408. if(!dini_Isset(file,"SetWeather")) dini_IntSet(file,"SetWeather",1);
  409. if(!dini_Isset(file,"AutoHealPlayers")) dini_IntSet(file,"AutoHealPlayers",1);
  410. if(!dini_Isset(file,"Kick")) dini_IntSet(file,"Kick",1);
  411. if(!dini_Isset(file,"Explode")) dini_IntSet(file,"Explode",1);
  412. if(!dini_Isset(file,"Slap")) dini_IntSet(file,"Slap",1);
  413. if(!dini_Isset(file,"Ban")) dini_IntSet(file,"Ban",1);
  414. if(!dini_Isset(file,"Jail")) dini_IntSet(file,"Jail",1);
  415. if(!dini_Isset(file,"UnJail")) dini_IntSet(file,"UnJail",1);
  416. if(!dini_Isset(file,"Freeze")) dini_IntSet(file,"Freeze",1);
  417. if(!dini_Isset(file,"UnFreeze")) dini_IntSet(file,"UnFreeze",1);
  418. if(!dini_Isset(file,"Goto")) dini_IntSet(file,"Goto",1);
  419. if(!dini_Isset(file,"Get")) dini_IntSet(file,"Get",1);
  420. if(!dini_Isset(file,"CleatChat")) dini_IntSet(file,"ClearChat",1);
  421. if(!dini_Isset(file,"Gmx")) dini_IntSet(file,"Gmx",1);
  422. if(!dini_Isset(file,"MakeAdmin")) dini_IntSet(file,"MakeAdmin",1);
  423. if(!dini_Isset(file,"MakeMeGodAdmin")) dini_IntSet(file,"MakeMeGodAdmin",1);
  424. if(!dini_Isset(file,"AChat")) dini_IntSet(file,"AChat",1);
  425. if(ServerInfo[Language]==1)print("- Opzioni di Attivazione comandi admin caricata");else
  426. if(ServerInfo[Language]==2)print("- Admin Cmds activation options loaded");
  427.  
  428. new sfile[256]; format(sfile,sizeof(sfile),"Config/OptionsConfig.ini");
  429. if(!dini_Exists(sfile)){
  430. dini_Create(sfile);
  431. if(ServerInfo[Language]==1) print("- OPZIONI-SERVER: La configurazione è stata creata in 'OptionsConfig.ini'");else
  432. if(ServerInfo[Language]==2) print("- SERVER-OPTIONS: Configuration has been created in 'OptionsConfig.ini'");}
  433. if(!dini_Isset(sfile,"********************************************")) dini_IntSet(sfile,"********************************************",0);
  434. if(!dini_Isset(sfile,"StandardWeather")) dini_IntSet(sfile,"StandardWeather",1);
  435. if(!dini_Isset(sfile,"StandardTime")) dini_IntSet(sfile,"StandardTime",12);
  436. if(!dini_Isset(sfile,"ConnectMessages")) dini_IntSet(sfile,"ConnectMessages",1);
  437. if(!dini_Isset(sfile,"MaxAdminLevel")) dini_IntSet(sfile,"MaxAdminLevel",10);
  438. if(!dini_Isset(sfile,"MaxMuteWarnings")) dini_IntSet(sfile,"MaxMuteWarnings",5);
  439. if(!dini_Isset(sfile,"MaxFloodTimes")) dini_IntSet(sfile,"MaxFloodTimes",5);
  440. if(!dini_Isset(sfile,"MaxFloodSeconds")) dini_IntSet(sfile,"MaxFloodSeconds",2);
  441. if(!dini_Isset(sfile,"AutoHealPlayers")) dini_IntSet(sfile,"AutoHealPlayers",1);
  442. if(!dini_Isset(sfile,"*******************************************")) dini_IntSet(sfile,"*******************************************",0);
  443. if(ServerInfo[Language]==1)print("- Configurazione opzioni server + anticheat caricata");else
  444. if(ServerInfo[Language]==2)print("- Server Options + anticheat configuation loaded");
  445. SetWeather(dini_Int(sfile,"StandardWeather"));
  446. SetWorldTime(dini_Int(sfile,"StandardTime"));
  447. format(string,sizeof(string),"- WeatherID=%d\n- WorldTime=%d",dini_Int(sfile,"StandardWeather"),dini_Int(sfile,"StandardTime"));
  448. print(string);
  449. new cfile[256]; format(cfile,sizeof(cfile),"Config/CmdsLevels.ini");
  450. if(!dini_Exists(cfile)){
  451. dini_Create(cfile);
  452. if(ServerInfo[Language]==1) print("- LIVELLI-COMANDI: La configurazione è stata creata in 'CmdsLevels.ini'");else
  453. if(ServerInfo[Language]==2) print("- COMMANDS LEVELS: Configuration has been created in 'CmdsLevels.ini'");}
  454. if(!dini_Isset(cfile,"********************************************")) dini_IntSet(file,"********************************************",0);
  455. if(!dini_Isset(cfile,"GetIp")) dini_IntSet(cfile,"GetIp",1);
  456. if(!dini_Isset(cfile,"Mute")) dini_IntSet(cfile,"Mute",2);
  457. if(!dini_Isset(cfile,"UnMute")) dini_IntSet(cfile,"UnMute",2);
  458. if(!dini_Isset(cfile,"Spec")) dini_IntSet(cfile,"Spec",1);
  459. if(!dini_Isset(cfile,"SpecOff")) dini_IntSet(cfile,"SpecOff",1);
  460. if(!dini_Isset(cfile,"SetTime")) dini_IntSet(cfile,"SetTime",1);
  461. if(!dini_Isset(cfile,"SetWeather")) dini_IntSet(cfile,"SetWeather",1);
  462. if(!dini_Isset(cfile,"AutoHealPlayers")) dini_IntSet(cfile,"AutoHealPlayers",7);
  463. if(!dini_Isset(cfile,"Kick")) dini_IntSet(cfile,"Kick",3);
  464. if(!dini_Isset(cfile,"Explode")) dini_IntSet(cfile,"Explode",4);
  465. if(!dini_Isset(cfile,"Slap")) dini_IntSet(cfile,"Slap",3);
  466. if(!dini_Isset(cfile,"Ban")) dini_IntSet(cfile,"Ban",8);
  467. if(!dini_Isset(cfile,"Jail")) dini_IntSet(cfile,"Jail",7);
  468. if(!dini_Isset(cfile,"UnJail")) dini_IntSet(cfile,"UnJail",7);
  469. if(!dini_Isset(cfile,"Freeze")) dini_IntSet(cfile,"Freeze",5);
  470. if(!dini_Isset(cfile,"UnFreeze")) dini_IntSet(cfile,"UnFreeze",5);
  471. if(!dini_Isset(cfile,"Goto")) dini_IntSet(cfile,"Goto",3);
  472. if(!dini_Isset(cfile,"Get")) dini_IntSet(cfile,"Get",4);
  473. if(!dini_Isset(cfile,"CleatChat")) dini_IntSet(cfile,"ClearChat",1);
  474. if(!dini_Isset(cfile,"Gmx")) dini_IntSet(cfile,"Gmx",10);
  475. if(!dini_Isset(cfile,"MakeAdmin")) dini_IntSet(cfile,"MakeAdmin",1);
  476. if(!dini_Isset(cfile,"AChat")) dini_IntSet(cfile,"AChat",1);
  477. if(ServerInfo[Language]==1)print("- Configurazione livelli dei comandi admin caricata");else
  478. if(ServerInfo[Language]==2)print("- Admin Cmds levels configuration loaded");
  479.  
  480. tempo1=SetTimer("AntiArmourHack",3000,1);
  481. tempo2=SetTimer("AntiHealthHack",3000,1);
  482. tempo3=SetTimer("AntiWeaponsHack",3000,1);
  483. tempo4=SetTimer("ServerTeamWinning",5000,1);
  484. tempo5=SetTimer("PlayerInfoTimer",200,1);
  485. tempo6=SetTimer("ServerConfiguration",5000,1);
  486. tempo7=SetTimer("HealPlayers",2000,1);
  487. tempo8=SetTimer("AutomaticMessages",120000,1);
  488. SetTimer("TimerCarFixersCheckpoints",1000,1);
  489. format(cfile,sizeof(cfile),"Config/EnableCmds.ini");
  490. if(dini_Int(file,"Language")==1)SetGameModeText("* ITA Polizia VS Terroristi [DM] *");
  491. if(dini_Int(file,"Language")==2)SetGameModeText("* [SvT] v1.1] *");
  492.  
  493. CriminalsAmmount=10000;
  494. SWATAmmount=10000;
  495.  
  496. TerroristsCount=0;
  497. SWATCount=0;
  498.  
  499. ShowNameTags(1);SetWeather(1);ShowPlayerMarkers(1); SetNameTagDrawDistance(200.0);SetWeather(3);SetWorldTime(12);UsePlayerPedAnims();
  500.  
  501. /*******************************************************************************
  502. * <=[SKINS]=> *
  503. *******************************************************************************/
  504. //terrorists//
  505. AddPlayerClass(125, -169.3251,2707.1938,62.5284,7.1425,COMBAT_SHOTGUN,3000,DEAGLE,200,M4,2100); // Terror
  506. AddPlayerClass(124,-169.3251,2707.1938,62.5284,7.1425,COMBAT_SHOTGUN,3000,DEAGLE,200,M4,2100); // Girl
  507. //SWAT//
  508. AddPlayerClass(285,211.4132,1898.1892,16.9663,0.0,COMBAT_SHOTGUN,3000,DEAGLE,200,M4,2100); // Police
  509. AddPlayerClass(287,211.4132,1898.1892,16.9663,0.0,COMBAT_SHOTGUN,3000,DEAGLE,200,M4,2100); // Army
  510.  
  511.  
  512. /*******************************************************************************
  513. * <=[Vehicles]=> *
  514. *******************************************************************************/
  515.  
  516. AddStaticVehicle(471,1890.3622,1919.1782,141.3445,93.2204,120,113); // QUAD 1
  517. AddStaticVehicle(471,1890.6888,1912.3683,141.3436,92.3228,120,117); // QUAD 2
  518. AddStaticVehicle(471,1890.4542,1915.3906,141.3450,90.3432,120,113); // QUAD 3
  519. AddStaticVehicle(424,-163.1253,2719.2942,61.7088,117.4886,3,2); //
  520. AddStaticVehicle(424,-164.3605,2722.6746,61.9742,111.9985,6,16); //
  521. AddStaticVehicle(568,546.4878,2276.6704,34.6743,170.0,21,1); // dunebuggy
  522. AddStaticVehicle(568,672.0789,1707.1348,7.0540,130.0,21,1); // dunebuggy2
  523. AddStaticVehicle(568,541.4863,1559.4414,1.1374,160.0,21,1); // dunebuggy3
  524. AddStaticVehicle(568,241.2455,1417.3711,10.4462,270.0,21,1); // dunebuggy4
  525. AddStaticVehicle(539,-482.6982,2193.8738,41.0315,180.0,0,2); // vortex1
  526. AddStaticVehicle(539,-482.6603,2180.9607,41.0073,180.0,0,3); // vortex2
  527. AddStaticVehicle(487,-168.8659,2675.5461,62.8603,87.4022,54,29); // TERROR HELI
  528. AddStaticVehicle(476,-309.1722,2634.9658,64.0348,269.6682,89,91); // TERROR PLANE !
  529. AddStaticVehicle(476,-309.1722,2634.9658,64.0348,269.6682,89,91); // TERROR PLANE 1
  530. AddStaticVehicle(476,-309.2643,2622.8464,64.3645,269.7480,103,102); // TERROR PLANE 2
  531. AddStaticVehicle(578,-234.6929,2598.1189,63.3280,359.4493,1,1); // TERROR TRUCK 1
  532. AddStaticVehicle(578,-228.7661,2598.1143,63.3282,359.5267,1,1); // TERROR TRUCK 2
  533. AddStaticVehicle(470,-217.4698,2653.9739,62.6643,272.6195,43,0); // TERROR CARARMY 1
  534. AddStaticVehicle(470,-217.9010,2659.3132,62.5970,276.2273,43,0); // TERROR CARARMY 2
  535. AddStaticVehicle(468,-165.3123,2689.9534,62.1105,94.4316,53,53); // TERROR SANCHEZ 1
  536. AddStaticVehicle(468,-165.3369,2686.5818,62.2139,89.0596,6,6); // TERROR SANCHEZ 2
  537. AddStaticVehicle(495,-201.3317,2595.2788,63.0518,0.1923,116,115); // TERROR VAN 1
  538. AddStaticVehicle(495,-207.3876,2595.4131,63.0520,0.3656,101,106); // TERROR VAN 2
  539. AddStaticVehicle(495,-213.5703,2595.5400,63.0536,359.2940,5,6); // TERROR VAN 3
  540. AddStaticVehicle(433,-219.1444,2597.7456,63.1397,359.5717,43,0); // TERROR TRUCKARMY 1
  541. AddStaticVehicle(433,-224.0946,2597.6660,63.1398,359.3936,43,0); // TERROR TRUCKARMY 2
  542. AddStaticVehicle(432,-208.0879,2728.8286,62.6964,271.0740,43,0); // TERROR TANK 1
  543. AddStaticVehicle(432,-207.8384,2735.6812,62.6966,268.9254,43,0); // TERROR TANK 2
  544. AddStaticVehicle(471,153.2954,1889.6296,17.8033,137.4735,120,114); //
  545. AddStaticVehicle(471,153.8186,1887.6716,17.7548,136.9200,120,112); //
  546. AddStaticVehicle(471,153.9804,1885.4796,17.7039,136.4340,120,113); //
  547. AddStaticVehicle(471,154.3786,1883.5540,17.6600,132.9804,120,117); //
  548. AddStaticVehicle(522,185.7254,1924.6674,17.3357,30.1494,6,25); //
  549. AddStaticVehicle(522,183.4221,1924.7513,17.4271,34.5778,8,82); //
  550. AddStaticVehicle(522,181.2607,1924.3959,17.4975,40.0982,39,106); //
  551. AddStaticVehicle(522,178.9758,1924.3998,17.5783,43.0176,3,3); //
  552. AddStaticVehicle(522,176.4674,1924.1808,17.6622,45.4583,6,25); //
  553. AddStaticVehicle(528,162.8309,1905.4430,18.6956,30.9275,0,0); //
  554. AddStaticVehicle(528,168.2095,1905.6758,18.5031,24.6313,0,0); //
  555. AddStaticVehicle(528,174.5316,1905.6541,18.2827,21.6185,0,0); //
  556. AddStaticVehicle(601,192.7631,1895.8226,17.3994,0.0891,1,1); //
  557. AddStaticVehicle(601,193.2829,1886.1932,17.3994,0.0678,1,1); //
  558. AddStaticVehicle(601,193.7072,1877.6240,17.3995,0.3000,1,1); //
  559. AddStaticVehicle(432,204.9264,1890.5995,17.6537,6.7154,43,0); //
  560. AddStaticVehicle(432,223.6556,1888.0044,17.6500,354.4488,43,0); //
  561.  
  562. // Variables:
  563.  
  564.  
  565.  
  566.  
  567.  
  568.  
  569.  
  570. /*******************************************************************************
  571. * <=[Objects]=> *
  572. *******************************************************************************/
  573. CreateObject(19005, 1882.04175, 1916.00208, 124.18427, 0.00000, 0.00000, 91.00000);
  574. CreateObject(3945, 136.00038, 1941.51208, 19.99679, 0.00000, 0.00000, 0.00000);
  575. CreateObject(984, 10544.89258, 3338.98828, 759.76160, 0.00000, 0.00000, 0.00000);
  576. CreateObject(984, 10544.89258, 3338.98828, 759.76160, 0.00000, 0.00000, 0.00000);
  577. CreateObject(984, -65.59456, 2575.78467, 19.47606, 0.00000, 0.00000, 0.00000);
  578. CreateObject(987, -250.63951, 2643.25098, 61.98976, 0.00000, 0.00000, 0.00000);
  579. CreateObject(987, -238.93336, 2643.13745, 61.98976, 0.00000, 0.00000, 0.00000);
  580. CreateObject(987, -226.94501, 2643.17188, 61.98976, 0.00000, 0.00000, 0.00000);
  581. CreateObject(987, -214.93872, 2643.08154, 61.98976, 0.00000, 0.00000, 0.00000);
  582. CreateObject(987, -204.03539, 2643.06812, 61.98976, 0.00000, 0.00000, 0.00000);
  583. CreateObject(987, -140.34274, 2643.36450, 61.98980, 0.00000, 0.00000, 91.00000);
  584. CreateObject(987, -180.23586, 2643.00684, 61.98976, 0.00000, 0.00000, 0.00000);
  585. CreateObject(987, -140.73773, 2679.33081, 61.98980, 0.00000, 0.00000, 91.00000);
  586. CreateObject(987, -140.47067, 2655.40405, 61.98980, 0.00000, 0.00000, 91.00000);
  587. CreateObject(987, -140.53848, 2667.33154, 61.98980, 0.00000, 0.00000, 91.00000);
  588. CreateObject(987, -140.89310, 2691.29980, 61.98980, 0.00000, 0.00000, 91.00000);
  589. CreateObject(987, -156.99159, 2643.05615, 61.98976, 0.00000, 0.00000, 0.00000);
  590. CreateObject(987, -152.10576, 2643.05225, 61.98976, 0.00000, 0.00000, 0.00000);
  591. CreateObject(987, -141.12183, 2703.28101, 61.98980, 0.00000, 0.00000, 91.00000);
  592. CreateObject(987, -141.32791, 2715.28345, 61.98980, 0.00000, 0.00000, 91.00000);
  593. CreateObject(987, -141.46573, 2727.30664, 61.98980, 0.00000, 0.00000, 91.00000);
  594. CreateObject(987, -141.72696, 2739.28491, 61.98980, 0.00000, 0.00000, 91.00000);
  595. CreateObject(987, -148.24336, 2776.91064, 61.98980, 0.00000, 0.00000, 185.00000);
  596. CreateObject(987, -160.18787, 2775.85645, 61.98980, 0.00000, 0.00000, 185.00000);
  597. CreateObject(987, -166.14874, 2775.35693, 61.98980, 0.00000, 0.00000, 185.00000);
  598. CreateObject(987, -178.15639, 2774.39966, 61.98980, 0.00000, 0.00000, 91.00000);
  599. CreateObject(987, -178.34099, 2786.33862, 61.98980, 0.00000, 0.00000, 91.00000);
  600. CreateObject(987, -275.78818, 2642.67700, 61.98976, 0.00000, 0.00000, 0.00000);
  601. CreateObject(987, -287.79291, 2642.71802, 61.98976, 0.00000, 0.00000, 0.00000);
  602. CreateObject(987, -299.74826, 2642.65918, 61.98976, 0.00000, 0.00000, 0.00000);
  603. CreateObject(987, -311.62387, 2643.50366, 61.98980, 0.00000, 0.00000, -4.00000);
  604. CreateObject(987, -323.17496, 2647.04932, 61.98980, 0.00000, 0.00000, -18.00000);
  605. CreateObject(987, -334.59686, 2650.72827, 61.98980, 0.00000, 0.00000, -18.00000);
  606. CreateObject(987, -344.64175, 2657.24951, 61.98980, 0.00000, 0.00000, -33.00000);
  607. CreateObject(987, -352.83661, 2666.00098, 61.98980, 0.00000, 0.00000, -47.00000);
  608. CreateObject(987, -358.45288, 2676.54639, 61.98980, 0.00000, 0.00000, -62.00000);
  609. CreateObject(987, -363.56683, 2684.04761, 61.98980, 0.00000, 0.00000, -55.00000);
  610. CreateObject(987, -384.79126, 2712.57617, 61.98980, 0.00000, 0.00000, -47.00000);
  611. CreateObject(987, -376.59097, 2703.82642, 61.98980, 0.00000, 0.00000, -55.00000);
  612. CreateObject(987, -393.72867, 2720.36670, 61.98980, 0.00000, 0.00000, -40.00000);
  613. CreateObject(987, -402.47003, 2723.97949, 61.98980, 0.00000, 0.00000, -25.00000);
  614. CreateObject(987, -413.83527, 2727.55005, 61.98980, 0.00000, 0.00000, -18.00000);
  615. CreateObject(987, -412.09470, 2739.29370, 61.98980, 0.00000, 0.00000, -98.00000);
  616. CreateObject(968, -189.83876, 2643.06226, 62.27154, 0.00000, 0.00000, 0.00000);
  617. CreateObject(966, 739.54279, -7773.95703, 480.22153, 0.00000, 0.00000, 0.00000);
  618. CreateObject(966, -189.77161, 2643.07153, 62.17160, 0.00000, 0.00000, 185.00000);
  619. CreateObject(967, -191.16660, 2643.05518, 62.24190, 0.00000, 0.00000, -91.00000);
  620. CreateObject(967, -263.00681, 2643.70850, 61.52300, 0.00000, 0.00000, -91.00000);
  621. CreateObject(966, -261.45364, 2643.55371, 61.52940, 0.00000, 0.00000, 178.00000);
  622. CreateObject(987, -252.48480, 2643.39063, 61.98976, 0.00000, 0.00000, 0.00000);
  623. CreateObject(968, -261.51794, 2643.52979, 61.52878, 0.00000, 0.00000, 0.00000);
  624. CreateObject(967, -369.23660, 2692.75830, 62.61600, 0.00000, 0.00000, -156.00000);
  625. CreateObject(966, -368.61771, 2691.64258, 62.69750, 0.00000, 0.00000, -244.00000);
  626. CreateObject(968, -368.60596, 2691.66235, 62.78749, 0.00000, 0.00000, 0.00000);
  627. CreateObject(987, 177.32248, 1941.09204, 16.69963, 0.00000, 0.00000, 0.00000);
  628. CreateObject(3945, 136.00038, 1941.51208, 19.99679, 0.00000, 0.00000, 0.00000);
  629. CreateObject(984, 10544.89258, 3338.98828, 759.76160, 0.00000, 0.00000, 0.00000);
  630. CreateObject(984, 10544.89258, 3338.98828, 759.76160, 0.00000, 0.00000, 0.00000);
  631. CreateObject(984, -65.59456, 2575.78467, 19.47606, 0.00000, 0.00000, 0.00000);
  632. CreateObject(987, -250.63951, 2643.25098, 61.98976, 0.00000, 0.00000, 0.00000);
  633. CreateObject(987, -238.93336, 2643.13745, 61.98976, 0.00000, 0.00000, 0.00000);
  634. CreateObject(987, -226.94501, 2643.17188, 61.98976, 0.00000, 0.00000, 0.00000);
  635. CreateObject(987, -214.93872, 2643.08154, 61.98976, 0.00000, 0.00000, 0.00000);
  636. CreateObject(987, -204.03539, 2643.06812, 61.98976, 0.00000, 0.00000, 0.00000);
  637. CreateObject(987, -140.34274, 2643.36450, 61.98980, 0.00000, 0.00000, 91.00000);
  638. CreateObject(987, -180.23586, 2643.00684, 61.98976, 0.00000, 0.00000, 0.00000);
  639. CreateObject(987, -140.73773, 2679.33081, 61.98980, 0.00000, 0.00000, 91.00000);
  640. CreateObject(987, -140.47067, 2655.40405, 61.98980, 0.00000, 0.00000, 91.00000);
  641. CreateObject(987, -140.53848, 2667.33154, 61.98980, 0.00000, 0.00000, 91.00000);
  642. CreateObject(987, -140.89310, 2691.29980, 61.98980, 0.00000, 0.00000, 91.00000);
  643. CreateObject(987, -156.99159, 2643.05615, 61.98976, 0.00000, 0.00000, 0.00000);
  644. CreateObject(987, -152.10576, 2643.05225, 61.98976, 0.00000, 0.00000, 0.00000);
  645. CreateObject(987, -141.12183, 2703.28101, 61.98980, 0.00000, 0.00000, 91.00000);
  646. CreateObject(987, -141.32791, 2715.28345, 61.98980, 0.00000, 0.00000, 91.00000);
  647. CreateObject(987, -141.46573, 2727.30664, 61.98980, 0.00000, 0.00000, 91.00000);
  648. CreateObject(987, -141.72696, 2739.28491, 61.98980, 0.00000, 0.00000, 91.00000);
  649. CreateObject(987, -148.24336, 2776.91064, 61.98980, 0.00000, 0.00000, 185.00000);
  650. CreateObject(987, -160.18787, 2775.85645, 61.98980, 0.00000, 0.00000, 185.00000);
  651. CreateObject(987, -166.14874, 2775.35693, 61.98980, 0.00000, 0.00000, 185.00000);
  652. CreateObject(987, -178.15639, 2774.39966, 61.98980, 0.00000, 0.00000, 91.00000);
  653. CreateObject(987, -178.34099, 2786.33862, 61.98980, 0.00000, 0.00000, 91.00000);
  654. CreateObject(987, -275.78818, 2642.67700, 61.98976, 0.00000, 0.00000, 0.00000);
  655. CreateObject(987, -287.79291, 2642.71802, 61.98976, 0.00000, 0.00000, 0.00000);
  656. CreateObject(987, -299.74826, 2642.65918, 61.98976, 0.00000, 0.00000, 0.00000);
  657. CreateObject(987, -311.62387, 2643.50366, 61.98980, 0.00000, 0.00000, -4.00000);
  658. CreateObject(987, -323.17496, 2647.04932, 61.98980, 0.00000, 0.00000, -18.00000);
  659. CreateObject(987, -334.59686, 2650.72827, 61.98980, 0.00000, 0.00000, -18.00000);
  660. CreateObject(987, -344.64175, 2657.24951, 61.98980, 0.00000, 0.00000, -33.00000);
  661. CreateObject(987, -352.83661, 2666.00098, 61.98980, 0.00000, 0.00000, -47.00000);
  662. CreateObject(987, -358.45288, 2676.54639, 61.98980, 0.00000, 0.00000, -62.00000);
  663. CreateObject(987, -363.56683, 2684.04761, 61.98980, 0.00000, 0.00000, -55.00000);
  664. CreateObject(987, -384.79126, 2712.57617, 61.98980, 0.00000, 0.00000, -47.00000);
  665. CreateObject(987, -376.59097, 2703.82642, 61.98980, 0.00000, 0.00000, -55.00000);
  666. CreateObject(987, -393.72867, 2720.36670, 61.98980, 0.00000, 0.00000, -40.00000);
  667. CreateObject(987, -402.47003, 2723.97949, 61.98980, 0.00000, 0.00000, -25.00000);
  668. CreateObject(987, -413.83527, 2727.55005, 61.98980, 0.00000, 0.00000, -18.00000);
  669. CreateObject(987, -412.09470, 2739.29370, 61.98980, 0.00000, 0.00000, -98.00000);
  670. CreateObject(968, -189.83876, 2643.06226, 62.27154, 0.00000, 0.00000, 0.00000);
  671. CreateObject(966, 739.54279, -7773.95703, 480.22153, 0.00000, 0.00000, 0.00000);
  672. CreateObject(966, -189.77161, 2643.07153, 62.17160, 0.00000, 0.00000, 185.00000);
  673. CreateObject(967, -191.16660, 2643.05518, 62.24190, 0.00000, 0.00000, -91.00000);
  674. CreateObject(967, -263.00681, 2643.70850, 61.52300, 0.00000, 0.00000, -91.00000);
  675. CreateObject(966, -261.45364, 2643.55371, 61.52940, 0.00000, 0.00000, 178.00000);
  676. CreateObject(987, -252.48480, 2643.39063, 61.98976, 0.00000, 0.00000, 0.00000);
  677. CreateObject(968, -261.51794, 2643.52979, 61.52878, 0.00000, 0.00000, 0.00000);
  678. CreateObject(967, -369.23660, 2692.75830, 62.61600, 0.00000, 0.00000, -156.00000);
  679. CreateObject(966, -368.61771, 2691.64258, 62.69750, 0.00000, 0.00000, -244.00000);
  680. CreateObject(968, -368.60596, 2691.66235, 62.78749, 0.00000, 0.00000, 0.00000);
  681. CreateObject(987, 188.85153, 1941.16992, 16.65139, 0.00000, 0.00000, 180.00000);
  682. CreateObject(987, 176.86830, 1941.09399, 16.65139, 0.00000, 0.00000, 180.00000);
  683. CreateObject(987, 164.79343, 1941.11426, 16.65139, 0.00000, 0.00000, 180.00000);
  684. CreateObject(987, 152.82553, 1941.15527, 16.65140, 0.00000, 0.00000, 180.00000);
  685. CreateObject(987, 128.61327, 1941.33215, 16.65140, 0.00000, 0.00000, 180.00000);
  686. CreateObject(987, 116.78584, 1941.42639, 16.65140, 0.00000, 0.00000, 180.00000);
  687. CreateObject(987, 104.75521, 1941.48743, 16.65140, 0.00000, 0.00000, 180.00000);
  688. CreateObject(987, 92.83935, 1941.60474, 16.65140, -3.00000, 0.00000, 269.00000);
  689. CreateObject(987, 92.72471, 1929.67798, 16.65140, -3.00000, 0.00000, 269.00000);
  690. CreateObject(987, 92.68612, 1918.39258, 16.65140, -3.00000, 0.00000, 269.00000);
  691. CreateObject(987, 92.62528, 1906.43494, 16.65140, -3.00000, 0.00000, 269.00000);
  692. CreateObject(987, 92.13067, 1870.99170, 16.65140, -3.00000, 0.00000, 269.00000);
  693. CreateObject(987, 92.29089, 1882.87170, 16.65140, -3.00000, 0.00000, 269.00000);
  694. CreateObject(987, 92.29089, 1882.87170, 16.65140, -3.00000, 0.00000, 269.00000);
  695. CreateObject(987, 92.45543, 1894.64954, 16.65140, -3.00000, 0.00000, 269.00000);
  696. CreateObject(987, 91.96145, 1859.06995, 16.65140, -3.00000, 0.00000, 269.00000);
  697. CreateObject(987, 91.73012, 1847.18652, 16.65140, -3.00000, 0.00000, 269.00000);
  698. CreateObject(987, 91.50421, 1835.34680, 16.65140, -3.00000, 0.00000, 269.00000);
  699. CreateObject(987, 91.50421, 1835.34680, 16.65140, -3.00000, 0.00000, 269.00000);
  700. CreateObject(987, 91.29527, 1823.46411, 16.65140, -3.00000, 0.00000, 269.00000);
  701. CreateObject(987, 91.14830, 1811.62036, 16.65140, -3.00000, 0.00000, 269.00000);
  702. CreateObject(987, 275.26141, 1798.85632, 16.65140, -3.00000, 0.00000, 181.00000);
  703. CreateObject(16121, 167.11400, 1950.11047, 8.14010, 0.00000, -16.00000, 51.00000);
  704. CreateObject(16121, 168.08908, 1959.26880, 7.10076, 0.00000, -4.00000, 270.00000);
  705. CreateObject(3749, 9709.82129, 3563.58521, 165.93393, 0.00000, 0.00000, 0.00000);
  706. CreateObject(3749, 134.99237, 1939.70337, 23.96680, 0.00000, 0.00000, 0.00000);
  707. CreateObject(729, 141.99374, 1939.05896, 24.14409, 0.00000, 0.00000, 0.00000);
  708. CreateObject(18795, -168.57091, 2574.06836, 48.06170, 0.00000, -20.00000, 114.00000);
  709. CreateObject(18795, -154.07062, 2580.17944, 47.57700, 0.00000, -18.00000, 114.00000);
  710. CreateObject(18795, -130.96855, 2512.58521, 20.65630, -10.00000, -20.00000, 140.00000);
  711. CreateObject(18795, -153.20517, 2539.85913, 34.14790, -6.00000, -20.00000, 128.00000);
  712. CreateObject(18795, -138.79968, 2545.38013, 35.10627, -4.00000, -18.00000, 128.00000);
  713. CreateObject(3279, 201.26428, 1880.95703, 16.72367, 0.00000, 0.00000, 0.00000);
  714. CreateObject(3279, 209.40707, 1932.50171, 22.31780, 0.00000, 0.00000, 0.00000);
  715. CreateObject(711, -398.12433, 2184.72729, 46.85466, 0.00000, 0.00000, 0.00000);
  716. CreateObject(711, -387.96954, 2173.32861, 47.41525, 0.00000, 0.00000, 0.00000);
  717. CreateObject(711, -405.06146, 2162.79468, 48.58695, 0.00000, 0.00000, 0.00000);
  718. CreateObject(711, -442.16092, 2175.15942, 49.77832, 0.00000, 0.00000, 0.00000);
  719. CreateObject(711, -435.14716, 2192.87305, 47.38590, 0.00000, 0.00000, 0.00000);
  720. CreateObject(711, -416.40680, 2175.41870, 46.92938, 0.00000, 0.00000, 0.00000);
  721. CreateObject(711, -382.15179, 2152.16699, 47.59148, 0.00000, 0.00000, 0.00000);
  722. CreateObject(711, -436.84570, 2141.62451, 51.23775, 0.00000, 0.00000, 0.00000);
  723. CreateObject(711, -421.32928, 2133.93018, 50.56220, 0.00000, 0.00000, 0.00000);
  724. CreateObject(711, -433.97781, 2113.32642, 53.09803, 0.00000, 0.00000, 0.00000);
  725. CreateObject(711, -348.51331, 2190.18677, 48.18690, 0.00000, 0.00000, 0.00000);
  726. CreateObject(711, -350.46899, 2170.47314, 48.89574, 0.00000, 0.00000, 0.00000);
  727. CreateObject(711, -345.34949, 2150.73779, 52.39939, 0.00000, 0.00000, 0.00000);
  728. CreateObject(711, -351.60928, 2131.34106, 58.01917, 0.00000, 0.00000, 0.00000);
  729. CreateObject(711, -340.10278, 2101.04272, 53.82222, 0.00000, 0.00000, 0.00000);
  730. CreateObject(711, -325.58292, 2132.72241, 52.35795, 0.00000, 0.00000, 0.00000);
  731. CreateObject(711, -316.12735, 2149.59814, 56.37136, 0.00000, 0.00000, 0.00000);
  732. CreateObject(711, -326.22067, 2171.45337, 55.41240, 0.00000, 0.00000, 0.00000);
  733. CreateObject(711, -313.74631, 2198.65601, 57.65634, 0.00000, 0.00000, 0.00000);
  734. CreateObject(711, -308.92615, 2236.56592, 57.07997, 0.00000, 0.00000, 0.00000);
  735. CreateObject(711, -326.18274, 2247.94507, 53.44827, 0.00000, 0.00000, 0.00000);
  736. CreateObject(711, -330.25751, 2259.41772, 57.07356, 0.00000, 0.00000, 0.00000);
  737. CreateObject(711, -342.89380, 2248.41821, 48.24707, 0.00000, 0.00000, 0.00000);
  738. CreateObject(711, -354.09149, 2268.58545, 49.77263, 0.00000, 0.00000, 0.00000);
  739. CreateObject(711, -460.09225, 2207.61133, 49.84482, 0.00000, 0.00000, 0.00000);
  740. CreateObject(711, -465.41739, 2224.96436, 49.63446, 0.00000, 0.00000, 0.00000);
  741. CreateObject(711, -482.94284, 2249.29736, 53.74930, 0.00000, 0.00000, 0.00000);
  742. CreateObject(711, -465.78635, 2257.08765, 52.99461, 0.00000, 0.00000, 0.00000);
  743. CreateObject(711, -475.49872, 2279.28271, 61.07130, 0.00000, 0.00000, 0.00000);
  744. CreateObject(711, -445.22940, 2284.09644, 54.66698, 0.00000, 0.00000, 0.00000);
  745. CreateObject(711, -439.67853, 2263.37500, 47.40698, 0.00000, 0.00000, 0.00000);
  746. CreateObject(711, -421.61023, 2276.93286, 47.14102, 0.00000, 0.00000, 0.00000);
  747. CreateObject(711, -420.73160, 2258.22876, 47.40698, 0.00000, 0.00000, 0.00000);
  748. CreateObject(711, -412.71454, 2300.19824, 45.66779, 0.00000, 0.00000, 0.00000);
  749. CreateObject(711, -431.98340, 2305.18823, 55.42387, 0.00000, 0.00000, 0.00000);
  750. CreateObject(711, -453.52768, 2306.54028, 63.60773, 0.00000, 0.00000, 0.00000);
  751. CreateObject(711, -379.70221, 2285.37402, 45.56824, 0.00000, 0.00000, 0.00000);
  752. CreateObject(987, 263.42307, 1798.74011, 16.65140, -3.00000, 0.00000, 181.00000);
  753. CreateObject(987, 251.48900, 1798.52478, 16.65140, -3.00000, 0.00000, 181.00000);
  754. CreateObject(987, 239.58586, 1798.22852, 16.65140, -3.00000, 0.00000, 181.00000);
  755. CreateObject(987, 227.65533, 1797.96179, 16.65140, -3.00000, 0.00000, 181.00000);
  756. CreateObject(987, 215.75229, 1797.73718, 16.65140, -3.00000, 0.00000, 181.00000);
  757. CreateObject(987, 203.78291, 1797.57446, 16.65140, -3.00000, 0.00000, 181.00000);
  758. CreateObject(987, 191.87140, 1797.35168, 16.65140, -3.00000, 0.00000, 181.00000);
  759. CreateObject(987, 191.87140, 1797.35168, 16.65140, -3.00000, 0.00000, 181.00000);
  760. CreateObject(987, 179.91064, 1797.17883, 16.65140, -3.00000, 0.00000, 181.00000);
  761. CreateObject(987, 168.00597, 1796.96887, 16.65140, -3.00000, 0.00000, 181.00000);
  762. CreateObject(987, 156.09529, 1796.74170, 16.65140, -3.00000, 0.00000, 181.00000);
  763. CreateObject(987, 144.32176, 1796.35779, 16.65140, -3.00000, 0.00000, 181.00000);
  764. CreateObject(987, 132.41631, 1796.16650, 16.65140, -3.00000, 0.00000, 181.00000);
  765. CreateObject(987, 120.43871, 1795.98108, 16.65140, -3.00000, 0.00000, 181.00000);
  766. CreateObject(987, 108.54172, 1795.73767, 16.65140, -3.00000, 0.00000, 181.00000);
  767. CreateObject(987, 102.52810, 1795.62012, 16.65140, -3.00000, 0.00000, 181.00000);
  768. CreateObject(987, 91.10159, 1806.90430, 16.65140, -3.00000, 0.00000, 269.00000);
  769. CreateObject(729, 127.13146, 1938.84009, 24.14409, 0.00000, 0.00000, 0.00000);
  770. CreateObject(18795, -168.57091, 2574.06836, 48.06170, 0.00000, -20.00000, 114.00000);
  771. CreateObject(18795, -154.07062, 2580.17944, 47.57700, 0.00000, -18.00000, 114.00000);
  772. CreateObject(18795, -130.96855, 2512.58521, 20.65630, -10.00000, -20.00000, 140.00000);
  773. CreateObject(18795, -153.20517, 2539.85913, 34.14790, -6.00000, -20.00000, 128.00000);
  774. CreateObject(18795, -138.79968, 2545.38013, 35.10627, -4.00000, -18.00000, 128.00000);
  775. CreateObject(3279, 201.26428, 1880.95703, 16.72367, 0.00000, 0.00000, 0.00000);
  776. CreateObject(3279, 209.40707, 1932.50171, 22.31780, 0.00000, 0.00000, 0.00000);
  777. CreateObject(711, -398.12433, 2184.72729, 46.85466, 0.00000, 0.00000, 0.00000);
  778. CreateObject(711, -387.96954, 2173.32861, 47.41525, 0.00000, 0.00000, 0.00000);
  779. CreateObject(711, -405.06146, 2162.79468, 48.58695, 0.00000, 0.00000, 0.00000);
  780. CreateObject(711, -442.16092, 2175.15942, 49.77832, 0.00000, 0.00000, 0.00000);
  781. CreateObject(711, -435.14716, 2192.87305, 47.38590, 0.00000, 0.00000, 0.00000);
  782. CreateObject(711, -416.40680, 2175.41870, 46.92938, 0.00000, 0.00000, 0.00000);
  783. CreateObject(711, -382.15179, 2152.16699, 47.59148, 0.00000, 0.00000, 0.00000);
  784. CreateObject(711, -436.84570, 2141.62451, 51.23775, 0.00000, 0.00000, 0.00000);
  785. CreateObject(711, -421.32928, 2133.93018, 50.56220, 0.00000, 0.00000, 0.00000);
  786. CreateObject(711, -433.97781, 2113.32642, 53.09803, 0.00000, 0.00000, 0.00000);
  787. CreateObject(711, -348.51331, 2190.18677, 48.18690, 0.00000, 0.00000, 0.00000);
  788. CreateObject(711, -350.46899, 2170.47314, 48.89574, 0.00000, 0.00000, 0.00000);
  789. CreateObject(711, -345.34949, 2150.73779, 52.39939, 0.00000, 0.00000, 0.00000);
  790. CreateObject(711, -351.60928, 2131.34106, 58.01917, 0.00000, 0.00000, 0.00000);
  791. CreateObject(711, -340.10278, 2101.04272, 53.82222, 0.00000, 0.00000, 0.00000);
  792. CreateObject(711, -325.58292, 2132.72241, 52.35795, 0.00000, 0.00000, 0.00000);
  793. CreateObject(711, -316.12735, 2149.59814, 56.37136, 0.00000, 0.00000, 0.00000);
  794. CreateObject(711, -326.22067, 2171.45337, 55.41240, 0.00000, 0.00000, 0.00000);
  795. CreateObject(711, -313.74631, 2198.65601, 57.65634, 0.00000, 0.00000, 0.00000);
  796. CreateObject(711, -308.92615, 2236.56592, 57.07997, 0.00000, 0.00000, 0.00000);
  797. CreateObject(711, -326.18274, 2247.94507, 53.44827, 0.00000, 0.00000, 0.00000);
  798. CreateObject(711, -330.25751, 2259.41772, 57.07356, 0.00000, 0.00000, 0.00000);
  799. CreateObject(711, -342.89380, 2248.41821, 48.24707, 0.00000, 0.00000, 0.00000);
  800. CreateObject(711, -354.09149, 2268.58545, 49.77263, 0.00000, 0.00000, 0.00000);
  801. CreateObject(711, -460.09225, 2207.61133, 49.84482, 0.00000, 0.00000, 0.00000);
  802. CreateObject(711, -465.41739, 2224.96436, 49.63446, 0.00000, 0.00000, 0.00000);
  803. CreateObject(711, -482.94284, 2249.29736, 53.74930, 0.00000, 0.00000, 0.00000);
  804. CreateObject(711, -465.78635, 2257.08765, 52.99461, 0.00000, 0.00000, 0.00000);
  805. CreateObject(711, -475.49872, 2279.28271, 61.07130, 0.00000, 0.00000, 0.00000);
  806. CreateObject(711, -445.22940, 2284.09644, 54.66698, 0.00000, 0.00000, 0.00000);
  807. CreateObject(711, -439.67853, 2263.37500, 47.40698, 0.00000, 0.00000, 0.00000);
  808. CreateObject(711, -421.61023, 2276.93286, 47.14102, 0.00000, 0.00000, 0.00000);
  809. CreateObject(711, -420.73160, 2258.22876, 47.40698, 0.00000, 0.00000, 0.00000);
  810. CreateObject(711, -412.71454, 2300.19824, 45.66779, 0.00000, 0.00000, 0.00000);
  811. CreateObject(711, -431.98340, 2305.18823, 55.42387, 0.00000, 0.00000, 0.00000);
  812. CreateObject(711, -453.52768, 2306.54028, 63.60773, 0.00000, 0.00000, 0.00000);
  813. CreateObject(711, -379.70221, 2285.37402, 45.56824, 0.00000, 0.00000, 0.00000);
  814. CreateObject(18802, -156.31889, 2594.03979, 52.98770, 0.00000, -14.00000, 94.00000);
  815. CreateObject(18802, -169.57339, 2584.24487, 52.51865, -2.00000, -12.00000, 98.00000);
  816. CreateObject(3945, 136.00038, 1941.51208, 19.99679, 0.00000, 0.00000, 0.00000);
  817. CreateObject(984, 10544.89258, 3338.98828, 759.76160, 0.00000, 0.00000, 0.00000);
  818. CreateObject(984, 10544.89258, 3338.98828, 759.76160, 0.00000, 0.00000, 0.00000);
  819. CreateObject(984, -65.59456, 2575.78467, 19.47606, 0.00000, 0.00000, 0.00000);
  820. CreateObject(987, -250.63951, 2643.25098, 61.98976, 0.00000, 0.00000, 0.00000);
  821. CreateObject(987, -238.93336, 2643.13745, 61.98976, 0.00000, 0.00000, 0.00000);
  822. CreateObject(987, -226.94501, 2643.17188, 61.98976, 0.00000, 0.00000, 0.00000);
  823. CreateObject(987, -214.93872, 2643.08154, 61.98976, 0.00000, 0.00000, 0.00000);
  824. CreateObject(987, -204.03539, 2643.06812, 61.98976, 0.00000, 0.00000, 0.00000);
  825. CreateObject(987, -140.34274, 2643.36450, 61.98980, 0.00000, 0.00000, 91.00000);
  826. CreateObject(987, -180.91124, 2643.05518, 61.98976, 0.00000, 0.00000, 0.00000);
  827. CreateObject(987, -140.73773, 2679.33081, 61.98980, 0.00000, 0.00000, 91.00000);
  828. CreateObject(987, -140.47067, 2655.40405, 61.98980, 0.00000, 0.00000, 91.00000);
  829. CreateObject(987, -140.53848, 2667.33154, 61.98980, 0.00000, 0.00000, 91.00000);
  830. CreateObject(987, -140.89310, 2691.29980, 61.98980, 0.00000, 0.00000, 91.00000);
  831. CreateObject(987, -168.84967, 2643.14697, 61.98976, 0.00000, 0.00000, 0.00000);
  832. CreateObject(987, -156.99159, 2643.05615, 61.98976, 0.00000, 0.00000, 0.00000);
  833. CreateObject(987, -152.10576, 2643.05225, 61.98976, 0.00000, 0.00000, 0.00000);
  834. CreateObject(987, -141.12183, 2703.28101, 61.98980, 0.00000, 0.00000, 91.00000);
  835. CreateObject(987, -141.32791, 2715.28345, 61.98980, 0.00000, 0.00000, 91.00000);
  836. CreateObject(987, -141.46573, 2727.30664, 61.98980, 0.00000, 0.00000, 91.00000);
  837. CreateObject(987, -141.72696, 2739.28491, 61.98980, 0.00000, 0.00000, 91.00000);
  838. CreateObject(987, -148.24336, 2776.91064, 61.98980, 0.00000, 0.00000, 185.00000);
  839. CreateObject(987, -160.18787, 2775.85645, 61.98980, 0.00000, 0.00000, 185.00000);
  840. CreateObject(987, -166.14874, 2775.35693, 61.98980, 0.00000, 0.00000, 185.00000);
  841. CreateObject(987, -178.15639, 2774.39966, 61.98980, 0.00000, 0.00000, 91.00000);
  842. CreateObject(987, -178.34099, 2786.33862, 61.98980, 0.00000, 0.00000, 91.00000);
  843. CreateObject(987, -275.78818, 2642.67700, 61.98976, 0.00000, 0.00000, 0.00000);
  844. CreateObject(987, -287.79291, 2642.71802, 61.98976, 0.00000, 0.00000, 0.00000);
  845. CreateObject(987, -299.74826, 2642.65918, 61.98976, 0.00000, 0.00000, 0.00000);
  846. CreateObject(987, -311.62387, 2643.50366, 61.98980, 0.00000, 0.00000, -4.00000);
  847. CreateObject(987, -323.17496, 2647.04932, 61.98980, 0.00000, 0.00000, -18.00000);
  848. CreateObject(987, -334.59686, 2650.72827, 61.98980, 0.00000, 0.00000, -18.00000);
  849. CreateObject(987, -344.64175, 2657.24951, 61.98980, 0.00000, 0.00000, -33.00000);
  850. CreateObject(987, -352.83661, 2666.00098, 61.98980, 0.00000, 0.00000, -47.00000);
  851. CreateObject(987, -358.45288, 2676.54639, 61.98980, 0.00000, 0.00000, -62.00000);
  852. CreateObject(987, -363.56683, 2684.04761, 61.98980, 0.00000, 0.00000, -55.00000);
  853. CreateObject(987, -384.79126, 2712.57617, 61.98980, 0.00000, 0.00000, -47.00000);
  854. CreateObject(987, -376.59097, 2703.82642, 61.98980, 0.00000, 0.00000, -55.00000);
  855. CreateObject(987, -393.72867, 2720.36670, 61.98980, 0.00000, 0.00000, -40.00000);
  856. CreateObject(987, -402.47003, 2723.97949, 61.98980, 0.00000, 0.00000, -25.00000);
  857. CreateObject(987, -413.83527, 2727.55005, 61.98980, 0.00000, 0.00000, -18.00000);
  858. CreateObject(987, -412.09470, 2739.29370, 61.98980, 0.00000, 0.00000, -98.00000);
  859. CreateObject(968, -189.83876, 2643.06226, 62.27154, 0.00000, 0.00000, 0.00000);
  860. CreateObject(966, 739.54279, -7773.95703, 480.22153, 0.00000, 0.00000, 0.00000);
  861. CreateObject(966, -189.77161, 2643.07153, 62.17160, 0.00000, 0.00000, 185.00000);
  862. CreateObject(967, -191.16660, 2643.05518, 62.24190, 0.00000, 0.00000, -91.00000);
  863. CreateObject(967, -263.00681, 2643.70850, 61.52300, 0.00000, 0.00000, -91.00000);
  864. CreateObject(966, -261.45364, 2643.55371, 61.52940, 0.00000, 0.00000, 178.00000);
  865. CreateObject(987, -252.48480, 2643.39063, 61.98976, 0.00000, 0.00000, 0.00000);
  866. CreateObject(968, -261.51794, 2643.52979, 61.52878, 0.00000, 0.00000, 0.00000);
  867. CreateObject(967, -369.23660, 2692.75830, 62.61600, 0.00000, 0.00000, -156.00000);
  868. CreateObject(966, -368.61771, 2691.64258, 62.69750, 0.00000, 0.00000, -244.00000);
  869. CreateObject(968, -368.60596, 2691.66235, 62.78749, 0.00000, 0.00000, 0.00000);
  870. CreateObject(6875, 19.14001, 2420.37280, 7.36026, 0.00000, 0.00000, 0.00000);
  871. CreateObject(3399, -7.47319, 2447.41016, 17.66161, 0.00000, 0.00000, 0.00000);
  872. CreateObject(3399, 4.04324, 2447.44458, 22.04506, 0.00000, 0.00000, 0.00000);
  873. CreateObject(3399, 15.47266, 2447.42993, 26.52610, 0.00000, 0.00000, 0.00000);
  874. CreateObject(3399, 26.97917, 2447.43677, 31.09675, 0.00000, 0.00000, 0.00000);
  875. CreateObject(3399, 32.91570, 2441.55225, 35.72180, 0.00000, 0.00000, -91.00000);
  876. CreateObject(3399, 32.77562, 2436.77686, 36.90005, 0.00000, 0.00000, -91.00000);
  877. CreateObject(3945, 136.00038, 1941.51208, 19.99679, 0.00000, 0.00000, 0.00000);
  878. CreateObject(984, 10544.89258, 3338.98828, 759.76160, 0.00000, 0.00000, 0.00000);
  879. CreateObject(984, 10544.89258, 3338.98828, 759.76160, 0.00000, 0.00000, 0.00000);
  880. CreateObject(984, -65.59456, 2575.78467, 19.47606, 0.00000, 0.00000, 0.00000);
  881. CreateObject(987, -250.63951, 2643.25098, 61.98976, 0.00000, 0.00000, 0.00000);
  882. CreateObject(987, -238.93336, 2643.13745, 61.98976, 0.00000, 0.00000, 0.00000);
  883. CreateObject(987, -226.94501, 2643.17188, 61.98976, 0.00000, 0.00000, 0.00000);
  884. CreateObject(987, -214.93872, 2643.08154, 61.98976, 0.00000, 0.00000, 0.00000);
  885. CreateObject(987, -204.03539, 2643.06812, 61.98976, 0.00000, 0.00000, 0.00000);
  886. CreateObject(987, -140.34274, 2643.36450, 61.98980, 0.00000, 0.00000, 91.00000);
  887. CreateObject(987, -180.23586, 2643.00684, 61.98976, 0.00000, 0.00000, 0.00000);
  888. CreateObject(987, -140.73773, 2679.33081, 61.98980, 0.00000, 0.00000, 91.00000);
  889. CreateObject(987, -140.47067, 2655.40405, 61.98980, 0.00000, 0.00000, 91.00000);
  890. CreateObject(987, -140.53848, 2667.33154, 61.98980, 0.00000, 0.00000, 91.00000);
  891. CreateObject(987, -140.89310, 2691.29980, 61.98980, 0.00000, 0.00000, 91.00000);
  892. CreateObject(987, -156.99159, 2643.05615, 61.98976, 0.00000, 0.00000, 0.00000);
  893. CreateObject(987, -152.10576, 2643.05225, 61.98976, 0.00000, 0.00000, 0.00000);
  894. CreateObject(987, -141.12183, 2703.28101, 61.98980, 0.00000, 0.00000, 91.00000);
  895. CreateObject(987, -141.32791, 2715.28345, 61.98980, 0.00000, 0.00000, 91.00000);
  896. CreateObject(987, -141.46573, 2727.30664, 61.98980, 0.00000, 0.00000, 91.00000);
  897. CreateObject(987, -141.72696, 2739.28491, 61.98980, 0.00000, 0.00000, 91.00000);
  898. CreateObject(987, -148.24336, 2776.91064, 61.98980, 0.00000, 0.00000, 185.00000);
  899. CreateObject(987, -160.18787, 2775.85645, 61.98980, 0.00000, 0.00000, 185.00000);
  900. CreateObject(987, -166.14874, 2775.35693, 61.98980, 0.00000, 0.00000, 185.00000);
  901. CreateObject(987, -178.15639, 2774.39966, 61.98980, 0.00000, 0.00000, 91.00000);
  902. CreateObject(987, -178.34099, 2786.33862, 61.98980, 0.00000, 0.00000, 91.00000);
  903. CreateObject(987, -275.78818, 2642.67700, 61.98976, 0.00000, 0.00000, 0.00000);
  904. CreateObject(987, -287.79291, 2642.71802, 61.98976, 0.00000, 0.00000, 0.00000);
  905. CreateObject(987, -299.74826, 2642.65918, 61.98976, 0.00000, 0.00000, 0.00000);
  906. CreateObject(987, -311.62387, 2643.50366, 61.98980, 0.00000, 0.00000, -4.00000);
  907. CreateObject(987, -323.17496, 2647.04932, 61.98980, 0.00000, 0.00000, -18.00000);
  908. CreateObject(987, -334.59686, 2650.72827, 61.98980, 0.00000, 0.00000, -18.00000);
  909. CreateObject(987, -344.64175, 2657.24951, 61.98980, 0.00000, 0.00000, -33.00000);
  910. CreateObject(987, -352.83661, 2666.00098, 61.98980, 0.00000, 0.00000, -47.00000);
  911. CreateObject(987, -358.45288, 2676.54639, 61.98980, 0.00000, 0.00000, -62.00000);
  912. CreateObject(987, -363.56683, 2684.04761, 61.98980, 0.00000, 0.00000, -55.00000);
  913. CreateObject(987, -384.79126, 2712.57617, 61.98980, 0.00000, 0.00000, -47.00000);
  914. CreateObject(987, -376.59097, 2703.82642, 61.98980, 0.00000, 0.00000, -55.00000);
  915. CreateObject(987, -393.72867, 2720.36670, 61.98980, 0.00000, 0.00000, -40.00000);
  916. CreateObject(987, -402.47003, 2723.97949, 61.98980, 0.00000, 0.00000, -25.00000);
  917. CreateObject(987, -413.83527, 2727.55005, 61.98980, 0.00000, 0.00000, -18.00000);
  918. CreateObject(987, -412.09470, 2739.29370, 61.98980, 0.00000, 0.00000, -98.00000);
  919. CreateObject(968, -189.83876, 2643.06226, 62.27154, 0.00000, 0.00000, 0.00000);
  920. CreateObject(966, 739.54279, -7773.95703, 480.22153, 0.00000, 0.00000, 0.00000);
  921. CreateObject(966, -189.77161, 2643.07153, 62.17160, 0.00000, 0.00000, 185.00000);
  922. CreateObject(967, -191.16660, 2643.05518, 62.24190, 0.00000, 0.00000, -91.00000);
  923. CreateObject(967, -263.00681, 2643.70850, 61.52300, 0.00000, 0.00000, -91.00000);
  924. CreateObject(966, -261.45364, 2643.55371, 61.52940, 0.00000, 0.00000, 178.00000);
  925. CreateObject(987, -252.48480, 2643.39063, 61.98976, 0.00000, 0.00000, 0.00000);
  926. CreateObject(968, -261.51794, 2643.52979, 61.52878, 0.00000, 0.00000, 0.00000);
  927. CreateObject(967, -369.23660, 2692.75830, 62.61600, 0.00000, 0.00000, -156.00000);
  928. CreateObject(966, -368.61771, 2691.64258, 62.69750, 0.00000, 0.00000, -244.00000);
  929. CreateObject(968, -368.60596, 2691.66235, 62.78749, 0.00000, 0.00000, 0.00000);
  930. CreateObject(987, 188.85153, 1941.16992, 16.65139, 0.00000, 0.00000, 180.00000);
  931. CreateObject(987, 176.86830, 1941.09399, 16.65139, 0.00000, 0.00000, 180.00000);
  932. CreateObject(987, 164.79343, 1941.11426, 16.65139, 0.00000, 0.00000, 180.00000);
  933. CreateObject(987, 152.82553, 1941.15527, 16.65140, 0.00000, 0.00000, 180.00000);
  934. CreateObject(987, 128.61327, 1941.33215, 16.65140, 0.00000, 0.00000, 180.00000);
  935. CreateObject(987, 116.78584, 1941.42639, 16.65140, 0.00000, 0.00000, 180.00000);
  936. CreateObject(987, 104.75521, 1941.48743, 16.65140, 0.00000, 0.00000, 180.00000);
  937. CreateObject(987, 92.83935, 1941.60474, 16.65140, -3.00000, 0.00000, 269.00000);
  938. CreateObject(987, 92.72471, 1929.67798, 16.65140, -3.00000, 0.00000, 269.00000);
  939. CreateObject(987, 92.68612, 1918.39258, 16.65140, -3.00000, 0.00000, 269.00000);
  940. CreateObject(987, 92.62528, 1906.43494, 16.65140, -3.00000, 0.00000, 269.00000);
  941. CreateObject(987, 92.13067, 1870.99170, 16.65140, -3.00000, 0.00000, 269.00000);
  942. CreateObject(987, 92.29089, 1882.87170, 16.65140, -3.00000, 0.00000, 269.00000);
  943. CreateObject(987, 92.29089, 1882.87170, 16.65140, -3.00000, 0.00000, 269.00000);
  944. CreateObject(987, 92.45543, 1894.64954, 16.65140, -3.00000, 0.00000, 269.00000);
  945. CreateObject(987, 91.96145, 1859.06995, 16.65140, -3.00000, 0.00000, 269.00000);
  946. CreateObject(987, 91.73012, 1847.18652, 16.65140, -3.00000, 0.00000, 269.00000);
  947. CreateObject(987, 91.50421, 1835.34680, 16.65140, -3.00000, 0.00000, 269.00000);
  948. CreateObject(987, 91.50421, 1835.34680, 16.65140, -3.00000, 0.00000, 269.00000);
  949. CreateObject(987, 91.29527, 1823.46411, 16.65140, -3.00000, 0.00000, 269.00000);
  950. CreateObject(987, 91.14830, 1811.62036, 16.65140, -3.00000, 0.00000, 269.00000);
  951. CreateObject(987, 275.26141, 1798.85632, 16.65140, -3.00000, 0.00000, 181.00000);
  952. CreateObject(16121, 167.11400, 1950.11047, 8.14010, 0.00000, -16.00000, 51.00000);
  953. CreateObject(16121, 168.08908, 1959.26880, 7.10076, 0.00000, -4.00000, 270.00000);
  954. CreateObject(3749, 9709.82129, 3563.58521, 165.93393, 0.00000, 0.00000, 0.00000);
  955. CreateObject(3749, 134.99237, 1939.70337, 23.96680, 0.00000, 0.00000, 0.00000);
  956. CreateObject(729, 141.99374, 1939.05896, 24.14409, 0.00000, 0.00000, 0.00000);
  957. CreateObject(18795, -168.57091, 2574.06836, 48.06170, 0.00000, -20.00000, 114.00000);
  958. CreateObject(18795, -154.07062, 2580.17944, 47.12775, 0.00000, -18.00000, 114.00000);
  959. CreateObject(18795, -130.96855, 2512.58521, 20.65630, -10.00000, -20.00000, 140.00000);
  960. CreateObject(18795, -153.20517, 2539.85913, 34.14790, -6.00000, -20.00000, 128.00000);
  961. CreateObject(18795, -138.79968, 2545.38013, 35.10627, -4.00000, -18.00000, 128.00000);
  962. CreateObject(18795, -115.09942, 2516.77783, 21.01270, -10.00000, -22.00000, 142.00000);
  963. CreateObject(3279, 201.26428, 1880.95703, 16.72367, 0.00000, 0.00000, 0.00000);
  964. CreateObject(3279, 209.40707, 1932.50171, 22.31780, 0.00000, 0.00000, 0.00000);
  965. CreateObject(711, -398.12433, 2184.72729, 46.85466, 0.00000, 0.00000, 0.00000);
  966. CreateObject(711, -387.96954, 2173.32861, 47.41525, 0.00000, 0.00000, 0.00000);
  967. CreateObject(711, -405.06146, 2162.79468, 48.58695, 0.00000, 0.00000, 0.00000);
  968. CreateObject(711, -442.16092, 2175.15942, 49.77832, 0.00000, 0.00000, 0.00000);
  969. CreateObject(711, -435.14716, 2192.87305, 47.38590, 0.00000, 0.00000, 0.00000);
  970. CreateObject(711, -416.40680, 2175.41870, 46.92938, 0.00000, 0.00000, 0.00000);
  971. CreateObject(711, -382.15179, 2152.16699, 47.59148, 0.00000, 0.00000, 0.00000);
  972. CreateObject(711, -436.84570, 2141.62451, 51.23775, 0.00000, 0.00000, 0.00000);
  973. CreateObject(711, -421.32928, 2133.93018, 50.56220, 0.00000, 0.00000, 0.00000);
  974. CreateObject(711, -433.97781, 2113.32642, 53.09803, 0.00000, 0.00000, 0.00000);
  975. CreateObject(711, -348.51331, 2190.18677, 48.18690, 0.00000, 0.00000, 0.00000);
  976. CreateObject(711, -350.46899, 2170.47314, 48.89574, 0.00000, 0.00000, 0.00000);
  977. CreateObject(711, -345.34949, 2150.73779, 52.39939, 0.00000, 0.00000, 0.00000);
  978. CreateObject(711, -351.60928, 2131.34106, 58.01917, 0.00000, 0.00000, 0.00000);
  979. CreateObject(711, -340.10278, 2101.04272, 53.82222, 0.00000, 0.00000, 0.00000);
  980. CreateObject(711, -325.58292, 2132.72241, 52.35795, 0.00000, 0.00000, 0.00000);
  981. CreateObject(711, -316.12735, 2149.59814, 56.37136, 0.00000, 0.00000, 0.00000);
  982. CreateObject(711, -326.22067, 2171.45337, 55.41240, 0.00000, 0.00000, 0.00000);
  983. CreateObject(711, -313.74631, 2198.65601, 57.65634, 0.00000, 0.00000, 0.00000);
  984. CreateObject(711, -308.92615, 2236.56592, 57.07997, 0.00000, 0.00000, 0.00000);
  985. CreateObject(711, -326.18274, 2247.94507, 53.44827, 0.00000, 0.00000, 0.00000);
  986. CreateObject(711, -330.25751, 2259.41772, 57.07356, 0.00000, 0.00000, 0.00000);
  987. CreateObject(711, -342.89380, 2248.41821, 48.24707, 0.00000, 0.00000, 0.00000);
  988. CreateObject(711, -354.09149, 2268.58545, 49.77263, 0.00000, 0.00000, 0.00000);
  989. CreateObject(711, -460.09225, 2207.61133, 49.84482, 0.00000, 0.00000, 0.00000);
  990. CreateObject(711, -465.41739, 2224.96436, 49.63446, 0.00000, 0.00000, 0.00000);
  991. CreateObject(711, -482.94284, 2249.29736, 53.74930, 0.00000, 0.00000, 0.00000);
  992. CreateObject(711, -465.78635, 2257.08765, 52.99461, 0.00000, 0.00000, 0.00000);
  993. CreateObject(711, -475.49872, 2279.28271, 61.07130, 0.00000, 0.00000, 0.00000);
  994. CreateObject(711, -445.22940, 2284.09644, 54.66698, 0.00000, 0.00000, 0.00000);
  995. CreateObject(711, -439.67853, 2263.37500, 47.40698, 0.00000, 0.00000, 0.00000);
  996. CreateObject(711, -421.61023, 2276.93286, 47.14102, 0.00000, 0.00000, 0.00000);
  997. CreateObject(711, -420.73160, 2258.22876, 47.40698, 0.00000, 0.00000, 0.00000);
  998. CreateObject(711, -412.71454, 2300.19824, 45.66779, 0.00000, 0.00000, 0.00000);
  999. CreateObject(711, -431.98340, 2305.18823, 55.42387, 0.00000, 0.00000, 0.00000);
  1000. CreateObject(711, -453.52768, 2306.54028, 63.60773, 0.00000, 0.00000, 0.00000);
  1001. CreateObject(711, -379.70221, 2285.37402, 45.56824, 0.00000, 0.00000, 0.00000);
  1002. CreateObject(987, 263.42307, 1798.74011, 16.65140, -3.00000, 0.00000, 181.00000);
  1003. CreateObject(987, 251.48900, 1798.52478, 16.65140, -3.00000, 0.00000, 181.00000);
  1004. CreateObject(987, 239.58586, 1798.22852, 16.65140, -3.00000, 0.00000, 181.00000);
  1005. CreateObject(987, 227.65533, 1797.96179, 16.65140, -3.00000, 0.00000, 181.00000);
  1006. CreateObject(987, 215.75229, 1797.73718, 16.65140, -3.00000, 0.00000, 181.00000);
  1007. CreateObject(987, 203.78291, 1797.57446, 16.65140, -3.00000, 0.00000, 181.00000);
  1008. CreateObject(987, 191.87140, 1797.35168, 16.65140, -3.00000, 0.00000, 181.00000);
  1009. CreateObject(987, 191.87140, 1797.35168, 16.65140, -3.00000, 0.00000, 181.00000);
  1010. CreateObject(987, 179.91064, 1797.17883, 16.65140, -3.00000, 0.00000, 181.00000);
  1011. CreateObject(987, 168.00597, 1796.96887, 16.65140, -3.00000, 0.00000, 181.00000);
  1012. CreateObject(987, 156.09529, 1796.74170, 16.65140, -3.00000, 0.00000, 181.00000);
  1013. CreateObject(987, 144.32176, 1796.35779, 16.65140, -3.00000, 0.00000, 181.00000);
  1014. CreateObject(987, 132.41631, 1796.16650, 16.65140, -3.00000, 0.00000, 181.00000);
  1015. CreateObject(987, 120.43871, 1795.98108, 16.65140, -3.00000, 0.00000, 181.00000);
  1016. CreateObject(987, 108.54172, 1795.73767, 16.65140, -3.00000, 0.00000, 181.00000);
  1017. CreateObject(987, 102.52810, 1795.62012, 16.65140, -3.00000, 0.00000, 181.00000);
  1018. CreateObject(987, 91.10159, 1806.90430, 16.65140, -3.00000, 0.00000, 269.00000);
  1019. CreateObject(729, 127.13146, 1938.84009, 24.14409, 0.00000, 0.00000, 0.00000);
  1020. CreateObject(18802, -156.31889, 2594.03979, 52.43079, 0.00000, -14.00000, 94.00000);
  1021. CreateObject(18802, -169.57339, 2584.24487, 52.51865, -2.00000, -12.00000, 98.00000);
  1022. CreateObject(18795, -168.57091, 2574.06836, 48.06170, 0.00000, -20.00000, 114.00000);
  1023. CreateObject(18795, -154.07062, 2580.17944, 47.09181, 0.00000, -18.00000, 114.00000);
  1024. CreateObject(18795, -130.96855, 2512.58521, 20.65630, -10.00000, -20.00000, 140.00000);
  1025. CreateObject(18795, -153.20517, 2539.85913, 34.14790, -6.00000, -20.00000, 128.00000);
  1026. CreateObject(18795, -138.79968, 2545.38013, 35.10627, -4.00000, -18.00000, 128.00000);
  1027. CreateObject(18795, -115.09942, 2516.77783, 21.01270, -10.00000, -22.00000, 142.00000);
  1028. CreateObject(3279, 201.26428, 1880.95703, 16.72367, 0.00000, 0.00000, 0.00000);
  1029. CreateObject(3279, 209.40707, 1932.50171, 22.31780, 0.00000, 0.00000, 0.00000);
  1030. CreateObject(711, -398.12433, 2184.72729, 46.85466, 0.00000, 0.00000, 0.00000);
  1031. CreateObject(711, -387.96954, 2173.32861, 47.41525, 0.00000, 0.00000, 0.00000);
  1032. CreateObject(711, -405.06146, 2162.79468, 48.58695, 0.00000, 0.00000, 0.00000);
  1033. CreateObject(711, -442.16092, 2175.15942, 49.77832, 0.00000, 0.00000, 0.00000);
  1034. CreateObject(711, -435.14716, 2192.87305, 47.38590, 0.00000, 0.00000, 0.00000);
  1035. CreateObject(711, -416.40680, 2175.41870, 46.92938, 0.00000, 0.00000, 0.00000);
  1036. CreateObject(711, -382.15179, 2152.16699, 47.59148, 0.00000, 0.00000, 0.00000);
  1037. CreateObject(711, -436.84570, 2141.62451, 51.23775, 0.00000, 0.00000, 0.00000);
  1038. CreateObject(711, -421.32928, 2133.93018, 50.56220, 0.00000, 0.00000, 0.00000);
  1039. CreateObject(711, -433.97781, 2113.32642, 53.09803, 0.00000, 0.00000, 0.00000);
  1040. CreateObject(711, -348.51331, 2190.18677, 48.18690, 0.00000, 0.00000, 0.00000);
  1041. CreateObject(711, -350.46899, 2170.47314, 48.89574, 0.00000, 0.00000, 0.00000);
  1042. CreateObject(711, -345.34949, 2150.73779, 52.39939, 0.00000, 0.00000, 0.00000);
  1043. CreateObject(711, -351.60928, 2131.34106, 58.01917, 0.00000, 0.00000, 0.00000);
  1044. CreateObject(711, -340.10278, 2101.04272, 53.82222, 0.00000, 0.00000, 0.00000);
  1045. CreateObject(711, -325.58292, 2132.72241, 52.35795, 0.00000, 0.00000, 0.00000);
  1046. CreateObject(711, -316.12735, 2149.59814, 56.37136, 0.00000, 0.00000, 0.00000);
  1047. CreateObject(711, -326.22067, 2171.45337, 55.41240, 0.00000, 0.00000, 0.00000);
  1048. CreateObject(711, -313.74631, 2198.65601, 57.65634, 0.00000, 0.00000, 0.00000);
  1049. CreateObject(711, -308.92615, 2236.56592, 57.07997, 0.00000, 0.00000, 0.00000);
  1050. CreateObject(711, -326.18274, 2247.94507, 53.44827, 0.00000, 0.00000, 0.00000);
  1051. CreateObject(711, -330.25751, 2259.41772, 57.07356, 0.00000, 0.00000, 0.00000);
  1052. CreateObject(711, -342.89380, 2248.41821, 48.24707, 0.00000, 0.00000, 0.00000);
  1053. CreateObject(711, -354.09149, 2268.58545, 49.77263, 0.00000, 0.00000, 0.00000);
  1054. CreateObject(711, -460.09225, 2207.61133, 49.84482, 0.00000, 0.00000, 0.00000);
  1055. CreateObject(711, -465.41739, 2224.96436, 49.63446, 0.00000, 0.00000, 0.00000);
  1056. CreateObject(711, -482.94284, 2249.29736, 53.74930, 0.00000, 0.00000, 0.00000);
  1057. CreateObject(711, -465.78635, 2257.08765, 52.99461, 0.00000, 0.00000, 0.00000);
  1058. CreateObject(711, -475.49872, 2279.28271, 61.07130, 0.00000, 0.00000, 0.00000);
  1059. CreateObject(711, -445.22940, 2284.09644, 54.66698, 0.00000, 0.00000, 0.00000);
  1060. CreateObject(711, -439.67853, 2263.37500, 47.40698, 0.00000, 0.00000, 0.00000);
  1061. CreateObject(711, -421.61023, 2276.93286, 47.14102, 0.00000, 0.00000, 0.00000);
  1062. CreateObject(711, -420.73160, 2258.22876, 47.40698, 0.00000, 0.00000, 0.00000);
  1063. CreateObject(711, -412.71454, 2300.19824, 45.66779, 0.00000, 0.00000, 0.00000);
  1064. CreateObject(711, -431.98340, 2305.18823, 55.42387, 0.00000, 0.00000, 0.00000);
  1065. CreateObject(711, -453.52768, 2306.54028, 63.60773, 0.00000, 0.00000, 0.00000);
  1066. CreateObject(711, -379.70221, 2285.37402, 45.56824, 0.00000, 0.00000, 0.00000);
  1067. CreateObject(3279, 201.26428, 1880.95703, 16.72367, 0.00000, 0.00000, 0.00000);
  1068. CreateObject(3279, 209.40707, 1932.50171, 22.31780, 0.00000, 0.00000, 0.00000);
  1069. CreateObject(711, -398.12433, 2184.72729, 46.85466, 0.00000, 0.00000, 0.00000);
  1070. CreateObject(711, -387.96954, 2173.32861, 47.41525, 0.00000, 0.00000, 0.00000);
  1071. CreateObject(711, -405.06146, 2162.79468, 48.58695, 0.00000, 0.00000, 0.00000);
  1072. CreateObject(711, -442.16092, 2175.15942, 49.77832, 0.00000, 0.00000, 0.00000);
  1073. CreateObject(711, -435.14716, 2192.87305, 47.38590, 0.00000, 0.00000, 0.00000);
  1074. CreateObject(711, -416.40680, 2175.41870, 46.92938, 0.00000, 0.00000, 0.00000);
  1075. CreateObject(711, -382.15179, 2152.16699, 47.59148, 0.00000, 0.00000, 0.00000);
  1076. CreateObject(711, -436.84570, 2141.62451, 51.23775, 0.00000, 0.00000, 0.00000);
  1077. CreateObject(711, -421.32928, 2133.93018, 50.56220, 0.00000, 0.00000, 0.00000);
  1078. CreateObject(711, -433.97781, 2113.32642, 53.09803, 0.00000, 0.00000, 0.00000);
  1079. CreateObject(711, -348.51331, 2190.18677, 48.18690, 0.00000, 0.00000, 0.00000);
  1080. CreateObject(711, -350.46899, 2170.47314, 48.89574, 0.00000, 0.00000, 0.00000);
  1081. CreateObject(711, -345.34949, 2150.73779, 52.39939, 0.00000, 0.00000, 0.00000);
  1082. CreateObject(711, -351.60928, 2131.34106, 58.01917, 0.00000, 0.00000, 0.00000);
  1083. CreateObject(711, -340.10278, 2101.04272, 53.82222, 0.00000, 0.00000, 0.00000);
  1084. CreateObject(711, -325.58292, 2132.72241, 52.35795, 0.00000, 0.00000, 0.00000);
  1085. CreateObject(711, -316.12735, 2149.59814, 56.37136, 0.00000, 0.00000, 0.00000);
  1086. CreateObject(711, -326.22067, 2171.45337, 55.41240, 0.00000, 0.00000, 0.00000);
  1087. CreateObject(711, -313.74631, 2198.65601, 57.65634, 0.00000, 0.00000, 0.00000);
  1088. CreateObject(711, -308.92615, 2236.56592, 57.07997, 0.00000, 0.00000, 0.00000);
  1089. CreateObject(711, -326.18274, 2247.94507, 53.44827, 0.00000, 0.00000, 0.00000);
  1090. CreateObject(711, -330.25751, 2259.41772, 57.07356, 0.00000, 0.00000, 0.00000);
  1091. CreateObject(711, -342.89380, 2248.41821, 48.24707, 0.00000, 0.00000, 0.00000);
  1092. CreateObject(711, -354.09149, 2268.58545, 49.77263, 0.00000, 0.00000, 0.00000);
  1093. CreateObject(711, -460.09225, 2207.61133, 49.84482, 0.00000, 0.00000, 0.00000);
  1094. CreateObject(711, -465.41739, 2224.96436, 49.63446, 0.00000, 0.00000, 0.00000);
  1095. CreateObject(711, -482.94284, 2249.29736, 53.74930, 0.00000, 0.00000, 0.00000);
  1096. CreateObject(711, -465.78635, 2257.08765, 52.99461, 0.00000, 0.00000, 0.00000);
  1097. CreateObject(711, -475.49872, 2279.28271, 61.07130, 0.00000, 0.00000, 0.00000);
  1098. CreateObject(711, -445.22940, 2284.09644, 54.66698, 0.00000, 0.00000, 0.00000);
  1099. CreateObject(711, -439.67853, 2263.37500, 47.40698, 0.00000, 0.00000, 0.00000);
  1100. CreateObject(711, -421.61023, 2276.93286, 47.14102, 0.00000, 0.00000, 0.00000);
  1101. CreateObject(711, -420.73160, 2258.22876, 47.40698, 0.00000, 0.00000, 0.00000);
  1102. CreateObject(711, -412.71454, 2300.19824, 45.66779, 0.00000, 0.00000, 0.00000);
  1103. CreateObject(711, -431.98340, 2305.18823, 55.42387, 0.00000, 0.00000, 0.00000);
  1104. CreateObject(711, -453.52768, 2306.54028, 63.60773, 0.00000, 0.00000, 0.00000);
  1105. CreateObject(711, -379.70221, 2285.37402, 45.56824, 0.00000, 0.00000, 0.00000);
  1106. CreateObject(3279, 119.56800, 2056.84668, 16.24082, 0.00000, 0.00000, 0.00000);
  1107. CreateObject(5481, -21.00319, 2247.56323, 113.28629, 0.00000, 0.00000, 0.00000);
  1108. CreateObject(3253, 9.54090, 1997.94531, 16.58140, 0.00000, 0.00000, 164.00000);
  1109. CreateObject(3250, 0.34737, 2009.13831, 16.62210, 0.00000, 0.00000, 84.00000);
  1110. CreateObject(3284, 22.35772, 2004.42920, 16.62030, 0.00000, 0.00000, 40.00000);
  1111. CreateObject(9244, 15.48975, 2022.35193, 16.62124, 0.00000, 0.00000, 0.00000);
  1112. CreateObject(987, 84.84610, 2476.50269, 15.47491, 0.00000, 0.00000, 0.00000);
  1113. CreateObject(987, 96.81201, 2476.44824, 15.47491, 0.00000, 0.00000, 0.00000);
  1114. CreateObject(987, 108.72053, 2476.39282, 15.47491, 0.00000, 0.00000, 0.00000);
  1115. CreateObject(987, 120.72904, 2476.48145, 15.47491, 0.00000, 0.00000, 0.00000);
  1116. CreateObject(987, 132.74184, 2476.39868, 15.47491, 0.00000, 0.00000, 0.00000);
  1117. CreateObject(987, 144.75012, 2476.39453, 15.47491, 0.00000, 0.00000, 0.00000);
  1118. CreateObject(987, 156.70161, 2476.37329, 15.47491, 0.00000, 0.00000, 0.00000);
  1119. CreateObject(987, 168.66878, 2476.34888, 15.47491, 0.00000, 0.00000, 0.00000);
  1120. CreateObject(987, 180.66359, 2476.36377, 15.47491, 0.00000, 0.00000, 0.00000);
  1121. CreateObject(987, 192.54524, 2476.96582, 15.47491, 0.00000, 0.00000, 0.00000);
  1122. CreateObject(987, 204.65982, 2476.32520, 15.47491, 0.00000, 0.00000, 0.00000);
  1123. CreateObject(987, 216.62975, 2476.25562, 15.47491, 0.00000, 0.00000, 0.00000);
  1124. CreateObject(987, 228.58781, 2476.23413, 15.47491, 0.00000, 0.00000, 0.00000);
  1125. CreateObject(987, 240.55450, 2476.16846, 15.47491, 0.00000, 0.00000, 0.00000);
  1126. CreateObject(987, 252.57710, 2476.21777, 15.47491, 0.00000, 0.00000, 0.00000);
  1127. CreateObject(987, 264.52667, 2476.13916, 15.47491, 0.00000, 0.00000, 0.00000);
  1128. CreateObject(987, 276.53189, 2476.16577, 15.47491, 0.00000, 0.00000, 0.00000);
  1129. CreateObject(987, 288.49432, 2476.19141, 15.47491, 0.00000, 0.00000, 0.00000);
  1130. CreateObject(987, 300.47958, 2476.22803, 15.47491, 0.00000, 0.00000, 0.00000);
  1131. CreateObject(987, 312.44702, 2476.23267, 15.47491, 0.00000, 0.00000, 0.00000);
  1132. CreateObject(987, 324.45255, 2476.25488, 15.47491, 0.00000, 0.00000, 0.00000);
  1133. CreateObject(987, 336.44415, 2476.26587, 15.47491, 0.00000, 0.00000, 0.00000);
  1134. CreateObject(987, 348.43155, 2476.27588, 15.47491, 0.00000, 0.00000, 0.00000);
  1135. CreateObject(987, 360.47144, 2476.21436, 15.47491, 0.00000, 0.00000, 0.00000);
  1136. CreateObject(987, 417.74255, 2550.86060, 15.47491, 0.00000, 0.00000, 0.00000);
  1137. CreateObject(987, 431.41861, 2476.00830, 15.47490, 0.00000, 0.00000, 91.00000);
  1138. CreateObject(987, 431.18097, 2487.98340, 15.47490, 0.00000, 0.00000, 91.00000);
  1139. CreateObject(987, 430.71069, 2500.01831, 15.47490, 0.00000, 0.00000, 91.00000);
  1140. CreateObject(987, 430.17657, 2512.03687, 15.47490, 0.00000, 0.00000, 91.00000);
  1141. CreateObject(987, 430.13559, 2524.05005, 15.47490, 0.00000, 0.00000, 91.00000);
  1142. CreateObject(987, 429.84750, 2536.01782, 15.47490, 0.00000, 0.00000, 91.00000);
  1143. CreateObject(987, 429.65854, 2539.00952, 15.47490, 0.00000, 0.00000, 91.00000);
  1144. CreateObject(987, 366.47147, 2476.24219, 15.47491, 0.00000, 0.00000, 0.00000);
  1145. CreateObject(987, 405.80060, 2550.85181, 15.47491, 0.00000, 0.00000, 0.00000);
  1146. CreateObject(987, 393.85522, 2550.85547, 15.47491, 0.00000, 0.00000, 0.00000);
  1147. CreateObject(987, 381.74677, 2550.76587, 15.47491, 0.00000, 0.00000, 0.00000);
  1148. CreateObject(987, 369.92844, 2550.86206, 15.47491, 0.00000, 0.00000, 0.00000);
  1149. CreateObject(987, 357.95526, 2550.83643, 15.47491, 0.00000, 0.00000, 0.00000);
  1150. CreateObject(987, 345.98181, 2550.83594, 15.47491, 0.00000, 0.00000, 0.00000);
  1151. CreateObject(987, 337.01865, 2550.82007, 15.47491, 0.00000, 0.00000, 0.00000);
  1152. CreateObject(987, 311.89941, 2554.27417, 15.47491, 0.00000, 0.00000, 0.00000);
  1153. CreateObject(987, 324.21112, 2553.95044, 15.47491, 0.00000, 0.00000, 0.00000);
  1154. CreateObject(987, 299.93454, 2554.33203, 15.47491, 0.00000, 0.00000, 0.00000);
  1155. CreateObject(987, 287.90784, 2554.38867, 15.47491, 0.00000, 0.00000, 0.00000);
  1156. CreateObject(987, 275.94907, 2554.34229, 15.47491, 0.00000, 0.00000, 0.00000);
  1157. CreateObject(987, 263.98709, 2554.30273, 15.47491, 0.00000, 0.00000, 0.00000);
  1158. CreateObject(987, 252.02168, 2554.33350, 15.47491, 0.00000, 0.00000, 0.00000);
  1159. CreateObject(987, 240.07118, 2554.34937, 15.47491, 0.00000, 0.00000, 0.00000);
  1160. CreateObject(987, 228.10294, 2554.39355, 15.47491, 0.00000, 0.00000, 0.00000);
  1161. CreateObject(987, 216.17336, 2554.39185, 15.47491, 0.00000, 0.00000, 0.00000);
  1162. CreateObject(987, 204.24117, 2554.38037, 15.47491, 0.00000, 0.00000, 0.00000);
  1163. CreateObject(987, 192.30977, 2554.36450, 15.47491, 0.00000, 0.00000, 0.00000);
  1164. CreateObject(987, 180.34442, 2554.35620, 15.47491, 0.00000, 0.00000, 0.00000);
  1165. CreateObject(987, 168.39854, 2554.32446, 15.47491, 0.00000, 0.00000, 0.00000);
  1166. CreateObject(987, 156.48582, 2554.35986, 15.47491, 0.00000, 0.00000, 0.00000);
  1167. CreateObject(987, 144.54434, 2554.30688, 15.47491, 0.00000, 0.00000, 0.00000);
  1168. CreateObject(987, 132.57346, 2554.33521, 15.47491, 0.00000, 0.00000, 0.00000);
  1169. CreateObject(987, 120.60539, 2554.37866, 15.47491, 0.00000, 0.00000, 0.00000);
  1170. CreateObject(987, 108.67724, 2554.41748, 15.47491, 0.00000, 0.00000, 0.00000);
  1171. CreateObject(987, 96.72910, 2554.42651, 15.47491, 0.00000, 0.00000, 0.00000);
  1172. CreateObject(987, 86.83662, 2553.96143, 15.47491, 0.00000, 0.00000, 0.00000);
  1173. CreateObject(987, 85.26074, 2488.14795, 15.47490, 0.00000, 0.00000, -91.00000);
  1174. CreateObject(987, 85.59731, 2500.16821, 15.47490, 0.00000, 0.00000, -91.00000);
  1175. CreateObject(987, 86.66308, 2536.23828, 15.47490, 0.00000, 0.00000, -91.00000);
  1176. CreateObject(987, 87.00394, 2548.29907, 15.47490, 0.00000, 0.00000, -91.00000);
  1177. CreateObject(987, 86.95404, 2554.27734, 15.47490, 0.00000, 0.00000, -91.00000);
  1178. CreateObject(3279, 60.75741, 2537.16284, 15.49501, 0.00000, 0.00000, 0.00000);
  1179. CreateObject(3279, -148.65346, 2615.58398, 59.94767, 0.00000, 0.00000, -91.00000);
  1180. CreateObject(966, 86.83361, 2523.95386, 15.50130, 0.00000, 0.00000, 91.00000);
  1181. CreateObject(966, 86.24880, 2500.89917, 15.50130, 0.00000, 0.00000, -98.00000);
  1182. CreateObject(967, 85.76083, 2512.85620, 16.31310, 0.00000, 0.00000, 178.00000);
  1183. CreateObject(968, 86.93262, 2523.99731, 15.58090, 0.00000, 0.00000, 0.00000);
  1184. CreateObject(968, 86.21848, 2500.85229, 15.58090, 0.00000, 0.00000, 0.00000);
  1185. CreateObject(616, 85.30568, 2529.31421, 11.02686, 0.00000, 0.00000, 0.00000);
  1186. CreateObject(616, 79.10014, 2551.45166, 11.02686, 0.00000, 0.00000, 0.00000);
  1187. CreateObject(616, 103.85262, 2557.38135, 11.02686, 0.00000, 0.00000, 0.00000);
  1188. CreateObject(616, 129.00815, 2557.37207, 11.02686, 0.00000, 0.00000, 0.00000);
  1189. CreateObject(616, 151.75037, 2557.07422, 11.02686, 0.00000, 0.00000, 0.00000);
  1190. CreateObject(616, 180.24199, 2556.94824, 11.02686, 0.00000, 0.00000, 0.00000);
  1191. CreateObject(616, 204.60336, 2557.31934, 11.02686, 0.00000, 0.00000, 0.00000);
  1192. CreateObject(616, 228.05602, 2556.22900, 11.02686, 0.00000, 0.00000, 0.00000);
  1193. CreateObject(616, 250.81340, 2557.58643, 11.02686, 0.00000, 0.00000, 0.00000);
  1194. CreateObject(616, 275.62546, 2558.62866, 11.02686, 0.00000, 0.00000, 0.00000);
  1195. CreateObject(616, 296.72852, 2557.86768, 11.02686, 0.00000, 0.00000, 0.00000);
  1196. CreateObject(616, 319.23923, 2557.51318, 11.02686, 0.00000, 0.00000, 0.00000);
  1197. CreateObject(616, 348.72412, 2555.34619, 11.02686, 0.00000, 0.00000, 0.00000);
  1198. CreateObject(616, 367.67288, 2551.56616, 11.02686, 0.00000, 0.00000, 0.00000);
  1199. CreateObject(616, 387.66595, 2552.61865, 11.19297, 0.00000, 0.00000, 0.00000);
  1200. CreateObject(616, 407.90076, 2552.30371, 11.02686, 0.00000, 0.00000, 0.00000);
  1201. CreateObject(616, 428.76324, 2551.80029, 11.02686, 0.00000, 0.00000, 0.00000);
  1202. CreateObject(1303, 430.86301, 2538.97900, 15.36750, 0.00000, 0.00000, 0.00000);
  1203. CreateObject(1304, 430.99060, 2536.69214, 15.86809, 0.00000, 0.00000, 0.00000);
  1204. CreateObject(1305, 431.75922, 2535.58081, 15.97046, 0.00000, 0.00000, 0.00000);
  1205. CreateObject(1305, 431.69699, 2532.72388, 15.97050, 0.00000, 0.00000, 40.00000);
  1206. CreateObject(1305, 431.77530, 2529.43311, 15.97050, 0.00000, 0.00000, -47.00000);
  1207. CreateObject(1305, 431.79840, 2526.43750, 15.97050, 0.00000, 0.00000, -98.00000);
  1208. CreateObject(1305, 431.55301, 2523.66870, 15.97050, 0.00000, 0.00000, -142.00000);
  1209. CreateObject(1305, 431.81161, 2520.87573, 15.97050, 0.00000, 0.00000, -164.00000);
  1210. CreateObject(1305, 431.64609, 2517.93848, 15.97050, 0.00000, 0.00000, -200.00000);
  1211. CreateObject(1305, 431.75311, 2515.05737, 15.97050, 0.00000, 0.00000, -251.00000);
  1212. CreateObject(1305, 432.07129, 2511.99658, 15.97050, 0.00000, 0.00000, -345.00000);
  1213. CreateObject(1305, 432.08539, 2508.90088, 15.97050, 0.00000, 0.00000, -222.00000);
  1214. CreateObject(1305, 431.90839, 2505.98853, 15.97050, 0.00000, 0.00000, -164.00000);
  1215. CreateObject(1305, 431.96570, 2502.99390, 15.97050, 0.00000, 0.00000, -124.00000);
  1216. CreateObject(1305, 432.23972, 2500.29492, 15.97050, 0.00000, 0.00000, -62.00000);
  1217. CreateObject(1305, 432.78540, 2497.40405, 15.97050, 0.00000, 0.00000, -11.00000);
  1218. CreateObject(1305, 432.84680, 2494.65967, 15.97050, 0.00000, 0.00000, 40.00000);
  1219. CreateObject(1305, 433.06561, 2491.76660, 15.97050, 0.00000, 0.00000, 135.00000);
  1220. CreateObject(1305, 433.21011, 2488.75781, 15.97050, 0.00000, 0.00000, 163.00000);
  1221. CreateObject(1305, 433.50510, 2485.94019, 15.97050, 0.00000, 0.00000, 200.00000);
  1222. CreateObject(1305, 433.96051, 2483.21460, 15.97050, 0.00000, 0.00000, 229.00000);
  1223. CreateObject(1305, 433.62280, 2480.39038, 15.97050, 0.00000, 0.00000, 269.00000);
  1224. CreateObject(1304, 432.75409, 2478.35400, 15.85214, 0.00000, 0.00000, 0.00000);
  1225. CreateObject(1303, 431.83020, 2476.42578, 15.44374, 0.00000, 0.00000, 0.00000);
  1226. CreateObject(616, 435.24539, 2477.73169, 15.11464, 0.00000, 0.00000, 0.00000);
  1227. CreateObject(616, 433.90524, 2495.77661, 15.11464, 0.00000, 0.00000, 0.00000);
  1228. CreateObject(616, 433.17868, 2513.35596, 15.11464, 0.00000, 0.00000, 0.00000);
  1229. CreateObject(616, 433.07074, 2531.07324, 15.11464, 0.00000, 0.00000, 0.00000);
  1230. CreateObject(616, 368.83868, 2472.86719, 11.02686, 0.00000, 0.00000, 0.00000);
  1231. CreateObject(616, 345.66827, 2472.72363, 11.02686, 0.00000, 0.00000, 0.00000);
  1232. CreateObject(616, 323.35858, 2471.78076, 11.02686, 0.00000, 0.00000, 0.00000);
  1233. CreateObject(616, 305.11771, 2473.53931, 11.02686, 0.00000, 0.00000, 0.00000);
  1234. CreateObject(616, 284.58890, 2472.62939, 11.02686, 0.00000, 0.00000, 0.00000);
  1235. CreateObject(616, 263.04431, 2472.73267, 11.02686, 0.00000, 0.00000, 0.00000);
  1236. CreateObject(616, 244.31595, 2470.63330, 10.86696, 0.00000, 0.00000, 0.00000);
  1237. CreateObject(616, 213.60846, 2472.78467, 11.02686, 0.00000, 0.00000, 0.00000);
  1238. CreateObject(616, 192.33403, 2467.15430, 11.02686, 0.00000, 0.00000, 0.00000);
  1239. CreateObject(616, 167.63199, 2469.52930, 11.02686, 0.00000, 0.00000, 0.00000);
  1240. CreateObject(616, 146.28581, 2472.73169, 11.02686, 0.00000, 0.00000, 0.00000);
  1241. CreateObject(616, 121.40978, 2472.92456, 11.02686, 0.00000, 0.00000, 0.00000);
  1242. CreateObject(616, 101.42039, 2472.97778, 11.02686, 0.00000, 0.00000, 0.00000);
  1243. CreateObject(616, 84.72787, 2495.70410, 11.02686, 0.00000, 0.00000, 0.00000);
  1244. CreateObject(616, 82.72840, 2478.39941, 11.02686, 0.00000, 0.00000, 0.00000);
  1245. CreateObject(11556, 297.63977, 2476.08594, 10.13998, 0.00000, 0.00000, 0.00000);
  1246. CreateObject(3250, 219.91203, 2486.14624, 15.12241, 0.00000, 0.00000, 178.00000);
  1247. CreateObject(3250, 211.08786, 2486.49731, 15.12353, 0.00000, 0.00000, 178.00000);
  1248. CreateObject(3250, 202.33047, 2486.72998, 15.10697, 0.00000, 0.00000, 178.00000);
  1249. CreateObject(3279, 520.55060, 2099.58350, 54.77147, 0.00000, 0.00000, 0.00000);
  1250. CreateObject(3279, 192.63374, 2538.15015, 15.48667, 0.00000, 0.00000, 0.00000);
  1251. CreateObject(3279, 102.35498, 2541.30151, 15.43453, 0.00000, 0.00000, 0.00000);
  1252. CreateObject(3279, 153.73067, 2539.49731, 15.43453, 0.00000, 0.00000, 0.00000);
  1253. CreateObject(3279, 155.95320, 2483.98950, 15.43453, 0.00000, 0.00000, 0.00000);
  1254. CreateObject(3279, 107.74176, 2486.41992, 15.43453, 0.00000, 0.00000, 0.00000);
  1255. CreateObject(3277, 243.04379, 2490.43188, 16.24980, 0.00000, 0.00000, -25.00000);
  1256. CreateObject(3268, 243.85049, 2490.15674, 15.31034, 0.00000, 0.00000, -91.00000);
  1257. CreateObject(3268, 239.18243, 2356.23267, 15.63008, 0.00000, 0.00000, 0.00000);
  1258. CreateObject(3268, 24.05697, 2541.54077, 15.31555, 0.00000, 0.00000, 91.00000);
  1259. CreateObject(3268, -8.68054, 2541.11475, 15.42557, 0.00000, 0.00000, 91.00000);
  1260. CreateObject(3268, -39.87542, 2540.63062, 15.40878, 0.00000, 0.00000, 91.00000);
  1261. CreateObject(3268, 379.93066, 2488.44971, 15.07896, 0.00000, 0.00000, -91.00000);
  1262. CreateObject(3268, 348.64874, 2489.04028, 15.29285, 0.00000, 0.00000, -91.00000);
  1263. CreateObject(3268, 410.64813, 2487.88501, 15.40319, 0.00000, 0.00000, -91.00000);
  1264.  
  1265. return 1;}
  1266.  
  1267. /*******************************************************************************
  1268. * <=[GM Exit]=> *
  1269. *******************************************************************************/
  1270.  
  1271. public OnGameModeExit(){
  1272. KillTimer(tempo1);
  1273. KillTimer(tempo2);
  1274. KillTimer(tempo3);
  1275. KillTimer(tempo4);
  1276. KillTimer(tempo5);
  1277. KillTimer(tempo6);
  1278. KillTimer(tempo7);
  1279. KillTimer(tempo8);
  1280. new file[256]; format(file,sizeof(file),"VHealthConfig.ini");
  1281. print("\n**** ========================= ****");
  1282. print("**** ==> Car Health System <== ****");
  1283. print("**** ==> By Zuc <== ****");
  1284. if(dini_Int(file,"TextLanguage")==1)print("**** ==> Disattivato <== ****");else
  1285. if(dini_Int(file,"TextLanguage")==2)print("**** ==> UnLoaded <== ****");
  1286. print("**** ========================= ****");
  1287. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  1288. TextDrawHideForAll(BlackIndicator[i]);
  1289. TextDrawHideForAll(FullHealth[i]);
  1290. TextDrawHideForAll(VehicleHealth[i]);
  1291. TextDrawHideForAll(NameText[i]);
  1292. TextDrawDestroy(BlackIndicator[i]);
  1293. TextDrawDestroy(FullHealth[i]);
  1294. TextDrawDestroy(VehicleHealth[i]);
  1295. TextDrawDestroy(NameText[i]);
  1296. TextDrawHideForAll(STATStext[i]);
  1297. TextDrawDestroy(STATStext[i]);}
  1298. TextDrawHideForAll(GMtext);
  1299. TextDrawDestroy(GMtext);
  1300. TextDrawHideForAll(CMDtext);
  1301. TextDrawDestroy(CMDtext);
  1302. TextDrawHideForAll(BOX);
  1303. TextDrawDestroy(BOX);
  1304. return 1;}
  1305.  
  1306. /*******************************************************************************
  1307. * <=[OnVehicleSpawn]=> *
  1308. *******************************************************************************/
  1309.  
  1310. public OnVehicleSpawn(vehicleid){
  1311. if(vehicleid==v1) return CriminalsAmmount=CriminalsAmmount-400, SendRadioTeamMessage(TEAM_TERRORISTS,COLOR_WHITE,"A new vehicle has been bought"),print("TERRORISTS: A new vehicle has been bought");
  1312. if(vehicleid==v2) return CriminalsAmmount=CriminalsAmmount-400, SendRadioTeamMessage(TEAM_TERRORISTS,COLOR_WHITE,"A new vehicle has been bought"),print("TERRORISTS: A new vehicle has been bought");
  1313. if(vehicleid==v3) return CriminalsAmmount=CriminalsAmmount-400, SendRadioTeamMessage(TEAM_TERRORISTS,COLOR_WHITE,"A new vehicle has been bought"),print("TERRORISTS: A new vehicle has been bought");
  1314. if(vehicleid==v4) return CriminalsAmmount=CriminalsAmmount-400, SendRadioTeamMessage(TEAM_TERRORISTS,COLOR_WHITE,"A new vehicle has been bought"),print("TERRORISTS: A new vehicle has been bought");
  1315. if(vehicleid==v5) return CriminalsAmmount=CriminalsAmmount-400, SendRadioTeamMessage(TEAM_TERRORISTS,COLOR_WHITE,"A new vehicle has been bought"),print("TERRORISTS: A new vehicle has been bought");
  1316. if(vehicleid==v6) return CriminalsAmmount=CriminalsAmmount-400, SendRadioTeamMessage(TEAM_TERRORISTS,COLOR_WHITE,"A new vehicle has been bought"),print("TERRORISTS: A new vehicle has been bought");
  1317. if(vehicleid==v7) return CriminalsAmmount=CriminalsAmmount-400, SendRadioTeamMessage(TEAM_TERRORISTS,COLOR_WHITE,"A new vehicle has been bought"),print("TERRORISTS: A new vehicle has been bought");
  1318. if(vehicleid==v8) return CriminalsAmmount=CriminalsAmmount-400, SendRadioTeamMessage(TEAM_TERRORISTS,COLOR_WHITE,"A new vehicle has been bought"),print("TERRORISTS: A new vehicle has been bought");
  1319. if(vehicleid==v9) return CriminalsAmmount=CriminalsAmmount-400, SendRadioTeamMessage(TEAM_TERRORISTS,COLOR_WHITE,"A new vehicle has been bought"),print("TERRORISTS: A new vehicle has been bought");
  1320. if(vehicleid==v10) return CriminalsAmmount=CriminalsAmmount-400, SendRadioTeamMessage(TEAM_TERRORISTS,COLOR_WHITE,"A new vehicle has been bought"),print("TERRORISTS: A new vehicle has been bought");
  1321. if(vehicleid==v11) return CriminalsAmmount=CriminalsAmmount-400, SendRadioTeamMessage(TEAM_TERRORISTS,COLOR_WHITE,"A new vehicle has been bought"),print("TERRORISTS: A new vehicle has been bought");
  1322. if(vehicleid==v12) return CriminalsAmmount=CriminalsAmmount-400, SendRadioTeamMessage(TEAM_TERRORISTS,COLOR_WHITE,"A new vehicle has been bought"),print("TERRORISTS: A new vehicle has been bought");
  1323. if(vehicleid==v13) return CriminalsAmmount=CriminalsAmmount-400, SendRadioTeamMessage(TEAM_TERRORISTS,COLOR_WHITE,"A new vehicle has been bought"),print("TERRORISTS: A new vehicle has been bought");
  1324. if(vehicleid==v14) return CriminalsAmmount=CriminalsAmmount-400, SendRadioTeamMessage(TEAM_TERRORISTS,COLOR_WHITE,"A new vehicle has been bought"),print("TERRORISTS: A new vehicle has been bought");
  1325. if(vehicleid==v15) return CriminalsAmmount=CriminalsAmmount-400, SendRadioTeamMessage(TEAM_TERRORISTS,COLOR_WHITE,"A new vehicle has been bought"),print("TERRORISTS: A new vehicle has been bought");
  1326. if(vehicleid==v16) return CriminalsAmmount=CriminalsAmmount-400, SendRadioTeamMessage(TEAM_TERRORISTS,COLOR_WHITE,"A new vehicle has been bought"),print("TERRORISTS: A new vehicle has been bought");
  1327. if(vehicleid==v17) return CriminalsAmmount=CriminalsAmmount-400, SendRadioTeamMessage(TEAM_TERRORISTS,COLOR_WHITE,"A new vehicle has been bought"),print("TERRORISTS: A new vehicle has been bought");
  1328. if(vehicleid==v18) return CriminalsAmmount=CriminalsAmmount-1000, SendRadioTeamMessage(TEAM_TERRORISTS,COLOR_WHITE,"A new RUSTLER has been bought"),print("TERRORISTS: A new RUSTLER has been bought");
  1329.  
  1330. if(vehicleid==v19) return SWATAmmount=SWATAmmount-430, SendRadioTeamMessage(TEAM_SWAT,COLOR_WHITE,"A new vehicle has been bought"),print("SWAT: A new vehicle has been bought");
  1331. if(vehicleid==v20) return SWATAmmount=SWATAmmount-430, SendRadioTeamMessage(TEAM_SWAT,COLOR_WHITE,"A new vehicle has been bought"),print("SWAT: A new vehicle has been bought");
  1332. if(vehicleid==v21) return SWATAmmount=SWATAmmount-430, SendRadioTeamMessage(TEAM_SWAT,COLOR_WHITE,"A new vehicle has been bought"),print("SWAT: A new vehicle has been bought");
  1333. if(vehicleid==v22) return SWATAmmount=SWATAmmount-430, SendRadioTeamMessage(TEAM_SWAT,COLOR_WHITE,"A new vehicle has been bought"),print("SWAT: A new vehicle has been bought");
  1334. if(vehicleid==v23) return SWATAmmount=SWATAmmount-430, SendRadioTeamMessage(TEAM_SWAT,COLOR_WHITE,"A new vehicle has been bought"),print("SWAT: A new vehicle has been bought");
  1335. if(vehicleid==v24) return SWATAmmount=SWATAmmount-430, SendRadioTeamMessage(TEAM_SWAT,COLOR_WHITE,"A new vehicle has been bought"),print("SWAT: A new vehicle has been bought");
  1336. if(vehicleid==v25) return SWATAmmount=SWATAmmount-430, SendRadioTeamMessage(TEAM_SWAT,COLOR_WHITE,"A new vehicle has been bought"),print("SWAT: A new vehicle has been bought");
  1337. if(vehicleid==v26) return SWATAmmount=SWATAmmount-430, SendRadioTeamMessage(TEAM_SWAT,COLOR_WHITE,"A new vehicle has been bought"),print("SWAT: A new vehicle has been bought");
  1338. if(vehicleid==v27) return SWATAmmount=SWATAmmount-430, SendRadioTeamMessage(TEAM_SWAT,COLOR_WHITE,"A new vehicle has been bought"),print("SWAT: A new vehicle has been bought");
  1339. if(vehicleid==v28) return SWATAmmount=SWATAmmount-430, SendRadioTeamMessage(TEAM_SWAT,COLOR_WHITE,"A new vehicle has been bought"),print("SWAT: A new vehicle has been bought");
  1340. if(vehicleid==v29) return SWATAmmount=SWATAmmount-430, SendRadioTeamMessage(TEAM_SWAT,COLOR_WHITE,"A new vehicle has been bought"),print("SWAT: A new vehicle has been bought");
  1341. if(vehicleid==v30) return SWATAmmount=SWATAmmount-430, SendRadioTeamMessage(TEAM_SWAT,COLOR_WHITE,"A new vehicle has been bought"),print("SWAT: A new vehicle has been bought");
  1342. if(vehicleid==v31) return SWATAmmount=SWATAmmount-430, SendRadioTeamMessage(TEAM_SWAT,COLOR_WHITE,"A new vehicle has been bought"),print("SWAT: A new vehicle has been bought");
  1343. if(vehicleid==v32) return SWATAmmount=SWATAmmount-430, SendRadioTeamMessage(TEAM_SWAT,COLOR_WHITE,"A new vehicle has been bought"),print("SWAT: A new vehicle has been bought");
  1344. if(vehicleid==v33) return SWATAmmount=SWATAmmount-430, SendRadioTeamMessage(TEAM_SWAT,COLOR_WHITE,"A new vehicle has been bought"),print("SWAT: A new vehicle has been bought");
  1345. if(vehicleid==v34) return SWATAmmount=SWATAmmount-430, SendRadioTeamMessage(TEAM_SWAT,COLOR_WHITE,"A new vehicle has been bought"),print("SWAT: A new vehicle has been bought");
  1346. if(vehicleid==v35) return SWATAmmount=SWATAmmount-430, SendRadioTeamMessage(TEAM_SWAT,COLOR_WHITE,"A new vehicle has been bought"),print("SWAT: A new vehicle has been bought");
  1347. return 1;}
  1348.  
  1349. /*******************************************************************************
  1350. * <=[Skin Selection]=> *
  1351. *******************************************************************************/
  1352.  
  1353. public OnPlayerRequestClass(playerid, classid){
  1354. SetSkinToMeSkin[playerid]=500;
  1355. new skin=GetPlayerSkin(playerid);
  1356. switch(skin){
  1357. case 125,124:{
  1358. SetPlayerPos(playerid, -382.5999,2206.6169,42.4236);
  1359. SetPlayerFacingAngle(playerid,280.0);
  1360. if(Options[TextLanguage]==2)GameTextForPlayer(playerid,"~r~TERRORISTS",2000,3);
  1361. SetPlayerColor(playerid,COLOR_LIGHTRED);SKIN[playerid]=skin;
  1362. SetPlayerCameraPos(playerid, -379.5999,2206.6169,42.4236);
  1363. SetPlayerCameraLookAt(playerid, -382.5999,2206.6169,42.4236);}
  1364. case 287:{
  1365. SetPlayerPos(playerid, 212.7791,1919.7570,17.6406);
  1366. SetPlayerFacingAngle(playerid,180.0);
  1367. if(Options[TextLanguage]==2)GameTextForPlayer(playerid,"~b~SWAT",2000,3);
  1368. SetPlayerColor(playerid,COLOR_BLUE);SKIN[playerid]=skin;
  1369. SetPlayerCameraPos(playerid, 212.7791,1916.7570,17.6406);
  1370. SetPlayerCameraLookAt(playerid, 212.7791,1919.7570,17.6406);}
  1371. case 285:{
  1372. SetPlayerPos(playerid, 212.7791,1919.7570,17.6406);
  1373. SetPlayerFacingAngle(playerid,180.0);
  1374. if(Options[TextLanguage]==2)GameTextForPlayer(playerid,"~b~DONATOR",2000,3);
  1375. SetPlayerColor(playerid,COLOR_BLUE);SKIN[playerid]=skin;
  1376. SetPlayerCameraPos(playerid, 212.7791,1916.7570,17.6406);
  1377. SetPlayerCameraLookAt(playerid, 212.7791,1919.7570,17.6406);}}
  1378. return 1;}
  1379.  
  1380. /*******************************************************************************
  1381. * <=[Player Connecting]=> *
  1382. *******************************************************************************/
  1383.  
  1384. public OnPlayerConnect(playerid){
  1385. SetSkinToMeSkin[playerid]=500;
  1386. BeginningSkin[playerid]=0;
  1387. GangZoneShowForPlayer(playerid, SWAT_ZONE_1, 0x0000FF7C);
  1388. GangZoneShowForPlayer(playerid, SWAT_ZONE_2, 0x0000FF7C);
  1389. GangZoneShowForPlayer(playerid, TERRORISTS_ZONE_1, 0xFF00007E);
  1390. GangZoneShowForPlayer(playerid, TERRORISTS_ZONE_2, 0xFF00007E);
  1391. Spawned[playerid]=false;
  1392. Jetpack2[playerid]=0;
  1393. SetPlayerWorldBounds(playerid, 852.4849, -992.6194, 2931.147, 1272.888);
  1394. GetPlayerName(playerid,name,sizeof(name));
  1395. if(Options[TextLanguage]==1)format(string,sizeof(string),"- [ENTRATO]: %s (id:%d) è entrato nel server.",name, playerid);
  1396. if(Options[TextLanguage]==2)format(string,sizeof(string),"- [JOIN]: %s (id:%d) joined the server.",name, playerid);
  1397. SendClientMessageToAll(COLOR_YELLOW,string);print(string);
  1398. if(Options[TextLanguage]==1)GameTextForPlayer(playerid,"~w~BENVENUTO~n~~g~nel server~n~~w~Polizia ~r~VS ~w~Terroristi",6000,3);
  1399. if(Options[TextLanguage]==2)GameTextForPlayer(playerid,"~w~WELCOME~n~~g~in server~n~~w~SWAT ~r~VS ~w~Terrorists",6000,3);
  1400. SendClientMessage(playerid,COLOR_LIGHTRED," ");
  1401. SendClientMessage(playerid,COLOR_LIGHTRED,"******************************");
  1402. if(Options[TextLanguage]==1){
  1403. SendClientMessage(playerid,COLOR_WHITE, " Poliziotti");
  1404. SendClientMessage(playerid,COLOR_WHITE, " VS");
  1405. SendClientMessage(playerid,COLOR_WHITE, " Terroristi 4.1");}
  1406. if(Options[TextLanguage]==2){
  1407. SendClientMessage(playerid,COLOR_WHITE, " SWAT");
  1408. SendClientMessage(playerid,COLOR_WHITE, " VS");
  1409. SendClientMessage(playerid,COLOR_WHITE, " Terrorists 4.1");}
  1410. SendClientMessage(playerid,COLOR_LIGHTRED,"******************************");
  1411. SendClientMessage(playerid,COLOR_GREY," ><>< GM by [Svt]Mike ><><");
  1412. TextDrawShowForPlayer(playerid, GMtext);
  1413. TextDrawShowForPlayer(playerid, CMDtext);
  1414.  
  1415. new pfile[256],tmp2[256],tmp3[256];GetPlayerIp(playerid,tmp3,50);
  1416. GetPlayerName(playerid, pname, sizeof(pname));
  1417. Account[playerid][pJailed]=0;
  1418. Account[playerid][pMuted]=0;
  1419. Account[playerid][pFreezed]=0;
  1420. Account[playerid][pFlood]=0;
  1421. format(pfile, sizeof(pfile), "Users/%s.sav", pname);
  1422. tmp2 = dini_Get(pfile,"Ip");
  1423. if(!fexist(pfile)){
  1424. if(ServerInfo[Language]==1)SendClientMessage(playerid,COLOR_ORANGE,"Non sei registrato!!! Usa /register [password]");else
  1425. if(ServerInfo[Language]==2)SendClientMessage(playerid,COLOR_ORANGE,"Please login or register to play SvT!");}
  1426. else if(fexist(pfile)){
  1427. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_LIGHTGREEN, "Questo account è registrato!!! Usa /login [password] per accedere!");else
  1428. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_LIGHTGREEN, "Please login or register to play SvT!");}
  1429. if(fexist(pfile) && Account[playerid][pLoggedin]==0 && ServerInfo[AutoLogin]==1){
  1430. if((!strcmp(tmp3,tmp2,true))){
  1431. PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
  1432. Account[playerid][pLoggedin]=1;
  1433. Account[playerid][pAdminlevel]=dini_Int(pfile, "Adminlevel");
  1434. dini_IntSet(pfile, "Logged", Account[playerid][pLoggedin]);
  1435. GetPlayerIp(playerid,tmp3,100);
  1436. dini_Set(pfile,"Ip",tmp3);
  1437. if(ServerInfo[Language]==1)format(str, 256, "Hai effettuato l'accesso correttamente!!! [nickname: %s][Livello Admin: %d]", pname, Account[playerid][pAdminlevel]),SendClientMessage(playerid, COLOR_LIGHTGREEN, str);else
  1438. if(ServerInfo[Language]==2)format(str, 256, "You are succesfully logged in!!! [nickname: %s][Admin Level: %d]", pname, Account[playerid][pAdminlevel]),SendClientMessage(playerid, COLOR_LIGHTGREEN, str);
  1439. }else{
  1440. Account[playerid][pLoggedin]=0;}}
  1441.  
  1442. if(Options2[ConnectMessages]==1){
  1443. new stmp3[50]; GetPlayerIp(playerid,stmp3,50);
  1444. new pAKA[256]; pAKA = dini_Get("aka.txt",stmp3);
  1445. GetPlayerName(playerid,pname,sizeof(pname));
  1446. if(strlen(pAKA)<3) format(str,sizeof(str),"* %s (%d) has joined the server *", pname, playerid),SendClientMessageToAll(COLOR_GREY,str);
  1447. else if(!strcmp(pAKA,pname,true)) format(str,sizeof(str),"* %s (%d) has joined the server *", pname, playerid),SendClientMessageToAll(COLOR_GREY,str);
  1448. else format(str,sizeof(str),"* %s (%d) has joined the server (aka: %s)*", pname, playerid, pAKA),MessageToAdmins(COLOR_GREY,str),print(str);
  1449. if(strlen(dini_Get("aka.txt", stmp3)) == 0) dini_Set("aka.txt", stmp3, pname);else{
  1450. if(strfind(dini_Get("aka.txt",stmp3),pname,true)==-1){
  1451. format(string,sizeof(string),"%s,%s", dini_Get("aka.txt",stmp3), pname);
  1452. dini_Set("aka.txt", stmp3, string);}}}
  1453.  
  1454.  
  1455. return 1;}
  1456.  
  1457. public OnPlayerTakeDamage ( playerid, issuerid, Float:amount, weaponid, bodypart ) {
  1458. // I don't believe that's the sound ID for the sound you're looking for.
  1459. PlayerPlaySound(playerid, 17802, 0.0, 0.0, 0.0);
  1460. PlayerPlaySound(issuerid, 17802, 0.0, 0.0, 0.0);
  1461. if(issuerid != INVALID_PLAYER_ID && weaponid == 34, 33 && bodypart == 9)
  1462. {
  1463. SetPlayerHealth(playerid, 0.0);
  1464. GameTextForPlayer(issuerid,"~g~HEADSHOT",2000,3);
  1465. GameTextForPlayer(playerid,"~r~HEAD~y~SHOT",2000,3);
  1466. }
  1467. return 1;
  1468. }
  1469.  
  1470. /*******************************************************************************
  1471. * <=[Player Leaving]=> *
  1472. *******************************************************************************/
  1473.  
  1474. public OnPlayerDisconnect(playerid, reason){
  1475. if(Spawned[playerid]==true){
  1476. switch(SKIN[playerid]){
  1477. case 125,124:{
  1478. TerroristsCount--;}
  1479. case 285,287:{
  1480. SWATCount--;}}}
  1481.  
  1482. Spawned[playerid]=false;
  1483. SetSkinToMeSkin[playerid]=500;
  1484. CamActive[playerid]=false;
  1485. Account[playerid][pLoggedin]=0;
  1486. new file[256];format(file, sizeof(file), "Users/%s.sav", pname);
  1487. Account[playerid][pLoggedin]=0;
  1488. dini_IntSet(file,"Logged",Account[playerid][pLoggedin]);
  1489. dini_IntSet(file,"Kills",Account[playerid][GoodKillings]);
  1490. dini_IntSet(file,"BadKills",Account[playerid][BadKillings]);
  1491. dini_IntSet(file,"Deaths",Account[playerid][Deaths]);
  1492. dini_IntSet(file,"Score",GetPlayerScore(playerid));
  1493. TextDrawHideForPlayer(playerid, GMtext);
  1494. TextDrawHideForPlayer(playerid, CMDtext);
  1495. TextDrawHideForPlayer(playerid, BOX);
  1496. TextDrawHideForPlayer(playerid, STATStext[playerid]);
  1497. new stringa[39 + MAX_PLAYER_NAME];
  1498. GetPlayerName(playerid, name, sizeof(name));
  1499. switch(reason){
  1500. case 0:{
  1501. if(Options[TextLanguage]==1)format(stringa, sizeof(stringa), "- [CRASH]: %s è uscito dal server.", name);
  1502. if(Options[TextLanguage]==2)format(stringa, sizeof(stringa), "- [CRASH]: %s has left the server.", name);}
  1503. case 1:{
  1504. if(Options[TextLanguage]==1)format(stringa, sizeof(stringa), "- [USCITO]: %s è uscito dal server.", name);
  1505. if(Options[TextLanguage]==2)format(stringa, sizeof(stringa), "- [LEFT]: %s has left the server.", name);}
  1506. case 2:{
  1507. if(Options[TextLanguage]==1)format(stringa, sizeof(stringa), "- [KICK/BAN]: %s è stato buttato fuori.", name);
  1508. if(Options[TextLanguage]==2)format(stringa, sizeof(stringa), "- [KICKED/BANNED]: %s has been expelled.", name);}}
  1509. SendClientMessageToAll(COLOR_YELLOW, stringa);print(stringa);
  1510. return 1;}
  1511.  
  1512. /*******************************************************************************
  1513. * <=[OnPlayerRequestSpawn]=> *
  1514. *******************************************************************************/
  1515.  
  1516. public OnPlayerRequestSpawn(playerid){
  1517. TextDrawShowForPlayer(playerid, BOX);
  1518. TextDrawShowForPlayer(playerid, STATStext[playerid]);
  1519. SKIN[playerid]=GetPlayerSkin(playerid);
  1520. SetSkinToMeSkin[playerid]=500;
  1521. BeginningSkin[playerid]=SKIN[playerid];
  1522. if(Options2[BalanceSystem]==1){
  1523. switch(SKIN[playerid]){
  1524. case 125,124:{
  1525. if(TerroristsCount>SWATCount){
  1526. if(Options[TextLanguage]==1)SendClientMessage(playerid,COLOR_LIGHTRED,"BILANCIAMENTO: Ci sono troppi terroristi! Scegli un poliziotto!");
  1527. if(Options[TextLanguage]==2)SendClientMessage(playerid,COLOR_LIGHTRED,"BALANCE: There are too many players in Terrorists! Choose SWAT!");
  1528. return 0;}}
  1529. case 285,287:{
  1530. if(SWATCount>TerroristsCount){
  1531. if(Options[TextLanguage]==1)SendClientMessage(playerid,COLOR_LIGHTRED,"BILANCIAMENTO: Ci sono troppi poliziotti scegli un terrorista!");
  1532. if(Options[TextLanguage]==2)SendClientMessage(playerid,COLOR_LIGHTRED,"BALANCE: There are too many players in SWAT! Choose Terrorists!");
  1533. return 0;}}}}
  1534. return 1;}
  1535.  
  1536. /*******************************************************************************
  1537. * <=[OnPlayerSpawn]=> *
  1538. *******************************************************************************/
  1539.  
  1540. public OnPlayerSpawn(playerid){
  1541. CamActive[playerid]=false;
  1542. SetPlayerHealth(playerid,99);
  1543. SetTimerEx("SpawnedPlayer",2000,0,"d",playerid);
  1544. ReCountForBalance();
  1545. //new skin=GetPlayerSkin(playerid);
  1546. switch(SKIN[playerid]){
  1547. case 125,124:{
  1548. Account[playerid][gTeam]=TEAM_TERRORISTS;
  1549. GivePlayerWeapon(playerid, 18, 5); // Give playerid a sawn-off shotgun with 64 ammo
  1550. GivePlayerWeapon(playerid, 33, 100); // Give playerid a sawn-off shotgun with 64 ammo
  1551. SetPlayerTeam(playerid, 1);
  1552. TerroristsCount++;}
  1553. case 285,287:{
  1554. Account[playerid][gTeam]=TEAM_SWAT;
  1555. GivePlayerWeapon(playerid, 16, 5); // Give playerid a sawn-off shotgun with 64 ammo
  1556. GivePlayerWeapon(playerid, 33, 100); // Give playerid a sawn-off shotgun with 64 ammo
  1557. SetPlayerTeam(playerid, 2);
  1558. SWATCount++;}}
  1559. return 1;}
  1560.  
  1561. /*******************************************************************************
  1562. * <=[OnPlayerDeath]=> *
  1563. *******************************************************************************/
  1564. public OnPlayerDeath(playerid, killerid, reason){
  1565. new Float:health2,name2[24];
  1566. Spawned[playerid]=false;
  1567. GetPlayerHealth(playerid,health2);
  1568. SendDeathMessage(killerid, playerid, reason);
  1569. switch(SKIN[playerid]){
  1570. case 125,124:{
  1571. SetPlayerColor(playerid,COLOR_LIGHTRED);
  1572. TerroristsCount--;}
  1573. case 285,287:{
  1574. SetPlayerColor(playerid,COLOR_BLUE);
  1575. SWATCount--;}}
  1576. GetPlayerName(playerid,name,sizeof(name));
  1577. GetPlayerName(killerid,name2,sizeof(name2));
  1578. Account[playerid][Deaths]++;
  1579. printf("+++++++ %s is dead!!! +++++++",name);
  1580. if(Options[TextLanguage]==1)format(string,sizeof(string),"+++++++ %s è morto!!! +++++++",name);
  1581. if(Options[TextLanguage]==2)format(string,sizeof(string),"+++++++ %s is dead!!! +++++++",name);
  1582. SendClientMessageToAll(COLOR_GREY,string);
  1583. if(Account[killerid][gTeam]==Account[playerid][gTeam]){
  1584. SetPlayerScore(killerid,GetPlayerScore(killerid)-1); Account[killerid][BadKillings]++;
  1585. GivePlayerMoney(killerid,-200);
  1586. if(Options[TextLanguage]==1)GameTextForPlayer(killerid,"~r~NON UCCIDERE I COMPAGNI DI SQUADRA!!!",3000,3);
  1587. if(Options[TextLanguage]==2)GameTextForPlayer(killerid,"~r~DON'T KILL TEAMMATES!!!",3000,3);
  1588. if(Account[killerid][gTeam]==TEAM_TERRORISTS){
  1589. CriminalsAmmount=CriminalsAmmount-200;}
  1590. if(Account[killerid][gTeam]==TEAM_SWAT){
  1591. SWATAmmount=SWATAmmount-200;}
  1592. if(Options[TextLanguage]==1)SendClientMessage(killerid,COLOR_LIGHTRED,"Hai fatto perdere 200$ al tuo team!!! [Motivo: team-kill]");
  1593. if(Options[TextLanguage]==2)SendClientMessage(killerid,COLOR_LIGHTRED,"You made your team loosing 200$!!! [Reason: team-kill]");}else
  1594. if(Account[killerid][gTeam]!=Account[playerid][gTeam]){
  1595. SetPlayerScore(killerid,GetPlayerScore(killerid)+1); Account[killerid][GoodKillings]++;
  1596. GivePlayerMoney(killerid,50);
  1597. //new skin=GetPlayerSkin(killerid);
  1598. switch(SKIN[playerid]){
  1599. case 125,124:{
  1600. CriminalsAmmount=CriminalsAmmount+50;}
  1601. case 285,287:{
  1602. SWATAmmount=SWATAmmount+50;}}
  1603. if(Options[TextLanguage]==1)format(string,sizeof(string),"\"%s\" ha fatto guadagnare 50$ al suo team!!! [motivo: nemico ucciso]",name2);
  1604. if(Options[TextLanguage]==2)format(string,sizeof(string),"\"%s\" earned 50$ for his team!!! [Reason: killed enemy]",name2);
  1605. SendClientMessageToAll(COLOR_GREY,string);}
  1606. return 1;}
  1607.  
  1608. public OnPlayerEnterCheckpoint(playerid){
  1609. //new skin=GetPlayerSkin(playerid);
  1610. switch(SKIN[playerid]){
  1611. case 125,124:{
  1612. if(Checkpoint[playerid]==CHECKPOINT_CAR_FIXER_1){
  1613. if(IsPlayerInAnyVehicle(playerid)){
  1614. if(Fixing[playerid]==0){
  1615. SetTimerEx("FixingTimer1",500,0,"d",playerid);
  1616. Fixing[playerid]=1;}}}}
  1617. case 285,287:{
  1618. if(Checkpoint[playerid]==CHECKPOINT_CAR_FIXER_2){
  1619. if(IsPlayerInAnyVehicle(playerid)){
  1620. if(Fixing[playerid]==0){
  1621. SetTimerEx("FixingTimer1",500,0,"d",playerid);
  1622. Fixing[playerid]=1;}}}}}
  1623. return 1;}
  1624.  
  1625. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  1626. {
  1627. if(GetVehicleModel(vehicleid) == 432 && GetPlayerScore(playerid) < 1500)
  1628. {
  1629. new Float:posx,Float:posy,Float:posz;
  1630. GetPlayerPos(playerid, posx, posy, posz);
  1631. SetPlayerPos(playerid, posx, posy, posz + 3);
  1632. GameTextForPlayer(playerid,"~r~ERROR: You need 1500+ score to drive tanks!",2000,3);
  1633. }
  1634. return 1;
  1635. }
  1636.  
  1637. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){
  1638. if(newkeys == KEY_SECONDARY_ATTACK) {
  1639. if(Jetpack2[playerid]==1){
  1640. Jetpack2[playerid]=0;
  1641. new Float:x,Float:y,Float:z;
  1642. GetPlayerPos(playerid,x,y,z);
  1643. SetPlayerPos(playerid,x,y,z);}}
  1644. return 1;}
  1645.  
  1646. public OnPlayerPickUpPickup(playerid,pickupid){
  1647. if(pickupid==Jetpack){
  1648. //new skin=GetPlayerSkin(playerid);
  1649. switch(SKIN[playerid]){
  1650. case 285,287:{
  1651. Jetpack2[playerid]=1;
  1652. SetPlayerSpecialAction(playerid,2);
  1653. DestroyPickup(Jetpack);
  1654. SetTimer("ReplaceJetpack",60000,0);
  1655. return 1;}
  1656. case 125,124:{
  1657. GetPlayerName(playerid,name,sizeof(name));
  1658. if(Options[TextLanguage]==1)format(string,sizeof(string),"JETPACK: %s ha trovato il jetpack e guadagnato 2000$ per i TERRORISTI!",name);
  1659. if(Options[TextLanguage]==2)format(string,sizeof(string),"JETPACK: %s has found the jetpack and earned 2000$ for the TERRORISTS!",name);
  1660. SendClientMessageToAll(COLOR_LIGHTGREEN,string);
  1661. SetPlayerSpecialAction(playerid,2);
  1662. SetTimer("ReplaceJetpack",60000,0);
  1663. DestroyPickup(Jetpack);
  1664. CriminalsAmmount+=2000;
  1665. Jetpack2[playerid]=1;
  1666. return 1;}}}
  1667. return 1;}
  1668.  
  1669. /*******************************************************************************
  1670. * <=[COMANDS]=> *
  1671. *******************************************************************************/
  1672.  
  1673. public OnPlayerCommandText(playerid, cmdtext[]){
  1674. dcmd(return, 6, cmdtext);
  1675. dcmd(villagecam, 10, cmdtext);
  1676. dcmd(area51cam, 9, cmdtext);
  1677. dcmd(area69cam, 9, cmdtext);
  1678. dcmd(fbicam, 6, cmdtext);
  1679. if(CamActive[playerid]==true){
  1680. if(Options[TextLanguage]==1)SendClientMessage(playerid,ROSSO,"Stai osservando con una telecamera! Usa /return");else
  1681. if(Options[TextLanguage]==2)SendClientMessage(playerid,ROSSO,"You're watching from a Camera! Use /return");
  1682. return 1;}
  1683. if(CamActive[playerid]==false){
  1684. if(strcmp("/zvhealth",cmdtext, true)==0){
  1685. if(!IsPlayerAdmin(playerid)){
  1686. if(Options[TextLanguage]==1)SendClientMessage(playerid,ROSSO,"Devi essere loggato come RCON Admin per modificare i colori del ZVHealth");else
  1687. if(Options[TextLanguage]==2)SendClientMessage(playerid,ROSSO,"You must be logged as RCON Admin to modify colors in ZVHealth");}
  1688. if(IsPlayerAdmin(playerid)){
  1689. if(Options[TextLanguage]==1)ShowPlayerDialog(playerid, MenuDialog, DIALOG_STYLE_LIST, "Opzioni SegnaVita:","Text Language\nBox Color\nFullHealth Color\nHealth Color\nText Color", "Change", "Esc");else
  1690. if(Options[TextLanguage]==2)ShowPlayerDialog(playerid, MenuDialog, DIALOG_STYLE_LIST, "VehicleHealth Options:","Text Language\nBox Color\nFullHealth Color\nHealth Color\nText Color", "Change", "Esc");}
  1691. return 1;}
  1692. if(strcmp("/reloadcolors",cmdtext, true)==0){
  1693. if(IsPlayerAdmin(playerid)){
  1694. if(Options[TextLanguage]==1)SendClientMessage(playerid,VERDE_CHIARO,"Colori ricaricati"),print("Colori ricaricati");
  1695. if(Options[TextLanguage]==2)SendClientMessage(playerid,VERDE_CHIARO,"Colors are Reloaded"),print("Colors are Reloaded");
  1696. SetCorrectColor();}
  1697. return 1;}
  1698. if (strcmp("/recount", cmdtext, true) == 0){
  1699. ReCountForBalance();
  1700. SendClientMessage(playerid,COLOR_GREEN,"Players Teams Re-Count is done. use /pcount to see.");
  1701. return 1;}
  1702. if (strcmp("/pcount", cmdtext, true) == 0){
  1703. format(string,sizeof(string),"| Terrorists Count: %d | SWAT Count: %d |",TerroristsCount,SWATCount);
  1704. SendClientMessage(playerid,COLOR_GREEN,"--------------------------------------------------");
  1705. SendClientMessage(playerid,COLOR_WHITE,string);
  1706. SendClientMessage(playerid,COLOR_GREEN,"--------------------------------------------------");
  1707. return 1;}
  1708. // player commands //
  1709. dcmd(weapons, 7, cmdtext);
  1710. dcmd(kill, 4, cmdtext);
  1711. dcmd(cmd, 3, cmdtext);
  1712. dcmd(admins, 6, cmdtext);
  1713. // register system //
  1714. dcmd(register, 8, cmdtext);
  1715. dcmd(login, 5, cmdtext);
  1716. dcmd(logout, 6, cmdtext);
  1717. dcmd(changepass, 10, cmdtext);
  1718. if(Account[playerid][pMuted]==0){
  1719. dcmd(pm, 2, cmdtext);}
  1720. // admin commands //
  1721. dcmd(admincmd, 8, cmdtext);
  1722. dcmd(setweather,10,cmdtext);
  1723. dcmd(autohealplayers,15,cmdtext);
  1724. dcmd(settime,7,cmdtext);
  1725. dcmd(admins, 6, cmdtext);
  1726. dcmd(report, 6, cmdtext);
  1727. dcmd(reports, 7, cmdtext);
  1728. dcmd(asay,4,cmdtext);
  1729. dcmd(slap,4,cmdtext);
  1730. dcmd(explode,7,cmdtext);
  1731. dcmd(spec,4,cmdtext);
  1732. dcmd(specoff,7,cmdtext);
  1733. dcmd(getip,5,cmdtext);
  1734. dcmd(mute,4,cmdtext);
  1735. dcmd(unmute,6,cmdtext);
  1736. dcmd(kick,4,cmdtext);
  1737. dcmd(ban,3,cmdtext);
  1738. dcmd(jail,4,cmdtext);
  1739. dcmd(unjail,6,cmdtext);
  1740. dcmd(freeze,6,cmdtext);
  1741. dcmd(unfreeze,8,cmdtext);
  1742. dcmd(goto,4,cmdtext);
  1743. dcmd(get,3,cmdtext);
  1744. dcmd(gmx,3,cmdtext);
  1745. dcmd(makemegodadmin,14,cmdtext);
  1746. dcmd(makeadmin,9,cmdtext);
  1747. dcmd(cchat,5,cmdtext);}
  1748. return 0;}
  1749.  
  1750. /*******************************************************************************
  1751. * <=[DCMD COMMANDS]=> *
  1752. *******************************************************************************/
  1753. dcmd_weapons(playerid,params[]){
  1754. #pragma unused params
  1755. ShowPlayerDialog(playerid, CmdsMenu, DIALOG_STYLE_LIST, "Weapons:","1): UZI, nAK-47, Spray Paint\n2): Tec9, M4, Fire Extinguer\n3): Sniper Rifle, Knife, Silenced Pistol\n4): Deagle, MP5, Sawnoff Shotgun\n5): Parachute", "OK", "ESC");
  1756. return 1;}
  1757. //----------------------------------------------------------------------------//
  1758. dcmd_kill(playerid,params[]){
  1759. #pragma unused params
  1760. SetPlayerHealth(playerid,0);
  1761. return 1;}
  1762. //----------------------------------------------------------------------------//
  1763. dcmd_cmd(playerid,params[]){
  1764. #pragma unused params
  1765. SendClientMessage(playerid,COLOR_LIGHTGREEN,"*******************************************************");
  1766. SendClientMessage(playerid,COLOR_YELLOW,"/shop /weapons /kill /admins /pm /report /villagecam /area51cam");
  1767. SendClientMessage(playerid,COLOR_YELLOW,"/area69cam /fbicam /return /register /login /logout /changepass");
  1768. SendClientMessage(playerid,COLOR_WHITE,"TEAM CHAT: * [text]");
  1769. SendClientMessage(playerid,COLOR_LIGHTGREEN,"*******************************************************");
  1770. return 1;}
  1771. //----------------------------------------------------------------------------//
  1772. dcmd_villagecam(playerid,params[]){
  1773. #pragma unused params
  1774. if(Account[playerid][gTeam]!=TEAM_TERRORISTS){
  1775. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_LIGHTRED, "Non sei un terrorista, non puoi usare questo cmd");
  1776. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_LIGHTRED, "You're not a terrorist, you can't use this cmd");
  1777. return 1;}
  1778. CamActive[playerid]=true;
  1779. SetPlayerCameraPos(playerid,-340.5810,2182.2849,63.2930);
  1780. SetPlayerCameraLookAt(playerid,-387.5705,2214.1582,42.4255);
  1781. GameTextForPlayer(playerid,"~w~Village Camera.",2000,3);
  1782. return 1;}
  1783. //----------------------------------------------------------------------------//
  1784. dcmd_area51cam(playerid,params[]){
  1785. #pragma unused params
  1786. if(Account[playerid][gTeam]!=TEAM_TERRORISTS){
  1787. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_LIGHTRED, "Non sei un terrorista, non puoi usare questo cmd");
  1788. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_LIGHTRED, "You're not a terrorist, you can't use this cmd");
  1789. return 1;}
  1790. CamActive[playerid]=true;
  1791. SetPlayerCameraPos(playerid,304.9887,1844.9895,69.4630);
  1792. SetPlayerCameraLookAt(playerid,208.6236,1897.7513,16.8711);
  1793. GameTextForPlayer(playerid,"~w~Area51 Camera.",2000,3);
  1794. return 1;}
  1795. //----------------------------------------------------------------------------//
  1796. dcmd_area69cam(playerid,params[]){
  1797. #pragma unused params
  1798. if(Account[playerid][gTeam]!=TEAM_SWAT){
  1799. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_LIGHTRED, "Non fai parte delle forze dell'ordine, non puoi usare questo cmd");
  1800. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_LIGHTRED, "You're in order forces, you can't use this cmd");
  1801. return 1;}
  1802. CamActive[playerid]=true;
  1803. SetPlayerCameraPos(playerid,457.8419,2504.9170,27.8692);
  1804. SetPlayerCameraLookAt(playerid,377.0463,2528.7100,16.6018);
  1805. GameTextForPlayer(playerid,"~w~Area69 Camera.",2000,3);
  1806. return 1;}
  1807. //----------------------------------------------------------------------------//
  1808. dcmd_fbicam(playerid,params[]){
  1809. #pragma unused params
  1810. if(Account[playerid][gTeam]!=TEAM_SWAT){
  1811. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_LIGHTRED, "Non fai parte delle forze dell'ordine, non puoi usare questo cmd");
  1812. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_LIGHTRED, "You're in order forces, you can't use this cmd");
  1813. return 1;}
  1814. CamActive[playerid]=true;
  1815. SetPlayerCameraPos(playerid,65.8267,1574.7274,39.0658);
  1816. SetPlayerCameraLookAt(playerid,-0.7615,1506.1614,12.8914);
  1817. GameTextForPlayer(playerid,"~w~FBI Base Camera.",2000,3);
  1818. return 1;}
  1819. //----------------------------------------------------------------------------//
  1820. dcmd_return(playerid,params[]){
  1821. #pragma unused params
  1822. if(CamActive[playerid]==false)return 1;
  1823. CamActive[playerid]=false;
  1824. SetCameraBehindPlayer(playerid);
  1825. GameTextForPlayer(playerid,"~g~Back.",2000,3);
  1826. return 1;}
  1827. //----------------------------------------------------------------------------//
  1828. dcmd_register(playerid, params[]){
  1829. new file[256], tmp3[100];
  1830. GetPlayerName(playerid, pname, sizeof(pname));
  1831. format(file, sizeof(file), "Users/%s.sav", pname);
  1832. if(!strlen(params)){
  1833. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_WHITE, "UTILIZZA /register "#COL_RED"[password]");else
  1834. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_WHITE, "USAGE /register "#COL_RED"[password]");
  1835. return 1;}
  1836. if(dini_Exists(file)){
  1837. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_RED, "Sei già registrato!");else
  1838. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_RED, "You are already registered!");
  1839. return 1;}
  1840. Account[playerid][pLoggedin]=1;
  1841. dini_Create(file);
  1842. PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
  1843. GetPlayerIp(playerid,tmp3,100);
  1844. dini_Set(file,"Ip",tmp3);
  1845. dini_IntSet(file, "hashPW", udb_hash(params));
  1846. dini_Set(file, "Password", params);
  1847. dini_IntSet(file, "Adminlevel", Account[playerid][pAdminlevel]=0);
  1848. dini_IntSet(file, "Logged", Account[playerid][pLoggedin]);
  1849. dini_IntSet(file, "Kills", Account[playerid][GoodKillings]);
  1850. dini_IntSet(file, "BadKills", Account[playerid][BadKillings]);
  1851. dini_IntSet(file, "Deaths", Account[playerid][Deaths]);
  1852. dini_IntSet(file, "Score", Account[playerid][Score]);
  1853. if(ServerInfo[Language]==1)format(str, 256, "Ti sei registrato con successo: nickmane %s con password %s", pname, params),SendClientMessage(playerid, COLOR_LIGHTGREEN, str);else
  1854. if(ServerInfo[Language]==2)format(str, 256, "You succesfully registered the nickname %s with password %s", pname, params),SendClientMessage(playerid, COLOR_LIGHTGREEN, str);
  1855. if(ServerInfo[Language]==1) format(str, 256, "%s si è registrato server", pname),MessageToAdmins(COLOR_GREY,str);else
  1856. if(ServerInfo[Language]==2) format(str, 256, "%s registered in server", pname),MessageToAdmins(COLOR_GREY,str);
  1857. printf("REGISTER: %s registered [password %s]", pname, params);
  1858. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_LIGHTGREEN, "Sei stato loggato automaticamente!");else
  1859. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_LIGHTGREEN, "You have been automatically logged in!");
  1860. return 1;}
  1861. //----------------------------------------------------------------------------//
  1862. dcmd_login(playerid, params[]){
  1863. new file[256],tmp3[100];
  1864. GetPlayerName(playerid, pname, sizeof(pname));
  1865. format(file, sizeof(file), "Users/%s.sav", pname);
  1866. if(!strlen(params)){
  1867. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_WHITE, "UTILIZZA /login "#COL_RED"[password]");else
  1868. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_WHITE, "USAGE /login "#COL_RED"[password]");
  1869. return 1;}
  1870. if(!dini_Exists(file)){
  1871. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_RED, "Non sei registrato!");else
  1872. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_RED, "You're not registered!");
  1873. return 1;}
  1874. if(Account[playerid][pLoggedin]==1){
  1875. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_RED, "Sei già loggato!!!");else
  1876. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_RED, "You are already logged!!!");
  1877. return 1;}
  1878. new tmp[256]; tmp = dini_Get(file, "hashPW");
  1879. if(udb_hash(params) != strval(tmp)){
  1880. format(str, 256, "You specified the wrong password for %s!", pname);
  1881. SendClientMessage(playerid, COLOR_RED, str);}else{
  1882. PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
  1883. Account[playerid][GoodKillings]=dini_Int(file, "Kills");
  1884. Account[playerid][BadKillings]=dini_Int(file, "BadKills");
  1885. Account[playerid][Score]=dini_Int(file, "Score");
  1886. Account[playerid][Deaths]=dini_Int(file, "Deaths");
  1887. SetPlayerScore(playerid,Account[playerid][Score]);
  1888. Account[playerid][pLoggedin]=1;
  1889. Account[playerid][pAdminlevel]=dini_Int(file, "Adminlevel");
  1890. dini_IntSet(file, "Logged", Account[playerid][pLoggedin]);
  1891. GetPlayerIp(playerid,tmp3,100);
  1892. dini_Set(file,"Ip",tmp3);
  1893. if(ServerInfo[Language]==1)format(str, 256, "Hai effettuato l'accesso correttamente!!! [nickname: %s][Punteggio: %d]", pname, Account[playerid][Score]),SendClientMessage(playerid, COLOR_LIGHTGREEN, str);else
  1894. if(ServerInfo[Language]==2)format(str, 256, "You are succesfully logged in!!! [nickname: %s][Score: %d]", pname, Account[playerid][Score]),SendClientMessage(playerid, COLOR_LIGHTGREEN, str);
  1895. printf("ACCOUNT: %s (%i) logged in with password %s", pname, playerid, params);}
  1896. return 1;}
  1897. //----------------------------------------------------------------------------//
  1898. dcmd_logout(playerid, params[]){
  1899. new file[256];
  1900. GetPlayerName(playerid, pname, sizeof(pname));
  1901. format(file, sizeof(file), "Users/%s.sav", pname);
  1902. new tmp[256]; tmp = dini_Get(file, "hashPW");
  1903. if(!strlen(params)){
  1904. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_RED, "UTILIZZA /logout "#COL_RED"[password]");else
  1905. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_RED, "USAGE /logout "#COL_RED"[password]");
  1906. return 1;}
  1907. if(udb_hash(params) != strval(tmp)){
  1908. if(ServerInfo[Language]==1)format(str, 256, "Hai sbagliato password, %s!", pname),SendClientMessage(playerid, COLOR_RED, str);else
  1909. if(ServerInfo[Language]==2)format(str, 256, "You specified the wrong password for %s!", pname),SendClientMessage(playerid, COLOR_RED, str);
  1910. return 1;}else{
  1911. Account[playerid][pLoggedin]=0;
  1912. Account[playerid][pAdminlevel]=0;
  1913. dini_IntSet(file,"Logged",Account[playerid][pLoggedin]);
  1914. dini_IntSet(file,"Kills",Account[playerid][GoodKillings]);
  1915. dini_IntSet(file,"BadKills",Account[playerid][BadKillings]);
  1916. dini_IntSet(file,"Deaths",Account[playerid][Deaths]);
  1917. dini_IntSet(file,"Score",GetPlayerScore(playerid));
  1918. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_YELLOW, "<<<Disconnesso. Usa /login [password] se vuoi riaccedere.>>>");else
  1919. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_YELLOW, "<<<Disconnected. Use /login [password] if you want to login.>>>");
  1920. printf("ACCOUNT: %s Unlogged [password %s]", pname, params);}
  1921. return 1;}
  1922. //----------------------------------------------------------------------------//
  1923. dcmd_changepass(playerid, params[]){
  1924. new file[256], tmp[256],tmp2[256], Index; tmp = strtok(params,Index); tmp2 = strtok(params,Index);
  1925. GetPlayerName(playerid, pname, sizeof(pname));
  1926. format(file, sizeof(file), "Users/%s.sav", pname);
  1927. if(!strlen(tmp)){
  1928. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_RED, "UTILIZZA /changepass "#COL_RED"[vecchia password] [nuova password]");else
  1929. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_RED, "USAGE /changepass "#COL_RED"[old password] [new password]");
  1930. return 1;}
  1931. if(!strlen(tmp2)){
  1932. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_RED, "UTILIZZA /changepass [vecchia password] "#COL_RED"[nuova password]");else
  1933. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_RED, "USAGE /changepass [old password] "#COL_RED"[new password]");
  1934. return 1;}
  1935. if(!dini_Exists(file)){
  1936. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_RED, "Non sei registrato!");else
  1937. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_RED, "You are not registered!");
  1938. return 1;}
  1939. if(Account[playerid][pLoggedin]!=1){
  1940. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_RED, "Prima di cambiare password devi accedere!!! (/login [password])");else
  1941. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_RED, "Before changing password you must login!!!");
  1942. return 1;}
  1943. new tmp3[256]; tmp3 = dini_Get(file, "hashPW");
  1944. if(udb_hash(tmp) != strval(tmp3)){
  1945. if(ServerInfo[Language]==1)format(str, 256, "Hai sbagliato password %s!", pname),SendClientMessage(playerid, COLOR_RED, str);else
  1946. if(ServerInfo[Language]==2)format(str, 256, "You wrote wrong password, %s!", pname),SendClientMessage(playerid, COLOR_RED, str);}else{
  1947. PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
  1948. dini_IntSet(file, "hashPW", udb_hash(tmp2));
  1949. dini_Set(file, "Password", tmp2);
  1950. if(ServerInfo[Language]==1)format(str, 256, "Hai cambiato password con successo [nickname: %s][Nuova password: %s]", pname, tmp2),SendClientMessage(playerid, COLOR_LIGHTGREEN, str);else
  1951. if(ServerInfo[Language]==2)format(str, 256, "You succesfully changed your password [nickname: %s][New password: %s]", pname, tmp2),SendClientMessage(playerid, COLOR_LIGHTGREEN, str);
  1952. printf("ACCOUNT: %s (%i) logged in with password %s", pname, playerid, params);}
  1953. return 1;}
  1954. //----------------------------------------------------------------------------//
  1955. dcmd_pm(playerid,params[]){
  1956. if(ServerInfo[Pm]==1)if(Account[playerid][pMuted]==0){
  1957. new tmp[256],Index; tmp = strtok(params, Index);
  1958. if(!strlen(tmp)){
  1959. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_WHITE, "UTILIZZA: /pm "#COL_RED"[id] [messaggio]");else
  1960. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_WHITE, "USAGE: /pm "#COL_RED"[id] [message]");
  1961. return 1;}
  1962. player = strval(tmp);
  1963. if(!IsPlayerConnected(player)){
  1964. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_LIGHTRED, "ERRORE: Questo player non è connesso (ID non valido)");else
  1965. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_LIGHTRED, "ERROR: This player is not connected (Invalid Player ID)");
  1966. return 1;}
  1967. if(player==playerid){
  1968. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_LIGHTRED, "ERRORE: Non puoi mandare un Messaggio Personale (PM) a te stesso!");else
  1969. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_LIGHTRED, "ERROR: You can't send a Personal Message (PM) to yourself!");
  1970. return 1;}
  1971. if(ServerInfo[AntiFlood]==1){
  1972. if(Account[playerid][pFlood]==0 && Account[playerid][pMuted]==0 && IsPlayerConnected(player)){
  1973. SetTimerEx("FloodTimer",Options2[MaxFloodSeconds]*1000,0,"d",playerid);
  1974. Account[playerid][pFlood]=1;
  1975. GetPlayerName(player, incriminato, sizeof(incriminato)); GetPlayerName(playerid, adminname, sizeof(adminname));
  1976. if(ServerInfo[Language]==1)format(string, sizeof(string), "<<< PM da %s (ID:%i): %s >>>", adminname,playerid, params[2]), SendClientMessage(player,COLOR_LIGHTGREEN,string);else
  1977. if(ServerInfo[Language]==2)format(string, sizeof(string), "<<< PM from %s (ID:%i): %s >>>", adminname,playerid, params[2]), SendClientMessage(player,COLOR_LIGHTGREEN,string);
  1978. if(ServerInfo[Language]==1)format(string, sizeof(string), "<<< PM a %s (ID:%i): %s >>>",incriminato, player, params[2]),SendClientMessage(playerid,COLOR_LIGHTGREEN,string);else
  1979. if(ServerInfo[Language]==2)format(string, sizeof(string), "<<< PM to %s (ID:%i): %s >>>",incriminato, player, params[2]),SendClientMessage(playerid,COLOR_LIGHTGREEN,string);
  1980. return 1;}
  1981. else if(Account[playerid][pFlood]==1){
  1982. if(Account[playerid][pFloodding]==Options2[MaxFloodTimes]-1){
  1983. GetPlayerName(playerid,name,sizeof(name));
  1984. Account[playerid][pFloodding]++;
  1985. if(ServerInfo[Language]==1)format(str,sizeof(str),"ANTI-FLOOD: %s è stato kickato!!! [Motivo: Flood]",name),SendClientMessageToAll(COLOR_YELLOW,str),print(str);else
  1986. if(ServerInfo[Language]==2)format(str,sizeof(str),"ANTI-FLOOD: %s has been kicked!!! [Reason: Flood]",name),SendClientMessageToAll(COLOR_YELLOW,str),print(str);
  1987. Account[playerid][pFloodding]=0;
  1988. Kick(playerid);}
  1989. else if(Account[playerid][pFloodding]<Options2[MaxFloodTimes]){
  1990. Account[playerid][pFloodding]++;
  1991. if(ServerInfo[Language]==1)format(str,sizeof(str),"ANTI-FLOOD: Non floodare!!! Avvertimento %d/%d",Account[playerid][pFloodding], Options2[MaxFloodTimes]),SendClientMessage(playerid,COLOR_LIGHTRED,str);else
  1992. if(ServerInfo[Language]==2)format(str,sizeof(str),"ANTI-FLOOD: Don't Flood!!! Warning %d/%d",Account[playerid][pFloodding], Options2[MaxFloodTimes]),SendClientMessage(playerid,COLOR_LIGHTRED,str);
  1993. return 1;}}}
  1994. GetPlayerName(player, incriminato, sizeof(incriminato)); GetPlayerName(playerid, adminname, sizeof(adminname));
  1995. if(ServerInfo[Language]==1)format(string, sizeof(string), "<<< PM da %s (ID:%i): %s >>>", adminname,playerid, params[2]), SendClientMessage(player,COLOR_LIGHTGREEN,string);else
  1996. if(ServerInfo[Language]==2)format(string, sizeof(string), "<<< PM from %s (ID:%i): %s >>>", adminname,playerid, params[2]), SendClientMessage(player,COLOR_LIGHTGREEN,string);
  1997. if(ServerInfo[Language]==1)format(string, sizeof(string), "<<< PM a %s (ID:%i): %s >>>",incriminato, player, params[2]),SendClientMessage(playerid,COLOR_LIGHTGREEN,string);else
  1998. if(ServerInfo[Language]==2)format(string, sizeof(string), "<<< PM to %s (ID:%i): %s >>>",incriminato, player, params[2]),SendClientMessage(playerid,COLOR_LIGHTGREEN,string);}
  1999. return 1;}
  2000. //----------------------------------------------------------------------------//
  2001. dcmd_admins(playerid,params[]){
  2002. #pragma unused params
  2003. new Var,VarR;
  2004. for(new x=0;x<MAX_SERVER_PLAYERS;x++){
  2005. if(Account[x][pAdminlevel]>=1){
  2006. Var=1;}
  2007. if(IsPlayerAdmin(x)){
  2008. VarR=1;}}
  2009. if(Var==1){
  2010. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_LIGHTGREEN, "*** Admins Connessi: ***");else
  2011. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_LIGHTGREEN, "*** Admins Online: ***");
  2012. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2013. if(IsPlayerConnected(i)){
  2014. if(Account[i][pAdminlevel]>=1){
  2015. new name2[24];
  2016. GetPlayerName(i, name2, sizeof(name2));
  2017. if(ServerInfo[Language]==1)format(str, sizeof(str), "- %s | (id: %d) | [Livello: %d]", name2, i, Account[i][pAdminlevel]), SendClientMessage(playerid, COLOR_WHITE, str);else
  2018. if(ServerInfo[Language]==2)format(str, sizeof(str), "- %s | (id: %d) | [Level: %d]", name2, i, Account[i][pAdminlevel]), SendClientMessage(playerid, COLOR_WHITE, str);}
  2019. if(IsPlayerAdmin(i)){
  2020. new name2[24];
  2021. GetPlayerName(i, name2, sizeof(name2));
  2022. if(ServerInfo[Language]==1)format(str, sizeof(str), "- %s | (id: %d) | [RCON ADMIN]", name2, i), SendClientMessage(playerid, COLOR_YELLOW, str);else
  2023. if(ServerInfo[Language]==2)format(str, sizeof(str), "- %s | (id: %d) | [RCON ADMIN]", name2, i), SendClientMessage(playerid, COLOR_YELLOW, str);}}}}
  2024. if(Var==0 && VarR==0){
  2025. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_LIGHTGREEN, "*** Non ci sono Admins connessi. ***");else
  2026. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_LIGHTGREEN, "*** No Admins Online. ***");}
  2027. Var=0;
  2028. VarR=0;
  2029. return 1;}
  2030. //----------------------------------------------------------------------------//
  2031. dcmd_admincmd(playerid,params[]){
  2032. #pragma unused params
  2033. if(Account[playerid][pAdminlevel]>=1){
  2034. if(Options[TextLanguage]==1)SendClientMessage(playerid,COLOR_LIGHTRED,"******************* Tutti i comandi Admin: **********************");
  2035. if(Options[TextLanguage]==2)SendClientMessage(playerid,COLOR_LIGHTRED,"******************** All Admin Commands: ************************");
  2036. SendClientMessage(playerid,COLOR_WHITE,"/reports /kick /ban /jail /unjail /freeze /unfreeze /explode /slap /asay /autohealplayers");
  2037. SendClientMessage(playerid,COLOR_WHITE,"/setweather /settime /spec /specoff/getip /mute /unmute /goto /get /gmx /makeadmin /cchat");
  2038. SendClientMessage(playerid,COLOR_WHITE,"/makemegodadmin (ONLY RCON) /zvhealth");
  2039. SendClientMessage(playerid,COLOR_WHITE,"ADMIN CHAT: # [text]");
  2040. SendClientMessage(playerid,COLOR_LIGHTRED,"************************************************************************");}
  2041. return 1;}
  2042. //----------------------------------------------------------------------------//
  2043. dcmd_slap(playerid,params[]){
  2044. new Float:X,Float:Y,Float:Z;
  2045. if(Account[playerid][pAdminlevel]>=SLAP_LEVEL){
  2046. new tmp[256], Index; tmp = strtok(params,Index);
  2047. if(!strlen(params)){
  2048. if(Options[TextLanguage]==1)SendClientMessage(playerid, COLOR_WHITE, "UTILIZZA: /slap "#COL_RED"[id]");
  2049. if(Options[TextLanguage]==2)SendClientMessage(playerid, COLOR_WHITE, "USAGE: /slap "#COL_RED"[id]");
  2050. return 1;}
  2051. player = strval(params);
  2052. if(IsPlayerConnected(player)){
  2053. GetPlayerPos(player, Float:X,Float:Y,Float:Z);
  2054. GetPlayerName(player, incriminato, sizeof(incriminato)); GetPlayerName(playerid, adminname, sizeof(adminname));
  2055. if(Options[TextLanguage]==1)format(string, sizeof(string), "[ADMIN]: %s ha fatto cadere %s", adminname, incriminato);
  2056. if(Options[TextLanguage]==2)format(string, sizeof(string), "[ADMIN]: %s made %s to fall on the ground", adminname, incriminato);
  2057. SendClientMessageToAll(COLOR_LIGHTRED, string);
  2058. GameTextForPlayer(player, "~r~Die!!!!",3000,4); SetPlayerPos(player,X,Y,Z+50);}else{
  2059. if(Options[TextLanguage]==1)format(str, sizeof(str), "Devi essere admin livello %d per usare questo!!!", SLAP_LEVEL);
  2060. if(Options[TextLanguage]==2)format(str, sizeof(str), "You must be admin level %d to use this CMD!!!", SLAP_LEVEL);
  2061. SendClientMessage(playerid, COLOR_LIGHTRED, str);}}
  2062. return 1;}
  2063. //----------------------------------------------------------------------------//
  2064. dcmd_explode(playerid,params[]){
  2065. new Float:X,Float:Y,Float:Z;
  2066. if(Account[playerid][pAdminlevel]>=EXPLODE_LEVEL){
  2067. new tmp[256], Index; tmp = strtok(params,Index);
  2068. if(!strlen(params)){
  2069. SendClientMessage(playerid, COLOR_WHITE, "USAGE: /explode "#COL_RED"[id]");
  2070. return 1;}
  2071. player = strval(params);
  2072. if(IsPlayerConnected(player)){
  2073. GetPlayerPos(player, Float:X,Float:Y,Float:Z);
  2074. GetPlayerName(player, incriminato, sizeof(incriminato)); GetPlayerName(playerid, adminname, sizeof(adminname));
  2075. if(Options[TextLanguage]==1)format(string, sizeof(string), "[ADMIN]: %s ha fatto esplodere %s", adminname, incriminato);
  2076. if(Options[TextLanguage]==2)format(string, sizeof(string), "[ADMIN]: %s exploded %s", adminname, incriminato);
  2077. SendClientMessageToAll(COLOR_LIGHTRED, string);
  2078. GameTextForPlayer(player, "~r~Die!!!!",3000,4); CreateExplosion(X,Y,Z,10,12000);CreateExplosion(X,Y,Z,10,12000);}else{
  2079. format(str, sizeof(str), "You must be admin level %d to use this CMD!!!", EXPLODE_LEVEL); SendClientMessage(playerid, COLOR_LIGHTRED, str);}}
  2080. return 1;}
  2081. //----------------------------------------------------------------------------//
  2082. dcmd_report(playerid,params[]){
  2083. new tmp[256], Index; tmp = strtok(params,Index);
  2084. if(!strlen(tmp)){
  2085. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_RED, "UTILIZZA /report "#COL_RED"[id] [motivo]");else
  2086. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_RED, "USAGE /report "#COL_RED"[id] [reason]");
  2087. return 1;}
  2088. new File:Reported = fopen("Reported.txt",io_append);player = strval(tmp);
  2089. GetPlayerName(playerid, adminname, sizeof(adminname)); GetPlayerName(player, incriminato, sizeof(incriminato));
  2090. format(string, sizeof(string), "|| NEW REPORT ||: '%s' reported %s (id: %i) [reason: %s] \r\n", adminname, incriminato, player, params[2]);
  2091. if(ServerInfo[Language]==1)SendClientMessage(playerid,COLOR_LIGHTGREEN, "Il tuo REPORT è stato mandato agli admins in linea!!!");else
  2092. if(ServerInfo[Language]==2)SendClientMessage(playerid,COLOR_LIGHTGREEN, "Your report has been sent to online admins!!!");
  2093. fwrite(Reported, string);
  2094. fclose(Reported);
  2095. MessageToAdmins(COLOR_ZADMINBLUE,string);
  2096. printf("|| NEW REPORT ||: '%s' reported %s (id: %d) [reason: %s] \r\n", adminname, incriminato, player, params[2]);
  2097. return 1;}
  2098. //----------------------------------------------------------------------------//
  2099. dcmd_reports(playerid,params[]){
  2100. #pragma unused params
  2101. if(Account[playerid][pAdminlevel]>=1){
  2102. new File:Reported = fopen("Reported.txt",io_read);
  2103. fread(Reported, string);
  2104. format(string, sizeof(string), "LAST REPORT: \"%s\"", string),SendClientMessage(playerid,COLOR_ZADMINBLUE,string);
  2105. fclose(Reported);}
  2106. return 1;}
  2107. //----------------------------------------------------------------------------//
  2108. dcmd_asay(playerid,params[]){
  2109. if(Account[playerid][pAdminlevel]>=CmdsOptions[AChat] || IsPlayerAdmin(playerid)){
  2110. if(ServerInfo[AChat]==1){
  2111. new tmp[256],Index; tmp = strtok(params,Index);
  2112. if(!strlen(tmp)){
  2113. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_WHITE, "UTILIZZA: /asay "#COL_RED"[message]");else
  2114. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_WHITE, "USAGE: /asay "#COL_RED"[message]");
  2115. return 1;}
  2116. GetPlayerName(playerid, adminname, sizeof(adminname));
  2117. format(string, sizeof(string), "*Admin* %s: %s", adminname, params), SendClientMessageToAll(COLOR_ZADMINBLUE,string);}}
  2118. return 1;}
  2119. //----------------------------------------------------------------------------//
  2120. dcmd_spec(playerid,params[]){
  2121. if(Account[playerid][pAdminlevel]<CmdsOptions[Spec]){
  2122. if(ServerInfo[Language]==1)format(string, sizeof(string), "Devi avere livello admin %d per usare questo CMD!!!", CmdsOptions[Spec]), SendClientMessage(playerid, COLOR_LIGHTRED, string);else
  2123. if(ServerInfo[Language]==2)format(string, sizeof(string), "You must be admin level %d to use this CMD!!!", CmdsOptions[Spec]), SendClientMessage(playerid, COLOR_LIGHTRED, string);}else
  2124. if((Account[playerid][pAdminlevel]>=CmdsOptions[Spec]) || (Account[playerid][pAdminlevel]<=CmdsOptions[Spec] && IsPlayerAdmin(playerid))) if(ServerInfo[Spec]==1){
  2125. new tmp[256], Index; tmp = strtok(params,Index);
  2126. if(!strlen(params)){
  2127. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_WHITE, "UTILIZZA: /spec "#COL_RED"[id]");
  2128. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_WHITE, "USAGE: /spec "#COL_RED"[id]");
  2129. return 1;}
  2130. player = strval(params);
  2131. if(IsPlayerConnected(player)){
  2132. GetPlayerName(player, incriminato, sizeof(incriminato));
  2133. GetPlayerName(playerid, adminname, sizeof(adminname));
  2134. TogglePlayerSpectating(playerid, 1);
  2135. SetPlayerInterior(playerid,GetPlayerInterior(player));
  2136. if(!IsPlayerInAnyVehicle(player))PlayerSpectatePlayer(playerid, player, SPECTATE_MODE_NORMAL);else
  2137. if(IsPlayerInAnyVehicle(player))PlayerSpectateVehicle(playerid, GetPlayerVehicleID(player), SPECTATE_MODE_NORMAL);
  2138. if(ServerInfo[Language]==1)format(string, sizeof(string), "Stai osservando %s", incriminato), SendClientMessage(playerid, COLOR_WHITE, string);else
  2139. if(ServerInfo[Language]==2)format(string, sizeof(string), "You're watching %s", incriminato), SendClientMessage(playerid, COLOR_WHITE, string);}}
  2140. return 1;}
  2141. //----------------------------------------------------------------------------//
  2142. dcmd_specoff(playerid,params[]){
  2143. #pragma unused params
  2144. if(Account[playerid][pAdminlevel]<CmdsOptions[SpecOff]){
  2145. if(ServerInfo[Language]==1)format(string, sizeof(string), "Devi avere livello admin %d per usare questo CMD!!!", CmdsOptions[Spec]), SendClientMessage(playerid, COLOR_LIGHTRED, string);else
  2146. if(ServerInfo[Language]==2)format(string, sizeof(string), "You must be admin level %d to use this CMD!!!", CmdsOptions[Spec]), SendClientMessage(playerid, COLOR_LIGHTRED, string);}else
  2147. if((Account[playerid][pAdminlevel]>=CmdsOptions[SpecOff]) || (Account[playerid][pAdminlevel]<=CmdsOptions[SpecOff] && IsPlayerAdmin(playerid))) if(ServerInfo[SpecOff]==1){
  2148. SetPlayerInterior(playerid,0);
  2149. TogglePlayerSpectating(playerid,0);}
  2150. return 1;}
  2151. //----------------------------------------------------------------------------//
  2152. dcmd_mute(playerid,params[]){
  2153. if(Account[playerid][pAdminlevel]<CmdsOptions[Mute]){
  2154. if(ServerInfo[Language]==1)format(string, sizeof(string), "Devi avere livello admin %d per usare questo CMD!!!", CmdsOptions[Mute]), SendClientMessage(playerid, COLOR_LIGHTRED, string);else
  2155. if(ServerInfo[Language]==2)format(string, sizeof(string), "You must be admin level %d to use this CMD!!!", CmdsOptions[Mute]), SendClientMessage(playerid, COLOR_LIGHTRED, string);}else
  2156. if(Account[playerid][pAdminlevel]>=CmdsOptions[Mute]) if(ServerInfo[Mute]==1){
  2157. new tmp[256],tmp2[256],minuti, Index; tmp = strtok(params,Index); tmp2 = strtok(params,Index);
  2158. if(!strlen(tmp)){
  2159. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_WHITE, "UTILIZZA: /mute "#COL_RED"[id] [minuti]");else
  2160. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_WHITE, "USAGE: /mute "#COL_RED"[id] [minutes]");
  2161. return 1;}
  2162. if(!strlen(tmp2)){
  2163. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_WHITE, "UTILIZZA: /mute [id] "#COL_RED"[minuti]");else
  2164. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_WHITE, "USAGE: /mute [id] "#COL_RED"[minutes]");
  2165. return 1;}
  2166. player = strval(tmp);
  2167. minuti = strval(tmp2);
  2168. if(IsPlayerConnected(player)){
  2169. if(Account[player][pMuted]==1){
  2170. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_LIGHTRED, "Questo player è già Mutato!");else
  2171. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_LIGHTRED, "This player is already Muted!");
  2172. return 1;}
  2173. if(minuti<1){
  2174. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_LIGHTRED, "ATTENZIONE: Non puoi dare meno di 1 minuto");else
  2175. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_LIGHTRED, "WARNING: You can't mute for less than 1 minute");
  2176. return 1;}
  2177. if(minuti>10){
  2178. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_LIGHTRED, "ATTENZIONE: Non puoi dare più di 10 minuti");else
  2179. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_LIGHTRED, "WARNING: You can't mute for more than 10 minutes");
  2180. return 1;}
  2181. GetPlayerName(player, incriminato, sizeof(incriminato));
  2182. GetPlayerName(playerid, adminname, sizeof(adminname));
  2183. MuteTimer[player]=SetTimerEx("UnMutePlayerTimer",minuti*60000,0,"d",player);
  2184. if(ServerInfo[Language]==1)format(str, sizeof(str), "[ADMIN]: %s ha mutato %s per %d minuti", adminname, incriminato, minuti), SendClientMessageToAll(COLOR_YELLOW, str), GameTextForPlayer(player,"~r~MUTATO!!!",5000,3);else
  2185. if(ServerInfo[Language]==2)format(str, sizeof(str), "[ADMIN]: %s has muted %s for %d minutes", adminname, incriminato, minuti), SendClientMessageToAll(COLOR_YELLOW, str), GameTextForPlayer(player,"~r~MUTED!!!",5000,3);
  2186. Account[player][pMuted]=1;
  2187. Account[player][pMuteWarnings]=1;
  2188. if(ServerInfo[Language]==1)format(string, sizeof(string), "Hai mutato %s per %d minutes", incriminato, minuti), SendClientMessage(playerid, COLOR_ZADMINBLUE, string);else
  2189. if(ServerInfo[Language]==2)format(string, sizeof(string), "You muted %s for %d minutes", incriminato, minuti), SendClientMessage(playerid, COLOR_ZADMINBLUE, string);}}
  2190. return 1;}
  2191. //----------------------------------------------------------------------------//
  2192. dcmd_unmute(playerid,params[]){
  2193. if(Account[playerid][pAdminlevel]<CmdsOptions[UnMute]){
  2194. if(ServerInfo[Language]==1)format(string, sizeof(string), "Devi avere livello admin %d per usare questo CMD!!!", CmdsOptions[UnMute]), SendClientMessage(playerid, COLOR_LIGHTRED, string);else
  2195. if(ServerInfo[Language]==2)format(string, sizeof(string), "You must be admin level %d to use this CMD!!!", CmdsOptions[UnMute]), SendClientMessage(playerid, COLOR_LIGHTRED, string);}else
  2196. if(Account[playerid][pAdminlevel]>=CmdsOptions[UnMute]) if(ServerInfo[UnMute]==1){
  2197. new tmp[256], Index; tmp = strtok(params,Index);
  2198. if(!strlen(params)){
  2199. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_WHITE, "UTILIZZA: /mute "#COL_RED"[id]");else
  2200. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_WHITE, "USAGE: /mute "#COL_RED"[id]");
  2201. return 1;}
  2202. player = strval(params);
  2203. if(IsPlayerConnected(player)){
  2204. GetPlayerName(player, incriminato, sizeof(incriminato));
  2205. GetPlayerName(playerid, adminname, sizeof(adminname));
  2206. if(ServerInfo[Language]==1)format(str, sizeof(str), "[ADMIN]: %s ha smutato %s", adminname, incriminato), SendClientMessageToAll(COLOR_YELLOW, str);else
  2207. if(ServerInfo[Language]==2)format(str, sizeof(str), "[ADMIN]: %s unmuted %s", adminname, incriminato), SendClientMessageToAll(COLOR_YELLOW, str);
  2208. if(ServerInfo[Language]==1)GameTextForPlayer(player,"~g~SMUTATO!!!",5000,3);else
  2209. if(ServerInfo[Language]==2)GameTextForPlayer(player,"~g~UNMUTED!!!",5000,3);
  2210. Account[player][pMuted]=0;
  2211. Account[player][pMuteWarnings]=0;
  2212. KillTimer(MuteTimer[player]);
  2213. if(ServerInfo[Language]==1)format(string, sizeof(string), "Hai smutato %s", incriminato), SendClientMessage(playerid, COLOR_WHITE, string);else
  2214. if(ServerInfo[Language]==2)format(string, sizeof(string), "You unmuted %s", incriminato), SendClientMessage(playerid, COLOR_WHITE, string);}}
  2215. return 1;}
  2216. //----------------------------------------------------------------------------//
  2217. dcmd_getip(playerid,params[]){
  2218. if(Account[playerid][pAdminlevel]<CmdsOptions[GetIp]){
  2219. if(ServerInfo[Language]==1)format(string, sizeof(string), "Devi avere livello admin %d per usare questo CMD!!!", CmdsOptions[GetIp]), SendClientMessage(playerid, COLOR_LIGHTRED, string);else
  2220. if(ServerInfo[Language]==2)format(string, sizeof(string), "You must be admin level %d to use this CMD!!!", CmdsOptions[GetIp]), SendClientMessage(playerid, COLOR_LIGHTRED, string);}else
  2221. if(Account[playerid][pAdminlevel]>=CmdsOptions[GetIp]) if(ServerInfo[GetIp]==1){
  2222. new tmp[256],tmp2[50], Index; tmp = strtok(params,Index);
  2223. if(!strlen(params)){
  2224. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_WHITE, "UTILIZZA: /getip "#COL_RED"[id]");else
  2225. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_WHITE, "USAGE: /getip "#COL_RED"[id]");
  2226. return 1;}
  2227. player = strval(params);
  2228. if(IsPlayerConnected(player)){
  2229. GetPlayerName(player, incriminato, sizeof(incriminato));
  2230. GetPlayerName(playerid, adminname, sizeof(adminname));
  2231. GetPlayerIp(player,tmp2,50);
  2232. if(ServerInfo[Language]==1)format(str,sizeof(str),"INFORMAZIONI PLAYER: \"%s\" (id: %d) (IP: %s) (Nomi usati: %s)", incriminato, player, tmp2, dini_Get("aka.txt",tmp2)),SendClientMessage(playerid,COLOR_LIGHTGREEN,str);else
  2233. if(ServerInfo[Language]==2)format(str,sizeof(str),"PLAYER INFO: \"%s\" (id: %d) (IP: %s) (Names Used: %s)", incriminato, player, tmp2, dini_Get("aka.txt",tmp2)),SendClientMessage(playerid,COLOR_LIGHTGREEN,str);}}
  2234. return 1;}
  2235. //----------------------------------------------------------------------------//
  2236. dcmd_jail(playerid,params[]){
  2237. if(Account[playerid][pAdminlevel]<CmdsOptions[Jail]){
  2238. if(ServerInfo[Language]==1)format(string, sizeof(string), "Devi avere livello admin %d per usare questo CMD!!!", CmdsOptions[Jail]), SendClientMessage(playerid, COLOR_LIGHTRED, string);else
  2239. if(ServerInfo[Language]==2)format(string, sizeof(string), "You must be admin level %d to use this CMD!!!", CmdsOptions[Jail]), SendClientMessage(playerid, COLOR_LIGHTRED, string);}else
  2240. if(Account[playerid][pAdminlevel]>=CmdsOptions[Jail]) if(ServerInfo[Jail]==1){
  2241. new tmp[256], Index; tmp = strtok(params,Index);
  2242. if(!strlen(params)){
  2243. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_WHITE, "UTILIZZA: /jail "#COL_RED"[id]");else
  2244. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_WHITE, "USAGE: /jail "#COL_RED"[id]");
  2245. return 1;}
  2246. player = strval(params);
  2247. if(IsPlayerConnected(player)){
  2248. GetPlayerName(player, incriminato, sizeof(incriminato));
  2249. GetPlayerName(playerid, adminname, sizeof(adminname));
  2250. if(ServerInfo[Language]==1)format(str, sizeof(str), "[ADMIN]: %s ha messo in prigione %s", adminname, incriminato), SendClientMessageToAll(COLOR_YELLOW, str);else
  2251. if(ServerInfo[Language]==2)format(str, sizeof(str), "[ADMIN]: %s jailed %s", adminname, incriminato), SendClientMessageToAll(COLOR_YELLOW, str);
  2252. if(ServerInfo[Language]==1)GameTextForPlayer(player,"~r~INCARCERATO!!!",5000,3);else
  2253. if(ServerInfo[Language]==2)GameTextForPlayer(player,"~r~JAILED!!!",5000,3);
  2254. SetPlayerHealth(player,1);SetPlayerInterior(player,6);
  2255. ResetPlayerWeapons(player);
  2256. Account[player][pJailed]=1;
  2257. SetPlayerPos(player,264.0535,77.2942,1001.0391);SetPlayerFacingAngle(player,270.0);
  2258. if(ServerInfo[Language]==1)format(string, sizeof(string), "Hai messo in prigione %s", incriminato), SendClientMessage(playerid, COLOR_WHITE, string);else
  2259. if(ServerInfo[Language]==2)format(string, sizeof(string), "You jailed %s", incriminato), SendClientMessage(playerid, COLOR_WHITE, string);}}
  2260. return 1;}
  2261. //----------------------------------------------------------------------------//
  2262. dcmd_unjail(playerid,params[]){
  2263. if(Account[playerid][pAdminlevel]<CmdsOptions[UnJail]){
  2264. if(ServerInfo[Language]==1)format(string, sizeof(string), "Devi avere livello admin %d per usare questo CMD!!!", CmdsOptions[UnJail]), SendClientMessage(playerid, COLOR_LIGHTRED, string);else
  2265. if(ServerInfo[Language]==2)format(string, sizeof(string), "You must be admin level %d to use this CMD!!!", CmdsOptions[UnJail]), SendClientMessage(playerid, COLOR_LIGHTRED, string);}else
  2266. if(Account[playerid][pAdminlevel]>=CmdsOptions[UnJail]) if(ServerInfo[UnJail]==1){
  2267. new tmp[256], Index; tmp = strtok(params,Index);
  2268. if(!strlen(params)){
  2269. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_WHITE, "UTILIZZA: /unjail "#COL_RED"[id]");else
  2270. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_WHITE, "USAGE: /unjail "#COL_RED"[id]");
  2271. return 1;}
  2272. player = strval(params);
  2273. if(IsPlayerConnected(player)){
  2274. GetPlayerName(player, incriminato, sizeof(incriminato));
  2275. GetPlayerName(playerid, adminname, sizeof(adminname));
  2276. if(ServerInfo[Language]==1)format(str, sizeof(str), "[ADMIN]: %s ha liberato %s dalla prigione", adminname, incriminato), SendClientMessageToAll(COLOR_YELLOW, str);else
  2277. if(ServerInfo[Language]==2)format(str, sizeof(str), "[ADMIN]: %s removed %s from prison", adminname, incriminato), SendClientMessageToAll(COLOR_YELLOW, str);
  2278. if(ServerInfo[Language]==1)GameTextForPlayer(player,"~g~LIBERO!!!",5000,3);else
  2279. if(ServerInfo[Language]==2)GameTextForPlayer(player,"~g~UNJAILED!!!",5000,3);
  2280. SpawnPlayer(player);
  2281. ResetPlayerWeapons(player);
  2282. Account[player][pJailed]=0;
  2283. SetPlayerPos(player,1551.3763,-1675.0123,15.8185);SetPlayerFacingAngle(player,90.0);
  2284. if(ServerInfo[Language]==1)format(string, sizeof(string), "Hai liberato %s dalla prigione", incriminato), SendClientMessage(playerid, COLOR_WHITE, string);else
  2285. if(ServerInfo[Language]==2)format(string, sizeof(string), "You removed %s from prison", incriminato), SendClientMessage(playerid, COLOR_WHITE, string);}}
  2286. return 1;}
  2287. //----------------------------------------------------------------------------//
  2288. dcmd_kick(playerid,params[]){
  2289. if(Account[playerid][pAdminlevel]<CmdsOptions[kick]){
  2290. if(ServerInfo[Language]==1)format(string, sizeof(string), "Devi avere livello admin %d per usare questo CMD!!!", CmdsOptions[kick]), SendClientMessage(playerid, COLOR_LIGHTRED, string);else
  2291. if(ServerInfo[Language]==2)format(string, sizeof(string), "You must be admin level %d to use this CMD!!!", CmdsOptions[kick]), SendClientMessage(playerid, COLOR_LIGHTRED, string);}else
  2292. if(Account[playerid][pAdminlevel]>=CmdsOptions[kick]) if(ServerInfo[kick]==1){
  2293. if(ServerInfo[kick]==1){
  2294. new tmp[256], Index; tmp = strtok(params,Index);
  2295. if(!strlen(tmp)){
  2296. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_WHITE, "UTILIZZA: /kick "#COL_RED"[id] [motivo]");else
  2297. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_WHITE, "USAGE: /kick "#COL_RED"[id] [reason]");
  2298. return 1;}
  2299. player = strval(tmp);
  2300. if(IsPlayerConnected(player)){
  2301. if(playerid==player){
  2302. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_RED, "<<<<Non puoi kickare te stesso!!!>>>>");else
  2303. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_RED, "<<<<You can't kick yourself!!!>>>>");}else{
  2304. if(Account[player][pAdminlevel]>=1){
  2305. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_RED, "Non puoi kickare un altro admin!!!");else
  2306. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_RED, "You can't kick an other admin!!!");}else{
  2307. GetPlayerName(player, incriminato, sizeof(incriminato)); GetPlayerName(playerid, adminname, sizeof(adminname));
  2308. if(ServerInfo[Language]==1)format(str, sizeof(str), "[ADMIN]: %s ha kickato %s [Motivo: %s] \r\n", adminname, incriminato, params[2]), SendClientMessageToAll(COLOR_YELLOW, str);else
  2309. if(ServerInfo[Language]==2)format(str, sizeof(str), "[ADMIN]: %s kicked %s [Reason: %s] \r\n", adminname, incriminato, params[2]), SendClientMessageToAll(COLOR_YELLOW, str);
  2310. if(ServerInfo[Language]==1)GameTextForPlayer(player,"~r~CACCIATO!!!",20000,3);else
  2311. if(ServerInfo[Language]==2)GameTextForPlayer(player,"~r~KICKED!!!",20000,3);
  2312. new File:reported = fopen("KICKED_PLAYERS.sav",io_append);
  2313. fwrite(reported, str);
  2314. fclose(reported);
  2315. printf("//--------[ADMIN]: %s ha kickato %s [motivo: %s] --------//",adminname, incriminato, params[2]); Kick(player);}}}else{
  2316. if(ServerInfo[Language]==1)SendClientMessage(playerid,COLOR_RED,"Questo ID non appartiene a nessun player!!!");else
  2317. if(ServerInfo[Language]==2)SendClientMessage(playerid,COLOR_RED,"Invalid Player ID!!!");}}}
  2318. return 1;}
  2319. //----------------------------------------------------------------------------//
  2320. dcmd_ban(playerid,params[]){
  2321. if(Account[playerid][pAdminlevel]<CmdsOptions[ban]){
  2322. if(ServerInfo[Language]==1)format(string, sizeof(string), "Devi avere livello admin %d per usare questo CMD!!!", CmdsOptions[ban]), SendClientMessage(playerid, COLOR_LIGHTRED, string);else
  2323. if(ServerInfo[Language]==2)format(string, sizeof(string), "You must be admin level %d to use this CMD!!!", CmdsOptions[ban]), SendClientMessage(playerid, COLOR_LIGHTRED, string);}else
  2324. if(Account[playerid][pAdminlevel]>=CmdsOptions[ban]) if(ServerInfo[ban]==1){
  2325. new tmp[256], Index; tmp = strtok(params,Index);
  2326. if(!strlen(tmp)){
  2327. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_WHITE, "UTILIZZA: /ban "#COL_RED"[id] [motivo]");else
  2328. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_WHITE, "USAGE: /ban "#COL_RED"[id] [reason]");
  2329. return 1;}
  2330. player = strval(tmp);
  2331. if(IsPlayerConnected(player)){
  2332. if(playerid==player){
  2333. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_RED, "<<<<Non puoi bannare te stesso!!!>>>>");else
  2334. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_RED, "<<<<You can't ban yourself!!!>>>>");}else{
  2335. if(Account[player][pAdminlevel]>=1){
  2336. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_RED, "Non puoi bannare un altro admin!!!");else
  2337. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_RED, "You can't ban an other admin!!!");}else{
  2338. GetPlayerName(player, incriminato, sizeof(incriminato)); GetPlayerName(playerid, adminname, sizeof(adminname));
  2339. if(ServerInfo[Language]==1)format(str, sizeof(str), "[ADMIN]: %s ha bannato %s [Motivo: %s] \r\n", adminname, incriminato, params[2]), SendClientMessageToAll(COLOR_YELLOW, str);else
  2340. if(ServerInfo[Language]==2)format(str, sizeof(str), "[ADMIN]: %s banned %s [Reason: %s] \r\n", adminname, incriminato, params[2]), SendClientMessageToAll(COLOR_YELLOW, str);
  2341. if(ServerInfo[Language]==1)GameTextForPlayer(player,"~r~BANNATO!!!",20000,3);
  2342. if(ServerInfo[Language]==2)GameTextForPlayer(player,"~r~BANNED!!!",20000,3);
  2343. new File:reported = fopen("BANNED_PLAYERS.sav",io_append);
  2344. fwrite(reported, str);
  2345. fclose(reported);
  2346. printf("//--------[ADMIN]: %s ha bannato %s [motivo: %s] --------//",adminname, incriminato, params); Ban(player);}}}else{
  2347. if(ServerInfo[Language]==1)SendClientMessage(playerid,COLOR_RED,"Questo ID non appartiene a nessun player!!!");else
  2348. if(ServerInfo[Language]==2)SendClientMessage(playerid,COLOR_RED,"Invalid Player ID!!!");}}
  2349. return 1;}
  2350. //----------------------------------------------------------------------------//
  2351. dcmd_freeze(playerid,params[]){
  2352. if(Account[playerid][pAdminlevel]<CmdsOptions[Freeze]){
  2353. if(ServerInfo[Language]==1)format(string, sizeof(string), "Devi avere livello admin %d per usare questo CMD!!!", CmdsOptions[Freeze]), SendClientMessage(playerid, COLOR_LIGHTRED, string);else
  2354. if(ServerInfo[Language]==2)format(string, sizeof(string), "You must be admin level %d to use this CMD!!!", CmdsOptions[Freeze]), SendClientMessage(playerid, COLOR_LIGHTRED, string);}else
  2355. if(Account[playerid][pAdminlevel]>=CmdsOptions[Freeze]) if(ServerInfo[Freeze]==1){
  2356. new tmp[256], Index; tmp = strtok(params,Index);
  2357. if(!strlen(params)){
  2358. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_WHITE, "UTILIZZA: /freeze "#COL_RED"[id]");else
  2359. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_WHITE, "USAGE: /freeze "#COL_RED"[id]");
  2360. return 1;}
  2361. player = strval(params);
  2362. if(IsPlayerConnected(player)){
  2363. GetPlayerName(player, incriminato, sizeof(incriminato)); GetPlayerName(playerid, adminname, sizeof(adminname));
  2364. if(ServerInfo[Language]==1)format(str, sizeof(str), "[ADMIN]: %s ha freezato %s",adminname, incriminato, params[2]), SendClientMessageToAll(COLOR_LIGHTRED, str);else
  2365. if(ServerInfo[Language]==2)format(str, sizeof(str), "[ADMIN]: %s freezed %s",adminname, incriminato, params[2]), SendClientMessageToAll(COLOR_LIGHTRED, str);
  2366. TogglePlayerControllable(player,0);Account[player][pFreezed]=1;}}
  2367. return 1;}
  2368. //----------------------------------------------------------------------------//
  2369. dcmd_unfreeze(playerid,params[]){
  2370. if(Account[playerid][pAdminlevel]<CmdsOptions[UnFreeze]){
  2371. if(ServerInfo[Language]==1)format(string, sizeof(string), "Devi avere livello admin %d per usare questo CMD!!!", CmdsOptions[UnFreeze]), SendClientMessage(playerid, COLOR_LIGHTRED, string);else
  2372. if(ServerInfo[Language]==2)format(string, sizeof(string), "You must be admin level %d to use this CMD!!!", CmdsOptions[UnFreeze]), SendClientMessage(playerid, COLOR_LIGHTRED, string);}else
  2373. if(Account[playerid][pAdminlevel]>=CmdsOptions[UnFreeze]) if(ServerInfo[UnFreeze]==1){
  2374. new tmp[256], Index; tmp = strtok(params,Index);
  2375. if(!strlen(params)){
  2376. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_WHITE, "UTILIZZA: /unfreeze "#COL_RED"[id]");else
  2377. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_WHITE, "USAGE: /unfreeze "#COL_RED"[id]");
  2378. return 1;}
  2379. player = strval(params);
  2380. if(IsPlayerConnected(player)){
  2381. GetPlayerName(player, incriminato, sizeof(incriminato)); GetPlayerName(playerid, adminname, sizeof(adminname));
  2382. if(ServerInfo[Language]==1)format(str, sizeof(str), "[ADMIN]: %s ha sfreezato %s",adminname, incriminato, params[2]), SendClientMessageToAll(COLOR_GREEN, str);else
  2383. if(ServerInfo[Language]==2)format(str, sizeof(str), "[ADMIN]: %s unfreezed %s",adminname, incriminato, params[2]), SendClientMessageToAll(COLOR_GREEN, str);
  2384. TogglePlayerControllable(player,1);Account[player][pFreezed]=0;}}
  2385. return 1;}
  2386. //----------------------------------------------------------------------------//
  2387. dcmd_gmx(playerid,params[]){
  2388. #pragma unused params
  2389. if(Account[playerid][pAdminlevel]<CmdsOptions[Gmx]){
  2390. if(ServerInfo[Language]==1)format(string, sizeof(string), "Devi avere livello admin %d per usare questo CMD!!!", CmdsOptions[Gmx]), SendClientMessage(playerid, COLOR_LIGHTRED, string);else
  2391. if(ServerInfo[Language]==2)format(string, sizeof(string), "You must be admin level %d to use this CMD!!!", CmdsOptions[Gmx]), SendClientMessage(playerid, COLOR_LIGHTRED, string);}else
  2392. if(Account[playerid][pAdminlevel]>=CmdsOptions[Gmx]) if(ServerInfo[Gmx]==1){
  2393. SendRconCommand("gmx");
  2394. GameTextForAll("~w~IL SERVER~n~~w~SI STA~n~~r~RIAVVIANDO...",8000,3);}
  2395. return 1;}
  2396. //----------------------------------------------------------------------------//
  2397. dcmd_get(playerid,params[]){
  2398. new Float:X,Float:Y,Float:Z;
  2399. if(Account[playerid][pAdminlevel]<CmdsOptions[Get]){
  2400. if(ServerInfo[Language]==1)format(string, sizeof(string), "Devi avere livello admin %d per usare questo CMD!!!", CmdsOptions[Get]), SendClientMessage(playerid, COLOR_LIGHTRED, string);else
  2401. if(ServerInfo[Language]==2)format(string, sizeof(string), "You must be admin level %d to use this CMD!!!", CmdsOptions[Get]), SendClientMessage(playerid, COLOR_LIGHTRED, string);}else
  2402. if(Account[playerid][pAdminlevel]>=CmdsOptions[Get]) if(ServerInfo[Get]==1){
  2403. new tmp[256],INTERIOR, Index; tmp = strtok(params,Index);
  2404. if(!strlen(params)){
  2405. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_WHITE, "UTILIZZA: /get "#COL_RED"[id]");else
  2406. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_WHITE, "USAGE: /get "#COL_RED"[id]");
  2407. return 1;}
  2408. player = strval(params);
  2409. if(IsPlayerConnected(player)){
  2410. GetPlayerPos(playerid, Float:X,Float:Y,Float:Z);
  2411. INTERIOR=GetPlayerInterior(playerid);
  2412. GetPlayerName(player, incriminato, sizeof(incriminato)); GetPlayerName(playerid, adminname, sizeof(adminname));
  2413. if(ServerInfo[Language]==1)format(string, sizeof(string), "[ADMIN]: %s teletrasportato %s a se (con veicolo)", adminname, incriminato), SendClientMessageToAll(COLOR_LIGHTRED, string);else
  2414. if(ServerInfo[Language]==2)format(string, sizeof(string), "[ADMIN]: %s teleported %s to him (with his vehicle)", adminname, incriminato), SendClientMessageToAll(COLOR_LIGHTRED, string);
  2415. if(IsPlayerInAnyVehicle(player)) TelePlayerVehicle(player,X,Y,Z,0,INTERIOR);else
  2416. SetPlayerPos(player,X+3,Y,Z);}}
  2417. return 1;}
  2418. //----------------------------------------------------------------------------//
  2419. dcmd_goto(playerid,params[]){
  2420. new Float:X,Float:Y,Float:Z;
  2421. if(Account[playerid][pAdminlevel]<CmdsOptions[Goto]){
  2422. if(ServerInfo[Language]==1)format(string, sizeof(string), "Devi avere livello admin %d per usare questo CMD!!!", CmdsOptions[Goto]), SendClientMessage(playerid, COLOR_LIGHTRED, string);else
  2423. if(ServerInfo[Language]==2)format(string, sizeof(string), "You must be admin level %d to use this CMD!!!", CmdsOptions[Goto]), SendClientMessage(playerid, COLOR_LIGHTRED, string);}else
  2424. if(Account[playerid][pAdminlevel]>=CmdsOptions[Goto]) if(ServerInfo[Goto]==1){
  2425. new tmp[256],INTERIOR, Index; tmp = strtok(params,Index);
  2426. if(!strlen(params)){
  2427. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_WHITE, "UTILIZZA: /goto "#COL_RED"[id]");else
  2428. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_WHITE, "USAGE: /goto "#COL_RED"[id]");
  2429. return 1;}
  2430. player = strval(params);
  2431. if(IsPlayerConnected(player)){
  2432. GetPlayerPos(player, Float:X,Float:Y,Float:Z);
  2433. INTERIOR=GetPlayerInterior(player);
  2434. GetPlayerName(player, incriminato, sizeof(incriminato)); GetPlayerName(playerid, adminname, sizeof(adminname));
  2435. format(string, sizeof(string), "Ti sei teletrasportato da %s", incriminato); SendClientMessage(playerid, COLOR_YELLOW, string);
  2436. format(string, sizeof(string), "[ADMIN]: %s si è teletrasportato da %s", adminname, incriminato); SendClientMessageToAll(COLOR_LIGHTRED, string);
  2437. if(IsPlayerInAnyVehicle(playerid)) TelePlayerVehicle(playerid,X,Y,Z,0,INTERIOR);else
  2438. SetPlayerPos(playerid,X+3,Y,Z);}}
  2439. return 1;}
  2440. //----------------------------------------------------------------------------//
  2441. dcmd_setweather(playerid,params[]){
  2442. new str2[256];
  2443. if(Account[playerid][pAdminlevel]<CmdsOptions[Setweather]){
  2444. if(ServerInfo[Language]==1)format(string, sizeof(string), "Devi avere livello admin %d per usare questo CMD!!!", CmdsOptions[Setweather]), SendClientMessage(playerid, COLOR_LIGHTRED, string);else
  2445. if(ServerInfo[Language]==2)format(string, sizeof(string), "You must be admin level %d to use this CMD!!!", CmdsOptions[Setweather]), SendClientMessage(playerid, COLOR_LIGHTRED, string);}else
  2446. if(Account[playerid][pAdminlevel]>=CmdsOptions[Setweather]) if(ServerInfo[Setweather]==1){
  2447. new tmp[256], Index; tmp = strtok(params,Index);
  2448. if(!strlen(params)){
  2449. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_WHITE, "UTILIZZA: /setweather "#COL_RED"[weather id]");else
  2450. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_WHITE, "USAGE: /setweather "#COL_RED"[weather id]");
  2451. return 1;}
  2452. player = strval(params);
  2453. GetPlayerName(playerid, adminname, sizeof(adminname));
  2454. if(ServerInfo[Language]==1)format(str2, sizeof(str2), "[ADMIN]: %s ha settato il tempo numero %d", adminname, player), SendClientMessageToAll(COLOR_YELLOW, str2);
  2455. if(ServerInfo[Language]==2)format(str2, sizeof(str2), "[ADMIN]: %s has setted weather number %d", adminname, player), SendClientMessageToAll(COLOR_YELLOW, str2);
  2456. SetWeather(player);
  2457. format(str2,sizeof(str2),"Config/OptionsConfig.ini");
  2458. dini_IntSet(str2,"StandardWeather",player);}
  2459. return 1;}
  2460. //----------------------------------------------------------------------------//
  2461. dcmd_autohealplayers(playerid,params[]){
  2462. new str2[256];
  2463. if(Account[playerid][pAdminlevel]<CmdsOptions[AutoHealPlayers]){
  2464. if(ServerInfo[Language]==1)format(string, sizeof(string), "Devi avere livello admin %d per usare questo CMD!!!", CmdsOptions[AutoHealPlayers]), SendClientMessage(playerid, COLOR_LIGHTRED, string);else
  2465. if(ServerInfo[Language]==2)format(string, sizeof(string), "You must be admin level %d to use this CMD!!!", CmdsOptions[AutoHealPlayers]), SendClientMessage(playerid, COLOR_LIGHTRED, string);}else
  2466. if(Account[playerid][pAdminlevel]>=CmdsOptions[AutoHealPlayers]){
  2467. new tmp[256], Index; tmp = strtok(params,Index);
  2468. if(!strlen(params)){
  2469. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_WHITE, "UTILIZZA: /autohealplayers "#COL_RED"[0 - 1]");else
  2470. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_WHITE, "USAGE: /autohealplayers "#COL_RED"[0 - 1]");
  2471. return 1;}
  2472. player = strval(params);
  2473. if(player!=0 && player!=1){
  2474. if(ServerInfo[Language]==1)SendClientMessage(playerid,COLOR_LIGHTRED,"Il valore deve essere '1' per attivarlo, o '0' per disattivarlo");
  2475. if(ServerInfo[Language]==2)SendClientMessage(playerid,COLOR_LIGHTRED,"The value must be '1' to enable it, or '0' to disable it");
  2476. return 1;}
  2477. if(player==0){
  2478. if(Options2[AutoHealPlayers]==0){
  2479. if(ServerInfo[Language]==1)SendClientMessage(playerid,COLOR_LIGHTRED,"l'AutoHealPlayers è già disattivato!");
  2480. if(ServerInfo[Language]==2)SendClientMessage(playerid,COLOR_LIGHTRED,"AutoHealPlayers is already disabled!");
  2481. return 1;}}
  2482. if(player==1){
  2483. if(Options2[AutoHealPlayers]==1){
  2484. if(ServerInfo[Language]==1)SendClientMessage(playerid,COLOR_LIGHTRED,"l'AutoHealPlayers è già attivato!");
  2485. if(ServerInfo[Language]==2)SendClientMessage(playerid,COLOR_LIGHTRED,"AutoHealPlayers is already enabled!");
  2486. return 1;}}
  2487. GetPlayerName(playerid, adminname, sizeof(adminname));
  2488. if(player==0){
  2489. if(ServerInfo[Language]==1)format(str2, sizeof(str2), "[ADMIN]: %s ha disattivato l'AutoHealPlayers", adminname), SendClientMessageToAll(COLOR_YELLOW, str2);
  2490. if(ServerInfo[Language]==2)format(str2, sizeof(str2), "[ADMIN]: %s disabled AutoHealPlayers", adminname), SendClientMessageToAll(COLOR_YELLOW, str2);
  2491. GameTextForPlayer(playerid,"~w~AutoHealPlayers~n~has been ~r~disabled",2000,3);}
  2492. if(player==1){
  2493. if(ServerInfo[Language]==1)format(str2, sizeof(str2), "[ADMIN]: %s ha attivato l'AutoHealPlayers", adminname), SendClientMessageToAll(COLOR_YELLOW, str2);
  2494. if(ServerInfo[Language]==2)format(str2, sizeof(str2), "[ADMIN]: %s enabled AutoHealPlayers", adminname), SendClientMessageToAll(COLOR_YELLOW, str2);
  2495. GameTextForPlayer(playerid,"~w~AutoHealPlayers~n~has been ~g~enabled",2000,3);}
  2496. format(str2,sizeof(str2),"Config/OptionsConfig.ini");
  2497. Options2[AutoHealPlayers]=player;
  2498. dini_IntSet(str2,"AutoHealPlayers",Options2[AutoHealPlayers]);}
  2499. return 1;}
  2500. //----------------------------------------------------------------------------//
  2501. dcmd_settime(playerid,params[]){
  2502. new str2[256];
  2503. if(Account[playerid][pAdminlevel]<CmdsOptions[Settime]){
  2504. if(ServerInfo[Language]==1)format(string, sizeof(string), "Devi avere livello admin %d per usare questo CMD!!!", CmdsOptions[Settime]), SendClientMessage(playerid, COLOR_LIGHTRED, string);else
  2505. if(ServerInfo[Language]==2)format(string, sizeof(string), "You must be admin level %d to use this CMD!!!", CmdsOptions[Settime]), SendClientMessage(playerid, COLOR_LIGHTRED, string);}else
  2506. if(Account[playerid][pAdminlevel]>=CmdsOptions[Settime]) if(ServerInfo[Settime]==1){
  2507. new tmp[256], Index; tmp = strtok(params,Index);
  2508. if(!strlen(params)){
  2509. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_WHITE, "UTILIZZA: /settime "#COL_RED"[orario]");else
  2510. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_WHITE, "USAGE: /settime "#COL_RED"[hour]");
  2511. return 1;}
  2512. player = strval(params);
  2513. GetPlayerName(playerid, adminname, sizeof(adminname));
  2514. if(ServerInfo[Language]==1)format(str2, sizeof(str2), "[ADMIN]: %s ha settato l'orario alle %d:00", adminname, player), SendClientMessageToAll(COLOR_YELLOW, str2);else
  2515. if(ServerInfo[Language]==2)format(str2, sizeof(str2), "[ADMIN]: %s has setted time to %d:00", adminname, player), SendClientMessageToAll(COLOR_YELLOW, str2);
  2516. SetWorldTime(player);
  2517. format(str2,sizeof(str2),"Config/OptionsConfig.ini");
  2518. dini_IntSet(str2,"StandardTime",player);}
  2519. return 1;}
  2520. //----------------------------------------------------------------------------//
  2521. dcmd_makemegodadmin(playerid,params[]){
  2522. #pragma unused params
  2523. new file2[256];
  2524. if(ServerInfo[MakeMeGodAdmin]==1){
  2525. if(!IsPlayerAdmin(playerid)){
  2526. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_LIGHTRED, "Devi essere loggato come RCON ADMIN!!! (/rcon login [password])");else
  2527. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_LIGHTRED, "You must be logged as RCON ADMIN!!! (/rcon login [password])");}else
  2528. if(IsPlayerAdmin(playerid)){
  2529. GetPlayerName(playerid, adminname, sizeof(adminname));
  2530. format(file2, sizeof(file2), "Users/%s.sav", adminname);
  2531. if(ServerInfo[Language]==1)format(string, sizeof(string), "%s è ADMIN SUPREMO [livello %d]", adminname, Options2[MaxAdminLevel]), SendClientMessageToAll(COLOR_LIGHTRED, string),GameTextForPlayer(player,"~b~PROMOSSO",3000,6);else
  2532. if(ServerInfo[Language]==2)format(string, sizeof(string), "%s is GOD ADMIN [level %d]", adminname, Options2[MaxAdminLevel]), SendClientMessageToAll(COLOR_LIGHTRED, string),GameTextForPlayer(player,"~b~PROMOTED",3000,6);
  2533. Account[playerid][pAdminlevel]=Options2[MaxAdminLevel];
  2534. dini_IntSet(file2, "adminlevel", Options2[MaxAdminLevel]);}}
  2535. return 1;}
  2536. //----------------------------------------------------------------------------//
  2537. dcmd_makeadmin(playerid,params[]){
  2538. if(Account[playerid][pAdminlevel]<CmdsOptions[MakeAdmin]){
  2539. if(ServerInfo[Language]==1)format(string, sizeof(string), "Devi avere livello admin %d per usare questo CMD!!!", CmdsOptions[MakeAdmin]), SendClientMessage(playerid, COLOR_LIGHTRED, string);else
  2540. if(ServerInfo[Language]==2)format(string, sizeof(string), "You must be admin level %d to use this CMD!!!", CmdsOptions[MakeAdmin]), SendClientMessage(playerid, COLOR_LIGHTRED, string);}else
  2541. if(Account[playerid][pAdminlevel]>=CmdsOptions[MakeAdmin] || IsPlayerAdmin(playerid)) if(ServerInfo[MakeAdmin]==1){
  2542. new file2[256],tmp[256],tmp2[256],livello, Index; tmp = strtok(params,Index); tmp2 = strtok(params,Index);
  2543. if(!strlen(tmp)){
  2544. if(ServerInfo[Language]==1)SendClientMessage(playerid, COLOR_WHITE, "UTILIZZA: /makeadmin "#COL_RED"[id] [livello]");else
  2545. if(ServerInfo[Language]==2)SendClientMessage(playerid, COLOR_WHITE, "USAGE: /makeadmin "#COL_RED"[id] [level]");
  2546. return 1;}
  2547. player = strval(tmp);
  2548. livello = strval(tmp2);
  2549. if(IsPlayerConnected(player)){
  2550. GetPlayerName(player, incriminato, sizeof(incriminato));
  2551. format(file2, sizeof(file2), "Users/%s.sav", incriminato);
  2552. if(livello>Account[playerid][pAdminlevel] && !IsPlayerAdmin(playerid)){
  2553. if(ServerInfo[Language]==1)SendClientMessage(playerid,COLOR_LIGHTRED,"Non puoi dare un livello admin superiore al tuo!");else
  2554. if(ServerInfo[Language]==2)SendClientMessage(playerid,COLOR_LIGHTRED,"You can't give a higher level than yours!");
  2555. return 1;}else
  2556. if(livello>Options2[MaxAdminLevel]){
  2557. if(ServerInfo[Language]==1)SendClientMessage(playerid,COLOR_LIGHTRED,"ERRORE: Non puoi superare il massimo livello!!");else
  2558. if(ServerInfo[Language]==2)SendClientMessage(playerid,COLOR_LIGHTRED,"ERROR: You can't give a level which is more than MAX LEVEL!!");
  2559. return 1;}
  2560. if(livello<Account[player][pAdminlevel]){
  2561. if(ServerInfo[Language]==1)SendClientMessage(playerid,COLOR_LIGHTRED,"ERRORE: Non puoi degradare un admin!!");else
  2562. if(ServerInfo[Language]==2)SendClientMessage(playerid,COLOR_LIGHTRED,"ERROR: You can't set a lower level to an admin!!");
  2563. return 1;}else
  2564. if(livello<Options2[MaxAdminLevel] && livello>=0){
  2565. GetPlayerName(player, incriminato, sizeof(incriminato)); GetPlayerName(playerid, adminname, sizeof(adminname));
  2566. if(ServerInfo[Language]==1)format(string, sizeof(string), "[ADMIN]: %s ha promosso admin %s [livello %d]", adminname, incriminato, livello), SendClientMessageToAll(COLOR_LIGHTRED, string),GameTextForPlayer(player,"~b~PROMOSSO",3000,6);else
  2567. if(ServerInfo[Language]==2)format(string, sizeof(string), "[ADMIN]: %s promoted %s [level %d]", adminname, incriminato, livello), SendClientMessageToAll(COLOR_LIGHTRED, string),GameTextForPlayer(player,"~b~PROMOTED",3000,6);
  2568. Account[player][pAdminlevel]=livello;
  2569. dini_IntSet(file2, "adminlevel", livello);}}}
  2570. return 1;}
  2571.  
  2572. dcmd_cchat(playerid,params[]){
  2573. #pragma unused params
  2574. if(Account[playerid][pAdminlevel]<CmdsOptions[ClearChat]){
  2575. if(ServerInfo[Language]==1)format(string, sizeof(string), "Devi avere livello admin %d per usare questo CMD!!!", CmdsOptions[ClearChat]), SendClientMessage(playerid, COLOR_LIGHTRED, string);else
  2576. if(ServerInfo[Language]==2)format(string, sizeof(string), "You must be admin level %d to use this CMD!!!", CmdsOptions[ClearChat]), SendClientMessage(playerid, COLOR_LIGHTRED, string);}else
  2577. if(Account[playerid][pAdminlevel]>=CmdsOptions[ClearChat]) if(ServerInfo[ClearChat]==1){
  2578. for(new i=0;i<MAX_SERVER_PLAYERS;i++) SendClientMessageToAll(COLOR_WHITE," ");}else{
  2579. if(ServerInfo[Language]==1)format(str, sizeof(str), "Devi avere livello admin %d per usare questo CMD!!!", CmdsOptions[ClearChat]), SendClientMessage(playerid, COLOR_LIGHTRED, str);else
  2580. if(ServerInfo[Language]==2)format(str, sizeof(str), "You must be admin level %d to use this CMD!!!", CmdsOptions[ClearChat]), SendClientMessage(playerid, COLOR_LIGHTRED, str);}
  2581. return 1;}
  2582.  
  2583. /*******************************************************************************
  2584. * <=[Dialogs]=> *
  2585. *******************************************************************************/
  2586.  
  2587. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]){
  2588. if(dialogid == CmdsMenu){
  2589. if(response){
  2590. //new skin=GetPlayerSkin(playerid);
  2591. GetPlayerName(playerid,name,sizeof(name));
  2592. switch(SKIN[playerid]){
  2593. case 125,124: CriminalsAmmount-=75;
  2594. case 285,287: SWATAmmount-=75;}
  2595. if(listitem == 0){
  2596. GivePlayerWeapon(playerid,MICRO_UZI,100),GivePlayerWeapon(playerid,AK47,100),GivePlayerWeapon(playerid,SPRAY_PAINT,1000),format(string,sizeof(string),"WEAPONS: %s has bought first Weapons Kit for 75$ (/weapons)",name),SendClientMessageToAll(COLOR_GREEN,string);}
  2597. if(listitem == 1){
  2598. GivePlayerWeapon(playerid,TEC9,100),GivePlayerWeapon(playerid,M4,100),GivePlayerWeapon(playerid,FIRE_EXTINGUER,700),format(string,sizeof(string),"WEAPONS: %s has bought second Weapons Kit for 75$ (/weapons)",name),SendClientMessageToAll(COLOR_GREEN,string);}
  2599. if(listitem == 2){
  2600. GivePlayerWeapon(playerid,SNIPER_RIFLE,10),GivePlayerWeapon(playerid,KNIFE,1),GivePlayerWeapon(playerid,SILENCED_PISTOL,100),format(string,sizeof(string),"WEAPONS: %s has bought third Weapons Kit for 75$ (/weapons)",name),SendClientMessageToAll(COLOR_GREEN,string);}
  2601. if(listitem == 3){
  2602. GivePlayerWeapon(playerid,DEAGLE,50),GivePlayerWeapon(playerid,MP5,200),GivePlayerWeapon(playerid,SAWNOFF_SHOTGUN,50),format(string,sizeof(string),"WEAPONS: %s has bought fourth Weapons Kit for 75$ (/weapons)",name),SendClientMessageToAll(COLOR_GREEN,string);}
  2603. if(listitem == 4){
  2604. GivePlayerWeapon(playerid,46,1),format(string,sizeof(string),"WEAPONS: %s has bought a Parachute for 75$ (/weapons)",name),SendClientMessageToAll(COLOR_GREEN,string);}}
  2605. return 1;}
  2606.  
  2607. new file[256];
  2608. format(file,sizeof(file),"VHealthConfig.ini");
  2609. if(dialogid == MenuDialog){
  2610. if(response)if(IsPlayerAdmin(playerid)){
  2611. if(listitem == 0){
  2612. ShowPlayerDialog(playerid, LanguageDialog, DIALOG_STYLE_LIST, "Languages Text:","Italiano\nEnglish", "OK", "ESC");}
  2613. if(listitem == 1){
  2614. ShowPlayerDialog(playerid, BoxColorDialog, DIALOG_STYLE_LIST, "Box Colors:","Red\nYellow\nGreen\nLightgreen\nDarkgreen\nPurple\nBlack\nBlue\nLightblue\nDarkblue\nOrange\nDarkred\nWhite", "OK", "ESC");}
  2615. if(listitem == 2){
  2616. ShowPlayerDialog(playerid, FullHealthColorDialog, DIALOG_STYLE_LIST, "Full Health Color:","Red\nYellow\nGreen\nLightgreen\nDarkgreen\nPurple\nBlack\nBlue\nLightblue\nDarkblue\nOrange\nDarkred\nWhite", "OK", "ESC");}
  2617. if(listitem == 3){
  2618. ShowPlayerDialog(playerid, HealthColorDialog, DIALOG_STYLE_LIST, "Vehicle Health Color:","Red\nYellow\nGreen\nLightgreen\nDarkgreen\nPurple\nBlack\nBlue\nLightblue\nDarkblue\nOrange\nDarkred\nWhite", "OK", "ESC");}
  2619. if(listitem == 4){
  2620. ShowPlayerDialog(playerid, TextColorDialog, DIALOG_STYLE_LIST, "Text Color","Red\nYellow\nGreen\nLightgreen\nDarkgreen\nPurple\nBlack\nBlue\nLightblue\nDarkblue\nOrange\nDarkred\nWhite", "OK", "ESC");}}
  2621. return 1;}
  2622.  
  2623. if(dialogid == LanguageDialog){
  2624. if(response)if(IsPlayerAdmin(playerid)){
  2625. format(file,sizeof(file),"VHealthConfig.ini");
  2626. if(listitem == 0){
  2627. dini_IntSet(file,"TextLanguage",1);
  2628. Options[TextLanguage]=1;}
  2629. if(listitem == 1){
  2630. dini_IntSet(file,"TextLanguage",2);
  2631. Options[TextLanguage]=2;}
  2632. if(listitem == 2){
  2633. dini_IntSet(file,"TextLanguage",3);
  2634. Options[TextLanguage]=3;}}
  2635. if(Options[TextLanguage]==1)ShowPlayerDialog(playerid, MenuDialog, DIALOG_STYLE_LIST, "Opzioni SegnaVita:","Text Language\nBox Color\nFullHealth Color\nHealth Color\nText Color", "Change", "Esc");else
  2636. if(Options[TextLanguage]==2)ShowPlayerDialog(playerid, MenuDialog, DIALOG_STYLE_LIST, "VehicleHealth Options:","Text Language\nBox Color\nFullHealth Color\nHealth Color\nText Color", "Change", "Esc");
  2637. return 1;}
  2638.  
  2639. if(dialogid == BoxColorDialog){
  2640. if(response)if(IsPlayerAdmin(playerid)){
  2641. format(file,sizeof(file),"VHealthConfig.ini");
  2642. if(listitem == 0){
  2643. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2644. TextDrawBoxColor(BlackIndicator[i], ROSSO);
  2645. dini_IntSet(file,"Text1Color",1);}}
  2646. if(listitem == 1){
  2647. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2648. TextDrawBoxColor(BlackIndicator[i], GIALLO);
  2649. dini_IntSet(file,"Text1Color",2);}}
  2650. if(listitem == 2){
  2651. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2652. TextDrawBoxColor(BlackIndicator[i], VERDE);
  2653. dini_IntSet(file,"Text1Color",3);}}
  2654. if(listitem == 3){
  2655. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2656. TextDrawBoxColor(BlackIndicator[i], VERDE_CHIARO);
  2657. dini_IntSet(file,"Text1Color",4);}}
  2658. if(listitem == 4){
  2659. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2660. TextDrawBoxColor(BlackIndicator[i], VERDE_SCURO);
  2661. dini_IntSet(file,"Text1Color",5);}}
  2662. if(listitem == 5){
  2663. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2664. TextDrawBoxColor(BlackIndicator[i], FUCSIA);
  2665. dini_IntSet(file,"Text1Color",6);}}
  2666. if(listitem == 6){
  2667. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2668. TextDrawBoxColor(BlackIndicator[i], NERO);
  2669. dini_IntSet(file,"Text1Color",7);}}
  2670. if(listitem == 7){
  2671. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2672. TextDrawBoxColor(BlackIndicator[i], BLU);
  2673. dini_IntSet(file,"Text1Color",8);}}
  2674. if(listitem == 8){
  2675. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2676. TextDrawBoxColor(BlackIndicator[i], AZZURRO);
  2677. dini_IntSet(file,"Text1Color",9);}}
  2678. if(listitem == 9){
  2679. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2680. TextDrawBoxColor(BlackIndicator[i], BLU_SCURO);
  2681. dini_IntSet(file,"Text1Color",10);}}
  2682. if(listitem == 10){
  2683. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2684. TextDrawBoxColor(BlackIndicator[i], ARANCIONE);
  2685. dini_IntSet(file,"Text1Color",11);}}
  2686. if(listitem == 11){
  2687. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2688. TextDrawBoxColor(BlackIndicator[i], ROSSO_SCURO);
  2689. dini_IntSet(file,"Text1Color",12);}}
  2690. if(listitem == 12){
  2691. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2692. TextDrawBoxColor(BlackIndicator[i], BIANCO);
  2693. dini_IntSet(file,"Text1Color",13);}}}
  2694. if(Options[TextLanguage]==1)ShowPlayerDialog(playerid, MenuDialog, DIALOG_STYLE_LIST, "Opzioni SegnaVita:","Text Language\nBox Color\nFullHealth Color\nHealth Color\nText Color", "Change", "Esc");else
  2695. if(Options[TextLanguage]==2)ShowPlayerDialog(playerid, MenuDialog, DIALOG_STYLE_LIST, "VehicleHealth Options:","Text Language\nBox Color\nFullHealth Color\nHealth Color\nText Color", "Change", "Esc");
  2696. return 1;}
  2697.  
  2698. if(dialogid == FullHealthColorDialog){
  2699. if(response)if(IsPlayerAdmin(playerid)){
  2700. format(file,sizeof(file),"VHealthConfig.ini");
  2701. if(listitem == 0){
  2702. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2703. TextDrawBoxColor(FullHealth[i], ROSSO);
  2704. dini_IntSet(file,"Text2Color",1);}}
  2705. if(listitem == 1){
  2706. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2707. TextDrawBoxColor(FullHealth[i], GIALLO);
  2708. dini_IntSet(file,"Text2Color",2);}}
  2709. if(listitem == 2){
  2710. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2711. TextDrawBoxColor(FullHealth[i], VERDE);
  2712. dini_IntSet(file,"Text2Color",3);}}
  2713. if(listitem == 3){
  2714. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2715. TextDrawBoxColor(FullHealth[i], VERDE_CHIARO);
  2716. dini_IntSet(file,"Text2Color",4);}}
  2717. if(listitem == 4){
  2718. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2719. TextDrawBoxColor(FullHealth[i], VERDE_SCURO);
  2720. dini_IntSet(file,"Text2Color",5);}}
  2721. if(listitem == 5){
  2722. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2723. TextDrawBoxColor(FullHealth[i], FUCSIA);
  2724. dini_IntSet(file,"Text2Color",6);}}
  2725. if(listitem == 6){
  2726. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2727. TextDrawBoxColor(FullHealth[i], NERO);
  2728. dini_IntSet(file,"Text2Color",7);}}
  2729. if(listitem == 7){
  2730. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2731. TextDrawBoxColor(FullHealth[i], BLU);
  2732. dini_IntSet(file,"Text2Color",8);}}
  2733. if(listitem == 8){
  2734. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2735. TextDrawBoxColor(FullHealth[i], AZZURRO);
  2736. dini_IntSet(file,"Text2Color",9);}}
  2737. if(listitem == 9){
  2738. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2739. TextDrawBoxColor(FullHealth[i], BLU_SCURO);
  2740. dini_IntSet(file,"Text2Color",10);}}
  2741. if(listitem == 10){
  2742. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2743. TextDrawBoxColor(FullHealth[i], ARANCIONE);
  2744. dini_IntSet(file,"Text2Color",11);}}
  2745. if(listitem == 11){
  2746. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2747. TextDrawBoxColor(FullHealth[i], ROSSO_SCURO);
  2748. dini_IntSet(file,"Text2Color",12);}}
  2749. if(listitem == 12){
  2750. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2751. TextDrawBoxColor(FullHealth[i], BIANCO);
  2752. dini_IntSet(file,"Text2Color",13);}}}
  2753. if(Options[TextLanguage]==1)ShowPlayerDialog(playerid, MenuDialog, DIALOG_STYLE_LIST, "Opzioni SegnaVita:","Text Language\nBox Color\nFullHealth Color\nHealth Color\nText Color", "Change", "Esc");else
  2754. if(Options[TextLanguage]==2)ShowPlayerDialog(playerid, MenuDialog, DIALOG_STYLE_LIST, "VehicleHealth Options:","Text Language\nBox Color\nFullHealth Color\nHealth Color\nText Color", "Change", "Esc");
  2755. return 1;}
  2756.  
  2757. if(dialogid == HealthColorDialog){
  2758. if(response)if(IsPlayerAdmin(playerid)){
  2759. format(file,sizeof(file),"VHealthConfig.ini");
  2760. if(listitem == 0){
  2761. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2762. TextDrawBoxColor(VehicleHealth[i], ROSSO);
  2763. dini_IntSet(file,"Text3Color",1);}}
  2764. if(listitem == 1){
  2765. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2766. TextDrawBoxColor(VehicleHealth[i], GIALLO);
  2767. dini_IntSet(file,"Text3Color",2);}}
  2768. if(listitem == 2){
  2769. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2770. TextDrawBoxColor(VehicleHealth[i], VERDE);
  2771. dini_IntSet(file,"Text3Color",3);}}
  2772. if(listitem == 3){
  2773. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2774. TextDrawBoxColor(VehicleHealth[i], VERDE_CHIARO);
  2775. dini_IntSet(file,"Text3Color",4);}}
  2776. if(listitem == 4){
  2777. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2778. TextDrawBoxColor(VehicleHealth[i], VERDE_SCURO);
  2779. dini_IntSet(file,"Text3Color",5);}}
  2780. if(listitem == 5){
  2781. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2782. TextDrawBoxColor(VehicleHealth[i], FUCSIA);
  2783. dini_IntSet(file,"Text3Color",6);}}
  2784. if(listitem == 6){
  2785. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2786. TextDrawBoxColor(VehicleHealth[i], NERO);
  2787. dini_IntSet(file,"Text3Color",7);}}
  2788. if(listitem == 7){
  2789. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2790. TextDrawBoxColor(VehicleHealth[i], BLU);
  2791. dini_IntSet(file,"Text3Color",8);}}
  2792. if(listitem == 8){
  2793. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2794. TextDrawBoxColor(VehicleHealth[i], AZZURRO);
  2795. dini_IntSet(file,"Text3Color",9);}}
  2796. if(listitem == 9){
  2797. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2798. TextDrawBoxColor(VehicleHealth[i], BLU_SCURO);
  2799. dini_IntSet(file,"Text3Color",10);}}
  2800. if(listitem == 10){
  2801. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2802. TextDrawBoxColor(VehicleHealth[i], ARANCIONE);
  2803. dini_IntSet(file,"Text3Color",11);}}
  2804. if(listitem == 11){
  2805. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2806. TextDrawBoxColor(VehicleHealth[i], ROSSO_SCURO);
  2807. dini_IntSet(file,"Text3Color",12);}}
  2808. if(listitem == 12){
  2809. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2810. TextDrawBoxColor(VehicleHealth[i], BIANCO);
  2811. dini_IntSet(file,"Text3Color",13);}}}
  2812. if(Options[TextLanguage]==1)ShowPlayerDialog(playerid, MenuDialog, DIALOG_STYLE_LIST, "Opzioni SegnaVita:","Text Language\nBox Color\nFullHealth Color\nHealth Color\nText Color", "Change", "Esc");else
  2813. if(Options[TextLanguage]==2)ShowPlayerDialog(playerid, MenuDialog, DIALOG_STYLE_LIST, "VehicleHealth Options:","Text Language\nBox Color\nFullHealth Color\nHealth Color\nText Color", "Change", "Esc");
  2814. return 1;}
  2815.  
  2816. if(dialogid == TextColorDialog){
  2817. if(response)if(IsPlayerAdmin(playerid)){
  2818. format(file,sizeof(file),"VHealthConfig.ini");
  2819. if(listitem == 0){
  2820. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2821. TextDrawColor(NameText[i], ROSSO);
  2822. dini_IntSet(file,"Text4Color",1);}}
  2823. if(listitem == 1){
  2824. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2825. TextDrawColor(NameText[i], GIALLO);
  2826. dini_IntSet(file,"Text4Color",2);}}
  2827. if(listitem == 2){
  2828. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2829. TextDrawColor(NameText[i], VERDE);
  2830. dini_IntSet(file,"Text4Color",3);}}
  2831. if(listitem == 3){
  2832. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2833. TextDrawColor(NameText[i], VERDE_CHIARO);
  2834. dini_IntSet(file,"Text4Color",4);}}
  2835. if(listitem == 4){
  2836. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2837. TextDrawColor(NameText[i], VERDE_SCURO);
  2838. dini_IntSet(file,"Text4Color",5);}}
  2839. if(listitem == 5){
  2840. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2841. TextDrawColor(NameText[i], FUCSIA);
  2842. dini_IntSet(file,"Text4Color",6);}}
  2843. if(listitem == 6){
  2844. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2845. TextDrawColor(NameText[i], NERO);
  2846. dini_IntSet(file,"Text4Color",7);}}
  2847. if(listitem == 7){
  2848. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2849. TextDrawColor(NameText[i], BLU);
  2850. dini_IntSet(file,"Text4Color",8);}}
  2851. if(listitem == 8){
  2852. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2853. TextDrawColor(NameText[i], AZZURRO);
  2854. dini_IntSet(file,"Text4Color",9);}}
  2855. if(listitem == 9){
  2856. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2857. TextDrawColor(NameText[i], BLU_SCURO);
  2858. dini_IntSet(file,"Text4Color",10);}}
  2859. if(listitem == 10){
  2860. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2861. TextDrawColor(NameText[i], ARANCIONE);
  2862. dini_IntSet(file,"Text4Color",11);}}
  2863. if(listitem == 11){
  2864. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2865. TextDrawColor(NameText[i], ROSSO_SCURO);
  2866. dini_IntSet(file,"Text4Color",12);}}
  2867. if(listitem == 12){
  2868. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2869. TextDrawColor(NameText[i], BIANCO);
  2870. dini_IntSet(file,"Text4Color",13);}}}
  2871. if(Options[TextLanguage]==1)ShowPlayerDialog(playerid, MenuDialog, DIALOG_STYLE_LIST, "Opzioni SegnaVita:","Text Language\nBox Color\nFullHealth Color\nHealth Color\nText Color", "Change", "Esc");else
  2872. if(Options[TextLanguage]==2)ShowPlayerDialog(playerid, MenuDialog, DIALOG_STYLE_LIST, "VehicleHealth Options:","Text Language\nBox Color\nFullHealth Color\nHealth Color\nText Color", "Change", "Esc");
  2873. return 1;}
  2874. return 1;}
  2875.  
  2876. /*******************************************************************************
  2877. * <=[ONPlayerText]=> *
  2878. *******************************************************************************/
  2879.  
  2880. public OnPlayerText(playerid, text[]){
  2881.  
  2882. if(text[0] == '#' && Account[playerid][pAdminlevel]>=1){
  2883. new string4[256]; GetPlayerName(playerid,name,sizeof(name));
  2884. if(ServerInfo[Language]==1)format(string4,sizeof(string4)," <Admin Chat> \"%s\" scrive: %s",name, text[1]), MessageToAdmins(COLOR_LIGHTGREEN,string4);else
  2885. if(ServerInfo[Language]==2)format(string4,sizeof(string4)," <Admin Chat> \"%s\" writes: %s",name, text[1]), MessageToAdmins(COLOR_LIGHTGREEN,string4);
  2886. return 0;}
  2887.  
  2888. if(text[0] == '*'){
  2889. new string4[128];
  2890. if(Account[playerid][gTeam]==TEAM_TERRORISTS){
  2891. GetPlayerName(playerid,name,sizeof(name));
  2892. format(string4,sizeof(string4)," <TeamChat> "#COL_RED"%s"#COL_WHITE": %s",name, text[1]), MessageToTerrorists(TERRORISTS_CHAT,string4);}
  2893. if(Account[playerid][gTeam]==TEAM_SWAT){
  2894. GetPlayerName(playerid,name,sizeof(name));
  2895. format(string4,sizeof(string4)," <TeamChat> "#COL_BLUE"%s"#COL_WHITE": %s",name, text[1]), MessageToSWAT(SWAT_CHAT,string4);}
  2896. return 0;}
  2897.  
  2898. if(Account[playerid][pMuted]==1){
  2899. GetPlayerName(playerid,name,sizeof(name));
  2900. if(Account[playerid][pMuteWarnings]==Options2[MaxMuteWarnings]){
  2901. if(ServerInfo[Language]==1)format(string, sizeof(string), "%s è stato kickato [Avvertimenti Mute: %d/%d]",name,Account[playerid][pMuteWarnings],Options2[MaxMuteWarnings]),SendClientMessageToAll(COLOR_YELLOW,string),GameTextForPlayer(player,"~r~KICKATO!!!~n~[Motivo: Flood]",20000,3);else
  2902. if(ServerInfo[Language]==2)format(string, sizeof(string), "%s has been KICKED [Mute Warning: %d/%d]",name,Account[playerid][pMuteWarnings],Options2[MaxMuteWarnings]),SendClientMessageToAll(COLOR_YELLOW,string),GameTextForPlayer(player,"~r~KICKED!!!~n~[Reason: Flood]",20000,3);
  2903. Account[playerid][pMuteWarnings]=0;Kick(playerid);
  2904. return 0;}
  2905. if(Account[playerid][pMuteWarnings]<Options2[MaxMuteWarnings]){
  2906. if(ServerInfo[Language]==1)format(string, sizeof(string), "Non puoi parlare!!! Sei stato mutato!!! [Avvertimento: %d/%d]",Account[playerid][pMuteWarnings],Options2[MaxMuteWarnings]),SendClientMessage(playerid,COLOR_LIGHTRED,string),GameTextForPlayer(playerid,"~r~Sei MUTATO!!!~n~Non puoi chattare.",2000,3);else
  2907. if(ServerInfo[Language]==2)format(string, sizeof(string), "You can't speak!!! You're Muted!!! [Warning: %d/%d]",Account[playerid][pMuteWarnings],Options2[MaxMuteWarnings]),SendClientMessage(playerid,COLOR_LIGHTRED,string),GameTextForPlayer(playerid,"~r~You're MUTED!!!~n~You can't chat.",2000,3);
  2908. Account[playerid][pMuteWarnings]++;
  2909. return 0;}}
  2910.  
  2911. if(ServerInfo[AntiFlood]==1){
  2912. if(Account[playerid][pFlood]==0){
  2913. SetTimerEx("FloodTimer",Options2[MaxFloodSeconds]*1000,0,"d",playerid);
  2914. Account[playerid][pFlood]=1;
  2915. return 1;}
  2916. else if(Account[playerid][pFlood]==1){
  2917. if(Account[playerid][pFloodding]==Options2[MaxFloodTimes]-1){
  2918. GetPlayerName(playerid,name,sizeof(name));
  2919. Account[playerid][pFloodding]++;
  2920. if(ServerInfo[Language]==1)format(str,sizeof(str),"ANTI-FLOOD: %s è stato kickato!!! [Motivo: Flood]",name),SendClientMessageToAll(COLOR_YELLOW,str),print(str);else
  2921. if(ServerInfo[Language]==2)format(str,sizeof(str),"ANTI-FLOOD: %s has been kicked!!! [Reason: Flood]",name),SendClientMessageToAll(COLOR_YELLOW,str),print(str);
  2922. Account[playerid][pFloodding]=0;
  2923. Kick(playerid);}
  2924. else if(Account[playerid][pFloodding]<Options2[MaxFloodTimes]){
  2925. Account[playerid][pFloodding]++;
  2926. if(ServerInfo[Language]==1)format(str,sizeof(str),"ANTI-FLOOD: Non floodare!!! Avvertimento %d/%d",Account[playerid][pFloodding], Options2[MaxFloodTimes]),SendClientMessage(playerid,COLOR_LIGHTRED,str);else
  2927. if(ServerInfo[Language]==2)format(str,sizeof(str),"ANTI-FLOOD: Don't Flood!!! Warning %d/%d",Account[playerid][pFloodding], Options2[MaxFloodTimes]),SendClientMessage(playerid,COLOR_LIGHTRED,str);
  2928. return 0;}}}
  2929. return 0;}
  2930.  
  2931. /*******************************************************************************
  2932. * <=[Stocks]=> *
  2933. *******************************************************************************/
  2934.  
  2935. stock MessageToAdmins(color,const stringa2[]){
  2936. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2937. if(IsPlayerConnected(i) == 1) if(Account[i][pAdminlevel]>=1){SendClientMessage(i, color, stringa2);}}
  2938. return 1;}
  2939.  
  2940. stock MessageToTerrorists(color,const stringa2[]){
  2941. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2942. if(IsPlayerConnected(i)==1){
  2943. if(Account[i][gTeam]==TEAM_TERRORISTS){
  2944. SendClientMessage(i, color, stringa2);}}}
  2945. return 1;}
  2946.  
  2947. stock MessageToSWAT(color,const stringa2[]){
  2948. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2949. if(IsPlayerConnected(i)==1){
  2950. if(Account[i][gTeam]==TEAM_SWAT){
  2951. SendClientMessage(i, color, stringa2);}}}
  2952. return 1;}
  2953.  
  2954. stock TelePlayerVehicle(playerid,Float:X,Float:Y,Float:Z,Float:ROT,INT){
  2955. new VehicleID = GetPlayerVehicleID(playerid);
  2956. SetVehiclePos(VehicleID,X,Y,Z); LinkVehicleToInterior(VehicleID,INT);SetVehicleZAngle(VehicleID,ROT);
  2957. SetVehicleVirtualWorld(VehicleID, GetPlayerVirtualWorld(playerid));
  2958. return 1;}
  2959.  
  2960. stock udb_hash(buf[]) {
  2961. new length=strlen(buf);
  2962. new s1 = 1; new s2 = 0; new n;
  2963. for (n=0; n<length; n++){
  2964. s1 = (s1 + buf[n]) % 65521;
  2965. s2 = (s2 + s1) % 65521;}
  2966. return (s2 << 16) + s1;}
  2967.  
  2968. stock SendMessageToCriminals(color,const str3[]){
  2969. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2970. if(gTeam[i]==TEAM_TERRORISTS){
  2971. SendClientMessage(i,color,str3);}}
  2972. return 1;}
  2973.  
  2974. stock SendMessageToSWAT(color,const str3[]){
  2975. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2976. if(gTeam[i]==TEAM_SWAT){
  2977. SendClientMessage(i,color,str3);}}
  2978. return 1;}
  2979.  
  2980. stock SendRadioTeamMessage(team,color,const str4[]){
  2981. new str5[256];
  2982. if(team==TEAM_TERRORISTS){
  2983. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2984. if(Account[i][gTeam]==TEAM_TERRORISTS){
  2985. format(str5,sizeof(str5),"** TEAM TERRORISTS INFO: %s **", str4);
  2986. SendClientMessage(i,color,str5);}}}
  2987. if(team==TEAM_SWAT){
  2988. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  2989. if(Account[i][gTeam]==TEAM_SWAT){
  2990. format(str5,sizeof(str5),"** TEAM SWAT INFO: %s **", str4);
  2991. SendClientMessage(i,color,str5);}}}
  2992. return 1;}
  2993.  
  2994. stock SpawnJetpack(){
  2995. Jetpack=CreatePickup(370, 1, 268.7833,1883.2793,-30.0938);}
  2996.  
  2997. stock SetCorrectColor(){
  2998. new file[256];
  2999. new Colore1,Colore2,Colore3,Colore4;
  3000. format(file,sizeof(file),"VHealthConfig.ini");
  3001. Options[TextLanguage]=dini_Int(file,"TextLanguage");
  3002. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  3003. Colore1=dini_Int(file,"Text1Color");
  3004. if(Colore1==1)TextDrawBoxColor(BlackIndicator[i],ROSSO);
  3005. if(Colore1==2)TextDrawBoxColor(BlackIndicator[i],GIALLO);
  3006. if(Colore1==3)TextDrawBoxColor(BlackIndicator[i],VERDE);
  3007. if(Colore1==4)TextDrawBoxColor(BlackIndicator[i],VERDE_CHIARO);
  3008. if(Colore1==5)TextDrawBoxColor(BlackIndicator[i],VERDE_SCURO);
  3009. if(Colore1==6)TextDrawBoxColor(BlackIndicator[i],FUCSIA);
  3010. if(Colore1==7)TextDrawBoxColor(BlackIndicator[i],NERO);
  3011. if(Colore1==8)TextDrawBoxColor(BlackIndicator[i],BLU);
  3012. if(Colore1==9)TextDrawBoxColor(BlackIndicator[i],AZZURRO);
  3013. if(Colore1==10)TextDrawBoxColor(BlackIndicator[i],BLU_SCURO);
  3014. if(Colore1==11)TextDrawBoxColor(BlackIndicator[i],ARANCIONE);
  3015. if(Colore1==12)TextDrawBoxColor(BlackIndicator[i],ROSSO_SCURO);
  3016. if(Colore1==13)TextDrawBoxColor(BlackIndicator[i],BIANCO);
  3017. Colore2=dini_Int(file,"Text2Color");
  3018. if(Colore2==1)TextDrawBoxColor(FullHealth[i],ROSSO);
  3019. if(Colore2==2)TextDrawBoxColor(FullHealth[i],GIALLO);
  3020. if(Colore2==3)TextDrawBoxColor(FullHealth[i],VERDE);
  3021. if(Colore2==4)TextDrawBoxColor(FullHealth[i],VERDE_CHIARO);
  3022. if(Colore2==5)TextDrawBoxColor(FullHealth[i],VERDE_SCURO);
  3023. if(Colore2==6)TextDrawBoxColor(FullHealth[i],FUCSIA);
  3024. if(Colore2==7)TextDrawBoxColor(FullHealth[i],NERO);
  3025. if(Colore2==8)TextDrawBoxColor(FullHealth[i],BLU);
  3026. if(Colore2==9)TextDrawBoxColor(FullHealth[i],AZZURRO);
  3027. if(Colore2==10)TextDrawBoxColor(FullHealth[i],BLU_SCURO);
  3028. if(Colore2==11)TextDrawBoxColor(FullHealth[i],ARANCIONE);
  3029. if(Colore2==12)TextDrawBoxColor(FullHealth[i],ROSSO_SCURO);
  3030. if(Colore2==13)TextDrawBoxColor(FullHealth[i],BIANCO);
  3031. Colore3=dini_Int(file,"Text3Color");
  3032. if(Colore3==1)TextDrawBoxColor(VehicleHealth[i],ROSSO);
  3033. if(Colore3==2)TextDrawBoxColor(VehicleHealth[i],GIALLO);
  3034. if(Colore3==3)TextDrawBoxColor(VehicleHealth[i],VERDE);
  3035. if(Colore3==4)TextDrawBoxColor(VehicleHealth[i],VERDE_CHIARO);
  3036. if(Colore3==5)TextDrawBoxColor(VehicleHealth[i],VERDE_SCURO);
  3037. if(Colore3==6)TextDrawBoxColor(VehicleHealth[i],FUCSIA);
  3038. if(Colore3==7)TextDrawBoxColor(VehicleHealth[i],NERO);
  3039. if(Colore3==8)TextDrawBoxColor(VehicleHealth[i],BLU);
  3040. if(Colore3==9)TextDrawBoxColor(VehicleHealth[i],AZZURRO);
  3041. if(Colore3==10)TextDrawBoxColor(VehicleHealth[i],BLU_SCURO);
  3042. if(Colore3==11)TextDrawBoxColor(VehicleHealth[i],ARANCIONE);
  3043. if(Colore3==12)TextDrawBoxColor(VehicleHealth[i],ROSSO_SCURO);
  3044. if(Colore3==13)TextDrawBoxColor(VehicleHealth[i],BIANCO);
  3045. Colore4=dini_Int(file,"Text4Color");
  3046. if(Colore4==1)TextDrawColor(NameText[i],ROSSO);
  3047. if(Colore4==2)TextDrawColor(NameText[i],GIALLO);
  3048. if(Colore4==3)TextDrawColor(NameText[i],VERDE);
  3049. if(Colore4==4)TextDrawColor(NameText[i],VERDE_CHIARO);
  3050. if(Colore4==5)TextDrawColor(NameText[i],VERDE_SCURO);
  3051. if(Colore4==6)TextDrawColor(NameText[i],FUCSIA);
  3052. if(Colore4==7)TextDrawColor(NameText[i],NERO);
  3053. if(Colore4==8)TextDrawColor(NameText[i],BLU);
  3054. if(Colore4==9)TextDrawColor(NameText[i],AZZURRO);
  3055. if(Colore4==10)TextDrawColor(NameText[i],BLU_SCURO);
  3056. if(Colore4==11)TextDrawColor(NameText[i],ARANCIONE);
  3057. if(Colore4==12)TextDrawColor(NameText[i],ROSSO_SCURO);
  3058. if(Colore4==13)TextDrawColor(NameText[i],BIANCO);}}
  3059.  
  3060. /*******************************************************************************
  3061. * <=[TIMERS]=> *
  3062. *******************************************************************************/
  3063.  
  3064. public SpawnedPlayer(playerid){
  3065. Spawned[playerid]=true;
  3066. return 1;}
  3067.  
  3068. public PlayerInfoTimer(){
  3069. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  3070. Account[i][Score]=GetPlayerScore(i);
  3071. GetPlayerHealth(i,PlayerHealth);
  3072. if(Account[i][gTeam]==TEAM_TERRORISTS){
  3073. if(ServerInfo[Language]==1)format(string,sizeof(string),"Morti ~w~%d~n~~r~Uccisioni ~w~%d~n~~y~CompagniUccisi ~w~%d~n~~p~Punti ~w~%d~n~~g~Salute ~w~%.f~n~~r~DENARO TERRORISTI: ~w~%d$ ~n~~b~denaro polizia: ~w~%d", Account[i][Deaths], Account[i][GoodKillings], Account[i][BadKillings], Account[i][Score], PlayerHealth+1, CriminalsAmmount, SWATAmmount);
  3074. if(ServerInfo[Language]==2)format(string,sizeof(string),"~y~Score ~w~%d~n~~g~Health ~w~%.f~n~~r~terr. cash: ~w~%d$ ~n~~b~police cash: ~w~%d$", Account[i][Score], PlayerHealth+1, CriminalsAmmount, SWATAmmount);
  3075. TextDrawSetString(STATStext[i],string);}
  3076. if(Account[i][gTeam]==TEAM_SWAT){
  3077. if(ServerInfo[Language]==1)format(string,sizeof(string),"Morti ~w~%d~n~~r~Uccisioni ~w~%d~n~~y~CompagniUccisi ~w~%d~n~~p~Punti ~w~%d~n~~g~Salute ~w~%.f~n~~u~DENARO POLIZIA: ~w~%d ~n~~b~denaro terroristi: ~w~%d", Account[i][Deaths], Account[i][GoodKillings], Account[i][BadKillings], Account[i][Score], PlayerHealth+1, SWATAmmount, CriminalsAmmount);
  3078. if(ServerInfo[Language]==2)format(string,sizeof(string),"~y~Score ~w~%d~n~~g~Health ~w~%.f~n~~u~police cash: ~b~%d$ ~n~~r~terr. cash: ~w~%d$", Account[i][Score], PlayerHealth+1, SWATAmmount, CriminalsAmmount);
  3079. TextDrawSetString(STATStext[i],string);}
  3080. if(Account[i][gTeam]==TEAM_TERRORISTS){
  3081. GivePlayerMoney(i,ResetPlayerMoney(i)+CriminalsAmmount-1);}
  3082. if(Account[i][gTeam]==TEAM_SWAT){
  3083. GivePlayerMoney(i,ResetPlayerMoney(i)+SWATAmmount-1);}}
  3084. return 1;}
  3085.  
  3086.  
  3087. public UnMutePlayerTimer(playerid){
  3088. GetPlayerName(playerid, incriminato, sizeof(incriminato));
  3089. if(ServerInfo[Language]==1)format(str, sizeof(str), "%s è stato smutato", incriminato), SendClientMessageToAll(COLOR_YELLOW, str);else
  3090. if(ServerInfo[Language]==2)format(str, sizeof(str), "%s has been unmuted", incriminato), SendClientMessageToAll(COLOR_YELLOW, str);
  3091. if(ServerInfo[Language]==1)GameTextForPlayer(playerid,"~g~SMUTATO!!!",5000,3);else
  3092. if(ServerInfo[Language]==2)GameTextForPlayer(playerid,"~g~UNMUTED!!!",5000,3);
  3093. Account[playerid][pMuted]=false;
  3094. Account[playerid][pMuteWarnings]=0;
  3095. return 1;}
  3096.  
  3097. public FloodTimer(playerid){
  3098. Account[playerid][pFlood]=0;
  3099. return 1;}
  3100.  
  3101. public HealPlayers(){
  3102. if(Options2[AutoHealPlayers]==1){
  3103. new Float:ph;
  3104. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  3105. if(IsPlayerConnected(i)){
  3106. if(Spawned[i]==true){
  3107. GetPlayerHealth(i,ph);
  3108. if(ph<99){
  3109. SetPlayerHealth(i,ph+1);}}}}}
  3110. return 1;}
  3111.  
  3112. public ReCountForBalance(){
  3113. if(Options2[BalanceSystem]==1){
  3114. new VarT=0;
  3115. new VarC=0;
  3116. for(new i=0;i<MAX_SERVER_PLAYERS;i++)if(IsPlayerConnected(i))if(!IsPlayerNPC(i)){
  3117. if(Spawned[i]==true){
  3118. switch(SKIN[i]){
  3119. case 29,30,101,121,122,123,131,70:{
  3120. VarT++;}
  3121. case 164,165,166,246,276,285,286,274,278:{
  3122. VarC++;}}}}
  3123. TerroristsCount=VarT;
  3124. SWATCount=VarC;}
  3125. return 1;}
  3126.  
  3127. public AutomaticMessages(){
  3128. new Mess; Mess=random(8);
  3129. if(ServerInfo[Language]==1){
  3130. switch (Mess){
  3131. case 0: SendClientMessageToAll(COLOR_WHITE,"~r~SUGGERIMENTO: ~y~Digita "#COL_RED"/cmd"#COL_WHITE" per vedere tutti i comandi a tua disposizione");
  3132. case 1: SendClientMessageToAll(COLOR_LIGHTRED,"~r~DIVIETO: "#COL_WHITE"E' proibito servirsi di "#COL_RED"s0beit "#COL_WHITE"o altre mod identificabili come Hacks!");
  3133. case 2: SendClientMessageToAll(COLOR_WHITE,"~r~IL GIOCO: ~y~Polizia contro Terroristi. Il team che finisce il denaro perde!");
  3134. case 3: SendClientMessageToAll(COLOR_WHITE,"~r~SUGGERIMENTO: ~y~Ti servono armi? digita "#COL_RED"/weapons"#COL_WHITE" e scegli un kit!");
  3135. case 4: SendClientMessageToAll(COLOR_WHITE,"~r~SUGGERIMENTO: ~y~AutoHealPlayers attivo? La tua vita si rigenererà 1 punto ogni 2 secondi!");
  3136. case 5: SendClientMessageToAll(COLOR_WHITE,"~r~SUGGERIMENTO: ~y~usa "#COL_RED"* [testo]"#COL_WHITE" per parlare in "#COL_CYAN"TEAM CHAT!");
  3137. case 6: SendClientMessageToAll(COLOR_WHITE,"~r~SUGGERIMENTO: ~y~Se da scemo tu volessi suicidarti, usa "#COL_RED"/kill");
  3138. case 7: SendClientMessageToAll(COLOR_WHITE,"~r~SUGGERIMENTO: ~y~digita "#COL_RED"/pm [id] [messaggio]"#COL_WHITE" se devi mandare un messaggio privato a qualcuno!");
  3139. case 8: SendClientMessageToAll(COLOR_WHITE,"~r~SUGGERIMENTO: ~y~Ci sono due garage per la riparazione dei veicoli!");}}
  3140. if(ServerInfo[Language]==2){
  3141. switch (Mess){
  3142. case 0: SendClientMessageToAll(COLOR_YELLOW,"SUGGESTION: Type"#COL_RED" /cmd"#COL_YELLOW" to see which are your aviable commands");
  3143. case 1: SendClientMessageToAll(COLOR_LIGHTRED,"PROHIBITION: "#COL_YELLOW"Using "#COL_RED"s0beit "#COL_YELLOW" or other similar mods is forbidden!");
  3144. case 2: SendClientMessageToAll(COLOR_YELLOW,"SERVER: SWAT VS Terrorists. The team who ends all its money loses!");
  3145. case 3: SendClientMessageToAll(COLOR_YELLOW,"SUGGESTION: You need weapons? type "#COL_RED"/shop"#COL_YELLOW" and choose a kit!");
  3146. case 4: SendClientMessageToAll(COLOR_YELLOW,"SUGGESTION: AutoHealPlayers enabled? Your health will regenerate 1 point every 2 seconds!");
  3147. case 5: SendClientMessageToAll(COLOR_YELLOW,"SUGGESTION: use "#COL_RED"* [text]"#COL_YELLOW", to speak in "#COL_CYAN"TEAM CHAT!");
  3148. case 6: SendClientMessageToAll(COLOR_YELLOW,"SUGGESTION: If you, as a stupid, want to kill yourself, use "#COL_RED"/kill");
  3149. case 7: SendClientMessageToAll(COLOR_YELLOW,"SUGGESTION: type "#COL_RED"/pm [id] [message]"#COL_YELLOW" if you need to send a private message to somebody!");
  3150. case 8: SendClientMessageToAll(COLOR_YELLOW,"SERVER: This server is in BETA! Many features are not working now.");
  3151. case 9: SendClientMessageToAll(COLOR_YELLOW,"SUGGESTION: There are two garages for vehicle fixing!");}}
  3152. return 1;}
  3153.  
  3154. public TimerCarFixersCheckpoints(){
  3155. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  3156. if(IsPlayerInRangeOfPoint(i,20,-417.1060,2199.3337,42.4297)){
  3157. if(IsPlayerInAnyVehicle(i)){
  3158. SetPlayerCheckpoint(i,-417.1060,2199.3337,42.4297,5.0);
  3159. Checkpoint[i]=CHECKPOINT_CAR_FIXER_1;}}else
  3160. if(IsPlayerInRangeOfPoint(i,20,241.5254,1922.6737,17.6406)){
  3161. if(IsPlayerInAnyVehicle(i)){
  3162. SetPlayerCheckpoint(i,241.5254,1922.6737,17.6406,5.0);
  3163. Checkpoint[i]=CHECKPOINT_CAR_FIXER_2;}}else
  3164. if(!IsPlayerInRangeOfPoint(i,20,241.5254,1922.6737,17.6406) && !IsPlayerInRangeOfPoint(i,20,241.5254,1922.6737,17.6406)){
  3165. DisablePlayerCheckpoint(i);
  3166. Checkpoint[i]=CHECKPOINT_NONE;}}
  3167. return 1;}
  3168.  
  3169. public VitaPlayerAuto(){
  3170. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  3171. if(IsPlayerInAnyVehicle(i)){
  3172. #if defined CAR_HEALTH
  3173. TextDrawShowForPlayer(i, BlackIndicator[i]);
  3174. TextDrawShowForPlayer(i, FullHealth[i]);
  3175. TextDrawShowForPlayer(i, VehicleHealth[i]);
  3176. TextDrawShowForPlayer(i, NameText[i]);
  3177. #endif
  3178. }
  3179. else if(!IsPlayerInAnyVehicle(i)){
  3180. #if defined CAR_HEALTH
  3181. TextDrawHideForPlayer(i, BlackIndicator[i]);
  3182. TextDrawHideForPlayer(i, FullHealth[i]);
  3183. TextDrawHideForPlayer(i, VehicleHealth[i]);
  3184. TextDrawHideForPlayer(i, NameText[i]);
  3185. #endif
  3186. }}
  3187. return 1;}
  3188.  
  3189. public CarInfo(){
  3190. for(new i=0; i<MAX_SERVER_PLAYERS; i++)if(IsPlayerConnected(i)){
  3191. GetVehicleHealth(GetPlayerVehicleID(i),CarHealth3);
  3192. if(IsPlayerInAnyVehicle(i)){
  3193. #if defined CAR_HEALTH
  3194. if(CarHealth3<248)return TextDrawTextSize(VehicleHealth[i], 232.000, 0.000000);
  3195. TextDrawTextSize(VehicleHealth[i], CarHealth3/4.3+174, 0.000000);
  3196. #endif
  3197. }}
  3198. return 1;}
  3199.  
  3200. public OptionsConfiguration(){
  3201. new file[256]; format(file,sizeof(file),"VHealthConfig.ini");
  3202. if(dini_Exists(file)){
  3203. Options[TextLanguage]=dini_Int(file,"TextLanguage");
  3204. for(new i=0;i<MAX_SERVER_PLAYERS;i++){
  3205. if(Options[TextLanguage]==1){
  3206. TextDrawSetString(NameText[i]," Vita Veicolo:");}
  3207. if(Options[TextLanguage]==2){
  3208. TextDrawSetString(NameText[i],"Vehicle Health:");}
  3209. if(Options[TextLanguage]==3){
  3210. TextDrawSetString(NameText[i],"Vida del Vehiculo:");}}}
  3211. return 1;}
  3212.  
  3213. public FixingTimer1(playerid){
  3214. TogglePlayerControllable(playerid,0);
  3215. GameTextForPlayer(playerid,"~w~Fixing Vehicle~g~.~w~.~r~.",2000,3);
  3216. SetTimerEx("FixingTimer2",3000,0,"d",playerid);
  3217. return 1;}
  3218.  
  3219. public FixingTimer2(playerid){
  3220. RepairVehicle(GetPlayerVehicleID(playerid));
  3221. GameTextForPlayer(playerid,"~w~Vehicle ~g~Fixed~r~!",1500,3);
  3222. TogglePlayerControllable(playerid,1);
  3223. SetTimerEx("FixingTimer3",5000,0,"d",playerid);
  3224. GivePlayerMoney(playerid,GetPlayerMoney(playerid)-100);
  3225. //new skin=GetPlayerSkin(playerid);
  3226. switch(SKIN[playerid]){
  3227. case 125,124:{
  3228. CriminalsAmmount-=100;
  3229. GetPlayerName(playerid,name,sizeof(name));
  3230. if(ServerInfo[Language]==1)format(string,sizeof(string),"- [TERRORISTI] %s ha speso 100$ per riparare il suo mezzo!",name);
  3231. if(ServerInfo[Language]==2)format(string,sizeof(string),"- [TERRORISTS] %s has payed 100$ to fix his vehicle!",name);
  3232. SendClientMessageToAll(COLOR_GREY,string);}
  3233. case 285,287:{
  3234. SWATAmmount-=100;
  3235. GetPlayerName(playerid,name,sizeof(name));
  3236. if(ServerInfo[Language]==1)format(string,sizeof(string),"- [POLIZIA] %s ha speso 100$ per riparare il suo mezzo!",name);
  3237. if(ServerInfo[Language]==2)format(string,sizeof(string),"- [SWAT] %s has payed 100$ to fix his vehicle!",name);
  3238. SendClientMessageToAll(COLOR_GREY,string);}}
  3239. return 1;}
  3240.  
  3241. public FixingTimer3(playerid){
  3242. Fixing[playerid]=0;
  3243. return 1;}
  3244.  
  3245. public ReplaceJetpack(){
  3246. SpawnJetpack();
  3247. return 1;}
  3248.  
  3249. /*******************************************************************************
  3250. * <=[Anticheat Timers]=> *
  3251. *******************************************************************************/
  3252. public ServerConfiguration(){
  3253. new file[256]; format(file,sizeof(file),"Config/EnableCmds.ini");
  3254. if(dini_Exists(file)){
  3255. ServerInfo[Language] = dini_Int(file,"Language");
  3256. ServerInfo[AntiFlood] = dini_Int(file,"AntiFlood");
  3257. ServerInfo[AutoLogin] = dini_Int(file,"AutoLogin");
  3258. ServerInfo[Pm] = dini_Int(file,"Pm");
  3259. ServerInfo[Mute] = dini_Int(file,"Mute");
  3260. ServerInfo[GetIp] = dini_Int(file,"GetIp");
  3261. ServerInfo[UnMute] = dini_Int(file,"UnMute");
  3262. ServerInfo[Spec] = dini_Int(file,"Spec");
  3263. ServerInfo[SpecOff] = dini_Int(file,"SpecOff");
  3264. ServerInfo[Setweather] = dini_Int(file,"SetWeather");
  3265. ServerInfo[Settime] = dini_Int(file,"SetTime");
  3266. ServerInfo[kick] = dini_Int(file,"Kick");
  3267. ServerInfo[ban] = dini_Int(file,"Ban");
  3268. ServerInfo[Jail] = dini_Int(file,"Jail");
  3269. ServerInfo[UnJail] = dini_Int(file,"UnJail");
  3270. ServerInfo[Freeze] = dini_Int(file,"Freeze");
  3271. ServerInfo[UnFreeze] = dini_Int(file,"UnFreeze");
  3272. ServerInfo[Goto] = dini_Int(file,"Goto");
  3273. ServerInfo[Get] = dini_Int(file,"Get");
  3274. ServerInfo[ClearChat] = dini_Int(file,"ClearChat");
  3275. ServerInfo[Gmx] = dini_Int(file,"Gmx");
  3276. ServerInfo[MakeAdmin] = dini_Int(file,"MakeAdmin");
  3277. ServerInfo[MakeMeGodAdmin] = dini_Int(file,"MakeMeGodAdmin");
  3278. ServerInfo[AChat] = dini_Int(file,"AChat");}
  3279.  
  3280. new dfile[256]; format(dfile,sizeof(dfile),"Config/OptionsConfig.ini");
  3281. if(dini_Exists(dfile)){
  3282. Options2[ConnectMessages] = dini_Int(dfile,"ConnectMessages");
  3283. Options2[MaxAdminLevel] = dini_Int(dfile,"MaxAdminLevel");
  3284. Options2[MaxMoney] = dini_Int(dfile,"MaxMoney");
  3285. Options2[MaxHealth] = dini_Int(dfile,"MaxHealth");
  3286. Options2[MaxArmour] = dini_Int(dfile,"MaxArmour");
  3287. Options2[MaxMuteWarnings] = dini_Int(dfile,"MaxMuteWarnings");
  3288. Options2[MaxFloodTimes] = dini_Int(dfile,"MaxFloodTimes");
  3289. Options2[MaxFloodSeconds] = dini_Int(dfile,"MaxFloodSeconds");
  3290. Options2[AutoHealPlayers] = dini_Int(dfile,"AutoHealPlayers");}
  3291.  
  3292. new cfile[256]; format(cfile,sizeof(cfile),"Config/CmdsLevels.ini");
  3293. if(dini_Exists(cfile)){
  3294. CmdsOptions[GetIp] = dini_Int(cfile,"GetIp");
  3295. CmdsOptions[Mute] = dini_Int(cfile,"Mute");
  3296. CmdsOptions[UnMute] = dini_Int(cfile,"UnMute");
  3297. CmdsOptions[Spec] = dini_Int(cfile,"Spec");
  3298. CmdsOptions[SpecOff] = dini_Int(cfile,"SpecOff");
  3299. CmdsOptions[Setweather] = dini_Int(cfile,"SetWeather");
  3300. CmdsOptions[Settime] = dini_Int(cfile,"SetTime");
  3301. CmdsOptions[kick] = dini_Int(cfile,"Kick");
  3302. CmdsOptions[ban] = dini_Int(cfile,"Ban");
  3303. CmdsOptions[Jail] = dini_Int(cfile,"Jail");
  3304. CmdsOptions[UnJail] = dini_Int(cfile,"UnJail");
  3305. CmdsOptions[Freeze] = dini_Int(cfile,"Freeze");
  3306. CmdsOptions[UnFreeze] = dini_Int(cfile,"UnFreeze");
  3307. CmdsOptions[Goto] = dini_Int(cfile,"Goto");
  3308. CmdsOptions[Get] = dini_Int(cfile,"Get");
  3309. CmdsOptions[ClearChat] = dini_Int(cfile,"ClearChat");
  3310. CmdsOptions[Gmx] = dini_Int(cfile,"Gmx");
  3311. CmdsOptions[MakeAdmin] = dini_Int(cfile,"MakeAdmin");
  3312. CmdsOptions[AChat] = dini_Int(cfile,"AChat");}
  3313. return 1;}
  3314.  
  3315. /*******************************************************************************
  3316. * <=[Main]=> *
  3317. *******************************************************************************/
  3318.  
  3319. main(){
  3320. print("\n*************************");
  3321. print(" SWAT VS Terrorists v4.1 ");
  3322. print(" By [Svt]Mike ");
  3323. print("*************************\n");}
  3324.  
  3325. /*******************************************************************************
  3326. * <=[EOF]=> *
  3327. *******************************************************************************/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement