Guest User

BocianJD

a guest
Dec 5th, 2012
255
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 268.42 KB | None | 0 0
  1. /*
  2. *AntyCheat v2.8*
  3. Autor: Sacky, Jan "DracoBlue" Schütze, Alex "Y_Less" Cole
  4. Edycja: Smuggler, Przemcio, VisztaPL
  5. */
  6.  
  7. #include <a_samp>
  8.  
  9. #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
  10. #define Wersja "2.8"
  11. #define MAX_STRING 255
  12.  
  13. #define RED 0xFF0000FF
  14. #define GREEN 0x00FF00FF
  15. #define WHITE 0xFFFFFFFF
  16. #define YELLOW 0xFFFFFFFF
  17. #define DARK 0x808080FF
  18.  
  19. enum Opcje
  20. {
  21. bool:AntiVehicleDriverKilling,
  22. bool:AntyRustlerK,
  23. bool:AntyRhinoK,
  24. bool:AntyHunterK,
  25. bool:AntySparrowK,
  26. bool:AntyPlaneK,
  27. bool:AntyBluzgi,
  28. bool:AntyRepeat,
  29. bool:AntiFasterSprint,
  30. bool:AntiGlitch,
  31. bool:AntiICEmo,
  32. bool:AntiLongSprint,
  33. bool:AntiBunnyHop,
  34. bool:AntiNinjaJacking,
  35. bool:AntiCaps,
  36. bool:AntiIP,
  37. bool:AntiPodszywanie,
  38. bool:SpawnProtE,
  39. bool:AntyHydraK,
  40. bool:AntyCK,
  41. bool:AntyDB,
  42. bool:AntyDT,
  43. bool:AntyHK,
  44. bool:AntiMegaJump,
  45. bool:AntiAirBrake,
  46. bool:AntiSpeedHack,
  47. bool:Raport,
  48. bool:AntiFreezeVeh,
  49. bool:AntiBugUA,
  50. bool:AntiVehWarp,
  51. bool:AntiNadmierneBluzgi,
  52. bool:AntiVehGod,
  53. bool:BL,
  54. bool:BC,
  55. bool:AntiWWW,
  56. bool:AntyCrash,
  57. AntiAFK,
  58. AntiCmdFlood,
  59. AntiPMFlood,
  60. MaxPing,
  61. CzasAFK,
  62. AntiPing,
  63. AntyFlood,
  64. AntiJetpack,
  65. AntiBikeFallOff,
  66. AntiIndoorsWeapons,
  67. AntiWeaponCheat,
  68. CzasSpawnProt,
  69. AntiInfiniteAmmo,
  70. TimerAntiSpeedHack,
  71. AntiArmour,
  72. AntiHealth,
  73. MaxSprint,
  74. MaxJump,
  75. AntiMoneyCheat,
  76. AntiTeleport,
  77. MaxDB,
  78. MaxDT,
  79. MaxCK,
  80. MaxRhinoK,
  81. MaxHK,
  82. MaxHydraK,
  83. MaxHunterK,
  84. MaxPlaneK,
  85. MaxSparrowK,
  86. MaxRustlerK,
  87. MaxSK,
  88. MaxGlitch,
  89. AntiGodMode,
  90. AntiInfOxygen,
  91. AntiUnderwater,
  92. AntiPause
  93. }
  94.  
  95. enum aKara
  96. {
  97. VehDriverKilling,
  98. RustlerKill,
  99. Jetpack,
  100. SparrowKill,
  101. NinjaJacking,
  102. WeaponCheat,
  103. InteriorWeapons,
  104. Flood,
  105. Ping,
  106. MoneyCheat,
  107. Teleport,
  108. ArmourCheat,
  109. HealthCheat,
  110. AntyBikeFallOffK,
  111. AFK,
  112. NadmierneBluzgi,
  113. FasterSprint,
  114. InfiniteAmmo,
  115. MegaJumpK,
  116. AirBrake,
  117. SpeedHack,
  118. FreezeVehicles,
  119. VehicleWarp,
  120. DriveBy,
  121. DriveThru,
  122. CarKill,
  123. RhinoKill,
  124. HeliKill,
  125. HydraKill,
  126. HunterKill,
  127. PlaneKill,
  128. SpawnKill,
  129. ReklamaSerwera,
  130. Podszywanie,
  131. PMFlood,
  132. CmdFlood,
  133. BugUAK,
  134. GlitchK,
  135. VehicleGodMode,
  136. GodMode,
  137. InfiniteOxygen,
  138. WalkUnderwater,
  139. ReklamaStrony,
  140. Pauza,
  141. ProbaCrash
  142. }
  143.  
  144. enum GraczeInfo
  145. {
  146. //Anty God Mode
  147. bool:ProtGod,
  148. Float:GodNoweHP,
  149. Float:GodStareHP,
  150. Float:GodNowyArm,
  151. Float:GodStaryArm,
  152. TimerGod,
  153. TimerBombaGod,
  154. TimerProtGod,
  155.  
  156. //Anty Vehicle God Mode
  157. Float:GodWozNoweHP,
  158. Float:GodWozStareHP,
  159. TimerBombaVehGod,
  160.  
  161. //Anty Speed Hack/Air Brake
  162. Float:StaryX,
  163. Float:StaryY,
  164. Float:OldZSpeed,
  165. Float:NewZSpeed,
  166. Float:NowyX,
  167. Float:NowyY,
  168. WarnSpeed,
  169.  
  170. //Anty Armour Cheat
  171. Float:NowyArm,
  172. Float:StaryArm,
  173.  
  174. //Anty Health Cheat
  175. Float:NewVehHP,
  176. Float:OldVehHP,
  177. Float:NewHP,
  178. Float:OldHP,
  179.  
  180. //Anty Infinite Ammo
  181. bool:Strzela,
  182. WarnUnlimitedAmmo,
  183. StaraAmunicja,
  184. NowaAmunicja,
  185. SlotBroni,
  186. KlawiszUA,
  187.  
  188. //Anty Interior Weapons
  189. WarnIndoors,
  190.  
  191. //Anty Anti Bike Fall Off
  192. Float:WozNewHP,
  193. Float:WozOldHP,
  194. Float:OldPointX,
  195. Float:OldPointY,
  196. Float:NewPointX,
  197. Float:NewPointY,
  198. Woz,
  199.  
  200. //Anty Money Cheat
  201. StaraKasa,
  202. NowaKasa,
  203.  
  204. //Anty Teleport
  205. Float:StaryPktX,
  206. Float:NowyPktX,
  207. Float:StaryPktY,
  208. Float:NowyPktY,
  209. Float:StaryPktZ,
  210. Float:NowyPktZ,
  211.  
  212. //Anty Mega Jump
  213. Float:PierwszeZ,
  214. Float:DrugieZ,
  215. Float:StareHPMJ,
  216. Float:NoweHPMJ,
  217. WarnJump,
  218. TimerMegaJump,
  219.  
  220. //Anty Vehicle Warp
  221. OldVeh,
  222.  
  223. //Anty Infinite Oxygen
  224. Float:WodaStareHP,
  225. Float:WodaNoweHP,
  226. PodWoda,
  227. TimerSprawdzHP,
  228.  
  229. //Anty Walk Underwater
  230. Float:PodWodaOldX,
  231. Float:PodWodaOldY,
  232. Float:PodWodaOldZ,
  233. Float:PodWodaNewX,
  234. Float:PodWodaNewY,
  235. Float:PodWodaNewZ,
  236. WarnUnderwater,
  237.  
  238. //Anty Faster Sprint
  239. WarnSprint,
  240. TimerBieg,
  241.  
  242. //Anty Glitch
  243. WarnGlitch,
  244. Klawisz,
  245. TimerGlitch,
  246.  
  247. //Anty Vehicle Driver Killing
  248. WarnBuger,
  249. TimerBuger,
  250. TimerBugerPoraz,
  251.  
  252. //Anty Bug Unlimited Ammo
  253. TimerUA,
  254. CrouchTimes,
  255.  
  256. //Anty Hydra Kill
  257. WarnHydraK,
  258.  
  259. //Anty Drive-By
  260. WarnDB,
  261.  
  262. //Anty Drive-Thru
  263. WarnDT,
  264.  
  265. //Anty Car Kill
  266. WarnCK,
  267.  
  268. //Anty Heli Kill
  269. WarnHK,
  270.  
  271. //Anty Hunter Kill
  272. WarnHunterK,
  273.  
  274. //Anty Rhino Kill
  275. WarnRhinoK,
  276.  
  277. //Anty Sparrow Kill
  278. WarnSparrowK,
  279.  
  280. //Anty Rustler Kill
  281. WarnRustlerK,
  282.  
  283. //Anty Plane Kill
  284. WarnPlaneK,
  285.  
  286. //Anty AFK
  287. Float:StaraPozycjaX,
  288. Float:StaraPozycjaY,
  289. Float:StaraPozycjaZ,
  290. Float:PozycjaX,
  291. Float:PozycjaY,
  292. Float:PozycjaZ,
  293. Float:StaraRotacja,
  294. Float:Rotacja,
  295. WarnAFK,
  296.  
  297. //Anty Ping
  298. WarnPing,
  299.  
  300. //Anty Spawn Kill
  301. bool:SpawnProt,
  302. SpawnProtT,
  303. SpawnKillWarn,
  304.  
  305. //Anty Pause
  306. Float:StareHP,
  307. Float:NoweHP,
  308. WarnPause,
  309. TimerPauza,
  310.  
  311. //Anty Podszywanie
  312. bool:TaSamaDlugosc,
  313. PodobneZnaki,
  314.  
  315. //Anty Flood
  316. WarnFlood,
  317.  
  318. //Anty Command Flood
  319. WarnCmdFlood,
  320.  
  321. //Anty Private Message Flood
  322. WarnPMFlood,
  323.  
  324. //Anty Nadmierne Bluzgi
  325. Bluzg,
  326.  
  327. //Anty Repeat
  328. Text[256],
  329. PMText[256],
  330.  
  331. //Anty Bunny Hopping
  332. WarnBunnyHop,
  333. TimerWstan,
  334. TimerBunnyHop,
  335.  
  336. //Anty Long Sprint
  337. WarnLSprint,
  338. GoraDol,
  339. LewoPrawo,
  340. TimerLongSprint,
  341.  
  342. //Inne
  343. bool:Prot,
  344. bool:AdminLogged,
  345. ProtArmHP,
  346. TimerLecz
  347. }
  348.  
  349. enum ZBronA
  350. {
  351. Nazwa[50],
  352. bool:Zakazana,
  353. NazwaConfig[50]
  354. }
  355.  
  356. new Bronie[47][ZBronA] =
  357. {
  358. {"", false, ""},
  359. {"Kastet", false, "Kastet"},
  360. {"Kij Golfowy", false, "KijGolfowy"},
  361. {"Pałka Policyjna", false, "PalkaPolicyjna"},
  362. {"Nóż", false, "Noz"},
  363. {"Kij Baseball'owy", false, "Baseball"},
  364. {"Łopata", false, "Lopata"},
  365. {"Kij Bilardowy", false, "KijBilardowy"},
  366. {"Katana", false, "Katana"},
  367. {"Piła Łancuchowa", false, "Pila"},
  368. {"Różowy Wibrator", false, "RozowyWibrator"},
  369. {"Biały Wibrator", false, "BialyWibrator"},
  370. {"Długi Biały Wibrator", false, "DlugiBialyWibrator"},
  371. {"Biały Wibrator 2", false, "BialyWibrator2"},
  372. {"Kwiaty", false, "Kwiaty"},
  373. {"Laska", false, "Laska"},
  374. {"Granaty", false, "Granaty"},
  375. {"Gaz Łzawiący", false, "GazLzawiacy"},
  376. {"Koktail Molotova", false, "Molotov"},
  377. {"", false, ""},
  378. {"", false, ""},
  379. {"", false, ""},
  380. {"Pistolety", false, "Pistolety"},
  381. {"Pistolet z Tłumikiem", false, "PistoletZTlumikiem"},
  382. {"Desert Eagle", false, "DesertEagle"},
  383. {"Shotgun", false, "Shotgun"},
  384. {"Obrzyny", false, "Obrzyny"},
  385. {"Combat Shotgun", false, "CombatShotgun"},
  386. {"Uzi", false, "Uzi"},
  387. {"MP5", false, "MP5"},
  388. {"AK47", false, "AK47"},
  389. {"M4", false, "M4"},
  390. {"TEC9", false, "TEC9"},
  391. {"Country Rifle", false, "ContryRifle"},
  392. {"Karabin Snajperski", false, "Sniperka"},
  393. {"RPG", false, "RPG"},
  394. {"Wyrzutnia Rakiet", false, "WyrzutniaRakiet"},
  395. {"Miotacz Ognia", false, "MiotaczOgnia"},
  396. {"Minigun", false, "Minigun"},
  397. {"C4", false, "C4"},
  398. {"Detonator", false, "Detonator"},
  399. {"Spray", false, "Spray"},
  400. {"Gaśnica", false, "Gasnica"},
  401. {"Aparat Fotograficzny", false, "AparatFotograficzny"},
  402. {"Noktowizor", false, "Noktowizor"},
  403. {"Termowizor", false, "Termowizor"},
  404. {"Spadochron", false, "Spadochron"}
  405. };
  406.  
  407. new HighestID;
  408. new Sloty;
  409. new Nick[256];
  410. new Nick2[256];
  411. new str[256];
  412. new Float:CarOldX[MAX_VEHICLES], Float:CarOldY[MAX_VEHICLES], Float:CarOldZ[MAX_VEHICLES];
  413. new GraczInfo[MAX_PLAYERS][GraczeInfo];
  414. new Anty[Opcje];
  415. new Kara[aKara];
  416.  
  417. public OnFilterScriptInit()
  418. {
  419. new ID = -1;
  420. new tmp[256];
  421. new idx;
  422. Sloty = GetServerVarAsInt("maxplayers");
  423.  
  424. //Config
  425. if(!fexist("AntyCheatConfig.ini"))
  426. {
  427. new File:Plik = fopen("AntyCheatConfig.ini", io_append);
  428. fwrite(Plik, "//Tutaj mozesz ustawic co bedzie wlaczone, a co nie (1 - wlaczone, 0 - wylaczone)\r\n");
  429. fwrite(Plik, "AntyGodMode=1\r\n");
  430. fwrite(Plik, "AntyVehicleGod=0\r\n");
  431. fwrite(Plik, "AntySpeedHack=1\r\n");
  432. fwrite(Plik, "AntyAirBrake=1\r\n");
  433. fwrite(Plik, "AntyJetpack=0\r\n");
  434. fwrite(Plik, "AntyWeaponCheat=1\r\n");
  435. fwrite(Plik, "AntyArmourCheat=0\r\n");
  436. fwrite(Plik, "AntyHealthCheat=0\r\n");
  437. fwrite(Plik, "AntyInfiniteAmmo=0\r\n");
  438. fwrite(Plik, "AntyInteriorWeapons=0\r\n");
  439. fwrite(Plik, "AntyAntiBikeFallOff=0\r\n");
  440. fwrite(Plik, "AntyMoneyCheat=0\r\n");
  441. fwrite(Plik, "AntyTeleport=0\r\n");
  442. fwrite(Plik, "AntyFreezeVehicles=0\r\n");
  443. fwrite(Plik, "AntyMegaJump=0\r\n");
  444. fwrite(Plik, "AntyVehicleWarp=0\r\n");
  445. fwrite(Plik, "AntyInfiniteOxygen=0\r\n");
  446. fwrite(Plik, "AntyWalkUnderwater=0\r\n");
  447. fwrite(Plik, "//Bugi\r\n");
  448. fwrite(Plik, "AntyFasterSprint=0\r\n");
  449. fwrite(Plik, "AntyGlitch=0\r\n");
  450. fwrite(Plik, "MaxGlitchy=3\r\n");
  451. fwrite(Plik, "AntyVehicleDriverKilling=0\r\n");
  452. fwrite(Plik, "AntyBugUnlimitedAmmo=1\r\n");
  453. fwrite(Plik, "//Inne\r\n");
  454. fwrite(Plik, "AntyHydraKill=1\r\n");
  455. fwrite(Plik, "MaxHydraKill=2\r\n");
  456. fwrite(Plik, "AntyDrive-By=1\r\n");
  457. fwrite(Plik, "MaxDrive-By=2\r\n");
  458. fwrite(Plik, "AntyDrive-Thru=1\r\n");
  459. fwrite(Plik, "MaxDrive-Thru=2\r\n");
  460. fwrite(Plik, "AntyCarKill=1\r\n");
  461. fwrite(Plik, "MaxCK=2\r\n");
  462. fwrite(Plik, "AntyHeliKill=1\r\n");
  463. fwrite(Plik, "MaxHK=1\r\n");
  464. fwrite(Plik, "AntyHunterKill=1\r\n");
  465. fwrite(Plik, "MaxHunterKill=2\r\n");
  466. fwrite(Plik, "AntyRhinoKill=1\r\n");
  467. fwrite(Plik, "MaxRhinoKill=2\r\n");
  468. fwrite(Plik, "AntySparrowKill=1\r\n");
  469. fwrite(Plik, "MaxSparrowKill=2\r\n");
  470. fwrite(Plik, "AntyRustlerKill=1\r\n");
  471. fwrite(Plik, "MaxRustlerKill=2\r\n");
  472. fwrite(Plik, "AntyPlaneKill=1\r\n");
  473. fwrite(Plik, "MaxPlaneKill=2\r\n");
  474. fwrite(Plik, "AntyAFK=1\r\n");
  475. fwrite(Plik, "CzasAFK=30 //w minutach\r\n");
  476. fwrite(Plik, "AntyPing=1\r\n");
  477. fwrite(Plik, "MaxPing=500\r\n");
  478. fwrite(Plik, "AntySpawnKill=0\r\n");
  479. fwrite(Plik, "MaxSpawnKill=2\r\n");
  480. fwrite(Plik, "CzasAntySpawnKill=3 //w sekundach\r\n");
  481. fwrite(Plik, "AntyPause=1\r\n");
  482. fwrite(Plik, "AntyPodszywanie=1\r\n");
  483. fwrite(Plik, "KomendaRaport=1\r\n");
  484. fwrite(Plik, "BlackListGraczy=0\r\n");
  485. fwrite(Plik, "BlackListKlanow=0\r\n");
  486. fwrite(Plik, "AntyCrash=1\r\n");
  487. fwrite(Plik, "//Do Chat'u\r\n");
  488. fwrite(Plik, "AntyFlood=1\r\n");
  489. fwrite(Plik, "AntyCommandFlood=1\r\n");
  490. fwrite(Plik, "AntyPrivateMessageFlood=1\r\n");
  491. fwrite(Plik, "AntyBluzgi=1\r\n");
  492. fwrite(Plik, "AntyNadmierneBluzgi=1\r\n");
  493. fwrite(Plik, "AntyRepeat=1\r\n");
  494. fwrite(Plik, "AntyCapsLock=1\r\n");
  495. fwrite(Plik, "AntyReklamaSerwera=1\r\n");
  496. fwrite(Plik, "AntyReklamaStrony=1\r\n");
  497. fwrite(Plik, "//Do RP\r\n");
  498. fwrite(Plik, "AntyEmotyIC=0\r\n");
  499. fwrite(Plik, "AntyBunnyHopping=0\r\n");
  500. fwrite(Plik, "MaxSkokow=3\r\n");
  501. fwrite(Plik, "AntyLongSprint=0\r\n");
  502. fwrite(Plik, "CzasSprint=1000\r\n");
  503. fwrite(Plik, "AntyNinjaJacking=0\r\n");
  504. fwrite(Plik, "//Ustaw 1 przy zakazanej broni\r\n");
  505. fwrite(Plik, "Kastet=0\r\n");
  506. fwrite(Plik, "KijGolfowy=0\r\n");
  507. fwrite(Plik, "PalkaPolicyjna=0\r\n");
  508. fwrite(Plik, "Noz=0\r\n");
  509. fwrite(Plik, "Baseball=0\r\n");
  510. fwrite(Plik, "Lopata=0\r\n");
  511. fwrite(Plik, "KijBilardowy=0\r\n");
  512. fwrite(Plik, "Katana=0\r\n");
  513. fwrite(Plik, "Pila=0\r\n");
  514. fwrite(Plik, "RozowyWibrator=0\r\n");
  515. fwrite(Plik, "BialyWibrator=0\r\n");
  516. fwrite(Plik, "DlugiBialyWibrator=0\r\n");
  517. fwrite(Plik, "BialyWibrator2=0\r\n");
  518. fwrite(Plik, "Kwiaty=0\r\n");
  519. fwrite(Plik, "Laska=0\r\n");
  520. fwrite(Plik, "Granaty=0\r\n");
  521. fwrite(Plik, "GazLzawiacy=0\r\n");
  522. fwrite(Plik, "Molotov=0\r\n");
  523. fwrite(Plik, "Pistolety=0\r\n");
  524. fwrite(Plik, "PistoletZTlumikiem=0\r\n");
  525. fwrite(Plik, "DesertEagle=0\r\n");
  526. fwrite(Plik, "Shotgun=0\r\n");
  527. fwrite(Plik, "Obrzyny=0\r\n");
  528. fwrite(Plik, "CombatShotgun=0\r\n");
  529. fwrite(Plik, "Uzi=0\r\n");
  530. fwrite(Plik, "MP5=0\r\n");
  531. fwrite(Plik, "AK47=0\r\n");
  532. fwrite(Plik, "M4=0\r\n");
  533. fwrite(Plik, "Tec9=0\r\n");
  534. fwrite(Plik, "CountryRifle=0\r\n");
  535. fwrite(Plik, "Sniperka=0\r\n");
  536. fwrite(Plik, "RPG=1\r\n");
  537. fwrite(Plik, "WyrzutniaRakiet=1\r\n");
  538. fwrite(Plik, "MiotaczOgnia=1\r\n");
  539. fwrite(Plik, "Minigun=1\r\n");
  540. fwrite(Plik, "C4=1\r\n");
  541. fwrite(Plik, "Detonator=1\r\n");
  542. fwrite(Plik, "Spray=0\r\n");
  543. fwrite(Plik, "Gasnica=0\r\n");
  544. fwrite(Plik, "AparatFotograficzny=0\r\n");
  545. fwrite(Plik, "Noktowizor=1\r\n");
  546. fwrite(Plik, "Termowizor=1\r\n");
  547. fwrite(Plik, "Spadochron=0\r\n");
  548. fwrite(Plik, "//Kary: 1 - Kick, 2 - Ban, 3 - Ban na host\r\n");
  549. fwrite(Plik, "GodMode=2\r\n");
  550. fwrite(Plik, "VehicleGodMode=1\r\n");
  551. fwrite(Plik, "SpeedHack=2\r\n");
  552. fwrite(Plik, "AirBrake=2\r\n");
  553. fwrite(Plik, "Jetpack=1\r\n");
  554. fwrite(Plik, "WeaponCheat=1\r\n");
  555. fwrite(Plik, "ArmourCheat=1\r\n");
  556. fwrite(Plik, "HealthCheat=1\r\n");
  557. fwrite(Plik, "InfiniteAmmo=1\r\n");
  558. fwrite(Plik, "InteriorWeapons=1\r\n");
  559. fwrite(Plik, "AntiBikeFallOff=1\r\n");
  560. fwrite(Plik, "InfiniteOxygen=1\r\n");
  561. fwrite(Plik, "WalkUnderwater=1\r\n");
  562. fwrite(Plik, "MoneyCheat=1\r\n");
  563. fwrite(Plik, "Teleport=1\r\n");
  564. fwrite(Plik, "FreezeVehicles=1\r\n");
  565. fwrite(Plik, "MegaJump=1\r\n");
  566. fwrite(Plik, "VehicleWarp=1\r\n");
  567. fwrite(Plik, "FasterSprint=1\r\n");
  568. fwrite(Plik, "Glitch=1\r\n");
  569. fwrite(Plik, "VehicleDriverKilling=1\r\n");
  570. fwrite(Plik, "BugUnlimitedAmmo=1\r\n");
  571. fwrite(Plik, "HydraKill=1\r\n");
  572. fwrite(Plik, "Drive-By=1\r\n");
  573. fwrite(Plik, "Drive-Thru=1\r\n");
  574. fwrite(Plik, "CarKill=1\r\n");
  575. fwrite(Plik, "HeliKill=1\r\n");
  576. fwrite(Plik, "HunterKill=1\r\n");
  577. fwrite(Plik, "RhinoKill=1\r\n");
  578. fwrite(Plik, "SparrowKill=1\r\n");
  579. fwrite(Plik, "RustlerKill=1\r\n");
  580. fwrite(Plik, "PlaneKill=1\r\n");
  581. fwrite(Plik, "AFK=1\r\n");
  582. fwrite(Plik, "Pause=1\r\n");
  583. fwrite(Plik, "Ping=1\r\n");
  584. fwrite(Plik, "SpawnKill=1\r\n");
  585. fwrite(Plik, "Podszywanie=1\r\n");
  586. fwrite(Plik, "Flood=1\r\n");
  587. fwrite(Plik, "CommandFlood=1\r\n");
  588. fwrite(Plik, "PrivateMessageFlood=1\r\n");
  589. fwrite(Plik, "NadmierneBluzgi=1\r\n");
  590. fwrite(Plik, "ReklamaSerwera=2\r\n");
  591. fwrite(Plik, "ReklamaStrony=2\r\n");
  592. fwrite(Plik, "NinjaJacking=1\r\n");
  593. fwrite(Plik, "ProbaCrash=1\r\n");
  594. fclose(Plik);
  595. }
  596. if(!fexist("BLGracz.txt"))
  597. {
  598. new File:Plik = fopen("BLGracz.txt", io_write);
  599. fclose(Plik);
  600. }
  601. if(!fexist("BLKlan.txt"))
  602. {
  603. new File:Plik = fopen("BLKlan.txt", io_write);
  604. fclose(Plik);
  605. }
  606. if(!fexist("Emotikonki.txt"))
  607. {
  608. new File:Plik = fopen("Emotikonki.txt", io_append);
  609. fwrite(Plik, ":),\r\n");
  610. fwrite(Plik, ";),\r\n");
  611. fwrite(Plik, ":(,\r\n");
  612. fwrite(Plik, ";(,\r\n");
  613. fwrite(Plik, ":],\r\n");
  614. fwrite(Plik, ";],\r\n");
  615. fwrite(Plik, ":[,\r\n");
  616. fwrite(Plik, ";[,\r\n");
  617. fwrite(Plik, ":),\r\n");
  618. fwrite(Plik, ";),\r\n");
  619. fwrite(Plik, ":(,\r\n");
  620. fwrite(Plik, ";(,\r\n");
  621. fwrite(Plik, ":D,\r\n");
  622. fwrite(Plik, ";D,\r\n");
  623. fwrite(Plik, ":d,\r\n");
  624. fwrite(Plik, ";d,\r\n");
  625. fwrite(Plik, ":F,\r\n");
  626. fwrite(Plik, ";F,\r\n");
  627. fwrite(Plik, ":f,\r\n");
  628. fwrite(Plik, ";f,\r\n");
  629. fwrite(Plik, ":X,\r\n");
  630. fwrite(Plik, ";X,\r\n");
  631. fwrite(Plik, ":x,\r\n");
  632. fwrite(Plik, ";x,\r\n");
  633. fwrite(Plik, ":J,\r\n");
  634. fwrite(Plik, ";J,\r\n");
  635. fwrite(Plik, ":j,\r\n");
  636. fwrite(Plik, ";j,\r\n");
  637. fwrite(Plik, ":S,\r\n");
  638. fwrite(Plik, ";S,\r\n");
  639. fwrite(Plik, ":s,\r\n");
  640. fwrite(Plik, ";s,\r\n");
  641. fwrite(Plik, ":P,\r\n");
  642. fwrite(Plik, ";P,\r\n");
  643. fwrite(Plik, ":p,\r\n");
  644. fwrite(Plik, ";p,\r\n");
  645. fwrite(Plik, ":O,\r\n");
  646. fwrite(Plik, ";O,\r\n");
  647. fwrite(Plik, ":o,\r\n");
  648. fwrite(Plik, ";o,\r\n");
  649. fwrite(Plik, ":*,\r\n");
  650. fwrite(Plik, ";*,\r\n");
  651. fwrite(Plik, ":>,\r\n");
  652. fwrite(Plik, ";>,\r\n");
  653. fwrite(Plik, ":<,\r\n");
  654. fwrite(Plik, ";<,\r\n");
  655. fwrite(Plik, ":|,\r\n");
  656. fwrite(Plik, ";|,\r\n");
  657. fwrite(Plik, "xD,\r\n");
  658. fwrite(Plik, "xd,\r\n");
  659. fwrite(Plik, "Xd,\r\n");
  660. fwrite(Plik, "XD,\r\n");
  661. fwrite(Plik, "xF,\r\n");
  662. fwrite(Plik, "Xf,\r\n");
  663. fwrite(Plik, "XF,\r\n");
  664. fwrite(Plik, "xf,\r\n");
  665. fwrite(Plik, "xP,\r\n");
  666. fwrite(Plik, "Xp,\r\n");
  667. fwrite(Plik, "XP,\r\n");
  668. fwrite(Plik, "xp,\r\n");
  669. fwrite(Plik, "xS,\r\n");
  670. fwrite(Plik, "Xs,\r\n");
  671. fwrite(Plik, "XS,\r\n");
  672. fwrite(Plik, "xs,\r\n");
  673. fwrite(Plik, "xE,\r\n");
  674. fwrite(Plik, "Xe,\r\n");
  675. fwrite(Plik, "XE,\r\n");
  676. fwrite(Plik, "xe,\r\n");
  677. fwrite(Plik, "xO,\r\n");
  678. fwrite(Plik, "Xo,\r\n");
  679. fwrite(Plik, "XO,\r\n");
  680. fwrite(Plik, "xo,\r\n");
  681. fwrite(Plik, "-.-,\r\n");
  682. fwrite(Plik, "-,-,\r\n");
  683. fwrite(Plik, "O_o,\r\n");
  684. fwrite(Plik, "o_O,\r\n");
  685. fwrite(Plik, "O_O,\r\n");
  686. fwrite(Plik, "-_-,\r\n");
  687. fwrite(Plik, "X_x,\r\n");
  688. fwrite(Plik, "x_X,\r\n");
  689. fwrite(Plik, "x_x,\r\n");
  690. fwrite(Plik, "X_x,\r\n");
  691. fwrite(Plik, "X_X,\r\n");
  692. fwrite(Plik, "*_*,\r\n");
  693. fwrite(Plik, "^^,\r\n");
  694. fwrite(Plik, "^_^,\r\n");
  695. fwrite(Plik, "^-^,\r\n");
  696. fwrite(Plik, "lol,\r\n");
  697. fwrite(Plik, "rotfl,\r\n");
  698. fwrite(Plik, "lmao,\r\n");
  699. fwrite(Plik, "rofl,\r\n");
  700. fclose(Plik);
  701. }
  702. if(!fexist("Bluzgi.txt"))
  703. {
  704. new File:Plik = fopen("Bluzgi.txt", io_append);
  705. fwrite(Plik, "kurw,\r\n");
  706. fwrite(Plik, "qrw,\r\n");
  707. fwrite(Plik, "chuj,\r\n");
  708. fwrite(Plik, "huj,\r\n");
  709. fwrite(Plik, "korwa,\r\n");
  710. fwrite(Plik, "hoj,\r\n");
  711. fwrite(Plik, "choj,\r\n");
  712. fwrite(Plik, "pizd,\r\n");
  713. fwrite(Plik, "pizt,\r\n");
  714. fwrite(Plik, "dziwka,\r\n");
  715. fwrite(Plik, "dzifka,\r\n");
  716. fwrite(Plik, "szmat,\r\n");
  717. fwrite(Plik, "cwel,\r\n");
  718. fwrite(Plik, "cfel,\r\n");
  719. fwrite(Plik, "pierdol,\r\n");
  720. fwrite(Plik, "wyjebac,\r\n");
  721. fwrite(Plik, "wyjebać,\r\n");
  722. fwrite(Plik, "spierdal,\r\n");
  723. fwrite(Plik, "wypierdal,\r\n");
  724. fwrite(Plik, "ciot,\r\n");
  725. fwrite(Plik, "ryj,\r\n");
  726. fwrite(Plik, "kutas,\r\n");
  727. fwrite(Plik, "kutach,\r\n");
  728. fwrite(Plik, "jeban,\r\n");
  729. fwrite(Plik, "pierdol,\r\n");
  730. fwrite(Plik, "cip,\r\n");
  731. fwrite(Plik, "twoja stara,\r\n");
  732. fwrite(Plik, "twoj stary,\r\n");
  733. fwrite(Plik, "twuj stary,\r\n");
  734. fwrite(Plik, "tfuj stary,\r\n");
  735. fwrite(Plik, "tfoj stary,\r\n");
  736. fwrite(Plik, "tfój stary,\r\n");
  737. fwrite(Plik, "twój stary,\r\n");
  738. fwrite(Plik, "tfoja stara,\r\n");
  739. fwrite(Plik, "twoj stara,\r\n");
  740. fwrite(Plik, "japierdol,\r\n");
  741. fwrite(Plik, "jebie,\r\n");
  742. fwrite(Plik, "jeba,\r\n");
  743. fwrite(Plik, "zjeb,\r\n");
  744. fwrite(Plik, "ssij,\r\n");
  745. fwrite(Plik, "ssa,\r\n");
  746. fwrite(Plik, "zapier,\r\n");
  747. fwrite(Plik, "jebiem,\r\n");
  748. fwrite(Plik, "wyjeb,\r\n");
  749. fwrite(Plik, "dziwk,\r\n");
  750. fwrite(Plik, "dzifk,\r\n");
  751. fwrite(Plik, "zajeb,\r\n");
  752. fwrite(Plik, "dupic,\r\n");
  753. fwrite(Plik, "dupić,\r\n");
  754. fwrite(Plik, "fiut,\r\n");
  755. fwrite(Plik, "fiot,\r\n");
  756. fwrite(Plik, "fiót,\r\n");
  757. fwrite(Plik, "napierd,\r\n");
  758. fwrite(Plik, "wyrucha,\r\n");
  759. fwrite(Plik, "wyróh,\r\n");
  760. fwrite(Plik, "wyróch,\r\n");
  761. fwrite(Plik, "rucha,\r\n");
  762. fwrite(Plik, "obciag,\r\n");
  763. fwrite(Plik, "obciąg,\r\n");
  764. fwrite(Plik, "kurew,\r\n");
  765. fwrite(Plik, "kórew,\r\n");
  766. fwrite(Plik, "korew,\r\n");
  767. fwrite(Plik, "lacho,\r\n");
  768. fwrite(Plik, "gówn,\r\n");
  769. fwrite(Plik, "guwn,\r\n");
  770. fwrite(Plik, "debil,\r\n");
  771. fwrite(Plik, "fuck,\r\n");
  772. fwrite(Plik, "shit,\r\n");
  773. fwrite(Plik, "bitch,\r\n");
  774. fwrite(Plik, "bith,\r\n");
  775. fclose(Plik);
  776. }
  777. new File:Plik = fopen("AntyCheatConfig.ini", io_read);
  778. while(fread(Plik, str, sizeof(str), false))
  779. {
  780. ID++;
  781. switch(ID)
  782. {
  783. case 1 .. 18, 20, 21, 23, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 53 .. 58, 60 .. 68, 70, 71, 73, 75, 77 .. 119:
  784. {
  785. idx = 0;
  786. for(new i; i<2; i++) tmp = strtok(str, idx, '=');
  787. if(strcmp(tmp, "1\r\n", false) != 0 && strcmp(tmp, "0\r\n", false) != 0)
  788. {
  789. printf("\nZla konfiguracja AntyCheat'a.\nLinia: %s jest niepoprawna\nSerwer zostanie wylaczony za 3 sekundy.\n", str);
  790. SetTimer("WylaczSerwer", 3000, 0);
  791. return 0;
  792. }
  793. }
  794. case 121 .. 165:
  795. {
  796. idx = 0;
  797. for(new i; i<2; i++) tmp = strtok(str, idx, '=');
  798. if(strcmp(tmp, "1\r\n", false) != 0 && strcmp(tmp, "2\r\n", false) != 0 && strcmp(tmp, "3\r\n", false) != 0)
  799. {
  800. printf("\nZla konfiguracja AntyCheat'a\nLinia: %s jest niepoprawna\nSerwer zostanie wylaczony za 3 sekundy.\n", str);
  801. SetTimer("WylaczSerwer", 3000, 0);
  802. return 0;
  803. }
  804. }
  805. }
  806. }
  807. fclose(Plik);
  808.  
  809. //Wczytywanie - cheat'y
  810. if(dini_Int("AntyCheatConfig.ini", "AntyGodMode") == 1) Anty[AntiGodMode] = SetTimer("AntyGod", 60000, 1);
  811. if(dini_Int("AntyCheatConfig.ini", "AntyJetpack") == 1) Anty[AntiJetpack] = SetTimer("AntyJetpack", 1000, 1);
  812. if(dini_Int("AntyCheatConfig.ini", "AntyInteriorWeapons") == 1) Anty[AntiIndoorsWeapons] = SetTimer("BronieWBudynku", 1000, 1);
  813. if(dini_Int("AntyCheatConfig.ini", "AntyWeaponCheat") == 1) Anty[AntiWeaponCheat] = SetTimer("AntyBronie", 1000, 1);
  814. if(dini_Int("AntyCheatConfig.ini", "AntyInfiniteAmmo") == 1) Anty[AntiInfiniteAmmo] = SetTimer("AntyUnlimitedAmmo", 1000, 1);
  815. if(dini_Int("AntyCheatConfig.ini", "AntyAntiBikeFallOff") == 1) Anty[AntiBikeFallOff] = SetTimer("AntyBikeFallOff", 1000, 1);
  816. if(dini_Int("AntyCheatConfig.ini", "AntyArmourCheat") == 1) Anty[AntiArmour] = SetTimer("AntyArmour", 1000, 1);
  817. if(dini_Int("AntyCheatConfig.ini", "AntyHealthCheat") == 1) Anty[AntiHealth] = SetTimer("AntyHP", 1000, 1);
  818. if(dini_Int("AntyCheatConfig.ini", "AntyMoneyCheat") == 1) Anty[AntiMoneyCheat] = SetTimer("AntyMoneyCheat", 1000, 1);
  819. if(dini_Int("AntyCheatConfig.ini", "AntyTeleport") == 1) Anty[AntiTeleport] = SetTimer("AntyTP", 1000, 1);
  820. if(dini_Int("AntyCheatConfig.ini", "AntyMegaJump") == 1) Anty[AntiMegaJump] = true;
  821. if(dini_Int("AntyCheatConfig.ini", "AntyFreezeVehicles") == 1) Anty[AntiFreezeVeh] = true;
  822. if(dini_Int("AntyCheatConfig.ini", "AntyVehicleWarp") == 1) Anty[AntiVehWarp] = true;
  823. if(dini_Int("AntyCheatConfig.ini", "AntyVehicleGod") == 1) Anty[AntiVehGod] = true;
  824. if(dini_Int("AntyCheatConfig.ini", "AntyInfiniteOxygen") == 1) Anty[AntiInfOxygen] = SetTimer("AntyInfOxygen", 1000, 1);
  825. if(dini_Int("AntyCheatConfig.ini", "AntyWalkUnderwater") == 1) Anty[AntiUnderwater] = SetTimer("AntyWalkUnderwater", 1000, 1);
  826. str = dini_Get("AntyCheatConfig.ini", "AntySpeedHack");
  827. if(strval(str) == 1) Anty[AntiSpeedHack] = true;
  828. Nick = dini_Get("AntyCheatConfig.ini", "AntyAirBrake");
  829. if(strval(Nick) == 1) Anty[AntiAirBrake] = true;
  830. if(strval(str) == 1 || strval(Nick) == 1) Anty[TimerAntiSpeedHack] = SetTimer("AntySpeed", 1000, 1);
  831.  
  832. //Wczytywanie - inne
  833. if(dini_Int("AntyCheatConfig.ini", "AntyAFK") == 1) Anty[AntiAFK] = SetTimer("AntyAFK", 60000, 1);
  834. if(dini_Int("AntyCheatConfig.ini", "AntyPing") == 1) Anty[AntiPing] = SetTimer("AntyPing", 1000, 1);
  835. if(dini_Int("AntyCheatConfig.ini", "AntyDrive-By") == 1) Anty[AntyDB] = true;
  836. if(dini_Int("AntyCheatConfig.ini", "AntyDrive-Thru") == 1) Anty[AntyDT] = true;
  837. if(dini_Int("AntyCheatConfig.ini", "AntyHeliKill") == 1) Anty[AntyHK] = true;
  838. if(dini_Int("AntyCheatConfig.ini", "AntyHydraKill") == 1) Anty[AntyHydraK] = true;
  839. if(dini_Int("AntyCheatConfig.ini", "AntyCarKill") == 1) Anty[AntyCK] = true;
  840. if(dini_Int("AntyCheatConfig.ini", "AntyPlaneKill") == 1) Anty[AntyPlaneK] = true;
  841. if(dini_Int("AntyCheatConfig.ini", "AntyHunterKill") == 1) Anty[AntyHunterK] = true;
  842. if(dini_Int("AntyCheatConfig.ini", "AntyRhinoKill") == 1) Anty[AntyRhinoK] = true;
  843. if(dini_Int("AntyCheatConfig.ini", "AntySparrowKill") == 1) Anty[AntySparrowK] = true;
  844. if(dini_Int("AntyCheatConfig.ini", "AntyRustlerKill") == 1) Anty[AntyRustlerK] = true;
  845. if(dini_Int("AntyCheatConfig.ini", "AntySpawnKill") == 1) Anty[SpawnProtE] = true;
  846. if(dini_Int("AntyCheatConfig.ini", "AntyPodszywanie") == 1) Anty[AntiPodszywanie] = true;
  847. if(dini_Int("AntyCheatConfig.ini", "KomendaRaport") == 1) Anty[Raport] = true;
  848. if(dini_Int("AntyCheatConfig.ini", "BlackListGraczy") == 1) Anty[BL] = true;
  849. if(dini_Int("AntyCheatConfig.ini", "BlackListKlanow") == 1) Anty[BC] = true;
  850. if(dini_Int("AntyCheatConfig.ini", "AntyCrash") == 1) Anty[AntyCrash] = true;
  851. if(dini_Int("AntyCheatConfig.ini", "AntyPause") == 1) Anty[AntiPause] = SetTimer("AntyPause", 3000, 1);
  852.  
  853. //Wczytywanie - chat
  854. if(dini_Int("AntyCheatConfig.ini", "AntyRepeat") == 1) Anty[AntyRepeat] = true;
  855. if(dini_Int("AntyCheatConfig.ini", "AntyBluzgi") == 1) Anty[AntyBluzgi] = true;
  856. if(dini_Int("AntyCheatConfig.ini", "AntyCapsLock") == 1) Anty[AntiCaps] = true;
  857. if(dini_Int("AntyCheatConfig.ini", "AntyReklamaSerwera") == 1) Anty[AntiIP] = true;
  858. if(dini_Int("AntyCheatConfig.ini", "AntyNadmierneBluzgi") == 1) Anty[AntiNadmierneBluzgi] = true;
  859. if(dini_Int("AntyCheatConfig.ini", "AntyReklamaStrony") == 1) Anty[AntiWWW] = true;
  860. if(dini_Int("AntyCheatConfig.ini", "AntyCommandFlood") == 1) Anty[AntiCmdFlood] = SetTimer("AntyCmdFlood", 1000, 1);
  861. if(dini_Int("AntyCheatConfig.ini", "AntyFlood") == 1) Anty[AntyFlood] = SetTimer("AntiFlood", 1000, 1);
  862. if(dini_Int("AntyCheatConfig.ini", "AntyPrivateMessageFlood") == 1) Anty[AntiPMFlood] = SetTimer("AntyPMFlood", 1000, 1);
  863.  
  864. //Wczytywanie - bugi
  865. if(dini_Int("AntyCheatConfig.ini", "AntyGlitch") == 1) Anty[AntiGlitch] = true;
  866. if(dini_Int("AntyCheatConfig.ini", "AntyFasterSprint") == 1) Anty[AntiFasterSprint] = true;
  867. if(dini_Int("AntyCheatConfig.ini", "AntyVehicleDriverKilling") == 1) Anty[AntiVehicleDriverKilling] = true;
  868. if(dini_Int("AntyCheatConfig.ini", "AntyBugUnlimitedAmmo") == 1) Anty[AntiBugUA] = true;
  869.  
  870. //Wczytywanie - opcje
  871. Anty[MaxPing] = dini_Int("AntyCheatConfig.ini", "MaxPing");
  872. Anty[CzasAFK] = dini_Int("AntyCheatConfig.ini", "CzasAFK");
  873. Anty[MaxSprint] = dini_Int("AntyCheatConfig.ini", "CzasSprint");
  874. Anty[MaxJump] = dini_Int("AntyCheatConfig.ini", "MaxSkokow");
  875. Anty[CzasSpawnProt] = dini_Int("AntyCheatConfig.ini", "CzasAntySpawnKill");
  876. Anty[MaxHydraK] = dini_Int("AntyCheatConfig.ini", "MaxHydraKill");
  877. Anty[MaxDB] = dini_Int("AntyCheatConfig.ini", "MaxDrive-By");
  878. Anty[MaxDT] = dini_Int("AntyCheatConfig.ini", "MaxDrive-Thru");
  879. Anty[MaxCK] = dini_Int("AntyCheatConfig.ini", "MaxCarKill");
  880. Anty[MaxHK] = dini_Int("AntyCheatConfig.ini", "MaxHeliKill");
  881. Anty[MaxHunterK] = dini_Int("AntyCheatConfig.ini", "MaxHunterKill");
  882. Anty[MaxRhinoK] = dini_Int("AntyCheatConfig.ini", "MaxRhinoKill");
  883. Anty[MaxSparrowK] = dini_Int("AntyCheatConfig.ini", "MaxSparrowKill");
  884. Anty[MaxRustlerK] = dini_Int("AntyCheatConfig.ini", "MaxRustlerKill");
  885. Anty[MaxPlaneK] = dini_Int("AntyCheatConfig.ini", "MaxPlaneKill");
  886. Anty[MaxSK] = dini_Int("AntyCheatConfig.ini", "MaxSpawnKill");
  887. Anty[MaxGlitch] = dini_Int("AntyCheatConfig.ini", "MaxGlitchy");
  888.  
  889. //Wczytywanie - bronie
  890. if(dini_Int("AntyCheatConfig.ini", "AntyWeaponCheat") == 1)
  891. {
  892. if(dini_Int("AntyCheatConfig.ini", "Kastet") == 1) Bronie[1][Zakazana] = true;
  893. if(dini_Int("AntyCheatConfig.ini", "KijGolfowy") == 1) Bronie[2][Zakazana] = true;
  894. if(dini_Int("AntyCheatConfig.ini", "PalkaPolicyjna") == 1) Bronie[3][Zakazana] = true;
  895. if(dini_Int("AntyCheatConfig.ini", "Noz") == 1) Bronie[4][Zakazana] = true;
  896. if(dini_Int("AntyCheatConfig.ini", "Baseball") == 1) Bronie[5][Zakazana] = true;
  897. if(dini_Int("AntyCheatConfig.ini", "Lopata") == 1) Bronie[6][Zakazana] = true;
  898. if(dini_Int("AntyCheatConfig.ini", "KijBilardowy") == 1) Bronie[7][Zakazana] = true;
  899. if(dini_Int("AntyCheatConfig.ini", "Katana") == 1) Bronie[8][Zakazana] = true;
  900. if(dini_Int("AntyCheatConfig.ini", "Pila") == 1) Bronie[9][Zakazana] = true;
  901. if(dini_Int("AntyCheatConfig.ini", "RozowyWibrator") == 1) Bronie[10][Zakazana] = true;
  902. if(dini_Int("AntyCheatConfig.ini", "BialyWibrator") == 1) Bronie[11][Zakazana] = true;
  903. if(dini_Int("AntyCheatConfig.ini", "DlugiBialyWibrator") == 1) Bronie[12][Zakazana] = true;
  904. if(dini_Int("AntyCheatConfig.ini", "BialyWibrator2") == 1) Bronie[13][Zakazana] = true;
  905. if(dini_Int("AntyCheatConfig.ini", "Kwiaty") == 1) Bronie[14][Zakazana] = true;
  906. if(dini_Int("AntyCheatConfig.ini", "Laska") == 1) Bronie[15][Zakazana] = true;
  907. if(dini_Int("AntyCheatConfig.ini", "Granaty") == 1) Bronie[16][Zakazana] = true;
  908. if(dini_Int("AntyCheatConfig.ini", "GazLzawiacy") == 1) Bronie[17][Zakazana] = true;
  909. if(dini_Int("AntyCheatConfig.ini", "Molotov") == 1) Bronie[18][Zakazana] = true;
  910. if(dini_Int("AntyCheatConfig.ini", "Pistolety") == 1) Bronie[22][Zakazana] = true;
  911. if(dini_Int("AntyCheatConfig.ini", "PistoletZTlumikiem") == 1) Bronie[23][Zakazana] = true;
  912. if(dini_Int("AntyCheatConfig.ini", "DesertEagle") == 1) Bronie[24][Zakazana] = true;
  913. if(dini_Int("AntyCheatConfig.ini", "Shotgun") == 1) Bronie[25][Zakazana] = true;
  914. if(dini_Int("AntyCheatConfig.ini", "Obrzyny") == 1) Bronie[26][Zakazana] = true;
  915. if(dini_Int("AntyCheatConfig.ini", "CombatShotgun") == 1) Bronie[27][Zakazana] = true;
  916. if(dini_Int("AntyCheatConfig.ini", "Uzi") == 1) Bronie[28][Zakazana] = true;
  917. if(dini_Int("AntyCheatConfig.ini", "MP5") == 1) Bronie[29][Zakazana] = true;
  918. if(dini_Int("AntyCheatConfig.ini", "AK47") == 1) Bronie[30][Zakazana] = true;
  919. if(dini_Int("AntyCheatConfig.ini", "M4") == 1) Bronie[31][Zakazana] = true;
  920. if(dini_Int("AntyCheatConfig.ini", "Tec9") == 1) Bronie[32][Zakazana] = true;
  921. if(dini_Int("AntyCheatConfig.ini", "CountryRifle") == 1) Bronie[33][Zakazana] = true;
  922. if(dini_Int("AntyCheatConfig.ini", "Sniperka") == 1) Bronie[34][Zakazana] = true;
  923. if(dini_Int("AntyCheatConfig.ini", "RPG") == 1) Bronie[35][Zakazana] = true;
  924. if(dini_Int("AntyCheatConfig.ini", "WyrzutniaRakiet") == 1) Bronie[36][Zakazana] = true;
  925. if(dini_Int("AntyCheatConfig.ini", "MiotaczOgnia") == 1) Bronie[37][Zakazana] = true;
  926. if(dini_Int("AntyCheatConfig.ini", "Minigun") == 1) Bronie[38][Zakazana] = true;
  927. if(dini_Int("AntyCheatConfig.ini", "C4") == 1) Bronie[39][Zakazana] = true;
  928. if(dini_Int("AntyCheatConfig.ini", "Detonator") == 1) Bronie[40][Zakazana] = true;
  929. if(dini_Int("AntyCheatConfig.ini", "Spray") == 1) Bronie[41][Zakazana] = true;
  930. if(dini_Int("AntyCheatConfig.ini", "Gasnica") == 1) Bronie[42][Zakazana] = true;
  931. if(dini_Int("AntyCheatConfig.ini", "AparatFotograficzny") == 1) Bronie[43][Zakazana] = true;
  932. if(dini_Int("AntyCheatConfig.ini", "Noktowizor") == 1) Bronie[44][Zakazana] = true;
  933. if(dini_Int("AntyCheatConfig.ini", "Termowizor") == 1) Bronie[45][Zakazana] = true;
  934. if(dini_Int("AntyCheatConfig.ini", "Spadochron") == 1) Bronie[46][Zakazana] = true;
  935. }
  936.  
  937. //Wczytywanie - RP
  938. if(dini_Int("AntyCheatConfig.ini", "AntyEmotyIC") == 1) Anty[AntiICEmo] = true;
  939. if(dini_Int("AntyCheatConfig.ini", "AntyLongSprint") == 1) Anty[AntiLongSprint] = true;
  940. if(dini_Int("AntyCheatConfig.ini", "AntyBunnyHopping") == 1) Anty[AntiBunnyHop] = true;
  941. if(dini_Int("AntyCheatConfig.ini", "AntyNinjaJacking") == 1) Anty[AntiNinjaJacking] = true;
  942.  
  943. //Wczytywanie - Kary
  944. Kara[Jetpack] = dini_Int("AntyCheatConfig.ini", "Jetpack");
  945. Kara[InteriorWeapons] = dini_Int("AntyCheatConfig.ini", "InteriorWeapons");
  946. Kara[WeaponCheat] = dini_Int("AntyCheatConfig.ini", "WeaponCheat");
  947. Kara[InfiniteAmmo] = dini_Int("AntyCheatConfig.ini", "InfiniteAmmo");
  948. Kara[AntyBikeFallOffK] = dini_Int("AntyCheatConfig.ini", "AntiBikeFallOff");
  949. Kara[ArmourCheat] = dini_Int("AntyCheatConfig.ini", "ArmourCheat");
  950. Kara[HealthCheat] = dini_Int("AntyCheatConfig.ini", "HealthCheat");
  951. Kara[MoneyCheat] = dini_Int("AntyCheatConfig.ini", "MoneyCheat");
  952. Kara[Teleport] = dini_Int("AntyCheatConfig.ini", "Teleport");
  953. Kara[MegaJumpK] = dini_Int("AntyCheatConfig.ini", "MegaJump");
  954. Kara[FreezeVehicles] = dini_Int("AntyCheatConfig.ini", "FreezeVehicles");
  955. Kara[VehicleWarp] = dini_Int("AntyCheatConfig.ini", "VehicleWarp");
  956. Kara[SpeedHack] = dini_Int("AntyCheatConfig.ini", "SpeedHack");
  957. Kara[AirBrake] = dini_Int("AntyCheatConfig.ini", "AirBrake");
  958. Kara[AFK] = dini_Int("AntyCheatConfig.ini", "AFK");
  959. Kara[Ping] = dini_Int("AntyCheatConfig.ini", "Ping");
  960. Kara[Jetpack] = dini_Int("AntyCheatConfig.ini", "Jetpack");
  961. Kara[DriveBy] = dini_Int("AntyCheatConfig.ini", "Drive-By");
  962. Kara[DriveThru] = dini_Int("AntyCheatConfig.ini", "Drive-Thru");
  963. Kara[HeliKill] = dini_Int("AntyCheatConfig.ini", "HeliKill");
  964. Kara[HydraKill] = dini_Int("AntyCheatConfig.ini", "HydraKill");
  965. Kara[CarKill] = dini_Int("AntyCheatConfig.ini", "CarKill");
  966. Kara[PlaneKill] = dini_Int("AntyCheatConfig.ini", "PlaneKill");
  967. Kara[HunterKill] = dini_Int("AntyCheatConfig.ini", "HunterKill");
  968. Kara[RhinoKill] = dini_Int("AntyCheatConfig.ini", "RhinoKill");
  969. Kara[SparrowKill] = dini_Int("AntyCheatConfig.ini", "SparrowKill");
  970. Kara[RustlerKill] = dini_Int("AntyCheatConfig.ini", "RustlerKill");
  971. Kara[SpawnKill] = dini_Int("AntyCheatConfig.ini", "SpawnKill");
  972. Kara[Podszywanie] = dini_Int("AntyCheatConfig.ini", "Podszywanie");
  973. Kara[ReklamaSerwera] = dini_Int("AntyCheatConfig.ini", "ReklamaSerwera");
  974. Kara[Flood] = dini_Int("AntyCheatConfig.ini", "Flood");
  975. Kara[PMFlood] = dini_Int("AntyCheatConfig.ini", "PrivateMessageFlood");
  976. Kara[CmdFlood] = dini_Int("AntyCheatConfig.ini", "CommandFlood");
  977. Kara[NadmierneBluzgi] = dini_Int("AntyCheatConfig.ini", "NadmierneBluzgi");
  978. Kara[GlitchK] = dini_Int("AntyCheatConfig.ini", "Glitch");
  979. Kara[FasterSprint] = dini_Int("AntyCheatConfig.ini", "FasterSprint");
  980. Kara[VehDriverKilling] = dini_Int("AntyCheatConfig.ini", "VehicleDriverKilling");
  981. Kara[BugUAK] = dini_Int("AntyCheatConfig.ini", "BugUnlimitedAmmo");
  982. Kara[NinjaJacking] = dini_Int("AntyCheatConfig.ini", "NinjaJacking");
  983. Kara[VehicleGodMode] = dini_Int("AntyCheatConfig.ini", "VehicleGodMode");
  984. Kara[GodMode] = dini_Int("AntyCheatConfig.ini", "GodMode");
  985. Kara[InfiniteOxygen] = dini_Int("AntyCheatConfig.ini", "InfiniteOxygen");
  986. Kara[WalkUnderwater] = dini_Int("AntyCheatConfig.ini", "WalkUnderwater");
  987. Kara[ReklamaStrony] = dini_Int("AntyCheatConfig.ini", "ReklamaStrony");
  988. Kara[Pauza] = dini_Int("AntyCheatConfig.ini", "Pause");
  989. Kara[ProbaCrash] = dini_Int("AntyCheatConfig.ini", "ProbaCrash");
  990.  
  991. SetTimer("SprawdzAdmina", 1000, 1);
  992. SetTimer("NajwyzszeID", 800, 1);
  993. if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
  994. for(new i; i<Sloty; i++)
  995. if(IsPlayerConnected(i))
  996. {
  997. KillTimer(GraczInfo[i][ProtArmHP]);
  998. GraczInfo[i][Prot] = true;
  999. GraczInfo[i][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", i);
  1000. }
  1001. printf("\n----------------------------------\nAntyCheat by Przemcio. (%s)\n----------------------------------\n--- ON ---\n", Wersja);
  1002. return 1;
  1003. }
  1004.  
  1005. public OnFilterScriptExit()
  1006. {
  1007. printf("\n----------------------------------\nAntyCheat by Przemcio. (%s)\n----------------------------------\n--- OFF ---\n", Wersja);
  1008. return 1;
  1009. }
  1010.  
  1011. public OnPlayerConnect(playerid)
  1012. {
  1013. if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
  1014. {
  1015. KillTimer(GraczInfo[playerid][ProtArmHP]);
  1016. GraczInfo[playerid][Prot] = true;
  1017. GraczInfo[playerid][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", playerid);
  1018. }
  1019. format(str, sizeof(str), "AntyCheat by Przemcio - załadowany. Prosimy nie oszukiwać.");
  1020. SendClientMessage(playerid, RED, str);
  1021. if(Anty[BL] == true)
  1022. {
  1023. new File:Plik = fopen("BLGracz.txt", io_read);
  1024. GetPlayerName(playerid, Nick, sizeof(Nick));
  1025. strdel(Nick, 0, strlen(GetPlayerClan(playerid)));
  1026. while(fread(Plik, str, sizeof(str), false))
  1027. {
  1028. new idx;
  1029. new Szukaj[256];
  1030. Szukaj = strtok(str, idx, '-');
  1031. if(strfind(Szukaj, Nick, false) != -1)
  1032. {
  1033. new Znak;
  1034. new Co;
  1035. new Powod[256];
  1036. Co = strval(strtok(str, idx, '-'));
  1037. Znak = idx;
  1038. strmid(Powod, str, Znak, strlen(str), sizeof(Powod));
  1039. GetPlayerName(playerid, Nick, sizeof(Nick));
  1040. switch(Co)
  1041. {
  1042. case 1:
  1043. {
  1044. format(str, sizeof(str), "%s został wyrzucony przez Black List, powód: %s", Nick, Powod);
  1045. SendClientMessageToAll(DARK, str);
  1046. print(str);
  1047. Kick(playerid);
  1048. break;
  1049. }
  1050. case 2:
  1051. {
  1052. format(str, sizeof(str), "%s został zbanowany przez Black List, powód: %s", Nick, Powod);
  1053. SendClientMessageToAll(DARK, str);
  1054. print(str);
  1055. Ban(playerid);
  1056. break;
  1057. }
  1058. }
  1059. break;
  1060. }
  1061. }
  1062. fclose(Plik);
  1063. }
  1064. if(Anty[BC] == true)
  1065. {
  1066. new File:Plik = fopen("BLKlan.txt", io_read);
  1067. while(fread(Plik, str, sizeof(str), false))
  1068. {
  1069. new idx;
  1070. new Szukaj[256];
  1071. Szukaj = strtok(str, idx, '-');
  1072. if(strfind(Szukaj, GetPlayerClan(playerid), false) != -1)
  1073. {
  1074. new Znak;
  1075. new Co;
  1076. new Powod[256];
  1077. Co = strval(strtok(str, idx, '-'));
  1078. Znak = idx;
  1079. strmid(Powod, str, Znak, strlen(str), sizeof(Powod));
  1080. GetPlayerName(playerid, Nick, sizeof(Nick));
  1081. switch(Co)
  1082. {
  1083. case 1:
  1084. {
  1085. format(str, sizeof(str), "%s został wyrzucony przez Clan Black List, powód: %s", Nick, Powod);
  1086. SendClientMessageToAll(DARK, str);
  1087. print(str);
  1088. Kick(playerid);
  1089. break;
  1090. }
  1091. case 2:
  1092. {
  1093. format(str, sizeof(str), "%s został zbanowany przez Clan Black List, powód: %s", Nick, Powod);
  1094. SendClientMessageToAll(DARK, str);
  1095. print(str);
  1096. Ban(playerid);
  1097. break;
  1098. }
  1099. }
  1100. }
  1101. }
  1102. fclose(Plik);
  1103. }
  1104. if(Anty[AntiPodszywanie] == true)
  1105. for(new i; i<HighestID+1; i++)
  1106. {
  1107. if(IsPlayerConnected(i) && i != playerid && IsPlayerAdmin(i))
  1108. {
  1109. GetPlayerName(playerid, Nick, sizeof(Nick));
  1110. GetPlayerName(i, Nick2, sizeof(Nick2));
  1111. if(strlen(Nick) == strlen(Nick2)) GraczInfo[playerid][TaSamaDlugosc] = true;
  1112. for(new g; g<strlen(Nick); g++) if(Nick[g] == Nick2[g]) GraczInfo[playerid][PodobneZnaki]++;
  1113. if(GraczInfo[playerid][TaSamaDlugosc] == true && strlen(Nick2) - GraczInfo[playerid][PodobneZnaki] <= 2)
  1114. {
  1115. format(str, sizeof(str), "Podszywanie się pod admina %s", Nick2);
  1116. switch(Kara[Podszywanie])
  1117. {
  1118. case 1: Kickuj(playerid, str);
  1119. case 2: Banuj(playerid, str);
  1120. case 3: BanujHost(playerid, str);
  1121. }
  1122. }
  1123. else if(GraczInfo[playerid][TaSamaDlugosc] == false && GraczInfo[playerid][PodobneZnaki] == strlen(Nick2))
  1124. {
  1125. format(str, sizeof(str), "Podszywanie się pod admina %s", Nick2);
  1126. switch(Kara[Podszywanie])
  1127. {
  1128. case 1: Kickuj(playerid, str);
  1129. case 2: Banuj(playerid, str);
  1130. case 3: BanujHost(playerid, str);
  1131. }
  1132. }
  1133. GraczInfo[playerid][PodobneZnaki] = 0;
  1134. GraczInfo[playerid][TaSamaDlugosc] = false;
  1135. }
  1136. }
  1137. return 1;
  1138. }
  1139.  
  1140. public OnPlayerDisconnect(playerid, reason)
  1141. {
  1142. GraczInfo[playerid][SpawnProt] = false;
  1143. GraczInfo[playerid][AdminLogged] = false;
  1144. GraczInfo[playerid][WarnAFK] = 0;
  1145. GraczInfo[playerid][WarnPing] = 0;
  1146. GraczInfo[playerid][WarnSpeed] = 0;
  1147. GraczInfo[playerid][WarnJump] = 0;
  1148. GraczInfo[playerid][WarnFlood] = 0;
  1149. GraczInfo[playerid][StaraAmunicja] = 0;
  1150. GraczInfo[playerid][NowaAmunicja] = 1;
  1151. GraczInfo[playerid][SpawnKillWarn] = 0;
  1152. GraczInfo[playerid][WarnUnlimitedAmmo] = 0;
  1153. GraczInfo[playerid][WarnIndoors] = 0;
  1154. GraczInfo[playerid][WarnBuger] = 0;
  1155. GraczInfo[playerid][TimerBugerPoraz] = 0;
  1156. GraczInfo[playerid][WarnGlitch] = 0;
  1157. GraczInfo[playerid][WarnDB] = 0;
  1158. GraczInfo[playerid][WarnCK] = 0;
  1159. GraczInfo[playerid][WarnHK] = 0;
  1160. GraczInfo[playerid][WarnHydraK] = 0;
  1161. GraczInfo[playerid][WarnRhinoK] = 0;
  1162. GraczInfo[playerid][WarnSparrowK] = 0;
  1163. GraczInfo[playerid][WarnPause] = 0;
  1164. GraczInfo[playerid][WarnPlaneK] = 0;
  1165. GraczInfo[playerid][WarnDT] = 0;
  1166. GraczInfo[playerid][WarnHunterK] = 0;
  1167. GraczInfo[playerid][WarnRustlerK] = 0;
  1168. GraczInfo[playerid][WarnLSprint] = 0;
  1169. GraczInfo[playerid][WarnBunnyHop] = 0;
  1170. GraczInfo[playerid][WarnSprint] = 0;
  1171. GraczInfo[playerid][WarnCmdFlood] = 0;
  1172. GraczInfo[playerid][Bluzg] = 0;
  1173. GraczInfo[playerid][PodWoda] = 0;
  1174. GraczInfo[playerid][WarnUnderwater] = 0;
  1175. return 1;
  1176. }
  1177.  
  1178. public OnPlayerDeath(playerid, killerid, reason)
  1179. {
  1180. if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
  1181. for(new i; i<HighestID+1; i++)
  1182. {
  1183. new Float:x, Float:y, Float:z;
  1184. GetPlayerPos(playerid, x, y, z);
  1185. if(PlayerToPoint(10, i, x, y, z) && IsPlayerConnected(i) && !IsPlayerAdmin(i))
  1186. {
  1187. KillTimer(GraczInfo[i][ProtArmHP]);
  1188. GraczInfo[i][Prot] = true;
  1189. GraczInfo[i][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", playerid);
  1190. }
  1191. }
  1192. GraczInfo[playerid][PodWoda] = 0;
  1193. if(GraczInfo[playerid][SpawnProt] == true)
  1194. {
  1195. GraczInfo[killerid][SpawnKillWarn]++;
  1196. if(GraczInfo[killerid][SpawnKillWarn] == Anty[MaxSK])
  1197. switch(Kara[SpawnKill])
  1198. {
  1199. case 1: Kickuj(killerid, "Spawn Kill");
  1200. case 2: Banuj(killerid, "Spawn Kill");
  1201. case 3: BanujHost(killerid, "Spawn Kill");
  1202. }
  1203. format(str, sizeof(str), "Nie zabijaj na spawnie! To Twoje {FFFFFF}%i/%i{FF0000} ostrzeżenie!", GraczInfo[killerid][SpawnKillWarn], Anty[MaxSK]);
  1204. SendClientMessage(killerid, RED, str);
  1205. }
  1206. if(Anty[AntyCK] == true && !IsPlayerAdmin(killerid) && reason == 49 && IsPlayerInAnyVehicle(killerid) && !IsPlayerInHelicopter(killerid))
  1207. {
  1208. GraczInfo[killerid][WarnCK]++;
  1209. if(GraczInfo[killerid][WarnCK] == Anty[MaxCK])
  1210. switch(Kara[CarKill])
  1211. {
  1212. case 1: Kickuj(killerid, "Car Kill");
  1213. case 2: Banuj(killerid, "Car Kill");
  1214. case 3: BanujHost(killerid, "Car Kill");
  1215. }
  1216. format(str, sizeof(str), "Nie zabijaj pojazdem! To Twoje {FFFFFF}%i/%i{FF0000} ostrzeżenie!", GraczInfo[killerid][WarnCK], Anty[MaxCK]);
  1217. SendClientMessage(killerid, RED, str);
  1218. }
  1219. if(Anty[AntyHK] == true && !IsPlayerAdmin(killerid) && reason == 50 && IsPlayerInAnyVehicle(killerid) && IsPlayerInHelicopter(killerid))
  1220. {
  1221. GraczInfo[killerid][WarnHK]++;
  1222. if(GraczInfo[killerid][WarnHK] == Anty[MaxHK])
  1223. switch(Kara[HeliKill])
  1224. {
  1225. case 1: Kickuj(killerid, "Heli Kill");
  1226. case 2: Banuj(killerid, "Heli Kill");
  1227. case 3: BanujHost(killerid, "Heli Kill");
  1228. }
  1229. format(str, sizeof(str), "Nie zabijaj helikopterem! To Twoje {FFFFFF}%i/%i{FF0000} ostrzeżenie!", GraczInfo[killerid][WarnHK], Anty[MaxHK]);
  1230. SendClientMessage(killerid, RED, str);
  1231. }
  1232. if(Anty[AntyHydraK] == true && !IsPlayerAdmin(killerid) && reason == 51 && IsPlayerInAnyVehicle(killerid) && GetVehicleModel(GetPlayerVehicleID(killerid)) == 520)
  1233. {
  1234. GraczInfo[killerid][WarnHydraK]++;
  1235. if(GraczInfo[killerid][WarnHydraK] == Anty[MaxHydraK])
  1236. switch(Kara[HydraKill])
  1237. {
  1238. case 1: Kickuj(killerid, "Hydra Kill");
  1239. case 2: Banuj(killerid, "Hydra Kill");
  1240. case 3: BanujHost(killerid, "Hydra Kill");
  1241. }
  1242. format(str, sizeof(str), "Nie zabijaj Hydrą! To Twoje {FFFFFF}%i/%i{FF0000} ostrzeżenie!", GraczInfo[killerid][WarnHydraK], Anty[MaxHydraK]);
  1243. SendClientMessage(killerid, RED, str);
  1244. }
  1245. if(Anty[AntyRustlerK] == true && !IsPlayerAdmin(killerid) && reason == WEAPON_M4 && IsPlayerInAnyVehicle(killerid) && GetVehicleModel(GetPlayerVehicleID(killerid)) == 476)
  1246. {
  1247. GraczInfo[killerid][WarnRustlerK]++;
  1248. if(GraczInfo[killerid][WarnRustlerK] == Anty[MaxRustlerK])
  1249. switch(Kara[RustlerKill])
  1250. {
  1251. case 1: Kickuj(killerid, "Rustler Kill");
  1252. case 2: Banuj(killerid, "Rustler Kill");
  1253. case 3: BanujHost(killerid, "Rustler Kill");
  1254. }
  1255. format(str, sizeof(str), "Nie zabijaj Rustler'em! To Twoje {FFFFFF}%i/%i{FF0000} ostrzeżenie!", GraczInfo[killerid][WarnRustlerK], Anty[MaxRustlerK]);
  1256. SendClientMessage(killerid, RED, str);
  1257. }
  1258. if(Anty[AntyHunterK] == true && !IsPlayerAdmin(killerid) && (reason == WEAPON_MINIGUN || reason == 51) && IsPlayerInAnyVehicle(killerid) && GetVehicleModel(GetPlayerVehicleID(killerid)) == 425)
  1259. {
  1260. GraczInfo[killerid][WarnHunterK]++;
  1261. if(GraczInfo[killerid][WarnHunterK] == Anty[MaxHunterK])
  1262. switch(Kara[HunterKill])
  1263. {
  1264. case 1: Kickuj(killerid, "Hunter Kill");
  1265. case 2: Banuj(killerid, "Hunter Kill");
  1266. case 3: BanujHost(killerid, "Hunter Kill");
  1267. }
  1268. format(str, sizeof(str), "Nie zabijaj Hunter'em! To Twoje {FFFFFF}%i/%i{FF0000} ostrzeżenie!", GraczInfo[killerid][WarnHunterK], Anty[MaxHunterK]);
  1269. SendClientMessage(killerid, RED, str);
  1270. }
  1271. if(Anty[AntySparrowK] == true && !IsPlayerAdmin(killerid) && reason == WEAPON_M4 && IsPlayerInAnyVehicle(killerid) && GetVehicleModel(GetPlayerVehicleID(killerid)) == 447)
  1272. {
  1273. GraczInfo[killerid][WarnSparrowK]++;
  1274. if(GraczInfo[killerid][WarnSparrowK] == Anty[MaxSparrowK])
  1275. switch(Kara[SparrowKill])
  1276. {
  1277. case 1: Kickuj(killerid, "Sparrow Kill");
  1278. case 2: Banuj(killerid, "Sparrow Kill");
  1279. case 3: BanujHost(killerid, "Sparrow Kill");
  1280. }
  1281. format(str, sizeof(str), "Nie zabijaj Sea-sparrow'em! To Twoje {FFFFFF}%i/%i{FF0000} ostrzeżenie!", GraczInfo[killerid][WarnSparrowK], Anty[MaxSparrowK]);
  1282. SendClientMessage(killerid, RED, str);
  1283. }
  1284. if(Anty[AntyRhinoK] == true && !IsPlayerAdmin(killerid) && reason == 51 && IsPlayerInAnyVehicle(killerid) && GetVehicleModel(GetPlayerVehicleID(killerid)) == 432)
  1285. {
  1286. GraczInfo[killerid][WarnRhinoK]++;
  1287. if(GraczInfo[killerid][WarnRhinoK] == Anty[MaxRhinoK])
  1288. switch(Kara[RhinoKill])
  1289. {
  1290. case 1: Kickuj(killerid, "Rhino Kill");
  1291. case 2: Banuj(killerid, "Rhino Kill");
  1292. case 3: BanujHost(killerid, "Rhino Kill");
  1293. }
  1294. format(str, sizeof(str), "Nie zabijaj czołgiem! To Twoje {FFFFFF}%i/%i{FF0000} ostrzeżenie!", GraczInfo[killerid][WarnRhinoK], Anty[MaxRhinoK]);
  1295. SendClientMessage(killerid, RED, str);
  1296. }
  1297. if(Anty[AntyPlaneK] == true && !IsPlayerAdmin(killerid) && reason == 54 && IsPlayerInAnyVehicle(killerid))
  1298. {
  1299. GraczInfo[killerid][WarnPlaneK]++;
  1300. if(GraczInfo[killerid][WarnPlaneK] == Anty[MaxPlaneK])
  1301. {
  1302. switch(Kara[PlaneKill])
  1303. {
  1304. case 1: Kickuj(killerid, "Plane Kill");
  1305. case 2: Banuj(killerid, "Plane Kill");
  1306. case 3: BanujHost(killerid, "Plane Kill");
  1307. }
  1308. }
  1309. format(str, sizeof(str), "Nie zabijaj samolotem! To Twoje {FFFFFF}%i/%i{FF0000} ostrzeżenie!", GraczInfo[killerid][WarnPlaneK], Anty[MaxPlaneK]);
  1310. SendClientMessage(killerid, RED, str);
  1311. }
  1312. if(Anty[AntyDB] == true && !IsPlayerAdmin(killerid) && (reason == WEAPON_TEC9 || reason == WEAPON_MP5 || reason == WEAPON_UZI) && GetPlayerState(killerid) == PLAYER_STATE_DRIVER && !IsPlayerInAnyVehicle(playerid))
  1313. {
  1314. GraczInfo[killerid][WarnDB]++;
  1315. if(GraczInfo[killerid][WarnDB] == Anty[MaxDB])
  1316. switch(Kara[DriveBy])
  1317. {
  1318. case 1: Kickuj(killerid, "Drive-By");
  1319. case 2: Banuj(killerid, "Drive-By");
  1320. case 3: BanujHost(killerid, "Drive-By");
  1321. }
  1322. format(str, sizeof(str), "Nie strzelaj z Drive-By! To Twoje {FFFFFF}%i/%i{FF0000} ostrzeżenie!", GraczInfo[killerid][WarnDB], Anty[MaxDB]);
  1323. SendClientMessage(killerid, RED, str);
  1324. }
  1325. if(Anty[AntyDT] == true && !IsPlayerAdmin(killerid) && (reason == WEAPON_TEC9 || reason == WEAPON_MP5 || reason == WEAPON_UZI) && GetPlayerState(killerid) == PLAYER_STATE_PASSENGER && !IsPlayerInAnyVehicle(playerid))
  1326. {
  1327. GraczInfo[killerid][WarnDT]++;
  1328. if(GraczInfo[killerid][WarnDT] == Anty[MaxDT])
  1329. switch(Kara[DriveThru])
  1330. {
  1331. case 1: Kickuj(killerid, "Drive-Thru");
  1332. case 2: Banuj(killerid, "Drive-Thru");
  1333. case 3: BanujHost(killerid, "Drive-Thru");
  1334. }
  1335. format(str, sizeof(str), "Nie strzelaj z Drive-Thru! To Twoje {FFFFFF}%i/%i{FF0000} ostrzeżenie!", GraczInfo[killerid][WarnDT], Anty[MaxDT]);
  1336. SendClientMessage(killerid, RED, str);
  1337. }
  1338. return 1;
  1339. }
  1340.  
  1341. public OnPlayerEnterCheckpoint(playerid)
  1342. {
  1343. if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
  1344. for(new i; i<HighestID+1; i++)
  1345. {
  1346. new Float:x, Float:y, Float:z;
  1347. GetPlayerPos(playerid, x, y, z);
  1348. if(PlayerToPoint(10, i, x, y, z) && IsPlayerConnected(i) && !IsPlayerAdmin(i))
  1349. {
  1350. KillTimer(GraczInfo[i][ProtArmHP]);
  1351. GraczInfo[i][Prot] = true;
  1352. GraczInfo[i][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", playerid);
  1353. }
  1354. }
  1355. return 1;
  1356. }
  1357.  
  1358. public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
  1359. {
  1360. if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
  1361. for(new i; i<HighestID+1; i++)
  1362. {
  1363. new Float:x, Float:y, Float:z;
  1364. GetPlayerPos(playerid, x, y, z);
  1365. if(PlayerToPoint(10, i, x, y, z) && IsPlayerConnected(i) && !IsPlayerAdmin(i))
  1366. {
  1367. KillTimer(GraczInfo[i][ProtArmHP]);
  1368. GraczInfo[i][Prot] = true;
  1369. GraczInfo[i][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", playerid);
  1370. }
  1371. }
  1372. return 1;
  1373. }
  1374.  
  1375. public OnPlayerExitVehicle(playerid, vehicleid)
  1376. {
  1377. if(Anty[AntiGodMode] != 0 && GraczInfo[playerid][TimerProtGod] == 0)
  1378. {
  1379. KillTimer(GraczInfo[playerid][ProtGod]);
  1380. GraczInfo[playerid][ProtGod] = true;
  1381. GraczInfo[playerid][TimerProtGod] = SetTimerEx("UsunProtGod", 4000, 0, "d", playerid);
  1382. }
  1383. if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
  1384. for(new i; i<HighestID+1; i++)
  1385. {
  1386. new Float:x, Float:y, Float:z;
  1387. GetPlayerPos(playerid, x, y, z);
  1388. if(PlayerToPoint(10, i, x, y, z) && IsPlayerConnected(i) && !IsPlayerAdmin(i))
  1389. {
  1390. KillTimer(GraczInfo[i][ProtArmHP]);
  1391. GraczInfo[i][Prot] = true;
  1392. GraczInfo[i][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", playerid);
  1393. }
  1394. }
  1395. GraczInfo[playerid][OldVeh] = vehicleid;
  1396. return 1;
  1397. }
  1398.  
  1399. public OnVehicleDeath(vehicleid, killerid)
  1400. {
  1401. if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
  1402. {
  1403. KillTimer(GraczInfo[VehicleDriverID(vehicleid)][ProtArmHP]);
  1404. GraczInfo[VehicleDriverID(vehicleid)][Prot] = true;
  1405. GraczInfo[VehicleDriverID(vehicleid)][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", VehicleDriverID(vehicleid));
  1406. }
  1407. CarOldX[vehicleid] = 0;
  1408. CarOldY[vehicleid] = 0;
  1409. CarOldZ[vehicleid] = 0;
  1410. return 1;
  1411. }
  1412.  
  1413. public OnVehicleSpawn(vehicleid)
  1414. {
  1415. if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
  1416. {
  1417. KillTimer(GraczInfo[VehicleDriverID(vehicleid)][ProtArmHP]);
  1418. GraczInfo[VehicleDriverID(vehicleid)][Prot] = true;
  1419. GraczInfo[VehicleDriverID(vehicleid)][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", VehicleDriverID(vehicleid));
  1420. }
  1421. CarOldX[vehicleid] = 0;
  1422. CarOldY[vehicleid] = 0;
  1423. CarOldZ[vehicleid] = 0;
  1424. return 1;
  1425. }
  1426.  
  1427. public OnVehicleRespray(vehicleid, color1, color2)
  1428. {
  1429. if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
  1430. {
  1431. KillTimer(GraczInfo[VehicleDriverID(vehicleid)][ProtArmHP]);
  1432. GraczInfo[VehicleDriverID(vehicleid)][Prot] = true;
  1433. GraczInfo[VehicleDriverID(vehicleid)][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", VehicleDriverID(vehicleid));
  1434. }
  1435. return 1;
  1436. }
  1437.  
  1438. public OnVehicleMod(vehicleid, componentid)
  1439. {
  1440. if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
  1441. {
  1442. KillTimer(GraczInfo[VehicleDriverID(vehicleid)][ProtArmHP]);
  1443. GraczInfo[VehicleDriverID(vehicleid)][Prot] = true;
  1444. GraczInfo[VehicleDriverID(vehicleid)][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", VehicleDriverID(vehicleid));
  1445. }
  1446. return 1;
  1447. }
  1448.  
  1449. public OnVehiclePaintjob(vehicleid, paintjobid)
  1450. {
  1451. if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
  1452. {
  1453. KillTimer(GraczInfo[VehicleDriverID(vehicleid)][ProtArmHP]);
  1454. GraczInfo[VehicleDriverID(vehicleid)][Prot] = true;
  1455. GraczInfo[VehicleDriverID(vehicleid)][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", VehicleDriverID(vehicleid));
  1456. }
  1457. return 1;
  1458. }
  1459.  
  1460. public OnPlayerRequestClass(playerid, classid)
  1461. {
  1462. if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
  1463. for(new i; i<HighestID+1; i++)
  1464. {
  1465. new Float:x, Float:y, Float:z;
  1466. GetPlayerPos(playerid, x, y, z);
  1467. if(PlayerToPoint(10, i, x, y, z) && IsPlayerConnected(i) && !IsPlayerAdmin(i))
  1468. {
  1469. KillTimer(GraczInfo[i][ProtArmHP]);
  1470. GraczInfo[i][Prot] = true;
  1471. GraczInfo[i][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", playerid);
  1472. }
  1473. }
  1474. return 1;
  1475. }
  1476.  
  1477. public OnPlayerStateChange(playerid, newstate, oldstate)
  1478. {
  1479. if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
  1480. for(new i; i<HighestID+1; i++)
  1481. {
  1482. new Float:x, Float:y, Float:z;
  1483. GetPlayerPos(playerid, x, y, z);
  1484. if(PlayerToPoint(10, i, x, y, z) && IsPlayerConnected(i) && !IsPlayerAdmin(i))
  1485. {
  1486. KillTimer(GraczInfo[i][ProtArmHP]);
  1487. GraczInfo[i][Prot] = true;
  1488. GraczInfo[i][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", playerid);
  1489. }
  1490. }
  1491. if(Anty[AntiVehWarp] == true && !IsPlayerAdmin(playerid) && oldstate == PLAYER_STATE_DRIVER) GetPlayerPos(playerid, CarOldX[GraczInfo[playerid][OldVeh]], CarOldY[GraczInfo[playerid][OldVeh]], CarOldZ[GraczInfo[playerid][OldVeh]]);
  1492. if(Anty[AntiVehGod] == true && !IsPlayerAdmin(playerid) && newstate == PLAYER_STATE_DRIVER)
  1493. {
  1494. KillTimer(GraczInfo[playerid][TimerGod]);
  1495. GraczInfo[playerid][TimerGod] = 0;
  1496. GetVehicleHealth(GetPlayerVehicleID(playerid), GraczInfo[playerid][GodWozStareHP]);
  1497. GraczInfo[playerid][TimerBombaVehGod] = SetTimerEx("BombaVehGod", 300, 0, "d", playerid);
  1498. }
  1499. return 1;
  1500. }
  1501.  
  1502. public OnPlayerLeaveCheckpoint(playerid)
  1503. {
  1504. if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
  1505. for(new i; i<HighestID+1; i++)
  1506. {
  1507. new Float:x, Float:y, Float:z;
  1508. GetPlayerPos(playerid, x, y, z);
  1509. if(PlayerToPoint(10, i, x, y, z) && IsPlayerConnected(i) && !IsPlayerAdmin(i))
  1510. {
  1511. KillTimer(GraczInfo[i][ProtArmHP]);
  1512. GraczInfo[i][Prot] = true;
  1513. GraczInfo[i][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", playerid);
  1514. }
  1515. }
  1516. return 1;
  1517. }
  1518.  
  1519. public OnPlayerPrivmsg(playerid, recieverid, text[])
  1520. {
  1521. if(Anty[AntyRepeat] == true && !IsPlayerAdmin(playerid))
  1522. {
  1523. if(strcmp(GraczInfo[playerid][PMText], text, false) == 0 && strlen(GraczInfo[playerid][PMText]) != 0)
  1524. {
  1525. if(Anty[AntiPMFlood] != 0) GraczInfo[playerid][WarnPMFlood]++;
  1526. SendClientMessage(playerid, RED, "Nie spamuj bo zostaniesz wyrzucony!");
  1527. return 0;
  1528. }
  1529. format(GraczInfo[playerid][PMText], 256, "%s", text);
  1530. }
  1531. GraczInfo[playerid][WarnPMFlood]++;
  1532. SprawdzBluzgi(playerid, text);
  1533. if(Anty[AntiCaps] == true)
  1534. {
  1535. new DuzeLitery;
  1536. for(new i; i<strlen(text); i++)
  1537. if(text[i] >= 'A' && text[i] <= 'Z') DuzeLitery++;
  1538. if(strlen(text) / DuzeLitery <= 2)
  1539. for(new i = 1; i<strlen(text); i++) text[i] = tolower(text[i]);
  1540. }
  1541. return 1;
  1542. }
  1543.  
  1544. public OnPlayerRequestSpawn(playerid)
  1545. {
  1546. if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
  1547. for(new i; i<HighestID+1; i++)
  1548. {
  1549. new Float:x, Float:y, Float:z;
  1550. GetPlayerPos(playerid, x, y, z);
  1551. if(PlayerToPoint(10, i, x, y, z) && IsPlayerConnected(i) && !IsPlayerAdmin(i))
  1552. {
  1553. KillTimer(GraczInfo[i][ProtArmHP]);
  1554. GraczInfo[i][Prot] = true;
  1555. GraczInfo[i][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", playerid);
  1556. }
  1557. }
  1558. return 1;
  1559. }
  1560.  
  1561. public OnPlayerSelectedMenuRow(playerid, row)
  1562. {
  1563. if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
  1564. for(new i; i<HighestID+1; i++)
  1565. {
  1566. new Float:x, Float:y, Float:z;
  1567. GetPlayerPos(playerid, x, y, z);
  1568. if(PlayerToPoint(10, i, x, y, z) && IsPlayerConnected(i) && !IsPlayerAdmin(i))
  1569. {
  1570. KillTimer(GraczInfo[i][ProtArmHP]);
  1571. GraczInfo[i][Prot] = true;
  1572. GraczInfo[i][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", playerid);
  1573. }
  1574. }
  1575. return 1;
  1576. }
  1577.  
  1578. public OnPlayerExitedMenu(playerid)
  1579. {
  1580. if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
  1581. for(new i; i<HighestID+1; i++)
  1582. {
  1583. new Float:x, Float:y, Float:z;
  1584. GetPlayerPos(playerid, x, y, z);
  1585. if(PlayerToPoint(10, i, x, y, z) && IsPlayerConnected(i) && !IsPlayerAdmin(i))
  1586. {
  1587. KillTimer(GraczInfo[i][ProtArmHP]);
  1588. GraczInfo[i][Prot] = true;
  1589. GraczInfo[i][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", playerid);
  1590. }
  1591. }
  1592. return 1;
  1593. }
  1594.  
  1595. public OnPlayerPickUpPickup(playerid, pickupid)
  1596. {
  1597. if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
  1598. for(new i; i<HighestID+1; i++)
  1599. {
  1600. new Float:x, Float:y, Float:z;
  1601. GetPlayerPos(playerid, x, y, z);
  1602. if(PlayerToPoint(10, i, x, y, z) && IsPlayerConnected(i) && !IsPlayerAdmin(i))
  1603. {
  1604. KillTimer(GraczInfo[i][ProtArmHP]);
  1605. GraczInfo[i][Prot] = true;
  1606. GraczInfo[i][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", playerid);
  1607. }
  1608. }
  1609. return 1;
  1610. }
  1611.  
  1612. public OnPlayerSpawn(playerid)
  1613. {
  1614. if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
  1615. for(new i; i<HighestID+1; i++)
  1616. {
  1617. new Float:x, Float:y, Float:z;
  1618. GetPlayerPos(playerid, x, y, z);
  1619. if(PlayerToPoint(10, i, x, y, z) && IsPlayerConnected(i) && !IsPlayerAdmin(i))
  1620. {
  1621. KillTimer(GraczInfo[i][ProtArmHP]);
  1622. GraczInfo[i][Prot] = true;
  1623. GraczInfo[i][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", playerid);
  1624. }
  1625. }
  1626. GraczInfo[playerid][PodWoda] = 0;
  1627. if(Anty[SpawnProtE] == true)
  1628. {
  1629. GraczInfo[playerid][SpawnProt] = true;
  1630. GraczInfo[playerid][SpawnProtT] = SetTimerEx("WylaczSpawnProt", Anty[CzasSpawnProt]*1000, 0, "d", playerid);
  1631. }
  1632. return 1;
  1633. }
  1634.  
  1635. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
  1636. {
  1637. if(Anty[AntiMegaJump] == true && newkeys & KEY_JUMP && !IsPlayerAdmin(playerid) && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT && GraczInfo[playerid][PierwszeZ] == 0 && GraczInfo[playerid][WarnSpeed] == 0)
  1638. {
  1639. GetServerVarAsString("gravity", str, sizeof(str));
  1640. if(strcmp(str, "0.008", true) == 0)
  1641. {
  1642. new Float:x, Float:y;
  1643. GetPlayerHealth(playerid, GraczInfo[playerid][StareHPMJ]);
  1644. GetPlayerPos(playerid, x, y, GraczInfo[playerid][PierwszeZ]);
  1645. GraczInfo[playerid][TimerMegaJump] = SetTimerEx("MegaJump", 500, 0, "d", playerid);
  1646. }
  1647. }
  1648. if(Anty[AntiFasterSprint] == true && !IsPlayerAdmin(playerid) && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT && newkeys & KEY_SPRINT)
  1649. {
  1650. new Cos;
  1651. GetPlayerKeys(playerid, Cos, GraczInfo[playerid][GoraDol], GraczInfo[playerid][LewoPrawo]);
  1652. if(GraczInfo[playerid][GoraDol] != 0 || GraczInfo[playerid][LewoPrawo] != 0)
  1653. {
  1654. if(GraczInfo[playerid][TimerBieg] == 0) GraczInfo[playerid][TimerBieg] = SetTimerEx("SprawdzBieg", 3000, 0, "d", playerid);
  1655. GraczInfo[playerid][WarnSprint]++;
  1656. if(GraczInfo[playerid][WarnSprint] == 10)
  1657. {
  1658. switch(Kara[FasterSprint])
  1659. {
  1660. case 1: Kickuj(playerid, "Faster Sprint");
  1661. case 2: Banuj(playerid, "Faster Sprint");
  1662. case 3: BanujHost(playerid, "Faster Sprint");
  1663. }
  1664. KillTimer(GraczInfo[playerid][TimerBieg]);
  1665. GraczInfo[playerid][TimerBieg] = 0;
  1666. }
  1667. }
  1668. }
  1669. if(Anty[AntiLongSprint] == true && newkeys & KEY_SPRINT && !IsPlayerAdmin(playerid) && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT && GraczInfo[playerid][TimerWstan] == 0 && GraczInfo[playerid][TimerLongSprint] == 0)
  1670. {
  1671. new Cos;
  1672. GetPlayerKeys(playerid, Cos, GraczInfo[playerid][GoraDol], GraczInfo[playerid][LewoPrawo]);
  1673. if(GraczInfo[playerid][GoraDol] != 0 || GraczInfo[playerid][LewoPrawo] != 0) GraczInfo[playerid][TimerLongSprint] = SetTimerEx("LongSprint", 1000, 1, "d", playerid);
  1674. }
  1675. if(Anty[AntiLongSprint] == true && !IsPlayerAdmin(playerid) && oldkeys & KEY_SPRINT)
  1676. {
  1677. KillTimer(GraczInfo[playerid][TimerLongSprint]);
  1678. GraczInfo[playerid][TimerLongSprint] = 0;
  1679. GraczInfo[playerid][WarnLSprint] = 0;
  1680. }
  1681. if(Anty[AntiBunnyHop] == true && !IsPlayerAdmin(playerid) && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT && newkeys & KEY_JUMP && GraczInfo[playerid][TimerWstan] == 0)
  1682. {
  1683. if(GraczInfo[playerid][TimerBunnyHop] == 0) GraczInfo[playerid][TimerBunnyHop] = SetTimerEx("BunnyHop", 5000, 0, "d", playerid);
  1684. GraczInfo[playerid][WarnBunnyHop]++;
  1685. if(GraczInfo[playerid][WarnBunnyHop] > Anty[MaxJump])
  1686. {
  1687. GraczInfo[playerid][WarnBunnyHop] = 0;
  1688. SendClientMessage(playerid, YELLOW, "Przewróciłeś się!");
  1689. ApplyAnimation(playerid, "PED", "FLOOR_hit_f", 4.1, 0, 1, 1, 1, 0);
  1690. GraczInfo[playerid][TimerWstan] = SetTimerEx("Wstan", 5000, 0, "d", playerid);
  1691. KillTimer(GraczInfo[playerid][TimerBunnyHop]);
  1692. GraczInfo[playerid][TimerBunnyHop] = 0;
  1693. }
  1694. }
  1695. if(Anty[AntiGlitch] == true && !IsPlayerAdmin(playerid) && newkeys & KEY_FIRE && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT && GraczInfo[playerid][Klawisz] == 0)
  1696. {
  1697. new Bron;
  1698. Bron = GetPlayerWeapon(playerid);
  1699. if(Bron == 23 || Bron == 24 || Bron == 25 || Bron == 27 || Bron == 29 || Bron == 30 || Bron == 31 || Bron == 33 || Bron == 34 || Bron == 41 || Bron == 42)
  1700. {
  1701. GraczInfo[playerid][Klawisz] = KEY_FIRE;
  1702. if(GraczInfo[playerid][TimerGlitch] == 0) GraczInfo[playerid][TimerGlitch] = SetTimerEx("Glitch", 500, 0, "d", playerid);
  1703. }
  1704. }
  1705. if(newkeys & KEY_CROUCH && GraczInfo[playerid][Klawisz] == KEY_FIRE) GraczInfo[playerid][Klawisz] = KEY_CROUCH;
  1706. if((newkeys & KEY_JUMP || newkeys & KEY_SPRINT) && GraczInfo[playerid][Klawisz] == KEY_CROUCH)
  1707. {
  1708. KillTimer(GraczInfo[playerid][TimerGlitch]);
  1709. GraczInfo[playerid][TimerGlitch] = 0;
  1710. GraczInfo[playerid][WarnGlitch]++;
  1711. GraczInfo[playerid][Klawisz] = 0;
  1712. if(GraczInfo[playerid][WarnGlitch] == Anty[MaxGlitch])
  1713. switch(Kara[GlitchK])
  1714. {
  1715. case 1: Kickuj(playerid, "Glitch");
  1716. case 2: Banuj(playerid, "Glitch");
  1717. case 3: BanujHost(playerid, "Glitch");
  1718. }
  1719. }
  1720. if(Anty[AntiBugUA] == true && !IsPlayerAdmin(playerid) && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT && newkeys & KEY_FIRE && GetPlayerWeapon(playerid) == 0 && GraczInfo[playerid][Klawisz] == 0)
  1721. {
  1722. GraczInfo[playerid][Klawisz] = 666;
  1723. if(GraczInfo[playerid][TimerUA] == 0) GraczInfo[playerid][TimerUA] = SetTimerEx("BugUA", 1000, 0, "d", playerid);
  1724. }
  1725. if(newkeys & KEY_CROUCH && GraczInfo[playerid][Klawisz] == 666 && GetPlayerWeapon(playerid) == 0)
  1726. {
  1727. GraczInfo[playerid][CrouchTimes]++;
  1728. if(GraczInfo[playerid][CrouchTimes] == 3)
  1729. {
  1730. KillTimer(GraczInfo[playerid][TimerUA]);
  1731. GraczInfo[playerid][TimerUA] = 0;
  1732. GraczInfo[playerid][Klawisz] = 0;
  1733. switch(Kara[BugUAK])
  1734. {
  1735. case 1: Kickuj(playerid, "Bug Unlimited Ammo");
  1736. case 2: Banuj(playerid, "Bug Unlimited Ammo");
  1737. case 3: BanujHost(playerid, "Bug Unlimited Ammo");
  1738. }
  1739. }
  1740. }
  1741. return 1;
  1742. }
  1743.  
  1744. public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
  1745. {
  1746. if(Anty[AntiGodMode] != 0 && GraczInfo[playerid][TimerProtGod] == 0)
  1747. {
  1748. KillTimer(GraczInfo[playerid][ProtGod]);
  1749. GraczInfo[playerid][ProtGod] = true;
  1750. GraczInfo[playerid][TimerProtGod] = SetTimerEx("UsunProtGod", 4000, 0, "d", playerid);
  1751. }
  1752. if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
  1753. for(new i; i<HighestID+1; i++)
  1754. {
  1755. new Float:x, Float:y, Float:z;
  1756. GetPlayerPos(playerid, x, y, z);
  1757. if(PlayerToPoint(10, i, x, y, z) && IsPlayerConnected(i) && !IsPlayerAdmin(i))
  1758. {
  1759. KillTimer(GraczInfo[i][ProtArmHP]);
  1760. GraczInfo[i][Prot] = true;
  1761. GraczInfo[i][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", playerid);
  1762. }
  1763. }
  1764. if(Anty[AntiVehWarp] == true && ispassenger == 0)
  1765. {
  1766. new Float:x, Float:y, Float:z;
  1767. GetPlayerPos(playerid, x, y, z);
  1768. if(CarOldX[vehicleid] != 0 && CarOldY[vehicleid] != 0 && CarOldZ[vehicleid] != 0 && GetPointDistanceToPoint(x, y, CarOldX[vehicleid], CarOldY[vehicleid]) >= 200)
  1769. switch(Kara[VehicleWarp])
  1770. {
  1771. case 1: Kickuj(playerid, "Vehicle Warp");
  1772. case 2: Banuj(playerid, "Vehicle Warp");
  1773. case 3: BanujHost(playerid, "Vehicle Warp");
  1774. }
  1775. }
  1776. if(Anty[AntiBikeFallOff] != 0)
  1777. {
  1778. GraczInfo[playerid][WozNewHP] = 0;
  1779. GraczInfo[playerid][WozOldHP] = 0;
  1780. }
  1781. if(Anty[AntiHealth] != 0)
  1782. {
  1783. new Float: x;
  1784. GetVehicleHealth(vehicleid, x);
  1785. GraczInfo[playerid][NewVehHP] = x;
  1786. GraczInfo[playerid][OldVehHP] = x;
  1787. }
  1788. if(Anty[AntiVehicleDriverKilling] == true && !IsPlayerAdmin(playerid) && ispassenger == 0)
  1789. {
  1790. for(new i; i<HighestID+1; i++)
  1791. if(IsPlayerConnected(i))
  1792. if(IsPlayerInVehicle(i, vehicleid) && GetPlayerState(i) == PLAYER_STATE_DRIVER && !IsPlayerOnBike(i) && !IsPlayerInBoat(i) && !IsPlayerOnBicycle(i) && GraczInfo[playerid][TimerBuger] == 0 && i != playerid) GraczInfo[playerid][TimerBuger] = SetTimerEx("AntyVehicleDriverKilling", 500, 1, "d", playerid);
  1793. }
  1794. if(Anty[AntiNinjaJacking] == true && !IsPlayerAdmin(playerid) && ispassenger == 0)
  1795. for(new i; i<HighestID+1; i++)
  1796. if(i != playerid && IsPlayerConnected(i) && IsPlayerInVehicle(i, vehicleid) && GetPlayerState(i) == PLAYER_STATE_DRIVER)
  1797. switch(Kara[NinjaJacking])
  1798. {
  1799. case 1: Kickuj(playerid, "Ninja Jacking");
  1800. case 2: Banuj(playerid, "Ninja Jacking");
  1801. case 3: BanujHost(playerid, "Ninja Jacking");
  1802. }
  1803. if(Anty[AntiFreezeVeh] == true && !IsPlayerAdmin(playerid))
  1804. for(new i; i<HighestID+1; i++)
  1805. if(IsPlayerConnected(i))
  1806. {
  1807. new Float:x, Float:y, Float:z, Float:x3, Float:y3, Float:z3;
  1808. GetPlayerPos(playerid, x, y, z);
  1809. GetVehiclePos(vehicleid, x3, y3, z3);
  1810. if(i != playerid && IsPlayerInVehicle(i, vehicleid) && GetPlayerState(i) == PLAYER_STATE_DRIVER && GetPointDistanceToPoint(x, y, x3, y3) >= 20)
  1811. switch(Kara[FreezeVehicles])
  1812. {
  1813. case 1: Kickuj(playerid, "Freeze Vehicles");
  1814. case 2: Banuj(playerid, "Freeze Vehicles");
  1815. case 3: BanujHost(playerid, "Freeze Vehicles");
  1816. }
  1817. }
  1818. return 1;
  1819. }
  1820.  
  1821. public OnPlayerCommandText(playerid, cmdtext[])
  1822. {
  1823. if(Anty[AntyCrash] == true && strlen(cmdtext) >= 50)
  1824. {
  1825. switch(Kara[ProbaCrash])
  1826. {
  1827. case 1: Kickuj(playerid, "Próbę Crash'owania Serwera");
  1828. case 2: Banuj(playerid, "Próbę Crash'owania Serwera");
  1829. case 3: BanujHost(playerid, "Próbę Crash'owania Serwera");
  1830. }
  1831. return 0;
  1832. }
  1833. new idx1;
  1834. new id[256];
  1835. GraczInfo[playerid][WarnCmdFlood]++;
  1836.  
  1837. dcmd(aspeed, 6, cmdtext);
  1838. dcmd(aafk, 4, cmdtext);
  1839. dcmd(abikefall, 9, cmdtext);
  1840. dcmd(aweapcheat, 9, cmdtext);
  1841. dcmd(aindoors, 8, cmdtext);
  1842. dcmd(ainfiammo, 9, cmdtext);
  1843. dcmd(ajet, 4, cmdtext);
  1844. dcmd(amaxafk, 7, cmdtext);
  1845. dcmd(amaxping, 8, cmdtext);
  1846. dcmd(aping, 5, cmdtext);
  1847. dcmd(amegajump, 9, cmdtext);
  1848. dcmd(azbron, 6, cmdtext);
  1849. dcmd(ask, 3, cmdtext);
  1850. dcmd(askczas, 7, cmdtext);
  1851. dcmd(adb, 3, cmdtext);
  1852. dcmd(adt, 3, cmdtext);
  1853. dcmd(ahk, 3, cmdtext);
  1854. dcmd(ack, 3, cmdtext);
  1855. dcmd(ahydrak, 7, cmdtext);
  1856. dcmd(aflood, 6, cmdtext);
  1857. dcmd(aairbrake, 9, cmdtext);
  1858. dcmd(aarmour, 7, cmdtext);
  1859. dcmd(ahp, 3, cmdtext);
  1860. dcmd(avdk, 4, cmdtext);
  1861. dcmd(ark, 3, cmdtext);
  1862. dcmd(ahunterk, 8, cmdtext);
  1863. dcmd(arhinok, 7, cmdtext);
  1864. dcmd(asparrowk, 9, cmdtext);
  1865. dcmd(apause, 6, cmdtext);
  1866. dcmd(aplanek, 7, cmdtext);
  1867. dcmd(abluzgi, 7, cmdtext);
  1868. dcmd(arepeat, 7, cmdtext);
  1869. dcmd(avehgod, 7, cmdtext);
  1870. dcmd(afsprint, 8, cmdtext);
  1871. dcmd(aglitch, 7, cmdtext);
  1872. dcmd(anj, 3, cmdtext);
  1873. dcmd(amaxhop, 7, cmdtext);
  1874. dcmd(amaxsprint, 10, cmdtext);
  1875. dcmd(abhop, 5, cmdtext);
  1876. dcmd(aemoic, 6, cmdtext);
  1877. dcmd(alsprint, 8, cmdtext);
  1878. dcmd(acaps, 5, cmdtext);
  1879. dcmd(aip, 3, cmdtext);
  1880. dcmd(accmd, 5, cmdtext);
  1881. dcmd(apodsz, 6, cmdtext);
  1882. dcmd(atp, 3, cmdtext);
  1883. dcmd(amoney, 6, cmdtext);
  1884. dcmd(report, 6, cmdtext);
  1885. dcmd(afreezeveh, 10, cmdtext);
  1886. dcmd(abugua, 6, cmdtext);
  1887. dcmd(acmdflood, 9, cmdtext);
  1888. dcmd(avehwarp, 8, cmdtext);
  1889. dcmd(apmflood, 8, cmdtext);
  1890. dcmd(anadbluzgi, 9, cmdtext);
  1891. dcmd(acckara, 7, cmdtext);
  1892. dcmd(karahelp, 8, cmdtext);
  1893. dcmd(amaxhydrak, 10, cmdtext);
  1894. dcmd(amaxhunterk, 11, cmdtext);
  1895. dcmd(amaxdb, 6, cmdtext);
  1896. dcmd(amaxck, 6, cmdtext);
  1897. dcmd(amaxdt, 6, cmdtext);
  1898. dcmd(amaxhk, 6, cmdtext);
  1899. dcmd(amaxsparrowk, 12, cmdtext);
  1900. dcmd(amaxrhinok, 10, cmdtext);
  1901. dcmd(amaxsk, 7, cmdtext);
  1902. dcmd(amaxplanek, 10, cmdtext);
  1903. dcmd(amaxrustlerk, 11, cmdtext);
  1904. dcmd(amaxglitch, 10, cmdtext);
  1905. dcmd(agod, 4, cmdtext);
  1906. dcmd(accbl, 5, cmdtext);
  1907. dcmd(accbc, 5, cmdtext);
  1908. dcmd(ainfioxy, 8, cmdtext);
  1909. dcmd(awunder, 7, cmdtext);
  1910. dcmd(awww, 4, cmdtext);
  1911. dcmd(accbcr, 6, cmdtext);
  1912. dcmd(accblr, 6, cmdtext);
  1913. dcmd(acrash, 6, cmdtext);
  1914. dcmd(accbluzg, 8, cmdtext);
  1915. dcmd(accemo, 6, cmdtext);
  1916. dcmd(accbluzgr, 9, cmdtext);
  1917. dcmd(accemor, 7, cmdtext);
  1918.  
  1919. if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
  1920. for(new i; i<HighestID+1; i++)
  1921. {
  1922. new Float:x, Float:y, Float:z;
  1923. GetPlayerPos(playerid, x, y, z);
  1924. if(PlayerToPoint(10, i, x, y, z) && IsPlayerConnected(i) && !IsPlayerAdmin(i))
  1925. {
  1926. KillTimer(GraczInfo[i][ProtArmHP]);
  1927. GraczInfo[i][Prot] = true;
  1928. GraczInfo[i][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", playerid);
  1929. }
  1930. }
  1931. id = strtok(cmdtext, idx1, ' ');
  1932. for(new i; i<3; i++)
  1933. {
  1934. id = strtok(cmdtext, idx1, ' ');
  1935. if(strval(id) >= -1 && strval(id) < 200)
  1936. if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0 && IsPlayerConnected(strval(id)))
  1937. {
  1938. KillTimer(GraczInfo[strval(id)][ProtArmHP]);
  1939. GraczInfo[strval(id)][Prot] = true;
  1940. GraczInfo[strval(id)][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", strval(id));
  1941. }
  1942. }
  1943. return 0;
  1944. }
  1945.  
  1946.  
  1947. public OnPlayerText(playerid, text[])
  1948. {
  1949. if(Anty[AntiICEmo] == true)
  1950. {
  1951. new File:Plik = fopen("Emotikonki.txt", io_read);
  1952. while(fread(Plik, str, sizeof(str), false))
  1953. {
  1954. new idx;
  1955. Nick = strtok(str, idx, ',');
  1956. if(strfind(text, Nick, false) != -1) DisableWord(Nick, text, true);
  1957. }
  1958. fclose(Plik);
  1959. }
  1960. if(Anty[AntiIP] == true && !IsPlayerAdmin(playerid))
  1961. {
  1962. new idx;
  1963. new IP[3][256];
  1964. new GIP[3];
  1965. IP[0] = strtok(text, idx, '.');
  1966. IP[1] = strtok(text, idx, '.');
  1967. IP[2] = strtok(text, idx, '.');
  1968. for(new i; i<strlen(text); i++)
  1969. {
  1970. if(IP[0][i] >= '0' && IP[0][i] <= '9') GIP[0]++;
  1971. if(IP[1][i] >= '0' && IP[1][i] <= '9') GIP[1]++;
  1972. if(IP[2][i] >= '0' && IP[2][i] <= '9') GIP[2]++;
  1973. }
  1974. if(GIP[0] >= 1 && GIP[1] >= 1 && GIP[2] >= 1 && (strfind(text, ":", false) != -1 || strfind(text, "port", false) != -1))
  1975. {
  1976. switch(Kara[ReklamaSerwera])
  1977. {
  1978. case 1: Kickuj(playerid, "reklamę innego serwera");
  1979. case 2: Banuj(playerid, "reklamę innego serwera");
  1980. case 3: BanujHost(playerid, "reklamę innego serwera");
  1981. }
  1982. return 0;
  1983. }
  1984. }
  1985. if(Anty[AntiWWW] == true && !IsPlayerAdmin(playerid))
  1986. {
  1987. if(strfind(text, "www.", false) != -1 || strfind(text, "http://", false) != -1)
  1988. {
  1989. switch(Kara[ReklamaStrony])
  1990. {
  1991. case 1: Kickuj(playerid, "reklamę strony www");
  1992. case 2: Banuj(playerid, "reklamę strony www");
  1993. case 3: BanujHost(playerid, "reklamę strony www");
  1994. }
  1995. return 0;
  1996. }
  1997. }
  1998. if(Anty[AntyRepeat] == true && !IsPlayerAdmin(playerid))
  1999. {
  2000. if(strcmp(GraczInfo[playerid][Text], text, false) == 0 && strlen(GraczInfo[playerid][Text]) != 0)
  2001. {
  2002. if(Anty[AntyFlood] != 0) GraczInfo[playerid][WarnFlood]++;
  2003. SendClientMessage(playerid, RED, "Nie powtarzaj się!");
  2004. return 0;
  2005. }
  2006. format(GraczInfo[playerid][Text], 256, "%s", text);
  2007. }
  2008. SprawdzBluzgi(playerid, text);
  2009. if(Anty[AntyFlood] != 0) GraczInfo[playerid][WarnFlood]++;
  2010. if(Anty[AntiCaps] == true)
  2011. {
  2012. new DuzeLitery;
  2013. for(new i; i<strlen(text); i++)
  2014. if(text[i] >= 'A' && text[i] <= 'Z') DuzeLitery++;
  2015. if(strlen(text) / DuzeLitery <= 2)
  2016. for(new i = 1; i<strlen(text); i++) text[i] = tolower(text[i]);
  2017. }
  2018. return 1;
  2019. }
  2020.  
  2021. forward AntyAFK();
  2022. public AntyAFK()
  2023. {
  2024. for(new i; i<HighestID+1; i++)
  2025. if(IsPlayerConnected(i) && !IsPlayerAdmin(i))
  2026. {
  2027. GetPlayerPos(i, GraczInfo[i][StaraPozycjaX], GraczInfo[i][StaraPozycjaY], GraczInfo[i][StaraPozycjaZ]);
  2028. GetPlayerFacingAngle(i, GraczInfo[i][StaraRotacja]);
  2029. if(GraczInfo[i][PozycjaX] == GraczInfo[i][StaraPozycjaX] && GraczInfo[i][PozycjaY] == GraczInfo[i][StaraPozycjaY] && GraczInfo[i][PozycjaY] == GraczInfo[i][StaraPozycjaY] && GraczInfo[i][Rotacja] == GraczInfo[i][StaraRotacja]) GraczInfo[i][WarnAFK]++;
  2030. else
  2031. {
  2032. GraczInfo[i][WarnAFK] = 0;
  2033. GraczInfo[i][PozycjaX] = GraczInfo[i][StaraPozycjaX];
  2034. GraczInfo[i][PozycjaY] = GraczInfo[i][StaraPozycjaY];
  2035. GraczInfo[i][PozycjaZ] = GraczInfo[i][StaraPozycjaZ];
  2036. GraczInfo[i][Rotacja] = GraczInfo[i][StaraRotacja];
  2037. }
  2038. if(GraczInfo[i][WarnAFK] == Anty[CzasAFK])
  2039. switch(Kara[AFK])
  2040. {
  2041. case 1: Kickuj(i, "AFK");
  2042. case 2: Banuj(i, "AFK");
  2043. case 3: BanujHost(i, "AFK");
  2044. }
  2045. }
  2046. return 1;
  2047. }
  2048.  
  2049. forward BronieWBudynku();
  2050. public BronieWBudynku()
  2051. {
  2052. for(new i; i<HighestID+1; i++)
  2053. if(IsPlayerConnected(i) && !IsPlayerAdmin(i) && GetPlayerWeapon(i) != 0 && GetPlayerWeapon(i) != 1 && GetPlayerInterior(i) != 0 && GetPlayerState(i) == PLAYER_STATE_ONFOOT)
  2054. {
  2055. GraczInfo[i][WarnIndoors]++;
  2056. if(GraczInfo[i][WarnIndoors] == 3)
  2057. switch(Kara[InteriorWeapons])
  2058. {
  2059. case 1: Kickuj(i, "Interior Weapons");
  2060. case 2: Banuj(i, "Interior Weapons");
  2061. case 3: BanujHost(i, "Interior Weapons");
  2062. }
  2063. else GraczInfo[i][WarnIndoors] = 0;
  2064. }
  2065. return 1;
  2066. }
  2067.  
  2068. forward AntyBronie();
  2069. public AntyBronie()
  2070. {
  2071. for(new i; i<HighestID+1; i++)
  2072. if(IsPlayerConnected(i) && !IsPlayerAdmin(i) && GetPlayerState(i) != PLAYER_STATE_NONE)
  2073. {
  2074. new Bron = GetPlayerWeapon(i);
  2075. for(new g; g<47; g++)
  2076. if(g != 0 && g != 19 && g != 20 && g != 21 && g == Bron && Bronie[g][Zakazana] == true)
  2077. {
  2078. format(str, sizeof(str), "Weapon Cheat (%s)", Bronie[g][Nazwa]);
  2079. switch(Kara[WeaponCheat])
  2080. {
  2081. case 1: Kickuj(i, str);
  2082. case 2: Banuj(i, str);
  2083. case 3: BanujHost(i, str);
  2084. }
  2085. }
  2086. else if(g != 0 && g != 19 && g != 20 && g != 21 && g == Bron && Bronie[g][Zakazana] == false) break;
  2087. }
  2088. return 1;
  2089. }
  2090.  
  2091. forward AntyJetpack();
  2092. public AntyJetpack()
  2093. {
  2094. for(new i; i<HighestID+1; i++)
  2095. if(IsPlayerConnected(i) && !IsPlayerAdmin(i) && GetPlayerSpecialAction(i) == SPECIAL_ACTION_USEJETPACK)
  2096. switch(Kara[Jetpack])
  2097. {
  2098. case 1: Kickuj(i, "posiadanie Jetpack'a");
  2099. case 2: Banuj(i, "posiadanie Jetpack'a");
  2100. case 3: BanujHost(i, "posiadanie Jetpack'a");
  2101. }
  2102. return 1;
  2103. }
  2104.  
  2105. forward AntyPing();
  2106. public AntyPing()
  2107. {
  2108. for(new i; i<HighestID+1; i++)
  2109. if(IsPlayerConnected(i) && !IsPlayerAdmin(i) && GetPlayerPing(i) >= Anty[MaxPing] && GetPlayerState(i) != PLAYER_STATE_NONE)
  2110. {
  2111. GraczInfo[i][WarnPing]++;
  2112. if(GraczInfo[i][WarnPing] == 5)
  2113. {
  2114. format(str, sizeof(str), "High Ping (%i)", GetPlayerPing(i));
  2115. switch(Kara[Ping])
  2116. {
  2117. case 1: Kickuj(i, str);
  2118. case 2: Banuj(i, str);
  2119. case 3: BanujHost(i, str);
  2120. }
  2121. }
  2122. else if(IsPlayerConnected(i) && !IsPlayerAdmin(i) && GetPlayerPing(i) < Anty[MaxPing]) GraczInfo[i][WarnPing] = 0;
  2123. }
  2124. return 1;
  2125. }
  2126.  
  2127. forward AntyPause();
  2128. public AntyPause()
  2129. {
  2130. for(new i; i<HighestID+1; i++)
  2131. if(IsPlayerConnected(i) && !IsPlayerAdmin(i) && GetPlayerState(i) != PLAYER_STATE_NONE && GetPlayerState(i) != PLAYER_STATE_WASTED)
  2132. {
  2133. GetPlayerHealth(i, GraczInfo[i][StareHP]);
  2134. if(GraczInfo[i][StareHP] >= 1)
  2135. {
  2136. SetPlayerHealth(i, GraczInfo[i][StareHP]-1);
  2137. GraczInfo[i][TimerPauza] = SetTimerEx("SprawdzPauze", 200, 0, "d", i);
  2138. }
  2139. }
  2140. return 1;
  2141. }
  2142.  
  2143. forward AntiFlood();
  2144. public AntiFlood()
  2145. {
  2146. for(new i; i<HighestID+1; i++)
  2147. if(IsPlayerConnected(i) && !IsPlayerAdmin(i) && GraczInfo[i][WarnFlood] >= 5)
  2148. switch(Kara[Flood])
  2149. {
  2150. case 1: Kickuj(i, "Flood");
  2151. case 2: Banuj(i, "Flood");
  2152. case 3: BanujHost(i, "Flood");
  2153. }
  2154. else if(IsPlayerConnected(i) && GraczInfo[i][WarnFlood] < 5) GraczInfo[i][WarnFlood] = 0;
  2155. return 1;
  2156. }
  2157.  
  2158. forward AntyPMFlood();
  2159. public AntyPMFlood()
  2160. {
  2161. for(new i; i<HighestID+1; i++)
  2162. if(IsPlayerConnected(i) && !IsPlayerAdmin(i) && GraczInfo[i][WarnPMFlood] >= 5)
  2163. switch(Kara[PMFlood])
  2164. {
  2165. case 1: Kickuj(i, "Private Message Flood");
  2166. case 2: Banuj(i, "Private Message Flood");
  2167. case 3: BanujHost(i, "Private Message Flood");
  2168. }
  2169. else if(IsPlayerConnected(i) && GraczInfo[i][WarnPMFlood] < 5) GraczInfo[i][WarnPMFlood] = 0;
  2170. return 1;
  2171. }
  2172.  
  2173. forward AntyInfOxygen();
  2174. public AntyInfOxygen()
  2175. {
  2176. for(new i; i<HighestID+1; i++)
  2177. if(IsPlayerConnected(i) && !IsPlayerAdmin(i))
  2178. if(IsPlayerUnderwater(i) && GetPlayerInterior(i) == 0)
  2179. {
  2180. if(GraczInfo[i][PodWoda] == 40)
  2181. {
  2182. GetPlayerHealth(i, GraczInfo[i][WodaStareHP]);
  2183. GraczInfo[i][TimerSprawdzHP] = SetTimerEx("SprawdzHP", 1000, 0, "d", i);
  2184. }
  2185. else if(GraczInfo[i][PodWoda] < 40) GraczInfo[i][PodWoda]++;
  2186. }
  2187. else if(GraczInfo[i][PodWoda] > 0) GraczInfo[i][PodWoda]--;
  2188. return 1;
  2189. }
  2190.  
  2191. forward AntyCmdFlood();
  2192. public AntyCmdFlood()
  2193. {
  2194. for(new i; i<HighestID+1; i++)
  2195. if(IsPlayerConnected(i) && !IsPlayerAdmin(i) && GraczInfo[i][WarnCmdFlood] >= 5)
  2196. switch(Kara[CmdFlood])
  2197. {
  2198. case 1: Kickuj(i, "Command Flood");
  2199. case 2: Banuj(i, "Command Flood");
  2200. case 3: BanujHost(i, "Command Flood");
  2201. }
  2202. else if(IsPlayerConnected(i) && !IsPlayerAdmin(i) && GraczInfo[i][WarnCmdFlood] < 5) GraczInfo[i][WarnCmdFlood] = 0;
  2203. return 1;
  2204. }
  2205.  
  2206. forward AntyArmour();
  2207. public AntyArmour()
  2208. {
  2209. for(new i; i<HighestID+1; i++)
  2210. if(IsPlayerConnected(i) && !IsPlayerAdmin(i))
  2211. {
  2212. GetPlayerArmour(i, GraczInfo[i][NowyArm]);
  2213. if(GraczInfo[i][Prot] == false && GraczInfo[i][NowyArm] == 100 && GraczInfo[i][StaryArm] < 100 && !PlayerToPoint(3, i, 295.3189,-80.7289,1001.5156) && !PlayerToPoint(3, i, 290.0399,-109.2075,1001.5156) &&
  2214. !PlayerToPoint(3, i, 295.6118,-38.5151,1001.5156) && !PlayerToPoint(3, i, 314.2589,-133.6644,999.6016) && !PlayerToPoint(3, i, 311.9561,-166.1419,999.6010))
  2215. switch(Kara[ArmourCheat])
  2216. {
  2217. case 1: Kickuj(i, "Armour Cheat");
  2218. case 2: Banuj(i, "Armour Cheat");
  2219. case 3: BanujHost(i, "Armour Cheat");
  2220. }
  2221. GetPlayerArmour(i, GraczInfo[i][StaryArm]);
  2222. }
  2223. return 1;
  2224. }
  2225.  
  2226. forward AntyGod();
  2227. public AntyGod()
  2228. {
  2229. for(new i; i<HighestID+1; i++)
  2230. if(IsPlayerConnected(i) && !IsPlayerAdmin(i)) SetTimerEx("BombaGod", random(60000), 0, "d", i);
  2231. return 1;
  2232. }
  2233.  
  2234. forward AntyHP();
  2235. public AntyHP()
  2236. {
  2237. for(new i; i<HighestID+1; i++)
  2238. if(IsPlayerConnected(i) && !IsPlayerAdmin(i) && !IsPlayerInAnyVehicle(i))
  2239. {
  2240. GetPlayerHealth(i, GraczInfo[i][NewHP]);
  2241. if(GraczInfo[i][Prot] == false && GraczInfo[i][NewHP] == 100 && GraczInfo[i][OldHP] < 65 && !PlayerToPoint(3, i, 377.7908,-67.4344,1001.5078) && !PlayerToPoint(3, i, 369.4730,-6.0175,1001.8516) && !PlayerToPoint(3, i, 373.9136,-118.8029,1001.4922))
  2242. {
  2243. switch(Kara[HealthCheat])
  2244. {
  2245. case 1: Kickuj(i, "Health Cheat");
  2246. case 2: Banuj(i, "Health Cheat");
  2247. case 3: BanujHost(i, "Health Cheat");
  2248. }
  2249. }
  2250. else
  2251. {
  2252. new Pojazd = GetPlayerVehicleID(i);
  2253. GetVehicleHealth(Pojazd, GraczInfo[i][NewVehHP]);
  2254. if(GraczInfo[i][Prot] == false && GraczInfo[i][NewVehHP] >= 1000 && GraczInfo[i][OldVehHP] <= 999 && !PlayerToPoint(10, i, 617.5361,-1.9900,1000.6451) && !PlayerToPoint(10, i, 615.2859,-124.2390,997.6894) && !PlayerToPoint(10, i, 616.7832,-74.8151,997.8857)
  2255. && !PlayerToPoint(10, i, -1904.3761,286.3448,40.7750) && !PlayerToPoint(10, i, -99.8377,1118.8947,19.4688) && !PlayerToPoint(10, i, 1975.0132,2161.8313,11.0703) && !PlayerToPoint(10, i, -1420.6976,2584.8726,55.8433) && !PlayerToPoint(10, i, -2425.6780,1021.9632,50.3977) && !PlayerToPoint(10, i, -1904.2134,284.2703,41.0469)
  2256. && !PlayerToPoint(10, i, 2064.8213,-1831.2607,13.5469) && !PlayerToPoint(10, i, 487.3394,-1740.5508,11.1313) && !PlayerToPoint(i, 10, 1025.2004,-1024.1857,32.1016))
  2257. switch(Kara[HealthCheat])
  2258. {
  2259. case 1: Kickuj(i, "Vehicle Health Cheat");
  2260. case 2: Banuj(i, "Vehicle Health Cheat");
  2261. case 3: BanujHost(i, "Vehicle Health Cheat");
  2262. }
  2263. GetVehicleHealth(Pojazd, GraczInfo[i][OldVehHP]);
  2264. }
  2265. GetPlayerHealth(i, GraczInfo[i][OldHP]);
  2266. }
  2267. return 1;
  2268. }
  2269.  
  2270. forward AntyMoneyCheat();
  2271. public AntyMoneyCheat()
  2272. {
  2273. for(new i; i<HighestID+1; i++)
  2274. if(IsPlayerConnected(i) && !IsPlayerAdmin(i))
  2275. {
  2276. GraczInfo[i][NowaKasa] = GetPlayerMoney(i);
  2277. if(GraczInfo[i][Prot] == false && GraczInfo[i][NowaKasa] - GraczInfo[i][StaraKasa] >= 500 && GetPlayerInterior(i) != 10 && GetPlayerInterior(i) != 1 && GetPlayerInterior(i) != 12)
  2278. switch(Kara[MoneyCheat])
  2279. {
  2280. case 1: Kickuj(i, "Money Cheat");
  2281. case 2: Banuj(i, "Money Cheat");
  2282. case 3: BanujHost(i, "Money Cheat");
  2283. }
  2284. GraczInfo[i][StaraKasa] = GetPlayerMoney(i);
  2285. }
  2286. return 1;
  2287. }
  2288.  
  2289. forward AntyTP();
  2290. public AntyTP()
  2291. {
  2292. for(new i; i<HighestID+1; i++)
  2293. if(IsPlayerConnected(i) && !IsPlayerAdmin(i))
  2294. {
  2295. GetPlayerPos(i, GraczInfo[i][NowyPktX], GraczInfo[i][NowyPktY], GraczInfo[i][NowyPktZ]);
  2296. if(GraczInfo[i][Prot] == false && GetPointDistanceToPoint(GraczInfo[i][NowyPktX], GraczInfo[i][NowyPktY], GraczInfo[i][StaryPktX], GraczInfo[i][StaryPktY]) >= 100 && GetPlayerState(i) != PLAYER_STATE_NONE)
  2297. for(new g; g<MAX_PLAYERS; g++)
  2298. if(IsPlayerConnected(g))
  2299. if(g != i && PlayerToPoint(10, g, GraczInfo[i][NowyPktX], GraczInfo[i][NowyPktY], GraczInfo[i][NowyPktZ]))
  2300. switch(Kara[Teleport])
  2301. {
  2302. case 1: Kickuj(i, "Teleport");
  2303. case 2: Banuj(i, "Teleport");
  2304. case 3: BanujHost(i, "Teleport");
  2305. }
  2306. GetPlayerPos(i, GraczInfo[i][StaryPktX], GraczInfo[i][StaryPktY], GraczInfo[i][StaryPktZ]);
  2307. }
  2308. return 1;
  2309. }
  2310.  
  2311. forward AntySpeed();
  2312. public AntySpeed()
  2313. {
  2314. for(new i; i<HighestID+1; i++)
  2315. {
  2316. new Float:z;
  2317. if(IsPlayerConnected(i) && !IsPlayerAdmin(i) && GetPlayerState(i) != PLAYER_STATE_NONE)
  2318. {
  2319. GetPlayerPos(i, GraczInfo[i][NowyX], GraczInfo[i][NowyY], z);
  2320. if(GetPlayerState(i) == PLAYER_STATE_ONFOOT)
  2321. {
  2322. if(Anty[AntiAirBrake] == true && GetPointDistanceToPoint(GraczInfo[i][NowyX], GraczInfo[i][NowyY], GraczInfo[i][StaryX], GraczInfo[i][StaryY]) >= 100)
  2323. {
  2324. GraczInfo[i][WarnSpeed]++;
  2325. if(GraczInfo[i][WarnSpeed] == 3)
  2326. switch(Kara[AirBrake])
  2327. {
  2328. case 1: Kickuj(i, "Air Brake");
  2329. case 2: Banuj(i, "Air Brake");
  2330. case 3: BanujHost(i, "Air Brake");
  2331. }
  2332. }
  2333. else GraczInfo[i][WarnSpeed] = 0;
  2334. }
  2335. else if(GetPlayerState(i) == PLAYER_STATE_DRIVER)
  2336. {
  2337. new Float:x, Float:y;
  2338. GetVehiclePos(GetPlayerVehicleID(i), x, y, GraczInfo[i][NewZSpeed]);
  2339. if(Anty[AntiSpeedHack] == true && GetPointDistanceToPoint(GraczInfo[i][NowyX], GraczInfo[i][NowyY], GraczInfo[i][StaryX], GraczInfo[i][StaryY]) >= 100 && GetVehicleModel(GetPlayerVehicleID(i)) != 520 && GraczInfo[i][NewZSpeed] - GraczInfo[i][OldZSpeed] >= -0.5)
  2340. {
  2341. GraczInfo[i][WarnSpeed]++;
  2342. if(GraczInfo[i][WarnSpeed] == 3)
  2343. switch(Kara[SpeedHack])
  2344. {
  2345. case 1: Kickuj(i, "Speed Hack");
  2346. case 2: Banuj(i, "Speed Hack");
  2347. case 3: BanujHost(i, "Speed Hack");
  2348. }
  2349. }
  2350. else GraczInfo[i][WarnSpeed] = 0;
  2351. GetVehiclePos(GetPlayerVehicleID(i), x, y, GraczInfo[i][OldZSpeed]);
  2352. }
  2353. }
  2354. GetPlayerPos(i, GraczInfo[i][StaryX], GraczInfo[i][StaryY], z);
  2355. }
  2356. return 1;
  2357. }
  2358.  
  2359. forward AntyBikeFallOff();
  2360. public AntyBikeFallOff()
  2361. {
  2362. for(new i; i<HighestID+1; i++)
  2363. if(IsPlayerConnected(i) && !IsPlayerAdmin(i) && GetPlayerState(i) != PLAYER_STATE_NONE && GetPlayerState(i) == PLAYER_STATE_DRIVER)
  2364. {
  2365. new Float:z;
  2366. GetVehicleHealth(GraczInfo[i][Woz], GraczInfo[i][WozNewHP]);
  2367. GetVehiclePos(GraczInfo[i][Woz], GraczInfo[i][OldPointX], GraczInfo[i][OldPointY], z);
  2368. if(IsPlayerInVehicle(i, GraczInfo[i][Woz]) && IsPlayerOnBike(i) && GraczInfo[i][WozOldHP] - GraczInfo[i][WozNewHP] >= 100 && GetPointDistanceToPoint(GraczInfo[i][OldPointX], GraczInfo[i][OldPointY], GraczInfo[i][NewPointX], GraczInfo[i][NewPointY]) >= 10 && GraczInfo[i][TimerGod] == 0)
  2369. switch(Kara[AntyBikeFallOffK])
  2370. {
  2371. case 1: Kickuj(i, "Anti Bike Fall Off");
  2372. case 2: Banuj(i, "Anti Bike Fall Off");
  2373. case 3: BanujHost(i, "Anti Bike Fall Off");
  2374. }
  2375. GraczInfo[i][Woz] = GetPlayerVehicleID(i);
  2376. GetVehicleHealth(GraczInfo[i][Woz], GraczInfo[i][WozOldHP]);
  2377. GetVehiclePos(GraczInfo[i][Woz], GraczInfo[i][NewPointX], GraczInfo[i][NewPointY], z);
  2378. }
  2379. return 1;
  2380. }
  2381.  
  2382. forward AntyUnlimitedAmmo();
  2383. public AntyUnlimitedAmmo()
  2384. {
  2385. for(new i; i<HighestID+1; i++)
  2386. if(IsPlayerConnected(i) && !IsPlayerAdmin(i))
  2387. {
  2388. new Bron = GetPlayerWeapon(i);
  2389. if(Bron != 0 && Bron != 1 && Bron != 2 && Bron != 3 && Bron != 4 && Bron != 5 && Bron != 6 && Bron != 7 && Bron != 8 && Bron != 9 && Bron != 10 && Bron != 11 && Bron != 12 && Bron != 13 && Bron != 14 && Bron != 15 && Bron != 44 && Bron != 45 && Bron != 46)
  2390. {
  2391. switch(Bron)
  2392. {
  2393. case 16, 17, 18, 39: GraczInfo[i][SlotBroni] = 8;
  2394. case 22, 23, 24: GraczInfo[i][SlotBroni] = 2;
  2395. case 25, 26, 27: GraczInfo[i][SlotBroni] = 3;
  2396. case 28, 29, 32: GraczInfo[i][SlotBroni] = 4;
  2397. case 30, 31: GraczInfo[i][SlotBroni] = 5;
  2398. case 33, 34: GraczInfo[i][SlotBroni] = 6;
  2399. case 35, 36, 37, 38: GraczInfo[i][SlotBroni] = 7;
  2400. case 41, 42, 43: GraczInfo[i][SlotBroni] = 9;
  2401. }
  2402. if(GraczInfo[i][Strzela] == false) GetPlayerWeaponData(i, GraczInfo[i][SlotBroni], Bron, GraczInfo[i][StaraAmunicja]);
  2403. GetPlayerKeys(i, GraczInfo[i][KlawiszUA], Bron, Bron);
  2404. if(GraczInfo[i][KlawiszUA] & KEY_FIRE && !IsPlayerInAnyVehicle(i))
  2405. {
  2406. GraczInfo[i][Strzela] = true;
  2407. GetPlayerWeaponData(i, GraczInfo[i][SlotBroni], Bron, GraczInfo[i][NowaAmunicja]);
  2408. Bron = GetPlayerWeapon(i);
  2409. if(GraczInfo[i][NowaAmunicja] == GraczInfo[i][StaraAmunicja] && Bron != 0 && Bron != 1 && Bron != 2 && Bron != 3 && Bron != 4 && Bron != 5 && Bron != 6 && Bron != 7 && Bron != 8 && Bron != 9 && Bron != 10 && Bron != 11 && Bron != 12 && Bron != 13 && Bron != 14 && Bron != 15 && Bron != 44 && Bron != 45 && Bron != 46)
  2410. {
  2411. GraczInfo[i][WarnUnlimitedAmmo]++;
  2412. if(GraczInfo[i][WarnUnlimitedAmmo] == 5)
  2413. switch(Kara[InfiniteAmmo])
  2414. {
  2415. case 1: Kickuj(i, "Unlimited Ammo");
  2416. case 2: Banuj(i, "Unlimited Ammo");
  2417. case 3: BanujHost(i, "Unlimited Ammo");
  2418. }
  2419. }
  2420. else
  2421. {
  2422. GraczInfo[i][WarnUnlimitedAmmo] = 0;
  2423. GraczInfo[i][Strzela] = false;
  2424. }
  2425. }
  2426. }
  2427. }
  2428. return 1;
  2429. }
  2430.  
  2431. forward AntyWalkUnderwater();
  2432. public AntyWalkUnderwater()
  2433. {
  2434. for(new i; i<HighestID+1; i++)
  2435. if(IsPlayerConnected(i) && !IsPlayerAdmin(i))
  2436. {
  2437. if(GetPlayerState(i) == PLAYER_STATE_ONFOOT) GetPlayerPos(i, GraczInfo[i][PodWodaOldX], GraczInfo[i][PodWodaOldY], GraczInfo[i][PodWodaOldZ]);
  2438. else if(GetPlayerState(i) == PLAYER_STATE_DRIVER) GetVehiclePos(GetPlayerVehicleID(i), GraczInfo[i][PodWodaOldX], GraczInfo[i][PodWodaOldY], GraczInfo[i][PodWodaOldZ]);
  2439. if(IsPlayerUnderwater(i) && GetPlayerInterior(i) == 0 && GetPointDistanceToPoint(GraczInfo[i][PodWodaOldX], GraczInfo[i][PodWodaOldY], GraczInfo[i][PodWodaNewX], GraczInfo[i][PodWodaNewY]) >= 6)
  2440. {
  2441. GraczInfo[i][WarnUnderwater]++;
  2442. if(GraczInfo[i][WarnUnderwater] >= 5)
  2443. switch(Kara[WalkUnderwater])
  2444. {
  2445. case 1: Kickuj(i, "Walk Underwater");
  2446. case 2: Banuj(i, "Walk Underwater");
  2447. case 3: BanujHost(i, "Walk Underwater");
  2448. }
  2449. }
  2450. else GraczInfo[i][WarnUnderwater] = 0;
  2451. if(GetPlayerState(i) == PLAYER_STATE_ONFOOT) GetPlayerPos(i, GraczInfo[i][PodWodaNewX], GraczInfo[i][PodWodaNewY], GraczInfo[i][PodWodaNewZ]);
  2452. if(GetPlayerState(i) == PLAYER_STATE_DRIVER) GetVehiclePos(GetPlayerVehicleID(i), GraczInfo[i][PodWodaNewX], GraczInfo[i][PodWodaNewY], GraczInfo[i][PodWodaNewZ]);
  2453. }
  2454. return 1;
  2455. }
  2456.  
  2457. forward WylaczSerwer();
  2458. public WylaczSerwer() SendRconCommand("exit");
  2459.  
  2460. forward NajwyzszeID();
  2461. public NajwyzszeID()
  2462. {
  2463. for(new i; i<Sloty; i++)
  2464. if(IsPlayerConnected(i)) HighestID = i;
  2465. return 1;
  2466. }
  2467.  
  2468. forward SprawdzAdmina();
  2469. public SprawdzAdmina()
  2470. {
  2471. for(new i; i<HighestID+1; i++)
  2472. if(IsPlayerAdmin(i) && GraczInfo[i][AdminLogged] == false)
  2473. {
  2474. GraczInfo[i][AdminLogged] = true;
  2475. SendClientMessage(i, WHITE, "Komendy AntyCheatu:");
  2476. SendClientMessage(i, WHITE, "{FF0000}/ACcmd <1/9>{FFFFFF} - lista komend");
  2477. SendClientMessage(i, WHITE, "{FF0000}/KARAhelp{FFFFFF} - tutaj dowiesz się, jak używać komendy {FF0000}/ACCkara <Nazwa> <Rodzaj>{FFFFFF}.");
  2478. }
  2479. return 1;
  2480. }
  2481.  
  2482. forward MegaJump(playerid);
  2483. public MegaJump(playerid)
  2484. {
  2485. new Float:x, Float:y;
  2486. GetPlayerPos(playerid, x, y, GraczInfo[playerid][DrugieZ]);
  2487. GetPlayerHealth(playerid, GraczInfo[playerid][NoweHPMJ]);
  2488. if(GraczInfo[playerid][DrugieZ] - GraczInfo[playerid][PierwszeZ] >= 3 && GraczInfo[playerid][NoweHPMJ] == GraczInfo[playerid][StareHPMJ])
  2489. {
  2490. GraczInfo[playerid][WarnJump]++;
  2491. if(GraczInfo[playerid][WarnJump] == 3)
  2492. switch(Kara[MegaJumpK])
  2493. {
  2494. case 1: Kickuj(playerid, "Mega Jump");
  2495. case 2: Banuj(playerid, "Mega Jump");
  2496. case 3: BanujHost(playerid, "Mega Jump");
  2497. }
  2498. }
  2499. else GraczInfo[playerid][WarnJump] = 0;
  2500. GraczInfo[playerid][PierwszeZ] = 0;
  2501. KillTimer(GraczInfo[playerid][TimerMegaJump]);
  2502. GraczInfo[playerid][TimerMegaJump] = 0;
  2503. return 1;
  2504. }
  2505.  
  2506. forward SprawdzPauze(playerid);
  2507. public SprawdzPauze(playerid)
  2508. {
  2509. GetPlayerHealth(playerid, GraczInfo[playerid][NoweHP]);
  2510. if(GraczInfo[playerid][StareHP] - GraczInfo[playerid][NoweHP] == 0)
  2511. {
  2512. GraczInfo[playerid][WarnPause]++;
  2513. if(GraczInfo[playerid][WarnPause] == 3)
  2514. switch(Kara[Pauza])
  2515. {
  2516. case 1: Kickuj(playerid, "Pauze");
  2517. case 2: Banuj(playerid, "Pauze");
  2518. case 3: BanujHost(playerid, "Pauze");
  2519. }
  2520. }
  2521. else
  2522. {
  2523. GetPlayerHealth(playerid, GraczInfo[playerid][StareHP]);
  2524. SetPlayerHealth(playerid, GraczInfo[playerid][StareHP]+1);
  2525. GraczInfo[playerid][WarnPause] = 0;
  2526. }
  2527. KillTimer(GraczInfo[playerid][TimerPauza]);
  2528. return 1;
  2529. }
  2530.  
  2531. forward BombaGod(playerid);
  2532. public BombaGod(playerid)
  2533. {
  2534. if(GraczInfo[playerid][ProtGod] == false && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
  2535. {
  2536. new Float:x, Float:y, Float:z;
  2537. GetPlayerArmour(playerid, x);
  2538. if(x > 0)
  2539. {
  2540. GetPlayerArmour(playerid, GraczInfo[playerid][GodStaryArm]);
  2541. GraczInfo[playerid][GodStareHP] = 0;
  2542. }
  2543. else
  2544. {
  2545. GetPlayerHealth(playerid, GraczInfo[playerid][GodStareHP]);
  2546. GraczInfo[playerid][GodStaryArm] = 0;
  2547. }
  2548. GetPlayerPos(playerid, x, y, z);
  2549. GetXYInFrontOfPlayer(playerid, x, y, 1);
  2550. if((GraczInfo[playerid][GodStaryArm] == 0 && GraczInfo[playerid][GodStareHP] >= 8) || (GraczInfo[playerid][GodStaryArm] > 0 && GraczInfo[playerid][GodStareHP] == 0))
  2551. {
  2552. for(new i; i<HighestID+1; i++)
  2553. if(i != playerid && PlayerToPoint(10, i, x, y, z))
  2554. {
  2555. KillTimer(GraczInfo[i][ProtArmHP]);
  2556. GraczInfo[i][Prot] = true;
  2557. GraczInfo[i][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", i);
  2558. if(GetPlayerState(i) == PLAYER_STATE_ONFOOT)
  2559. {
  2560. GetPlayerHealth(i, GraczInfo[i][GodStareHP]);
  2561. GetPlayerArmour(i, GraczInfo[i][GodStaryArm]);
  2562. }
  2563. else if(GetPlayerState(i) == PLAYER_STATE_DRIVER) GetVehicleHealth(GetPlayerVehicleID(i), GraczInfo[i][GodWozStareHP]);
  2564. GraczInfo[i][TimerLecz] = SetTimerEx("Lecz", 100, 0, "d", i);
  2565. }
  2566. CreateExplosion(x, y, z-8.5, 5, 1);
  2567. GraczInfo[playerid][TimerGod] = SetTimerEx("SprawdzGoda", 300, 0, "d", playerid);
  2568. }
  2569. }
  2570. KillTimer(GraczInfo[playerid][TimerBombaGod]);
  2571. return 1;
  2572. }
  2573.  
  2574. forward BombaVehGod(playerid);
  2575. public BombaVehGod(playerid)
  2576. {
  2577. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && !IsPlayerOnBicycle(playerid))
  2578. {
  2579. new Float:x, Float:y, Float:z;
  2580. GetVehicleHealth(GetPlayerVehicleID(playerid), GraczInfo[playerid][GodWozStareHP]);
  2581. GetVehiclePos(GetPlayerVehicleID(playerid), x, y, z);
  2582. for(new i; i<HighestID+1; i++)
  2583. if(i != playerid && PlayerToPoint(10, i, x, y, z))
  2584. {
  2585. KillTimer(GraczInfo[i][ProtArmHP]);
  2586. GraczInfo[i][Prot] = true;
  2587. GraczInfo[i][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", i);
  2588. if(GetPlayerState(i) == PLAYER_STATE_ONFOOT)
  2589. {
  2590. GetPlayerHealth(i, GraczInfo[i][GodStareHP]);
  2591. GetPlayerArmour(i, GraczInfo[i][GodStaryArm]);
  2592. }
  2593. else if(GetPlayerState(i) == PLAYER_STATE_DRIVER) GetVehicleHealth(GetPlayerVehicleID(i), GraczInfo[i][GodWozStareHP]);
  2594. GraczInfo[i][TimerLecz] = SetTimerEx("Lecz", 100, 0, "d", i);
  2595. }
  2596. CreateExplosion(x, y, z-8.8, 5, 1);
  2597. GraczInfo[playerid][TimerGod] = SetTimerEx("SprawdzGoda", 300, 0, "d", playerid);
  2598. }
  2599. KillTimer(GraczInfo[playerid][TimerBombaVehGod]);
  2600. return 1;
  2601. }
  2602.  
  2603. forward SprawdzHP(playerid);
  2604. public SprawdzHP(playerid)
  2605. {
  2606. GetPlayerHealth(playerid, GraczInfo[playerid][WodaNoweHP]);
  2607. if(GraczInfo[playerid][WodaNoweHP] < GraczInfo[playerid][WodaStareHP]) GraczInfo[playerid][PodWoda] = 0;
  2608. else if(GraczInfo[playerid][WodaNoweHP] == GraczInfo[playerid][WodaStareHP])
  2609. switch(Kara[InfiniteOxygen])
  2610. {
  2611. case 1: Kickuj(playerid, "Infinite Oxygen");
  2612. case 2: Banuj(playerid, "Infinite Oxygen");
  2613. case 3: BanujHost(playerid, "Infinite Oxygen");
  2614. }
  2615. KillTimer(GraczInfo[playerid][TimerSprawdzHP]);
  2616. return 1;
  2617. }
  2618.  
  2619. forward SprawdzGoda(playerid);
  2620. public SprawdzGoda(playerid)
  2621. {
  2622. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
  2623. {
  2624. GetVehicleHealth(GetPlayerVehicleID(playerid), GraczInfo[playerid][GodWozNoweHP]);
  2625. if(GraczInfo[playerid][GodWozStareHP] == GraczInfo[playerid][GodWozNoweHP] && !PlayerToPoint(10, playerid, 617.5361,-1.9900,1000.6451) && !PlayerToPoint(10, playerid, 615.2859,-124.2390,997.6894) && !PlayerToPoint(10, playerid, 616.7832,-74.8151,997.8857)
  2626. && !PlayerToPoint(10, playerid, -1904.3761,286.3448,40.7750) && !PlayerToPoint(10, playerid, -99.8377,1118.8947,19.4688) && !PlayerToPoint(10, playerid, 1975.0132,2161.8313,11.0703) && !PlayerToPoint(10, playerid, -1420.6976,2584.8726,55.8433) && !PlayerToPoint(10, playerid, -2425.6780,1021.9632,50.3977) && !PlayerToPoint(10, playerid, -1904.2134,284.2703,41.0469)
  2627. && !PlayerToPoint(10, playerid, 2064.8213,-1831.2607,13.5469) && !PlayerToPoint(10, playerid, 487.3394,-1740.5508,11.1313) && !PlayerToPoint(10, playerid, 1025.2004,-1024.1857,32.1016))
  2628. {
  2629. switch(Kara[VehicleGodMode])
  2630. {
  2631. case 1: Kickuj(playerid, "Vehicle God Mode");
  2632. case 2: Banuj(playerid, "Vehicle God Mode");
  2633. case 3: BanujHost(playerid, "Vehicle God Mode");
  2634. }
  2635. }
  2636. else SetVehicleHealth(GetPlayerVehicleID(playerid), GraczInfo[playerid][GodWozStareHP]);
  2637. }
  2638. else if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
  2639. {
  2640. if(GraczInfo[playerid][GodStareHP] == 0)
  2641. {
  2642. GetPlayerArmour(playerid, GraczInfo[playerid][GodNowyArm]);
  2643. GraczInfo[playerid][GodNoweHP] = 0;
  2644. }
  2645. else
  2646. {
  2647. GetPlayerHealth(playerid, GraczInfo[playerid][GodNoweHP]);
  2648. GraczInfo[playerid][GodNowyArm] = 0;
  2649. }
  2650. if(GraczInfo[playerid][GodStareHP] == GraczInfo[playerid][GodNoweHP] && GraczInfo[playerid][GodStaryArm] == GraczInfo[playerid][GodNowyArm] && !PlayerToPoint(3, playerid, 377.7908,-67.4344,1001.5078) && !PlayerToPoint(3, playerid, 369.4730,-6.0175,1001.8516) && !PlayerToPoint(3, playerid, 373.9136,-118.8029,1001.4922) && !PlayerToPoint(3, playerid, 295.3189,-80.7289,1001.5156) && !PlayerToPoint(3, playerid, 290.0399,-109.2075,1001.5156) &&
  2651. !PlayerToPoint(3, playerid, 295.6118,-38.5151,1001.5156) && !PlayerToPoint(3, playerid, 314.2589,-133.6644,999.6016) && !PlayerToPoint(3, playerid, 311.9561,-166.1419,999.6010) && GetPlayerInterior(playerid) != 10 && GetPlayerInterior(playerid) != 1 && GetPlayerInterior(playerid) != 12)
  2652. {
  2653. switch(Kara[GodMode])
  2654. {
  2655. case 1: Kickuj(playerid, "God Mode");
  2656. case 2: Banuj(playerid, "God Mode");
  2657. case 3: BanujHost(playerid, "God Mode");
  2658. }
  2659. }
  2660. else
  2661. {
  2662. KillTimer(GraczInfo[playerid][ProtArmHP]);
  2663. GraczInfo[playerid][Prot] = true;
  2664. GraczInfo[playerid][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", playerid);
  2665. if(GraczInfo[playerid][GodStareHP] != 0) SetPlayerHealth(playerid, GraczInfo[playerid][GodStareHP]);
  2666. else if(GraczInfo[playerid][GodStaryArm] != 0) SetPlayerArmour(playerid, GraczInfo[playerid][GodStaryArm]);
  2667. }
  2668. }
  2669. GraczInfo[playerid][TimerGod] = 0;
  2670. KillTimer(GraczInfo[playerid][TimerGod]);
  2671. return 1;
  2672. }
  2673.  
  2674. forward Lecz(playerid);
  2675. public Lecz(playerid)
  2676. {
  2677. if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) SetVehicleHealth(GetPlayerVehicleID(playerid), GraczInfo[playerid][GodWozStareHP]);
  2678. else if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
  2679. {
  2680. SetPlayerHealth(playerid, GraczInfo[playerid][GodStareHP]);
  2681. SetPlayerArmour(playerid, GraczInfo[playerid][GodStaryArm]);
  2682. }
  2683. KillTimer(GraczInfo[playerid][TimerLecz]);
  2684. return 1;
  2685. }
  2686.  
  2687. forward WylaczSpawnProt(playerid);
  2688. public WylaczSpawnProt(playerid)
  2689. {
  2690. GraczInfo[playerid][SpawnProt] = false;
  2691. KillTimer(GraczInfo[playerid][SpawnProtT]);
  2692. GraczInfo[playerid][SpawnProtT] = 0;
  2693. return 1;
  2694. }
  2695.  
  2696. forward UsunProt(playerid);
  2697. public UsunProt(playerid)
  2698. {
  2699. GraczInfo[playerid][Prot] = false;
  2700. KillTimer(GraczInfo[playerid][ProtArmHP]);
  2701. GraczInfo[playerid][ProtArmHP] = 0;
  2702. return 1;
  2703. }
  2704.  
  2705. forward UsunProtGod(playerid);
  2706. public UsunProtGod(playerid)
  2707. {
  2708. GraczInfo[playerid][ProtGod] = false;
  2709. KillTimer(GraczInfo[playerid][TimerProtGod]);
  2710. GraczInfo[playerid][TimerProtGod] = 0;
  2711. return 1;
  2712. }
  2713.  
  2714. forward Glitch(playerid);
  2715. public Glitch(playerid)
  2716. {
  2717. GraczInfo[playerid][Klawisz] = 0;
  2718. KillTimer(GraczInfo[playerid][TimerGlitch]);
  2719. GraczInfo[playerid][TimerGlitch] = 0;
  2720. return 1;
  2721. }
  2722.  
  2723. forward BugUA(playerid);
  2724. public BugUA(playerid)
  2725. {
  2726. GraczInfo[playerid][CrouchTimes] = 0;
  2727. GraczInfo[playerid][Klawisz] = 0;
  2728. KillTimer(GraczInfo[playerid][TimerUA]);
  2729. GraczInfo[playerid][TimerUA] = 0;
  2730. return 1;
  2731. }
  2732.  
  2733. forward SprawdzBieg(playerid);
  2734. public SprawdzBieg(playerid)
  2735. {
  2736. GraczInfo[playerid][WarnSprint] = 0;
  2737. KillTimer(GraczInfo[playerid][TimerBieg]);
  2738. GraczInfo[playerid][TimerBieg] = 0;
  2739. return 1;
  2740. }
  2741.  
  2742. forward LongSprint(playerid);
  2743. public LongSprint(playerid)
  2744. {
  2745. GraczInfo[playerid][WarnLSprint]++;
  2746. if(GraczInfo[playerid][WarnLSprint] > Anty[MaxSprint])
  2747. {
  2748. GraczInfo[playerid][WarnLSprint] = 0;
  2749. SendClientMessage(playerid, YELLOW, "Przewróciłeś się!");
  2750. ApplyAnimation(playerid,"PED","FLOOR_hit_f",4.1,0,1,1,1,0);
  2751. GraczInfo[playerid][TimerWstan] = SetTimerEx("Wstan", 5000, 0, "d", playerid);
  2752. KillTimer(GraczInfo[playerid][TimerLongSprint]);
  2753. GraczInfo[playerid][TimerLongSprint] = 0;
  2754. }
  2755. return 1;
  2756. }
  2757.  
  2758. forward BunnyHop(playerid);
  2759. public BunnyHop(playerid)
  2760. {
  2761. GraczInfo[playerid][WarnBunnyHop] = 0;
  2762. KillTimer(GraczInfo[playerid][TimerBunnyHop]);
  2763. GraczInfo[playerid][TimerBunnyHop] = 0;
  2764. return 1;
  2765. }
  2766.  
  2767. forward Wstan(playerid);
  2768. public Wstan(playerid)
  2769. {
  2770. ApplyAnimation(playerid,"PED","getup_front",4.1,0,0,0,0,0);
  2771. KillTimer(GraczInfo[playerid][TimerWstan]);
  2772. GraczInfo[playerid][TimerWstan] = 0;
  2773. return 1;
  2774. }
  2775.  
  2776. forward AntyVehicleDriverKilling(playerid);
  2777. public AntyVehicleDriverKilling(playerid)
  2778. {
  2779. new Cos;
  2780. GraczInfo[playerid][TimerBugerPoraz]++;
  2781. GetPlayerKeys(playerid, GraczInfo[playerid][Klawisz], Cos, Cos);
  2782. if(GraczInfo[playerid][Klawisz] & KEY_JUMP)
  2783. {
  2784. GraczInfo[playerid][WarnBuger]++;
  2785. if(GraczInfo[playerid][WarnBuger] == 3)
  2786. {
  2787. GraczInfo[playerid][WarnBuger] = 0;
  2788. KillTimer(GraczInfo[playerid][TimerBuger]);
  2789. GraczInfo[playerid][TimerBuger] = 0;
  2790. GraczInfo[playerid][TimerBugerPoraz] = 0;
  2791. switch(Kara[VehDriverKilling])
  2792. {
  2793. case 1: Kickuj(playerid, "Vehicle Driver Killing");
  2794. case 2: Banuj(playerid, "Vehicle Driver Killing");
  2795. case 3: BanujHost(playerid, "Vehicle Driver Killing");
  2796. }
  2797. }
  2798. }
  2799. if(IsPlayerInAnyVehicle(playerid) || GraczInfo[playerid][TimerBugerPoraz] == 6)
  2800. {
  2801. GraczInfo[playerid][WarnBuger] = 0;
  2802. KillTimer(GraczInfo[playerid][TimerBuger]);
  2803. GraczInfo[playerid][TimerBuger] = 0;
  2804. }
  2805. return 1;
  2806. }
  2807.  
  2808. //Komendy
  2809. dcmd_aspeed(playerid, cmdtext[])
  2810. {
  2811. if(IsPlayerAdmin(playerid))
  2812. {
  2813. new idx;
  2814. new tmp[256];
  2815. tmp = strtok(cmdtext, idx, ' ');
  2816.  
  2817. if(!strlen(tmp))
  2818. {
  2819. SendClientMessage(playerid, WHITE, "UŻYJ: /Aspeed <ON/OFF>");
  2820. return 1;
  2821. }
  2822.  
  2823. if(strcmp(tmp, "on", true)==0)
  2824. {
  2825. str = dini_Get("AntyCheatConfig.ini", "AntySpeedHack");
  2826. if(strval(str) == 0)
  2827. {
  2828. dini_IntSet("AntyCheatConfig.ini", "AntySpeedHack", 1);
  2829. Anty[AntiSpeedHack] = true;
  2830. if(Anty[AntiAirBrake] == false) Anty[TimerAntiSpeedHack] = SetTimer("AntySpeed", 1000, 1);
  2831. SendClientMessage(playerid, GREEN, "Anty Speed Hack włączony");
  2832. }
  2833. else SendClientMessage(playerid, RED, "Anty Speed Hack jest już włączony!");
  2834. return 1;
  2835. }
  2836.  
  2837. if(strcmp(tmp, "off", true)==0)
  2838. {
  2839. str = dini_Get("AntyCheatConfig.ini", "AntySpeedHack");
  2840. if(strval(str) == 1)
  2841. {
  2842. dini_IntSet("AntyCheatConfig.ini", "AntySpeedHack", 0);
  2843. Anty[AntiSpeedHack] = false;
  2844. if(Anty[AntiAirBrake] == false) KillTimer(Anty[TimerAntiSpeedHack]);
  2845. SendClientMessage(playerid, GREEN, "Anty Speed-Hack wyłączony");
  2846. }
  2847. else SendClientMessage(playerid, RED, "Anty Speed-Hack jest już wyłączony");
  2848. }
  2849. }
  2850. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  2851. return 1;
  2852. }
  2853.  
  2854. dcmd_aairbrake(playerid, cmdtext[])
  2855. {
  2856. if(IsPlayerAdmin(playerid))
  2857. {
  2858. new idx;
  2859. new tmp[256];
  2860. tmp = strtok(cmdtext, idx, ' ');
  2861.  
  2862. if(!strlen(tmp))
  2863. {
  2864. SendClientMessage(playerid, WHITE, "UŻYJ: /Aairbrake <ON/OFF>");
  2865. return 1;
  2866. }
  2867.  
  2868. if(strcmp(tmp, "on", true)==0)
  2869. {
  2870. str = dini_Get("AntyCheatConfig.ini", "AntyAirBrake");
  2871. if(strval(str) == 0)
  2872. {
  2873. dini_IntSet("AntyCheatConfig.ini", "AntyAirBrake", 1);
  2874. Anty[AntiAirBrake] = true;
  2875. if(Anty[AntiSpeedHack] == false) Anty[TimerAntiSpeedHack] = SetTimer("AntySpeed", 1000, 1);
  2876. SendClientMessage(playerid, GREEN, "Anty Air-Brake włączony");
  2877. }
  2878. else SendClientMessage(playerid, RED, "Anty Air-Brake jest już włączony!");
  2879. return 1;
  2880. }
  2881.  
  2882. if(strcmp(tmp, "off", true)==0)
  2883. {
  2884. str = dini_Get("AntyCheatConfig.ini", "AntyAirBrake");
  2885. if(strval(str) == 1)
  2886. {
  2887. dini_IntSet("AntyCheatConfig.ini", "AntyAirBrake", 0);
  2888. Anty[AntiAirBrake] = false;
  2889. if(Anty[AntiSpeedHack] == false) KillTimer(Anty[TimerAntiSpeedHack]);
  2890. SendClientMessage(playerid, GREEN, "Anty Air-Brake wyłączony");
  2891. }
  2892. else SendClientMessage(playerid, RED, "Anty Air-Brake jest już wyłączony");
  2893. }
  2894. }
  2895. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  2896. return 1;
  2897. }
  2898.  
  2899. dcmd_aafk(playerid, cmdtext[])
  2900. {
  2901. if(IsPlayerAdmin(playerid))
  2902. {
  2903. new idx;
  2904. new tmp[256];
  2905. tmp = strtok(cmdtext, idx, ' ');
  2906.  
  2907. if(!strlen(tmp))
  2908. {
  2909. SendClientMessage(playerid, WHITE, "UŻYJ: /Aafk <ON/OFF>");
  2910. return 1;
  2911. }
  2912.  
  2913. if(strcmp(tmp, "on", true)==0)
  2914. {
  2915. str = dini_Get("AntyCheatConfig.ini", "AntyAFK");
  2916. if(strval(str) == 0)
  2917. {
  2918. dini_IntSet("AntyCheatConfig.ini", "AntyAFK", 1);
  2919. Anty[AntiAFK] = SetTimer("AntyAFK", 60000, 1);
  2920. SendClientMessage(playerid, GREEN, "Anty AFK włączony");
  2921. }
  2922. else SendClientMessage(playerid, RED, "Anty AFK jest już włączony!");
  2923. return 1;
  2924. }
  2925.  
  2926. if(strcmp(tmp, "off", true)==0)
  2927. {
  2928. str = dini_Get("AntyCheatConfig.ini", "AntyAFK");
  2929. if(strval(str) == 1)
  2930. {
  2931. dini_IntSet("AntyCheatConfig.ini", "AntyAFK", 0);
  2932. KillTimer(Anty[AntiAFK]);
  2933. SendClientMessage(playerid, GREEN, "Anty AFK wyłączony");
  2934. }
  2935. else SendClientMessage(playerid, RED, "Anty AFK jest już wyłączony");
  2936. }
  2937. }
  2938. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  2939. return 1;
  2940. }
  2941.  
  2942. dcmd_apause(playerid, cmdtext[])
  2943. {
  2944. if(IsPlayerAdmin(playerid))
  2945. {
  2946. new idx;
  2947. new tmp[256];
  2948. tmp = strtok(cmdtext, idx, ' ');
  2949.  
  2950. if(!strlen(tmp))
  2951. {
  2952. SendClientMessage(playerid, WHITE, "UŻYJ: /Apause <ON/OFF>");
  2953. return 1;
  2954. }
  2955.  
  2956. if(strcmp(tmp, "on", true)==0)
  2957. {
  2958. str = dini_Get("AntyCheatConfig.ini", "AntyPause");
  2959. if(strval(str) == 0)
  2960. {
  2961. dini_IntSet("AntyCheatConfig.ini", "AntyPause", 1);
  2962. Anty[AntiPause] = SetTimer("AntyPause", 1000, 1);
  2963. SendClientMessage(playerid, GREEN, "Anty Pause włączony");
  2964. }
  2965. else SendClientMessage(playerid, RED, "Anty Pause jest już włączony!");
  2966. return 1;
  2967. }
  2968.  
  2969. if(strcmp(tmp, "off", true)==0)
  2970. {
  2971. str = dini_Get("AntyCheatConfig.ini", "AntyPause");
  2972. if(strval(str) == 1)
  2973. {
  2974. dini_IntSet("AntyCheatConfig.ini", "AntyPause", 0);
  2975. KillTimer(Anty[AntiPause]);
  2976. SendClientMessage(playerid, GREEN, "Anty Pause wyłączony");
  2977. }
  2978. else SendClientMessage(playerid, RED, "Anty Pause jest już wyłączony");
  2979. }
  2980. }
  2981. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  2982. return 1;
  2983. }
  2984.  
  2985. dcmd_ainfioxy(playerid, cmdtext[])
  2986. {
  2987. if(IsPlayerAdmin(playerid))
  2988. {
  2989. new idx;
  2990. new tmp[256];
  2991. tmp = strtok(cmdtext, idx, ' ');
  2992.  
  2993. if(!strlen(tmp))
  2994. {
  2995. SendClientMessage(playerid, WHITE, "UŻYJ: /Ainfioxy <ON/OFF>");
  2996. return 1;
  2997. }
  2998.  
  2999. if(strcmp(tmp, "on", true)==0)
  3000. {
  3001. str = dini_Get("AntyCheatConfig.ini", "AntyInfiniteOxygen");
  3002. if(strval(str) == 0)
  3003. {
  3004. dini_IntSet("AntyCheatConfig.ini", "AntyInfiniteOxygen", 1);
  3005. Anty[AntiInfOxygen] = SetTimer("AntyInfOxygen", 1000, 1);
  3006. SendClientMessage(playerid, GREEN, "Anty Infinite Oxygen włączony");
  3007. }
  3008. else SendClientMessage(playerid, RED, "Anty Infinite Oxygen jest już włączony!");
  3009. return 1;
  3010. }
  3011.  
  3012. if(strcmp(tmp, "off", true)==0)
  3013. {
  3014. str = dini_Get("AntyCheatConfig.ini", "AntyInfiniteOxygen");
  3015. if(strval(str) == 1)
  3016. {
  3017. dini_IntSet("AntyCheatConfig.ini", "AntyInfiniteOxygen", 0);
  3018. KillTimer(Anty[AntiInfOxygen]);
  3019. SendClientMessage(playerid, GREEN, "Anty Infinite Oxygen wyłączony");
  3020. }
  3021. else SendClientMessage(playerid, RED, "Anty Infinite Oxygen jest już wyłączony");
  3022. }
  3023. }
  3024. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  3025. return 1;
  3026. }
  3027.  
  3028. dcmd_awunder(playerid, cmdtext[])
  3029. {
  3030. if(IsPlayerAdmin(playerid))
  3031. {
  3032. new idx;
  3033. new tmp[256];
  3034. tmp = strtok(cmdtext, idx, ' ');
  3035.  
  3036. if(!strlen(tmp))
  3037. {
  3038. SendClientMessage(playerid, WHITE, "UŻYJ: /Awunder <ON/OFF>");
  3039. return 1;
  3040. }
  3041.  
  3042. if(strcmp(tmp, "on", true)==0)
  3043. {
  3044. str = dini_Get("AntyCheatConfig.ini", "AntyWalkUnderwater");
  3045. if(strval(str) == 0)
  3046. {
  3047. dini_IntSet("AntyCheatConfig.ini", "AntyWalkUnderwater", 1);
  3048. Anty[AntiUnderwater] = SetTimer("AntyWalkUnderwater", 1000, 1);
  3049. SendClientMessage(playerid, GREEN, "Anty Walk Underwater włączony");
  3050. }
  3051. else SendClientMessage(playerid, RED, "Anty Walk Underwater jest już włączony!");
  3052. return 1;
  3053. }
  3054.  
  3055. if(strcmp(tmp, "off", true)==0)
  3056. {
  3057. str = dini_Get("AntyCheatConfig.ini", "AntyWalkUnderwater");
  3058. if(strval(str) == 1)
  3059. {
  3060. dini_IntSet("AntyCheatConfig.ini", "AntyWalkUnderwater", 0);
  3061. KillTimer(Anty[AntiUnderwater]);
  3062. SendClientMessage(playerid, GREEN, "Anty Walk Underwater wyłączony");
  3063. }
  3064. else SendClientMessage(playerid, RED, "Anty Walk Underwater jest już wyłączony");
  3065. }
  3066. }
  3067. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  3068. return 1;
  3069. }
  3070.  
  3071. dcmd_ajet(playerid, cmdtext[])
  3072. {
  3073. if(IsPlayerAdmin(playerid))
  3074. {
  3075. new idx;
  3076. new tmp[256];
  3077. tmp = strtok(cmdtext, idx, ' ');
  3078.  
  3079. if(!strlen(tmp))
  3080. {
  3081. SendClientMessage(playerid, WHITE, "UŻYJ: /Ajet <ON/OFF>");
  3082. return 1;
  3083. }
  3084.  
  3085. if(strcmp(tmp, "on", true)==0)
  3086. {
  3087. str = dini_Get("AntyCheatConfig.ini", "AntyJetpack");
  3088. if(strval(str) == 0)
  3089. {
  3090. dini_IntSet("AntyCheatConfig.ini", "AntyJetpack", 1);
  3091. Anty[AntiJetpack] = SetTimer("AntyJetpack", 1000, 1);
  3092. SendClientMessage(playerid, GREEN, "Anty Jetpack włączony");
  3093. }
  3094. else SendClientMessage(playerid, RED, "Anty Jetpack jest już włączony!");
  3095. return 1;
  3096. }
  3097.  
  3098. if(strcmp(tmp, "off", true)==0)
  3099. {
  3100. str = dini_Get("AntyCheatConfig.ini", "AntyJetpack");
  3101. if(strval(str) == 1)
  3102. {
  3103. dini_IntSet("AntyCheatConfig.ini", "AntyJetpack", 0);
  3104. KillTimer(Anty[AntiJetpack]);
  3105. SendClientMessage(playerid, GREEN, "Anty Jetpack wyłączony");
  3106. }
  3107. else SendClientMessage(playerid, RED, "Anty Jetpack jest już wyłączony");
  3108. }
  3109. }
  3110. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  3111. return 1;
  3112. }
  3113.  
  3114. dcmd_acrash(playerid, cmdtext[])
  3115. {
  3116. if(IsPlayerAdmin(playerid))
  3117. {
  3118. new idx;
  3119. new tmp[256];
  3120. tmp = strtok(cmdtext, idx, ' ');
  3121.  
  3122. if(!strlen(tmp))
  3123. {
  3124. SendClientMessage(playerid, WHITE, "UŻYJ: /Acrash <ON/OFF>");
  3125. return 1;
  3126. }
  3127.  
  3128. if(strcmp(tmp, "on", true)==0)
  3129. {
  3130. str = dini_Get("AntyCheatConfig.ini", "AntyCrash");
  3131. if(strval(str) == 0)
  3132. {
  3133. dini_IntSet("AntyCheatConfig.ini", "AntyCrash", 1);
  3134. Anty[AntyCrash] = true;
  3135. SendClientMessage(playerid, GREEN, "Anty Crash włączone");
  3136. }
  3137. else SendClientMessage(playerid, RED, "Anty Crash jest już włączone!");
  3138. return 1;
  3139. }
  3140.  
  3141. if(strcmp(tmp, "off", true)==0)
  3142. {
  3143. str = dini_Get("AntyCheatConfig.ini", "AntyCrash");
  3144. if(strval(str) == 1)
  3145. {
  3146. dini_IntSet("AntyCheatConfig.ini", "AntyCrash", 0);
  3147. Anty[AntyCrash] = false;
  3148. SendClientMessage(playerid, GREEN, "Anty Crash wyłączone");
  3149. }
  3150. else SendClientMessage(playerid, RED, "Anty Crash jest już wyłączone");
  3151. }
  3152. }
  3153. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  3154. return 1;
  3155. }
  3156.  
  3157. dcmd_avehgod(playerid, cmdtext[])
  3158. {
  3159. if(IsPlayerAdmin(playerid))
  3160. {
  3161. new idx;
  3162. new tmp[256];
  3163. tmp = strtok(cmdtext, idx, ' ');
  3164.  
  3165. if(!strlen(tmp))
  3166. {
  3167. SendClientMessage(playerid, WHITE, "UŻYJ: /Avehgod <ON/OFF>");
  3168. return 1;
  3169. }
  3170.  
  3171. if(strcmp(tmp, "on", true)==0)
  3172. {
  3173. str = dini_Get("AntyCheatConfig.ini", "AntyVehicleGodMode");
  3174. if(strval(str) == 0)
  3175. {
  3176. dini_IntSet("AntyCheatConfig.ini", "AntyVehicleGodMode", 1);
  3177. Anty[AntiVehGod] = true;
  3178. SendClientMessage(playerid, GREEN, "Anty Vehicle God Mode włączone");
  3179. }
  3180. else SendClientMessage(playerid, RED, "Anty Vehicle God Mode jest już włączone!");
  3181. return 1;
  3182. }
  3183.  
  3184. if(strcmp(tmp, "off", true)==0)
  3185. {
  3186. str = dini_Get("AntyCheatConfig.ini", "AntyVehicleGodMode");
  3187. if(strval(str) == 1)
  3188. {
  3189. dini_IntSet("AntyCheatConfig.ini", "AntyVehicleGodMode", 0);
  3190. Anty[AntiVehGod] = false;
  3191. SendClientMessage(playerid, GREEN, "Anty Vehicle God Mode wyłączone");
  3192. }
  3193. else SendClientMessage(playerid, RED, "Anty Vehicle God Mode jest już wyłączone");
  3194. }
  3195. }
  3196. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  3197. return 1;
  3198. }
  3199.  
  3200. dcmd_agod(playerid, cmdtext[])
  3201. {
  3202. if(IsPlayerAdmin(playerid))
  3203. {
  3204. new idx;
  3205. new tmp[256];
  3206. tmp = strtok(cmdtext, idx, ' ');
  3207.  
  3208. if(!strlen(tmp))
  3209. {
  3210. SendClientMessage(playerid, WHITE, "UŻYJ: /Agod <ON/OFF>");
  3211. return 1;
  3212. }
  3213.  
  3214. if(strcmp(tmp, "on", true)==0)
  3215. {
  3216. str = dini_Get("AntyCheatConfig.ini", "AntyGodMode");
  3217. if(strval(str) == 0)
  3218. {
  3219. dini_IntSet("AntyCheatConfig.ini", "AntyGodMode", 1);
  3220. Anty[AntiGodMode] = SetTimer("AntyGod", 1000, 1);
  3221. SendClientMessage(playerid, GREEN, "Anty God-Mode włączony");
  3222. }
  3223. else SendClientMessage(playerid, RED, "Anty God-Mode jest już włączony!");
  3224. return 1;
  3225. }
  3226.  
  3227. if(strcmp(tmp, "off", true)==0)
  3228. {
  3229. str = dini_Get("AntyCheatConfig.ini", "AntyGodMode");
  3230. if(strval(str) == 1)
  3231. {
  3232. dini_IntSet("AntyCheatConfig.ini", "AntyGodMode", 0);
  3233. KillTimer(Anty[AntiGodMode]);
  3234. SendClientMessage(playerid, GREEN, "Anty God-Mode wyłączony");
  3235. }
  3236. else SendClientMessage(playerid, RED, "Anty God-Mode jest już wyłączony");
  3237. }
  3238. }
  3239. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  3240. return 1;
  3241. }
  3242.  
  3243. dcmd_ainfiammo(playerid, cmdtext[])
  3244. {
  3245. if(IsPlayerAdmin(playerid))
  3246. {
  3247. new idx;
  3248. new tmp[256];
  3249. tmp = strtok(cmdtext, idx, ' ');
  3250.  
  3251. if(!strlen(tmp))
  3252. {
  3253. SendClientMessage(playerid, WHITE, "UŻYJ: /Ainfiammo <ON/OFF>");
  3254. return 1;
  3255. }
  3256.  
  3257. if(strcmp(tmp, "on", true)==0)
  3258. {
  3259. str = dini_Get("AntyCheatConfig.ini", "AntyInfiniteAmmo");
  3260. if(strval(str) == 0)
  3261. {
  3262. dini_IntSet("AntyCheatConfig.ini", "AntyInfiniteAmmo", 1);
  3263. Anty[AntiInfiniteAmmo] = SetTimer("AntyUnlimitedAmmo", 1000, 1);
  3264. SendClientMessage(playerid, GREEN, "Anty Unlimited Ammo włączony");
  3265. }
  3266. else SendClientMessage(playerid, RED, "Anty Unlimited Ammo jest już włączony!");
  3267. return 1;
  3268. }
  3269.  
  3270. if(strcmp(tmp, "off", true)==0)
  3271. {
  3272. str = dini_Get("AntyCheatConfig.ini", "AntyInfiniteAmmo");
  3273. if(strval(str) == 1)
  3274. {
  3275. dini_IntSet("AntyCheatConfig.ini", "AntyInfiniteAmmo", 0);
  3276. KillTimer(Anty[AntiInfiniteAmmo]);
  3277. SendClientMessage(playerid, GREEN, "Anty Unlimited Ammo wyłączony");
  3278. }
  3279. else SendClientMessage(playerid, RED, "Anty Unlimited Ammo jest już wyłączony");
  3280. }
  3281. }
  3282. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  3283. return 1;
  3284. }
  3285.  
  3286. dcmd_abluzgi(playerid, cmdtext[])
  3287. {
  3288. if(IsPlayerAdmin(playerid))
  3289. {
  3290. new idx;
  3291. new tmp[256];
  3292. tmp = strtok(cmdtext, idx, ' ');
  3293.  
  3294. if(!strlen(tmp))
  3295. {
  3296. SendClientMessage(playerid, WHITE, "UŻYJ: /Abluzgi <ON/OFF>");
  3297. return 1;
  3298. }
  3299.  
  3300. if(strcmp(tmp, "on", true)==0)
  3301. {
  3302. str = dini_Get("AntyCheatConfig.ini", "AntyBluzgi");
  3303. if(strval(str) == 0)
  3304. {
  3305. dini_IntSet("AntyCheatConfig.ini", "AntyBluzgi", 1);
  3306. Anty[AntyBluzgi] = true;
  3307. SendClientMessage(playerid, GREEN, "Anty Bluzgi włączone");
  3308. }
  3309. else SendClientMessage(playerid, RED, "Anty Bluzgi jest już włączone!");
  3310. return 1;
  3311. }
  3312.  
  3313. if(strcmp(tmp, "off", true)==0)
  3314. {
  3315. str = dini_Get("AntyCheatConfig.ini", "AntyBluzgi");
  3316. if(strval(str) == 1)
  3317. {
  3318. dini_IntSet("AntyCheatConfig.ini", "AntyBluzgi", 0);
  3319. Anty[AntyBluzgi] = false;
  3320. SendClientMessage(playerid, GREEN, "Anty Bluzgi wyłączone");
  3321. }
  3322. else SendClientMessage(playerid, RED, "Anty Bluzgi jest już wyłączone");
  3323. }
  3324. }
  3325. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  3326. return 1;
  3327. }
  3328.  
  3329. dcmd_arepeat(playerid, cmdtext[])
  3330. {
  3331. if(IsPlayerAdmin(playerid))
  3332. {
  3333. new idx;
  3334. new tmp[256];
  3335. tmp = strtok(cmdtext, idx, ' ');
  3336.  
  3337. if(!strlen(tmp))
  3338. {
  3339. SendClientMessage(playerid, WHITE, "UŻYJ: /Arepeat <ON/OFF>");
  3340. return 1;
  3341. }
  3342.  
  3343. if(strcmp(tmp, "on", true)==0)
  3344. {
  3345. str = dini_Get("AntyCheatConfig.ini", "AntyRepeat");
  3346. if(strval(str) == 0)
  3347. {
  3348. dini_IntSet("AntyCheatConfig.ini", "AntyRepeat", 1);
  3349. Anty[AntyRepeat] = true;
  3350. SendClientMessage(playerid, GREEN, "Anty Repeat włączony");
  3351. }
  3352. else SendClientMessage(playerid, RED, "Anty Repeat jest już włączony!");
  3353. return 1;
  3354. }
  3355.  
  3356. if(strcmp(tmp, "off", true)==0)
  3357. {
  3358. str = dini_Get("AntyCheatConfig.ini", "AntyRepeat");
  3359. if(strval(str) == 1)
  3360. {
  3361. dini_IntSet("AntyCheatConfig.ini", "AntyRepeat", 0);
  3362. Anty[AntyRepeat] = false;
  3363. SendClientMessage(playerid, GREEN, "Anty Repeat wyłączony");
  3364. }
  3365. else SendClientMessage(playerid, RED, "Anty Repeat jest już wyłączony");
  3366. }
  3367. }
  3368. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  3369. return 1;
  3370. }
  3371.  
  3372. dcmd_amegajump(playerid, cmdtext[])
  3373. {
  3374. if(IsPlayerAdmin(playerid))
  3375. {
  3376. new idx;
  3377. new tmp[256];
  3378. tmp = strtok(cmdtext, idx, ' ');
  3379.  
  3380. if(!strlen(tmp))
  3381. {
  3382. SendClientMessage(playerid, WHITE, "UŻYJ: /Amegajump <ON/OFF>");
  3383. return 1;
  3384. }
  3385.  
  3386. if(strcmp(tmp, "on", true)==0)
  3387. {
  3388. str = dini_Get("AntyCheatConfig.ini", "AntyMegaJump");
  3389. if(strval(str) == 0)
  3390. {
  3391. dini_IntSet("AntyCheatConfig.ini", "AntyMegaJump", 1);
  3392. Anty[AntiMegaJump] = true;
  3393. SendClientMessage(playerid, GREEN, "Anty Mega-Jump włączony");
  3394. }
  3395. else SendClientMessage(playerid, RED, "Anty Mega-Jump jest już włączony!");
  3396. return 1;
  3397. }
  3398.  
  3399. if(strcmp(tmp, "off", true)==0)
  3400. {
  3401. str = dini_Get("AntyCheatConfig.ini", "AntyMegaJump");
  3402. if(strval(str) == 1)
  3403. {
  3404. dini_IntSet("AntyCheatConfig.ini", "AntyMegaJump", 0);
  3405. Anty[AntiMegaJump] = false;
  3406. SendClientMessage(playerid, GREEN, "Anty Mega-Jump wyłączony");
  3407. }
  3408. else SendClientMessage(playerid, RED, "Anty Mega-Jump jest już wyłączony");
  3409. }
  3410. }
  3411. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  3412. return 1;
  3413. }
  3414.  
  3415. dcmd_aglitch(playerid, cmdtext[])
  3416. {
  3417. if(IsPlayerAdmin(playerid))
  3418. {
  3419. new idx;
  3420. new tmp[256];
  3421. tmp = strtok(cmdtext, idx, ' ');
  3422.  
  3423. if(!strlen(tmp))
  3424. {
  3425. SendClientMessage(playerid, WHITE, "UŻYJ: /Aglitch <ON/OFF>");
  3426. return 1;
  3427. }
  3428.  
  3429. if(strcmp(tmp, "on", true)==0)
  3430. {
  3431. str = dini_Get("AntyCheatConfig.ini", "AntyGlitch");
  3432. if(strval(str) == 0)
  3433. {
  3434. dini_IntSet("AntyCheatConfig.ini", "AntyGlitch", 1);
  3435. Anty[AntiGlitch] = true;
  3436. SendClientMessage(playerid, GREEN, "Anty-Glitch włączony");
  3437. }
  3438. else SendClientMessage(playerid, RED, "Anty-Glitch jest już włączony!");
  3439. return 1;
  3440. }
  3441.  
  3442. if(strcmp(tmp, "off", true)==0)
  3443. {
  3444. str = dini_Get("AntyCheatConfig.ini", "AntyGlitch");
  3445. if(strval(str) == 1)
  3446. {
  3447. dini_IntSet("AntyCheatConfig.ini", "AntyGlitch", 0);
  3448. Anty[AntiGlitch] = false;
  3449. SendClientMessage(playerid, GREEN, "Anty-Glitch wyłączony");
  3450. }
  3451. else SendClientMessage(playerid, RED, "Anty-Glitch jest już wyłączony");
  3452. }
  3453. }
  3454. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  3455. return 1;
  3456. }
  3457.  
  3458. dcmd_afsprint(playerid, cmdtext[])
  3459. {
  3460. if(IsPlayerAdmin(playerid))
  3461. {
  3462. new idx;
  3463. new tmp[256];
  3464. tmp = strtok(cmdtext, idx, ' ');
  3465.  
  3466. if(!strlen(tmp))
  3467. {
  3468. SendClientMessage(playerid, WHITE, "UŻYJ: /Afsprint <ON/OFF>");
  3469. return 1;
  3470. }
  3471.  
  3472. if(strcmp(tmp, "on", true)==0)
  3473. {
  3474. str = dini_Get("AntyCheatConfig.ini", "AntyFasterSprint");
  3475. if(strval(str) == 0)
  3476. {
  3477. dini_IntSet("AntyCheatConfig.ini", "AntyFasterSprint", 1);
  3478. Anty[AntiFasterSprint] = true;
  3479. SendClientMessage(playerid, GREEN, "Anty Faster Sprint włączony");
  3480. }
  3481. else SendClientMessage(playerid, RED, "Anty Faster Sprint jest już włączony!");
  3482. return 1;
  3483. }
  3484.  
  3485. if(strcmp(tmp, "off", true)==0)
  3486. {
  3487. str = dini_Get("AntyCheatConfig.ini", "AntyFasterSprint");
  3488. if(strval(str) == 1)
  3489. {
  3490. dini_IntSet("AntyCheatConfig.ini", "AntyFasterSprint", 0);
  3491. Anty[AntiFasterSprint] = false;
  3492. SendClientMessage(playerid, GREEN, "Anty Faster Sprint wyłączony");
  3493. }
  3494. else SendClientMessage(playerid, RED, "Anty Faster Sprint jest już wyłączony");
  3495. }
  3496. }
  3497. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  3498. return 1;
  3499. }
  3500.  
  3501. dcmd_aping(playerid, cmdtext[])
  3502. {
  3503. if(IsPlayerAdmin(playerid))
  3504. {
  3505. new idx;
  3506. new tmp[256];
  3507. tmp = strtok(cmdtext, idx, ' ');
  3508.  
  3509. if(!strlen(tmp))
  3510. {
  3511. SendClientMessage(playerid, WHITE, "UŻYJ: /Aping <ON/OFF>");
  3512. return 1;
  3513. }
  3514.  
  3515. if(strcmp(tmp, "on", true)==0)
  3516. {
  3517. str = dini_Get("AntyCheatConfig.ini", "AntyPing");
  3518. if(strval(str) == 0)
  3519. {
  3520. dini_IntSet("AntyCheatConfig.ini", "AntyPing", 1);
  3521. Anty[AntiPing] = SetTimer("AntyPing", 1000, 1);
  3522. SendClientMessage(playerid, GREEN, "Anty Ping włączony");
  3523. }
  3524. else SendClientMessage(playerid, RED, "Anty Ping jest już włączony!");
  3525. return 1;
  3526. }
  3527.  
  3528. if(strcmp(tmp, "off", true)==0)
  3529. {
  3530. str = dini_Get("AntyCheatConfig.ini", "AntyPing");
  3531. if(strval(str) == 1)
  3532. {
  3533. dini_IntSet("AntyCheatConfig.ini", "AntyPing", 0);
  3534. KillTimer(Anty[AntiPing]);
  3535. SendClientMessage(playerid, GREEN, "Anty Ping wyłączony");
  3536. }
  3537. else SendClientMessage(playerid, RED, "Anty Ping jest już wyłączony");
  3538. }
  3539. }
  3540. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  3541. return 1;
  3542. }
  3543.  
  3544. dcmd_aindoors(playerid, cmdtext[])
  3545. {
  3546. if(IsPlayerAdmin(playerid))
  3547. {
  3548. new idx;
  3549. new tmp[256];
  3550. tmp = strtok(cmdtext, idx, ' ');
  3551.  
  3552. if(!strlen(tmp))
  3553. {
  3554. SendClientMessage(playerid, WHITE, "UŻYJ: /Aindoors <ON/OFF>");
  3555. return 1;
  3556. }
  3557.  
  3558. if(strcmp(tmp, "on", true)==0)
  3559. {
  3560. str = dini_Get("AntyCheatConfig.ini", "AntyInteriorWeapons");
  3561. if(strval(str) == 0)
  3562. {
  3563. dini_IntSet("AntyCheatConfig.ini", "AntyInteriorWeapons", 1);
  3564. Anty[AntiIndoorsWeapons] = SetTimer("BronieWBudynku", 1000, 1);
  3565. SendClientMessage(playerid, GREEN, "Anty Interior Weapons włączony");
  3566. }
  3567. else SendClientMessage(playerid, RED, "Anty Interior Weapons jest już włączony!");
  3568. return 1;
  3569. }
  3570.  
  3571. if(strcmp(tmp, "off", true)==0)
  3572. {
  3573. str = dini_Get("AntyCheatConfig.ini", "AntyInteriorWeapons");
  3574. if(strval(str) == 1)
  3575. {
  3576. dini_IntSet("AntyCheatConfig.ini", "AntyInteriorWeapons", 0);
  3577. KillTimer(Anty[AntiIndoorsWeapons]);
  3578. SendClientMessage(playerid, GREEN, "Anty Interior Weapons wyłączony");
  3579. }
  3580. else SendClientMessage(playerid, RED, "Anty Interior Weapons jest już wyłączony");
  3581. }
  3582. }
  3583. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  3584. return 1;
  3585. }
  3586.  
  3587. dcmd_abikefall(playerid, cmdtext[])
  3588. {
  3589. if(IsPlayerAdmin(playerid))
  3590. {
  3591. new idx;
  3592. new tmp[256];
  3593. tmp = strtok(cmdtext, idx, ' ');
  3594.  
  3595. if(!strlen(tmp))
  3596. {
  3597. SendClientMessage(playerid, WHITE, "UŻYJ: /Abikefall <ON/OFF>");
  3598. return 1;
  3599. }
  3600.  
  3601. if(strcmp(tmp, "on", true)==0)
  3602. {
  3603. str = dini_Get("AntyCheatConfig.ini", "AntyAntiBikeFallOff");
  3604. if(strval(str) == 0)
  3605. {
  3606. dini_IntSet("AntyCheatConfig.ini", "AntyAntiBikeFallOff", 1);
  3607. Anty[AntiBikeFallOff] = SetTimer("AntyBikeFallOff", 1000, 1);
  3608. SendClientMessage(playerid, GREEN, "Anty Anti Bike Fall Off włączony");
  3609. }
  3610. else SendClientMessage(playerid, RED, "Anty Anti Bike Fall Off jest już włączony!");
  3611. return 1;
  3612. }
  3613.  
  3614. if(strcmp(tmp, "off", true)==0)
  3615. {
  3616. str = dini_Get("AntyCheatConfig.ini", "AntyAntiBikeFallOff");
  3617. if(strval(str) == 1)
  3618. {
  3619. dini_IntSet("AntyCheatConfig.ini", "AntyAntiBikeFallOff", 0);
  3620. KillTimer(Anty[AntiBikeFallOff]);
  3621. SendClientMessage(playerid, GREEN, "Anty Anti Bike Fall Off wyłączony");
  3622. }
  3623. else SendClientMessage(playerid, RED, "Anty Anti Bike Fall Off jest już wyłączony");
  3624. }
  3625. }
  3626. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  3627. return 1;
  3628. }
  3629.  
  3630. dcmd_aweapcheat(playerid, cmdtext[])
  3631. {
  3632. if(IsPlayerAdmin(playerid))
  3633. {
  3634. new idx;
  3635. new tmp[256];
  3636. tmp = strtok(cmdtext, idx, ' ');
  3637.  
  3638. if(!strlen(tmp))
  3639. {
  3640. SendClientMessage(playerid, WHITE, "UŻYJ: /Aweapcheat <ON/OFF>");
  3641. return 1;
  3642. }
  3643.  
  3644. if(strcmp(tmp, "on", true)==0)
  3645. {
  3646. str = dini_Get("AntyCheatConfig.ini", "AntyWeaponCheat");
  3647. if(strval(str) == 0)
  3648. {
  3649. dini_IntSet("AntyCheatConfig.ini", "AntyWeaponCheat", 1);
  3650. Anty[AntiWeaponCheat] = SetTimer("AntyBronie", 1000, 1);
  3651. SendClientMessage(playerid, GREEN, "Anty Weapon Cheat włączony");
  3652. }
  3653. else SendClientMessage(playerid, RED, "Anty Weapon Cheat jest już włączony!");
  3654. return 1;
  3655. }
  3656.  
  3657. if(strcmp(tmp, "off", true)==0)
  3658. {
  3659. str = dini_Get("AntyCheatConfig.ini", "AntyWeaponCheat");
  3660. if(strval(str) == 1)
  3661. {
  3662. dini_IntSet("AntyCheatConfig.ini", "AntyWeaponCheat", 0);
  3663. KillTimer(Anty[AntiWeaponCheat]);
  3664. SendClientMessage(playerid, GREEN, "Anty Weapon Cheat wyłączony");
  3665. }
  3666. else SendClientMessage(playerid, RED, "Anty Weapon Cheat jest już wyłączony");
  3667. }
  3668. }
  3669. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  3670. return 1;
  3671. }
  3672.  
  3673. dcmd_aarmour(playerid, cmdtext[])
  3674. {
  3675. if(IsPlayerAdmin(playerid))
  3676. {
  3677. new idx;
  3678. new tmp[256];
  3679. tmp = strtok(cmdtext, idx, ' ');
  3680.  
  3681. if(!strlen(tmp))
  3682. {
  3683. SendClientMessage(playerid, WHITE, "UŻYJ: /Aarmour <ON/OFF>");
  3684. return 1;
  3685. }
  3686.  
  3687. if(strcmp(tmp, "on", true)==0)
  3688. {
  3689. str = dini_Get("AntyCheatConfig.ini", "AntyArmourCheat");
  3690. if(strval(str) == 0)
  3691. {
  3692. dini_IntSet("AntyCheatConfig.ini", "AntyArmourCheat", 1);
  3693. Anty[AntiArmour] = SetTimer("AntyArmour", 1000, 1);
  3694. SendClientMessage(playerid, GREEN, "Anty Armour Cheat włączony");
  3695. }
  3696. else SendClientMessage(playerid, RED, "Anty Armour Cheat jest już włączony!");
  3697. return 1;
  3698. }
  3699.  
  3700. if(strcmp(tmp, "off", true)==0)
  3701. {
  3702. str = dini_Get("AntyCheatConfig.ini", "AntyArmourCheat");
  3703. if(strval(str) == 1)
  3704. {
  3705. dini_IntSet("AntyCheatConfig.ini", "AntyArmourCheat", 0);
  3706. KillTimer(Anty[AntiArmour]);
  3707. SendClientMessage(playerid, GREEN, "Anty Armour Cheat wyłączony");
  3708. }
  3709. else SendClientMessage(playerid, RED, "Anty Armour Cheat jest już wyłączony");
  3710. }
  3711. }
  3712. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  3713. return 1;
  3714. }
  3715.  
  3716. dcmd_ahp(playerid, cmdtext[])
  3717. {
  3718. if(IsPlayerAdmin(playerid))
  3719. {
  3720. new idx;
  3721. new tmp[256];
  3722. tmp = strtok(cmdtext, idx, ' ');
  3723.  
  3724. if(!strlen(tmp))
  3725. {
  3726. SendClientMessage(playerid, WHITE, "UŻYJ: /Ahp <ON/OFF>");
  3727. return 1;
  3728. }
  3729.  
  3730. if(strcmp(tmp, "on", true)==0)
  3731. {
  3732. str = dini_Get("AntyCheatConfig.ini", "AntyHealthCheat");
  3733. if(strval(str) == 0)
  3734. {
  3735. dini_IntSet("AntyCheatConfig.ini", "AntyHealthCheat", 1);
  3736. Anty[AntiHealth] = SetTimer("AntyHP", 1000, 1);
  3737. SendClientMessage(playerid, GREEN, "Anty Health Cheat włączony");
  3738. }
  3739. else SendClientMessage(playerid, RED, "Anty Health Cheat jest już włączony!");
  3740. return 1;
  3741. }
  3742.  
  3743. if(strcmp(tmp, "off", true)==0)
  3744. {
  3745. str = dini_Get("AntyCheatConfig.ini", "AntyHealthCheat");
  3746. if(strval(str) == 1)
  3747. {
  3748. dini_IntSet("AntyCheatConfig.ini", "AntyHealthCheat", 0);
  3749. KillTimer(Anty[AntiHealth]);
  3750. SendClientMessage(playerid, GREEN, "Anty Health Cheat wyłączony");
  3751. }
  3752. else SendClientMessage(playerid, RED, "Anty Health Cheat jest już wyłączony");
  3753. }
  3754. }
  3755. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  3756. return 1;
  3757. }
  3758.  
  3759. dcmd_amoney(playerid, cmdtext[])
  3760. {
  3761. if(IsPlayerAdmin(playerid))
  3762. {
  3763. new idx;
  3764. new tmp[256];
  3765. tmp = strtok(cmdtext, idx, ' ');
  3766.  
  3767. if(!strlen(tmp))
  3768. {
  3769. SendClientMessage(playerid, WHITE, "UŻYJ: /Amoney <ON/OFF>");
  3770. return 1;
  3771. }
  3772.  
  3773. if(strcmp(tmp, "on", true)==0)
  3774. {
  3775. str = dini_Get("AntyCheatConfig.ini", "AntyMoneyCheat");
  3776. if(strval(str) == 0)
  3777. {
  3778. dini_IntSet("AntyCheatConfig.ini", "AntyMoneyCheat", 1);
  3779. Anty[AntiMoneyCheat] = SetTimer("AntyMoneyCheat", 1000, 1);
  3780. SendClientMessage(playerid, GREEN, "Anty Money Cheat włączony");
  3781. }
  3782. else SendClientMessage(playerid, RED, "Anty Money Cheat jest już włączony!");
  3783. return 1;
  3784. }
  3785.  
  3786. if(strcmp(tmp, "off", true)==0)
  3787. {
  3788. str = dini_Get("AntyCheatConfig.ini", "AntyMoneyCheat");
  3789. if(strval(str) == 1)
  3790. {
  3791. dini_IntSet("AntyCheatConfig.ini", "AntyMoneyCheat", 0);
  3792. KillTimer(Anty[AntiMoneyCheat]);
  3793. SendClientMessage(playerid, GREEN, "Anty Money Cheat wyłączony");
  3794. }
  3795. else SendClientMessage(playerid, RED, "Anty Money Cheat jest już wyłączony");
  3796. }
  3797. }
  3798. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  3799. return 1;
  3800. }
  3801.  
  3802. dcmd_atp(playerid, cmdtext[])
  3803. {
  3804. if(IsPlayerAdmin(playerid))
  3805. {
  3806. new idx;
  3807. new tmp[256];
  3808. tmp = strtok(cmdtext, idx, ' ');
  3809.  
  3810. if(!strlen(tmp))
  3811. {
  3812. SendClientMessage(playerid, WHITE, "UŻYJ: /Atp <ON/OFF>");
  3813. return 1;
  3814. }
  3815.  
  3816. if(strcmp(tmp, "on", true)==0)
  3817. {
  3818. str = dini_Get("AntyCheatConfig.ini", "AntyTeleport");
  3819. if(strval(str) == 0)
  3820. {
  3821. dini_IntSet("AntyCheatConfig.ini", "AntyTeleport", 1);
  3822. Anty[AntiTeleport] = SetTimer("AntyTP", 1000, 1);
  3823. SendClientMessage(playerid, GREEN, "Anty Money Cheat włączony");
  3824. }
  3825. else SendClientMessage(playerid, RED, "Anty Teleport jest już włączony!");
  3826. return 1;
  3827. }
  3828.  
  3829. if(strcmp(tmp, "off", true)==0)
  3830. {
  3831. str = dini_Get("AntyCheatConfig.ini", "AntyTeleport");
  3832. if(strval(str) == 1)
  3833. {
  3834. dini_IntSet("AntyCheatConfig.ini", "AntyTeleport", 0);
  3835. KillTimer(Anty[AntiTeleport]);
  3836. SendClientMessage(playerid, GREEN, "Anty Teleport wyłączony");
  3837. }
  3838. else SendClientMessage(playerid, RED, "Anty Teleport jest już wyłączony");
  3839. }
  3840. }
  3841. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  3842. return 1;
  3843. }
  3844.  
  3845. dcmd_anadbluzgi(playerid, cmdtext[])
  3846. {
  3847. if(IsPlayerAdmin(playerid))
  3848. {
  3849. new idx;
  3850. new tmp[256];
  3851. tmp = strtok(cmdtext, idx, ' ');
  3852.  
  3853. if(!strlen(tmp))
  3854. {
  3855. SendClientMessage(playerid, WHITE, "UŻYJ: /Anadbluzgi <ON/OFF>");
  3856. return 1;
  3857. }
  3858.  
  3859. if(strcmp(tmp, "on", true)==0)
  3860. {
  3861. str = dini_Get("AntyCheatConfig.ini", "AntyNadmierneBluzgi");
  3862. if(strval(str) == 0)
  3863. {
  3864. dini_IntSet("AntyCheatConfig.ini", "AntyNadmierneBluzgi", 1);
  3865. Anty[AntiNadmierneBluzgi] = true;
  3866. SendClientMessage(playerid, GREEN, "Anty Nadmierne Bluzgi włączone");
  3867. }
  3868. else SendClientMessage(playerid, RED, "Anty Nadmierne Bluzgi są już włączone!");
  3869. return 1;
  3870. }
  3871.  
  3872. if(strcmp(tmp, "off", true)==0)
  3873. {
  3874. str = dini_Get("AntyCheatConfig.ini", "AntyNadmierneBluzgi");
  3875. if(strval(str) == 1)
  3876. {
  3877. dini_IntSet("AntyCheatConfig.ini", "AntyNadmierneBluzgi", 0);
  3878. Anty[AntiBugUA] = false;
  3879. SendClientMessage(playerid, GREEN, "Anty Nadmierne Bluzgi wyłączone");
  3880. )
  3881. else SendClientMessage(playerid, RED, "Anty Nadmierne Bluzgi są już wyłączone");
  3882. }
  3883. }
  3884. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  3885. return 1;
  3886. }
  3887.  
  3888. dcmd_abugua(playerid, cmdtext[])
  3889. {
  3890. if(IsPlayerAdmin(playerid))
  3891. {
  3892. new idx;
  3893. new tmp[256];
  3894. tmp = strtok(cmdtext, idx, ' ');
  3895.  
  3896. if(!strlen(tmp))
  3897. {
  3898. SendClientMessage(playerid, WHITE, "UŻYJ: /Abugua <ON/OFF>");
  3899. return 1;
  3900. }
  3901.  
  3902. if(strcmp(tmp, "on", true)==0)
  3903. {
  3904. str = dini_Get("AntyCheatConfig.ini", "AntyBugUnlimitedAmmo");
  3905. if(strval(str) == 0)
  3906. {
  3907. dini_IntSet("AntyCheatConfig.ini", "AntyBugUnlimitedAmmo", 1);
  3908. Anty[AntiBugUA] = true;
  3909. SendClientMessage(playerid, GREEN, "Anty Bug Unlimited Ammo włączony");
  3910. }
  3911. else SendClientMessage(playerid, RED, "Anty Bug Unlimited Ammo jest już włączony!");
  3912. return 1;
  3913. }
  3914.  
  3915. if(strcmp(tmp, "off", true)==0)
  3916. {
  3917. str = dini_Get("AntyCheatConfig.ini", "AntyBugUnlimitedAmmo");
  3918. if(strval(str) == 1)
  3919. {
  3920. dini_IntSet("AntyCheatConfig.ini", "AntyBugUnlimitedAmmo", 0);
  3921. Anty[AntiBugUA] = false;
  3922. SendClientMessage(playerid, GREEN, "Anty Bug Unlimited Ammo wyłączony");
  3923. }
  3924. else SendClientMessage(playerid, RED, "Anty Bug Unlimited Ammo jest już wyłączony");
  3925. }
  3926. }
  3927. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  3928. return 1;
  3929. }
  3930.  
  3931. dcmd_ask(playerid, cmdtext[])
  3932. {
  3933. if(IsPlayerAdmin(playerid))
  3934. {
  3935. new idx;
  3936. new tmp[256];
  3937. tmp = strtok(cmdtext, idx, ' ');
  3938.  
  3939. if(!strlen(tmp))
  3940. {
  3941. SendClientMessage(playerid, WHITE, "UŻYJ: /Ask <ON/OFF>");
  3942. return 1;
  3943. }
  3944.  
  3945. if(strcmp(tmp, "on", true)==0)
  3946. {
  3947. str = dini_Get("AntyCheatConfig.ini", "AntySpawnKill");
  3948. if(strval(str) == 0)
  3949. {
  3950. dini_IntSet("AntyCheatConfig.ini", "AntySpawnKill", 1);
  3951. Anty[SpawnProtE] = true;
  3952. SendClientMessage(playerid, GREEN, "Anty Spawn Kill włączony");
  3953. }
  3954. else SendClientMessage(playerid, RED, "Anty Spawn Kill jest już włączony!");
  3955. return 1;
  3956. }
  3957.  
  3958. if(strcmp(tmp, "off", true)==0)
  3959. {
  3960. str = dini_Get("AntyCheatConfig.ini", "SpawnProtection");
  3961. if(strval(str) == 1)
  3962. {
  3963. dini_IntSet("AntyCheatConfig.ini", "AntySpawnKill", 0);
  3964. Anty[SpawnProtE] = false;
  3965. SendClientMessage(playerid, GREEN, "Anty Spawn Kill wyłączony");
  3966. }
  3967. else SendClientMessage(playerid, RED, "Anty Spawn Kill jest już wyłączony");
  3968. }
  3969. }
  3970. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  3971. return 1;
  3972. }
  3973.  
  3974. dcmd_acmdflood(playerid, cmdtext[])
  3975. {
  3976. if(IsPlayerAdmin(playerid))
  3977. {
  3978. new idx;
  3979. new tmp[256];
  3980. tmp = strtok(cmdtext, idx, ' ');
  3981.  
  3982. if(!strlen(tmp))
  3983. {
  3984. SendClientMessage(playerid, WHITE, "UŻYJ: /Aflood <ON/OFF>");
  3985. return 1;
  3986. }
  3987.  
  3988. if(strcmp(tmp, "on", true)==0)
  3989. {
  3990. str = dini_Get("AntyCheatConfig.ini", "AntyCommandFlood");
  3991. if(strval(str) == 0)
  3992. {
  3993. dini_IntSet("AntyCheatConfig.ini", "AntyCommandFlood", 1);
  3994. Anty[AntiCmdFlood] = SetTimer("AntyCmdFlood", 1000, 1);
  3995. SendClientMessage(playerid, GREEN, "Anty Command Flood włączony");
  3996. }
  3997. else SendClientMessage(playerid, RED, "Anty Command Flood jest już włączony!");
  3998. return 1;
  3999. }
  4000.  
  4001. if(strcmp(tmp, "off", true)==0)
  4002. {
  4003. str = dini_Get("AntyCheatConfig.ini", "AntyCommandFlood");
  4004. if(strval(str) == 1)
  4005. {
  4006. dini_IntSet("AntyCheatConfig.ini", "AntyCommandFlood", 0);
  4007. KillTimer(Anty[AntiCmdFlood]);
  4008. SendClientMessage(playerid, GREEN, "Anty Command Flood wyłączony");
  4009. }
  4010. else SendClientMessage(playerid, RED, "Anty Command Flood jest już wyłączony");
  4011. }
  4012. }
  4013. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  4014. return 1;
  4015. }
  4016.  
  4017. dcmd_apmflood(playerid, cmdtext[])
  4018. {
  4019. if(IsPlayerAdmin(playerid))
  4020. {
  4021. new idx;
  4022. new tmp[256];
  4023. tmp = strtok(cmdtext, idx, ' ');
  4024.  
  4025. if(!strlen(tmp))
  4026. {
  4027. SendClientMessage(playerid, WHITE, "UŻYJ: /Apmflood <ON/OFF>");
  4028. return 1;
  4029. }
  4030.  
  4031. if(strcmp(tmp, "on", true)==0)
  4032. {
  4033. str = dini_Get("AntyCheatConfig.ini", "AntyPrivateMessageFlood");
  4034. if(strval(str) == 0)
  4035. {
  4036. dini_IntSet("AntyCheatConfig.ini", "AntyPrivateMessageFlood", 1);
  4037. Anty[AntiPMFlood] = SetTimer("AntyPMFlood", 1000, 1);
  4038. SendClientMessage(playerid, GREEN, "Anty Private Message Flood włączony");
  4039. }
  4040. else SendClientMessage(playerid, RED, "Anty Private Message Flood jest już włączony!");
  4041. return 1;
  4042. }
  4043.  
  4044. if(strcmp(tmp, "off", true)==0)
  4045. {
  4046. str = dini_Get("AntyCheatConfig.ini", "AntyPrivateMessageFlood");
  4047. if(strval(str) == 1)
  4048. {
  4049. dini_IntSet("AntyCheatConfig.ini", "AntyPrivateMessageFlood", 0);
  4050. KillTimer(Anty[AntiPMFlood]);
  4051. SendClientMessage(playerid, GREEN, "Anty Private Message Flood wyłączony");
  4052. }
  4053. else SendClientMessage(playerid, RED, "Anty Private Message Flood jest już wyłączony");
  4054. }
  4055. }
  4056. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  4057. return 1;
  4058. }
  4059.  
  4060. dcmd_aflood(playerid, cmdtext[])
  4061. {
  4062. if(IsPlayerAdmin(playerid))
  4063. {
  4064. new idx;
  4065. new tmp[256];
  4066. tmp = strtok(cmdtext, idx, ' ');
  4067.  
  4068. if(!strlen(tmp))
  4069. {
  4070. SendClientMessage(playerid, WHITE, "UŻYJ: /Aflood <ON/OFF>");
  4071. return 1;
  4072. }
  4073.  
  4074. if(strcmp(tmp, "on", true)==0)
  4075. {
  4076. str = dini_Get("AntyCheatConfig.ini", "AntyFlood");
  4077. if(strval(str) == 0)
  4078. {
  4079. dini_IntSet("AntyCheatConfig.ini", "AntyFlood", 1);
  4080. Anty[AntyFlood] = SetTimer("AntiFlood", 1000, 1);
  4081. SendClientMessage(playerid, GREEN, "Anty Flood włączony");
  4082. }
  4083. else SendClientMessage(playerid, RED, "Anty Flood jest już włączony!");
  4084. return 1;
  4085. }
  4086.  
  4087. if(strcmp(tmp, "off", true)==0)
  4088. {
  4089. str = dini_Get("AntyCheatConfig.ini", "AntyFlood");
  4090. if(strval(str) == 1)
  4091. {
  4092. dini_IntSet("AntyCheatConfig.ini", "AntyFlood", 0);
  4093. KillTimer(Anty[AntyFlood]);
  4094. SendClientMessage(playerid, GREEN, "Anty Flood wyłączony");
  4095. }
  4096. else SendClientMessage(playerid, RED, "Anty Flood jest już wyłączony");
  4097. }
  4098. }
  4099. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  4100. return 1;
  4101. }
  4102.  
  4103. dcmd_ark(playerid, cmdtext[])
  4104. {
  4105. if(IsPlayerAdmin(playerid))
  4106. {
  4107. new idx;
  4108. new tmp[256];
  4109. tmp = strtok(cmdtext, idx, ' ');
  4110.  
  4111. if(!strlen(tmp))
  4112. {
  4113. SendClientMessage(playerid, WHITE, "UŻYJ: /Ark <ON/OFF>");
  4114. return 1;
  4115. }
  4116.  
  4117. if(strcmp(tmp, "on", true)==0)
  4118. {
  4119. str = dini_Get("AntyCheatConfig.ini", "AntyRustlerKill");
  4120. if(strval(str) == 0)
  4121. {
  4122. dini_IntSet("AntyCheatConfig.ini", "AntyRustlerKill", 1);
  4123. Anty[AntyRustlerK] = true;
  4124. SendClientMessage(playerid, GREEN, "Anty Rustler Kill włączony");
  4125. }
  4126. else SendClientMessage(playerid, RED, "Anty Rustler Kill jest już włączony!");
  4127. return 1;
  4128. }
  4129.  
  4130. if(strcmp(tmp, "off", true)==0)
  4131. {
  4132. str = dini_Get("AntyCheatConfig.ini", "AntyRustlerKill");
  4133. if(strval(str) == 1)
  4134. {
  4135. dini_IntSet("AntyCheatConfig.ini", "AntyRustlerKill", 0);
  4136. Anty[AntyRustlerK] = false;
  4137. SendClientMessage(playerid, GREEN, "Anty Rustler Kill wyłączony");
  4138. }
  4139. else SendClientMessage(playerid, RED, "Anty Rustler Kill jest już wyłączony");
  4140. }
  4141. }
  4142. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  4143. return 1;
  4144. }
  4145.  
  4146. dcmd_ahunterk(playerid, cmdtext[])
  4147. {
  4148. if(IsPlayerAdmin(playerid))
  4149. {
  4150. new idx;
  4151. new tmp[256];
  4152. tmp = strtok(cmdtext, idx, ' ');
  4153.  
  4154. if(!strlen(tmp))
  4155. {
  4156. SendClientMessage(playerid, WHITE, "UŻYJ: /Ahunterk <ON/OFF>");
  4157. return 1;
  4158. }
  4159.  
  4160. if(strcmp(tmp, "on", true)==0)
  4161. {
  4162. str = dini_Get("AntyCheatConfig.ini", "AntyHunterKill");
  4163. if(strval(str) == 0)
  4164. {
  4165. dini_IntSet("AntyCheatConfig.ini", "AntyHunterKill", 1);
  4166. Anty[AntyHunterK] = true;
  4167. SendClientMessage(playerid, GREEN, "Anty Hunter Kill włączony");
  4168. }
  4169. else SendClientMessage(playerid, RED, "Anty Hunter Kill jest już włączony!");
  4170. return 1;
  4171. }
  4172.  
  4173. if(strcmp(tmp, "off", true)==0)
  4174. {
  4175. str = dini_Get("AntyCheatConfig.ini", "AntyHunterKill");
  4176. if(strval(str) == 1)
  4177. {
  4178. dini_IntSet("AntyCheatConfig.ini", "AntyRustlerKill", 0);
  4179. Anty[AntyHunterK] = false;
  4180. SendClientMessage(playerid, GREEN, "Anty Hunter Kill wyłączony");
  4181. }
  4182. else SendClientMessage(playerid, RED, "Anty Hunter Kill jest już wyłączony");
  4183. }
  4184. }
  4185. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  4186. return 1;
  4187. }
  4188.  
  4189. dcmd_asparrowk(playerid, cmdtext[])
  4190. {
  4191. if(IsPlayerAdmin(playerid))
  4192. {
  4193. new idx;
  4194. new tmp[256];
  4195. tmp = strtok(cmdtext, idx, ' ');
  4196.  
  4197. if(!strlen(tmp))
  4198. {
  4199. SendClientMessage(playerid, WHITE, "UŻYJ: /Asparrowk <ON/OFF>");
  4200. return 1;
  4201. }
  4202.  
  4203. if(strcmp(tmp, "on", true)==0)
  4204. {
  4205. str = dini_Get("AntyCheatConfig.ini", "AntySparrowKill");
  4206. if(strval(str) == 0)
  4207. {
  4208. dini_IntSet("AntyCheatConfig.ini", "AntySparrowKill", 1);
  4209. Anty[AntySparrowK] = true;
  4210. SendClientMessage(playerid, GREEN, "Anty Sparrow Kill włączony");
  4211. }
  4212. else SendClientMessage(playerid, RED, "Anty Sparrow Kill jest już włączony!");
  4213. return 1;
  4214. }
  4215.  
  4216. if(strcmp(tmp, "off", true)==0)
  4217. {
  4218. str = dini_Get("AntyCheatConfig.ini", "AntySparrowKill");
  4219. if(strval(str) == 1)
  4220. {
  4221. dini_IntSet("AntyCheatConfig.ini", "AntySparrowKill", 0);
  4222. Anty[AntySparrowK] = false;
  4223. SendClientMessage(playerid, GREEN, "Anty Sparrow Kill wyłączony");
  4224. }
  4225. else SendClientMessage(playerid, RED, "Anty Sparrow Kill jest już wyłączony");
  4226. }
  4227. }
  4228. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  4229. return 1;
  4230. }
  4231.  
  4232. dcmd_arhinok(playerid, cmdtext[])
  4233. {
  4234. if(IsPlayerAdmin(playerid))
  4235. {
  4236. new idx;
  4237. new tmp[256];
  4238. tmp = strtok(cmdtext, idx, ' ');
  4239.  
  4240. if(!strlen(tmp))
  4241. {
  4242. SendClientMessage(playerid, WHITE, "UŻYJ: /Arhinok <ON/OFF>");
  4243. return 1;
  4244. }
  4245.  
  4246. if(strcmp(tmp, "on", true)==0)
  4247. {
  4248. str = dini_Get("AntyCheatConfig.ini", "AntyRhinoKill");
  4249. if(strval(str) == 0)
  4250. {
  4251. dini_IntSet("AntyCheatConfig.ini", "AntyRhinoKill", 1);
  4252. Anty[AntyRhinoK] = true;
  4253. SendClientMessage(playerid, GREEN, "Anty Rhino Kill włączony");
  4254. }
  4255. else SendClientMessage(playerid, RED, "Anty Rhino Kill jest już włączony!");
  4256. return 1;
  4257. }
  4258.  
  4259. if(strcmp(tmp, "off", true)==0)
  4260. {
  4261. str = dini_Get("AntyCheatConfig.ini", "AntyRhinoKill");
  4262. if(strval(str) == 1)
  4263. {
  4264. dini_IntSet("AntyCheatConfig.ini", "AntyRhinoKill", 0);
  4265. Anty[AntyRhinoK] = false;
  4266. SendClientMessage(playerid, GREEN, "Anty Rhino Kill wyłączony");
  4267. }
  4268. else SendClientMessage(playerid, RED, "Anty Rhino Kill jest już wyłączony");
  4269. }
  4270. }
  4271. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  4272. return 1;
  4273. }
  4274.  
  4275. dcmd_adb(playerid, cmdtext[])
  4276. {
  4277. if(IsPlayerAdmin(playerid))
  4278. {
  4279. new idx;
  4280. new tmp[256];
  4281. tmp = strtok(cmdtext, idx, ' ');
  4282.  
  4283. if(!strlen(tmp))
  4284. {
  4285. SendClientMessage(playerid, WHITE, "UŻYJ: /Adb <ON/OFF>");
  4286. return 1;
  4287. }
  4288.  
  4289. if(strcmp(tmp, "on", true)==0)
  4290. {
  4291. str = dini_Get("AntyCheatConfig.ini", "AntyDrive-By");
  4292. if(strval(str) == 0)
  4293. {
  4294. dini_IntSet("AntyCheatConfig.ini", "AntyDrive-By", 1);
  4295. Anty[AntyDB] = true;
  4296. SendClientMessage(playerid, GREEN, "Anty Drive-By włączony");
  4297. }
  4298. else SendClientMessage(playerid, RED, "Anty Drive-By jest już włączony!");
  4299. return 1;
  4300. }
  4301.  
  4302. if(strcmp(tmp, "off", true)==0)
  4303. {
  4304. str = dini_Get("AntyCheatConfig.ini", "AntyDrive-By");
  4305. if(strval(str) == 1)
  4306. {
  4307. dini_IntSet("AntyCheatConfig.ini", "AntyDrive-By", 0);
  4308. Anty[AntyDB] = false;
  4309. SendClientMessage(playerid, GREEN, "Anty Drive-By wyłączony");
  4310. }
  4311. else SendClientMessage(playerid, RED, "Anty Drive-By jest już wyłączony");
  4312. }
  4313. }
  4314. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  4315. return 1;
  4316. }
  4317.  
  4318. dcmd_ahydrak(playerid, cmdtext[])
  4319. {
  4320. if(IsPlayerAdmin(playerid))
  4321. {
  4322. new idx;
  4323. new tmp[256];
  4324. tmp = strtok(cmdtext, idx, ' ');
  4325.  
  4326. if(!strlen(tmp))
  4327. {
  4328. SendClientMessage(playerid, WHITE, "UŻYJ: /Ahydrak <ON/OFF>");
  4329. return 1;
  4330. }
  4331.  
  4332. if(strcmp(tmp, "on", true)==0)
  4333. {
  4334. str = dini_Get("AntyCheatConfig.ini", "AntyHydraKill");
  4335. if(strval(str) == 0)
  4336. {
  4337. dini_IntSet("AntyCheatConfig.ini", "AntyHydraKill", 1);
  4338. Anty[AntyHydraK] = true;
  4339. SendClientMessage(playerid, GREEN, "Anty Hydra Kill włączony");
  4340. }
  4341. else SendClientMessage(playerid, RED, "Anty Hydra Kill jest już włączony!");
  4342. return 1;
  4343. }
  4344.  
  4345. if(strcmp(tmp, "off", true)==0)
  4346. {
  4347. str = dini_Get("AntyCheatConfig.ini", "AntyHydraKill");
  4348. if(strval(str) == 1)
  4349. {
  4350. dini_IntSet("AntyCheatConfig.ini", "AntyDrive-By", 0);
  4351. Anty[AntyHydraK] = false;
  4352. SendClientMessage(playerid, GREEN, "Anty Hydra Kill wyłączony");
  4353. }
  4354. else SendClientMessage(playerid, RED, "Anty Hydra Kill jest już wyłączony");
  4355. }
  4356. }
  4357. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  4358. return 1;
  4359. }
  4360.  
  4361. dcmd_avehwarp(playerid, cmdtext[])
  4362. {
  4363. if(IsPlayerAdmin(playerid))
  4364. {
  4365. new idx;
  4366. new tmp[256];
  4367. tmp = strtok(cmdtext, idx, ' ');
  4368.  
  4369. if(!strlen(tmp))
  4370. {
  4371. SendClientMessage(playerid, WHITE, "UŻYJ: /Avehwarp <ON/OFF>");
  4372. return 1;
  4373. }
  4374.  
  4375. if(strcmp(tmp, "on", true)==0)
  4376. {
  4377. str = dini_Get("AntyCheatConfig.ini", "AntyVehicleWarp");
  4378. if(strval(str) == 0)
  4379. {
  4380. dini_IntSet("AntyCheatConfig.ini", "AntyVehicleWarp", 1);
  4381. Anty[AntiVehWarp] = true;
  4382. SendClientMessage(playerid, GREEN, "Anty Vehicle Warp włączony");
  4383. }
  4384. else SendClientMessage(playerid, RED, "Anty Vehicle Warp jest już włączony!");
  4385. return 1;
  4386. }
  4387.  
  4388. if(strcmp(tmp, "off", true)==0)
  4389. {
  4390. str = dini_Get("AntyCheatConfig.ini", "AntyVehicleWarp");
  4391. if(strval(str) == 1)
  4392. {
  4393. dini_IntSet("AntyCheatConfig.ini", "AntyVehicleWarp", 0);
  4394. Anty[AntiVehWarp] = false;
  4395. SendClientMessage(playerid, GREEN, "Anty Vehicle Warp wyłączony");
  4396. }
  4397. else SendClientMessage(playerid, RED, "Anty Vehicle Warp jest już wyłączony");
  4398. }
  4399. }
  4400. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  4401. return 1;
  4402. }
  4403.  
  4404. dcmd_ack(playerid, cmdtext[])
  4405. {
  4406. if(IsPlayerAdmin(playerid))
  4407. {
  4408. new idx;
  4409. new tmp[256];
  4410. tmp = strtok(cmdtext, idx, ' ');
  4411.  
  4412. if(!strlen(tmp))
  4413. {
  4414. SendClientMessage(playerid, WHITE, "UŻYJ: /Ack <ON/OFF>");
  4415. return 1;
  4416. }
  4417.  
  4418. if(strcmp(tmp, "on", true)==0)
  4419. {
  4420. str = dini_Get("AntyCheatConfig.ini", "AntyCarKill");
  4421. if(strval(str) == 0)
  4422. {
  4423. dini_IntSet("AntyCheatConfig.ini", "AntyCarKill", 1);
  4424. Anty[AntyCK] = true;
  4425. SendClientMessage(playerid, GREEN, "Anty Car Kill włączony");
  4426. }
  4427. else SendClientMessage(playerid, RED, "Anty Car Kill jest już włączony!");
  4428. return 1;
  4429. }
  4430.  
  4431. if(strcmp(tmp, "off", true)==0)
  4432. {
  4433. str = dini_Get("AntyCheatConfig.ini", "AntyCarKill");
  4434. if(strval(str) == 1)
  4435. {
  4436. dini_IntSet("AntyCheatConfig.ini", "AntyCarKill", 0);
  4437. Anty[AntyCK] = false;
  4438. SendClientMessage(playerid, GREEN, "Anty Car Kill wyłączony");
  4439. }
  4440. else SendClientMessage(playerid, RED, "Anty Car Kill jest już wyłączony");
  4441. }
  4442. }
  4443. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  4444. return 1;
  4445. }
  4446.  
  4447. dcmd_adt(playerid, cmdtext[])
  4448. {
  4449. if(IsPlayerAdmin(playerid))
  4450. {
  4451. new idx;
  4452. new tmp[256];
  4453. tmp = strtok(cmdtext, idx, ' ');
  4454.  
  4455. if(!strlen(tmp))
  4456. {
  4457. SendClientMessage(playerid, WHITE, "UŻYJ: /Adt <ON/OFF>");
  4458. return 1;
  4459. }
  4460.  
  4461. if(strcmp(tmp, "on", true)==0)
  4462. {
  4463. str = dini_Get("AntyCheatConfig.ini", "AntyDrive-Thru");
  4464. if(strval(str) == 0)
  4465. {
  4466. dini_IntSet("AntyCheatConfig.ini", "AntyDrive-Thru", 1);
  4467. Anty[AntyDT] = true;
  4468. SendClientMessage(playerid, GREEN, "Anty Drive-Thru włączony");
  4469. }
  4470. else SendClientMessage(playerid, RED, "Anty Drive-Thru jest już włączony!");
  4471. return 1;
  4472. }
  4473.  
  4474. if(strcmp(tmp, "off", true)==0)
  4475. {
  4476. str = dini_Get("AntyCheatConfig.ini", "AntyDrive-Thru");
  4477. if(strval(str) == 1)
  4478. {
  4479. dini_IntSet("AntyCheatConfig.ini", "AntyDrive-Thru", 0);
  4480. Anty[AntyDT] = false;
  4481. SendClientMessage(playerid, GREEN, "Anty Drive-Thru wyłączony");
  4482. }
  4483. else SendClientMessage(playerid, RED, "Anty Drive-Thru jest już wyłączony");
  4484. }
  4485. }
  4486. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  4487. return 1;
  4488. }
  4489.  
  4490. dcmd_apodsz(playerid, cmdtext[])
  4491. {
  4492. if(IsPlayerAdmin(playerid))
  4493. {
  4494. new idx;
  4495. new tmp[256];
  4496. tmp = strtok(cmdtext, idx, ' ');
  4497.  
  4498. if(!strlen(tmp))
  4499. {
  4500. SendClientMessage(playerid, WHITE, "UŻYJ: /Apodsz <ON/OFF>");
  4501. return 1;
  4502. }
  4503.  
  4504. if(strcmp(tmp, "on", true)==0)
  4505. {
  4506. str = dini_Get("AntyCheatConfig.ini", "AntyPodszywanie");
  4507. if(strval(str) == 0)
  4508. {
  4509. dini_IntSet("AntyCheatConfig.ini", "AntyPodszywanie", 1);
  4510. Anty[AntiPodszywanie] = true;
  4511. SendClientMessage(playerid, GREEN, "Anty Podszywanie włączone");
  4512. }
  4513. else SendClientMessage(playerid, RED, "Anty Podszywanie jest już włączone!");
  4514. }
  4515.  
  4516. if(strcmp(tmp, "off", true)==0)
  4517. {
  4518. str = dini_Get("AntyCheatConfig.ini", "AntyPodszywanie");
  4519. if(strval(str) == 1)
  4520. {
  4521. dini_IntSet("AntyCheatConfig.ini", "AntyPodszywanie", 0);
  4522. Anty[AntiPodszywanie] = false;
  4523. SendClientMessage(playerid, GREEN, "Anty Podszywanie wyłączone");
  4524. }
  4525. else SendClientMessage(playerid, RED, "Anty Podszywanie jest już wyłączone");
  4526. }
  4527. }
  4528. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  4529. return 1;
  4530. }
  4531.  
  4532. dcmd_aplanek(playerid, cmdtext[])
  4533. {
  4534. if(IsPlayerAdmin(playerid))
  4535. {
  4536. new idx;
  4537. new tmp[256];
  4538. tmp = strtok(cmdtext, idx, ' ');
  4539.  
  4540. if(!strlen(tmp))
  4541. {
  4542. SendClientMessage(playerid, WHITE, "UŻYJ: /Aplanek <ON/OFF>");
  4543. return 1;
  4544. }
  4545.  
  4546. if(strcmp(tmp, "on", true)==0)
  4547. {
  4548. str = dini_Get("AntyCheatConfig.ini", "AntyPlaneKill");
  4549. if(strval(str) == 0)
  4550. {
  4551. dini_IntSet("AntyCheatConfig.ini", "AntyPlaneKill", 1);
  4552. Anty[AntyPlaneK] = true;
  4553. SendClientMessage(playerid, GREEN, "Anty Plane Kill włączony");
  4554. }
  4555. else SendClientMessage(playerid, RED, "Anty Plane Kill jest już włączony!");
  4556. return 1;
  4557. }
  4558.  
  4559. if(strcmp(tmp, "off", true)==0)
  4560. {
  4561. str = dini_Get("AntyCheatConfig.ini", "AntyPlaneKill");
  4562. if(strval(str) == 1)
  4563. {
  4564. dini_IntSet("AntyCheatConfig.ini", "AntyPlaneKill", 0);
  4565. Anty[AntyPlaneK] = false;
  4566. SendClientMessage(playerid, GREEN, "Anty Plane Kill wyłączony");
  4567. }
  4568. else SendClientMessage(playerid, RED, "Anty Plane Kill jest już wyłączony");
  4569. }
  4570. }
  4571. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  4572. return 1;
  4573. }
  4574.  
  4575. dcmd_abhop(playerid, cmdtext[])
  4576. {
  4577. if(IsPlayerAdmin(playerid))
  4578. {
  4579. new idx;
  4580. new tmp[256];
  4581. tmp = strtok(cmdtext, idx, ' ');
  4582.  
  4583. if(!strlen(tmp))
  4584. {
  4585. SendClientMessage(playerid, WHITE, "UŻYJ: /Abhop <ON/OFF>");
  4586. return 1;
  4587. }
  4588.  
  4589. if(strcmp(tmp, "on", true)==0)
  4590. {
  4591. str = dini_Get("AntyCheatConfig.ini", "AntyBunnyHop");
  4592. if(strval(str) == 0)
  4593. {
  4594. dini_IntSet("AntyCheatConfig.ini", "AntyBunnyHop", 1);
  4595. Anty[AntiBunnyHop] = true;
  4596. SendClientMessage(playerid, GREEN, "Anty Bunny Hop włączony");
  4597. }
  4598. else SendClientMessage(playerid, RED, "Anty Bunny Hop jest już włączony!");
  4599. }
  4600.  
  4601. if(strcmp(tmp, "off", true)==0)
  4602. {
  4603. str = dini_Get("AntyCheatConfig.ini", "AntyBunnyHop");
  4604. if(strval(str) == 1)
  4605. {
  4606. dini_IntSet("AntyCheatConfig.ini", "AntyBunnyHop", 0);
  4607. Anty[AntiBunnyHop] = false;
  4608. SendClientMessage(playerid, GREEN, "Anty Bunny Hop wyłączony");
  4609. }
  4610. else SendClientMessage(playerid, RED, "Anty Bunny Hop jest już wyłączony");
  4611. }
  4612. }
  4613. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  4614. return 1;
  4615. }
  4616.  
  4617. dcmd_alsprint(playerid, cmdtext[])
  4618. {
  4619. if(IsPlayerAdmin(playerid))
  4620. {
  4621. new idx;
  4622. new tmp[256];
  4623. tmp = strtok(cmdtext, idx, ' ');
  4624.  
  4625. if(!strlen(tmp))
  4626. {
  4627. SendClientMessage(playerid, WHITE, "UŻYJ: /Alsprint <ON/OFF>");
  4628. return 1;
  4629. }
  4630.  
  4631. if(strcmp(tmp, "on", true)==0)
  4632. {
  4633. str = dini_Get("AntyCheatConfig.ini", "AntyLongSprint");
  4634. if(strval(str) == 0)
  4635. {
  4636. dini_IntSet("AntyCheatConfig.ini", "AntyLongSprint", 1);
  4637. Anty[AntiLongSprint] = true;
  4638. SendClientMessage(playerid, GREEN, "Anty Long Sprint włączony");
  4639. }
  4640. else SendClientMessage(playerid, RED, "Anty Long Sprint jest już włączony!");
  4641. }
  4642.  
  4643. if(strcmp(tmp, "off", true)==0)
  4644. {
  4645. str = dini_Get("AntyCheatConfig.ini", "AntyLongSprint");
  4646. if(strval(str) == 1)
  4647. {
  4648. dini_IntSet("AntyCheatConfig.ini", "AntyLongSprint", 0);
  4649. Anty[AntiLongSprint] = false;
  4650. SendClientMessage(playerid, GREEN, "Anty Long Sprint wyłączony");
  4651. }
  4652. else SendClientMessage(playerid, RED, "Anty Long Sprint jest już wyłączony");
  4653. }
  4654. }
  4655. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  4656. return 1;
  4657. }
  4658.  
  4659. dcmd_afreezeveh(playerid, cmdtext[])
  4660. {
  4661. if(IsPlayerAdmin(playerid))
  4662. {
  4663. new idx;
  4664. new tmp[256];
  4665. tmp = strtok(cmdtext, idx, ' ');
  4666.  
  4667. if(!strlen(tmp))
  4668. {
  4669. SendClientMessage(playerid, WHITE, "UŻYJ: /Afreezeveh <ON/OFF>");
  4670. return 1;
  4671. }
  4672.  
  4673. if(strcmp(tmp, "on", true)==0)
  4674. {
  4675. str = dini_Get("AntyCheatConfig.ini", "AntyFreezeVehicles");
  4676. if(strval(str) == 0)
  4677. {
  4678. dini_IntSet("AntyCheatConfig.ini", "AntyFreezeVehicles", 1);
  4679. Anty[AntiFreezeVeh] = true;
  4680. SendClientMessage(playerid, GREEN, "Anty Freeze Vehicles włączony");
  4681. }
  4682. else SendClientMessage(playerid, RED, "Anty Freeze Vehicles jest już włączony!");
  4683. }
  4684.  
  4685. if(strcmp(tmp, "off", true)==0)
  4686. {
  4687. str = dini_Get("AntyCheatConfig.ini", "AntyFreezeVehicles");
  4688. if(strval(str) == 1)
  4689. {
  4690. dini_IntSet("AntyCheatConfig.ini", "AntyFreezeVehicles", 0);
  4691. Anty[AntiFreezeVeh] = false;
  4692. SendClientMessage(playerid, GREEN, "Anty Freeze Vehicles wyłączony");
  4693. }
  4694. else SendClientMessage(playerid, RED, "Anty Freeze Vehicles jest już wyłączony");
  4695. }
  4696. }
  4697. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  4698. return 1;
  4699. }
  4700.  
  4701. dcmd_aemoic(playerid, cmdtext[])
  4702. {
  4703. if(IsPlayerAdmin(playerid))
  4704. {
  4705. new idx;
  4706. new tmp[256];
  4707. tmp = strtok(cmdtext, idx, ' ');
  4708.  
  4709. if(!strlen(tmp))
  4710. {
  4711. SendClientMessage(playerid, WHITE, "UŻYJ: /Aemoic <ON/OFF>");
  4712. return 1;
  4713. }
  4714.  
  4715. if(strcmp(tmp, "on", true)==0)
  4716. {
  4717. str = dini_Get("AntyCheatConfig.ini", "AntyEmotyIC");
  4718. if(strval(str) == 0)
  4719. {
  4720. dini_IntSet("AntyCheatConfig.ini", "AntyEmotyIC", 1);
  4721. Anty[AntiICEmo] = true;
  4722. SendClientMessage(playerid, GREEN, "Anty Emoty w IC włączony");
  4723. }
  4724. else SendClientMessage(playerid, RED, "Anty Emoty w IC jest już włączony!");
  4725. }
  4726.  
  4727. if(strcmp(tmp, "off", true)==0)
  4728. {
  4729. str = dini_Get("AntyCheatConfig.ini", "AntyEmotyIC");
  4730. if(strval(str) == 1)
  4731. {
  4732. dini_IntSet("AntyCheatConfig.ini", "AntyEmotyIC", 0);
  4733. Anty[AntiICEmo] = false;
  4734. SendClientMessage(playerid, GREEN, "Anty Emoty IC wyłączony");
  4735. }
  4736. else SendClientMessage(playerid, RED, "Anty Emoty w IC jest już wyłączony");
  4737. }
  4738. }
  4739. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  4740. return 1;
  4741. }
  4742.  
  4743. dcmd_anj(playerid, cmdtext[])
  4744. {
  4745. if(IsPlayerAdmin(playerid))
  4746. {
  4747. new idx;
  4748. new tmp[256];
  4749. tmp = strtok(cmdtext, idx, ' ');
  4750.  
  4751. if(!strlen(tmp))
  4752. {
  4753. SendClientMessage(playerid, WHITE, "UŻYJ: /Anj <ON/OFF>");
  4754. return 1;
  4755. }
  4756.  
  4757. if(strcmp(tmp, "on", true)==0)
  4758. {
  4759. str = dini_Get("AntyCheatConfig.ini", "AntyNinjaJacking");
  4760. if(strval(str) == 0)
  4761. {
  4762. dini_IntSet("AntyCheatConfig.ini", "AntyNinjaJacking", 1);
  4763. Anty[AntiNinjaJacking] = true;
  4764. SendClientMessage(playerid, GREEN, "Anty Ninja Jacking włączony");
  4765. }
  4766. else SendClientMessage(playerid, RED, "Anty Ninja Jacking jest już włączony!");
  4767. }
  4768.  
  4769. if(strcmp(tmp, "off", true)==0)
  4770. {
  4771. str = dini_Get("AntyCheatConfig.ini", "AntyNinjaJacking");
  4772. if(strval(str) == 1)
  4773. {
  4774. dini_IntSet("AntyCheatConfig.ini", "AntyNinjaJacking", 0);
  4775. Anty[AntiNinjaJacking] = false;
  4776. SendClientMessage(playerid, GREEN, "Anty Ninja Jacking wyłączony");
  4777. }
  4778. else SendClientMessage(playerid, RED, "Anty Ninja Jacking jest już wyłączony");
  4779. }
  4780. }
  4781. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  4782. return 1;
  4783. }
  4784.  
  4785. dcmd_ahk(playerid, cmdtext[])
  4786. {
  4787. if(IsPlayerAdmin(playerid))
  4788. {
  4789. new idx;
  4790. new tmp[256];
  4791. tmp = strtok(cmdtext, idx, ' ');
  4792.  
  4793. if(!strlen(tmp))
  4794. {
  4795. SendClientMessage(playerid, WHITE, "UŻYJ: /Ahk <ON/OFF>");
  4796. return 1;
  4797. }
  4798.  
  4799. if(strcmp(tmp, "on", true)==0)
  4800. {
  4801. str = dini_Get("AntyCheatConfig.ini", "AntyHeliKill");
  4802. if(strval(str) == 0)
  4803. {
  4804. dini_IntSet("AntyCheatConfig.ini", "AntyHeliKill", 1);
  4805. Anty[AntyHK] = true;
  4806. SendClientMessage(playerid, GREEN, "Anty Heli Kill włączony");
  4807. }
  4808. else SendClientMessage(playerid, RED, "Anty Heli Kill jest już włączony!");
  4809. }
  4810.  
  4811. if(strcmp(tmp, "off", true)==0)
  4812. {
  4813. str = dini_Get("AntyCheatConfig.ini", "AntyHeliKill");
  4814. if(strval(str) == 1)
  4815. {
  4816. dini_IntSet("AntyCheatConfig.ini", "AntyHeliKill", 0);
  4817. Anty[AntyHK] = false;
  4818. SendClientMessage(playerid, GREEN, "Anty Heli Kill wyłączony");
  4819. }
  4820. else SendClientMessage(playerid, RED, "Anty Heli Kill jest już wyłączony");
  4821. }
  4822. }
  4823. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  4824. return 1;
  4825. }
  4826.  
  4827. dcmd_acaps(playerid, cmdtext[])
  4828. {
  4829. if(IsPlayerAdmin(playerid))
  4830. {
  4831. new idx;
  4832. new tmp[256];
  4833. tmp = strtok(cmdtext, idx, ' ');
  4834.  
  4835. if(!strlen(tmp))
  4836. {
  4837. SendClientMessage(playerid, WHITE, "UŻYJ: /Acaps <ON/OFF>");
  4838. return 1;
  4839. }
  4840.  
  4841. if(strcmp(tmp, "on", true)==0)
  4842. {
  4843. str = dini_Get("AntyCheatConfig.ini", "AntyCapsLock");
  4844. if(strval(str) == 0)
  4845. {
  4846. dini_IntSet("AntyCheatConfig.ini", "AntyCapsLock", 1);
  4847. Anty[AntiCaps] = true;
  4848. SendClientMessage(playerid, GREEN, "Anty Caps Lock włączony");
  4849. }
  4850. else SendClientMessage(playerid, RED, "Anty Caps Lock jest już włączony!");
  4851. }
  4852.  
  4853. if(strcmp(tmp, "off", true)==0)
  4854. {
  4855. str = dini_Get("AntyCheatConfig.ini", "AntyCapsLock");
  4856. if(strval(str) == 1)
  4857. {
  4858. dini_IntSet("AntyCheatConfig.ini", "AntyCapsLock", 0);
  4859. Anty[AntiCaps] = false;
  4860. SendClientMessage(playerid, GREEN, "Anty Caps Lock wyłączony");
  4861. }
  4862. else SendClientMessage(playerid, RED, "Anty Caps Lock jest już wyłączony");
  4863. }
  4864. }
  4865. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  4866. return 1;
  4867. }
  4868.  
  4869. dcmd_aip(playerid, cmdtext[])
  4870. {
  4871. if(IsPlayerAdmin(playerid))
  4872. {
  4873. new idx;
  4874. new tmp[256];
  4875. tmp = strtok(cmdtext, idx, ' ');
  4876.  
  4877. if(!strlen(tmp))
  4878. {
  4879. SendClientMessage(playerid, WHITE, "UŻYJ: /Aip <ON/OFF>");
  4880. return 1;
  4881. }
  4882.  
  4883. if(strcmp(tmp, "on", true)==0)
  4884. {
  4885. str = dini_Get("AntyCheatConfig.ini", "AntyReklamaSerwera");
  4886. if(strval(str) == 0)
  4887. {
  4888. dini_IntSet("AntyCheatConfig.ini", "AntyReklamaSerwera", 1);
  4889. Anty[AntiIP] = true;
  4890. SendClientMessage(playerid, GREEN, "Anty Reklama Serwera włączona");
  4891. }
  4892. else SendClientMessage(playerid, RED, "Anty Reklama Serwera jest już włączona!");
  4893. }
  4894.  
  4895. if(strcmp(tmp, "off", true)==0)
  4896. {
  4897. str = dini_Get("AntyCheatConfig.ini", "AntyReklamaSerwera");
  4898. if(strval(str) == 1)
  4899. {
  4900. dini_IntSet("AntyCheatConfig.ini", "AntyReklamaSerwera", 0);
  4901. Anty[AntiIP] = false;
  4902. SendClientMessage(playerid, GREEN, "Anty Reklama Serwera wyłączony");
  4903. }
  4904. else SendClientMessage(playerid, RED, "Anty Reklama Serwera jest już wyłączony");
  4905. }
  4906. }
  4907. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  4908. return 1;
  4909. }
  4910.  
  4911. dcmd_awww(playerid, cmdtext[])
  4912. {
  4913. if(IsPlayerAdmin(playerid))
  4914. {
  4915. new idx;
  4916. new tmp[256];
  4917. tmp = strtok(cmdtext, idx, ' ');
  4918.  
  4919. if(!strlen(tmp))
  4920. {
  4921. SendClientMessage(playerid, WHITE, "UŻYJ: /Awww <ON/OFF>");
  4922. return 1;
  4923. }
  4924.  
  4925. if(strcmp(tmp, "on", true)==0)
  4926. {
  4927. str = dini_Get("AntyCheatConfig.ini", "AntyReklamaStrony");
  4928. if(strval(str) == 0)
  4929. {
  4930. dini_IntSet("AntyCheatConfig.ini", "AntyReklamaStrony", 1);
  4931. Anty[AntiWWW] = true;
  4932. SendClientMessage(playerid, GREEN, "Anty Reklama Strony włączona");
  4933. }
  4934. else SendClientMessage(playerid, RED, "Anty Reklama Strony jest już włączona!");
  4935. }
  4936.  
  4937. if(strcmp(tmp, "off", true)==0)
  4938. {
  4939. str = dini_Get("AntyCheatConfig.ini", "AntyReklamaStrony");
  4940. if(strval(str) == 1)
  4941. {
  4942. dini_IntSet("AntyCheatConfig.ini", "AntyReklamaStrony", 0);
  4943. Anty[AntiWWW] = false;
  4944. SendClientMessage(playerid, GREEN, "Anty Reklama Strony wyłączony");
  4945. }
  4946. else SendClientMessage(playerid, RED, "Anty Reklama Strony jest już wyłączony");
  4947. }
  4948. }
  4949. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  4950. return 1;
  4951. }
  4952.  
  4953. dcmd_avdk(playerid, cmdtext[])
  4954. {
  4955. if(IsPlayerAdmin(playerid))
  4956. {
  4957. new idx;
  4958. new tmp[256];
  4959. tmp = strtok(cmdtext, idx, ' ');
  4960.  
  4961. if(!strlen(tmp))
  4962. {
  4963. SendClientMessage(playerid, WHITE, "UŻYJ: /Avdk <ON/OFF>");
  4964. return 1;
  4965. }
  4966.  
  4967. if(strcmp(tmp, "on", true)==0)
  4968. {
  4969. str = dini_Get("AntyCheatConfig.ini", "AntyVehicleDriverKilling");
  4970. if(strval(str) == 0)
  4971. {
  4972. dini_IntSet("AntyCheatConfig.ini", "AntyVehicleDriverKilling", 1);
  4973. Anty[AntiVehicleDriverKilling] = true;
  4974. SendClientMessage(playerid, GREEN, "Anty Vehicle Driver Killing włączony");
  4975. }
  4976. else SendClientMessage(playerid, RED, "Anty Vehicle Driver Killing jest już włączony!");
  4977. }
  4978.  
  4979. if(strcmp(tmp, "off", true)==0)
  4980. {
  4981. str = dini_Get("AntyCheatConfig.ini", "AntyVehicleDriverKilling");
  4982. if(strval(str) == 1)
  4983. {
  4984. dini_IntSet("AntyCheatConfig.ini", "AntyVehicleDriverKilling", 0);
  4985. Anty[AntiVehicleDriverKilling] = false;
  4986. SendClientMessage(playerid, GREEN, "Anty Vehicle Driver Killing wyłączony");
  4987. }
  4988. else SendClientMessage(playerid, RED, "Anty Vehicle Driver Killing jest już wyłączony");
  4989. }
  4990. }
  4991. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  4992. return 1;
  4993. }
  4994.  
  4995. dcmd_amaxping(playerid, cmdtext[])
  4996. {
  4997. if(IsPlayerAdmin(playerid))
  4998. {
  4999. new idx;
  5000. new tmp[256];
  5001. tmp = strtok(cmdtext, idx, ' ');
  5002.  
  5003. if(!strlen(tmp))
  5004. {
  5005. SendClientMessage(playerid, WHITE, "UŻYJ: /Amaxping <Ilość>");
  5006. return 1;
  5007. }
  5008.  
  5009. if(strval(tmp) >= 50)
  5010. {
  5011. dini_IntSet("AntyCheatConfig.ini", "MaxPing", strval(tmp));
  5012. Anty[MaxPing] = strval(tmp);
  5013. format(str, sizeof(str), "Maksymalny ping ustawiony na %i", strval(tmp));
  5014. SendClientMessage(playerid, GREEN, str);
  5015. }
  5016. else SendClientMessage(playerid, RED, "Max. ping nie może być mniejszy od 50!");
  5017. }
  5018. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  5019. return 1;
  5020. }
  5021.  
  5022. dcmd_amaxafk(playerid, cmdtext[])
  5023. {
  5024. if(IsPlayerAdmin(playerid))
  5025. {
  5026. new idx;
  5027. new tmp[256];
  5028. tmp = strtok(cmdtext, idx, ' ');
  5029.  
  5030. if(!strlen(tmp))
  5031. {
  5032. SendClientMessage(playerid, WHITE, "UŻYJ: /amaxafk <Minuty>");
  5033. return 1;
  5034. }
  5035.  
  5036. if(strval(tmp) >= 1)
  5037. {
  5038. dini_IntSet("AntyCheatConfig.ini", "MaxAFK", strval(tmp));
  5039. Anty[CzasAFK] = strval(tmp);
  5040. format(str, sizeof(str), "Maksymalny czas AFK ustawiony na %i", strval(tmp));
  5041. SendClientMessage(playerid, GREEN, str);
  5042. }
  5043. else SendClientMessage(playerid, RED, "Max. czas AFK nie może być mniejszy od 1!");
  5044. }
  5045. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  5046. return 1;
  5047. }
  5048.  
  5049. dcmd_amaxhop(playerid, cmdtext[])
  5050. {
  5051. if(IsPlayerAdmin(playerid))
  5052. {
  5053. new idx;
  5054. new tmp[256];
  5055. tmp = strtok(cmdtext, idx, ' ');
  5056.  
  5057. if(!strlen(tmp))
  5058. {
  5059. SendClientMessage(playerid, WHITE, "UŻYJ: /Amaxhop <Ilość>");
  5060. return 1;
  5061. }
  5062.  
  5063. if(strval(tmp) >= 1 && strval(tmp) <= 30)
  5064. {
  5065. dini_IntSet("AntyCheatConfig.ini", "MaxSkokow", strval(tmp));
  5066. Anty[MaxJump] = strval(tmp);
  5067. format(str, sizeof(str), "Maksymalna ilość skoków ustawiona na %i", strval(tmp));
  5068. SendClientMessage(playerid, GREEN, str);
  5069. }
  5070. else SendClientMessage(playerid, RED, "Max. ilość skoków nie może być większy od 30 ani mniejszy od 1!");
  5071. }
  5072. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  5073. return 1;
  5074. }
  5075.  
  5076. dcmd_amaxsprint(playerid, cmdtext[])
  5077. {
  5078. if(IsPlayerAdmin(playerid))
  5079. {
  5080. new idx;
  5081. new tmp[256];
  5082. tmp = strtok(cmdtext, idx, ' ');
  5083.  
  5084. if(!strlen(tmp))
  5085. {
  5086. SendClientMessage(playerid, WHITE, "UŻYJ: /Amaxsprint <Sekundy>");
  5087. return 1;
  5088. }
  5089.  
  5090. if(strval(tmp) >= 3)
  5091. {
  5092. dini_IntSet("AntyCheatConfig.ini", "CzasSprint", strval(tmp));
  5093. Anty[MaxSprint] = strval(tmp);
  5094. format(str, sizeof(str), "Maksymalny czas sprintu ustawiony na %i", strval(tmp));
  5095. SendClientMessage(playerid, GREEN, str);
  5096. }
  5097. else SendClientMessage(playerid, RED, "Max. ilość czasu sprintu nie może być mniejszy od 3!");
  5098. }
  5099. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  5100. return 1;
  5101. }
  5102.  
  5103. dcmd_askczas(playerid, cmdtext[])
  5104. {
  5105. if(IsPlayerAdmin(playerid))
  5106. {
  5107. new idx;
  5108. new tmp[256];
  5109. tmp = strtok(cmdtext, idx, ' ');
  5110.  
  5111. if(!strlen(tmp))
  5112. {
  5113. SendClientMessage(playerid, WHITE, "UŻYJ: /Askczas <Sekundy>");
  5114. return 1;
  5115. }
  5116.  
  5117. if(strval(tmp) >= 1)
  5118. {
  5119. dini_IntSet("AntyCheatConfig.ini", "CzasAntySpawnKill", strval(tmp));
  5120. Anty[CzasSpawnProt] = strval(tmp);
  5121. format(str, sizeof(str), "Czas Anty Spawn Kill ustawiony na %i", strval(tmp));
  5122. SendClientMessage(playerid, GREEN, str);
  5123. }
  5124. else SendClientMessage(playerid, RED, "Czas Anty Spawn Kill nie może być mniejszy od 1!");
  5125. }
  5126. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  5127. return 1;
  5128. }
  5129.  
  5130. dcmd_amaxglitch(playerid, cmdtext[])
  5131. {
  5132. if(IsPlayerAdmin(playerid))
  5133. {
  5134. new idx;
  5135. new tmp[256];
  5136. tmp = strtok(cmdtext, idx, ' ');
  5137.  
  5138. if(!strlen(tmp))
  5139. {
  5140. SendClientMessage(playerid, WHITE, "UŻYJ: /Amaxglitch <Ilość>");
  5141. return 1;
  5142. }
  5143.  
  5144. if(strval(tmp) >= 1)
  5145. {
  5146. dini_IntSet("AntyCheatConfig.ini", "MaxGlitchy", strval(tmp));
  5147. Anty[MaxGlitch] = strval(tmp);
  5148. format(str, sizeof(str), "Max. ilość Glitch'y ustawiona na %i", strval(tmp));
  5149. SendClientMessage(playerid, GREEN, str);
  5150. }
  5151. else SendClientMessage(playerid, RED, "Max. ilość Glitch'y nie może być mniejsza od 1!");
  5152. }
  5153. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  5154. return 1;
  5155. }
  5156.  
  5157. dcmd_amaxhydrak(playerid, cmdtext[])
  5158. {
  5159. if(IsPlayerAdmin(playerid))
  5160. {
  5161. new idx;
  5162. new tmp[256];
  5163. tmp = strtok(cmdtext, idx, ' ');
  5164.  
  5165. if(!strlen(tmp))
  5166. {
  5167. SendClientMessage(playerid, WHITE, "UŻYJ: /Amaxhydrak <Ilość>");
  5168. return 1;
  5169. }
  5170.  
  5171. if(strval(tmp) >= 1)
  5172. {
  5173. dini_IntSet("AntyCheatConfig.ini", "MaxHydraKill", strval(tmp));
  5174. Anty[MaxHydraK] = strval(tmp);
  5175. format(str, sizeof(str), "Max. ilość zabić z Hydry ustawiona na %i", strval(tmp));
  5176. SendClientMessage(playerid, GREEN, str);
  5177. }
  5178. else SendClientMessage(playerid, RED, "Max. ilość Hydra Kill nie może być mniejsza od 1!");
  5179. }
  5180. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  5181. return 1;
  5182. }
  5183.  
  5184. dcmd_amaxsk(playerid, cmdtext[])
  5185. {
  5186. if(IsPlayerAdmin(playerid))
  5187. {
  5188. new idx;
  5189. new tmp[256];
  5190. tmp = strtok(cmdtext, idx, ' ');
  5191.  
  5192. if(!strlen(tmp))
  5193. {
  5194. SendClientMessage(playerid, WHITE, "UŻYJ: /Amaxsk <Ilość>");
  5195. return 1;
  5196. }
  5197.  
  5198. if(strval(tmp) >= 1)
  5199. {
  5200. dini_IntSet("AntyCheatConfig.ini", "MaxSpawnKill", strval(tmp));
  5201. Anty[MaxSK] = strval(tmp);
  5202. format(str, sizeof(str), "Max. ilość Spawn Kill ustawiona na %i", strval(tmp));
  5203. SendClientMessage(playerid, GREEN, str);
  5204. }
  5205. else SendClientMessage(playerid, RED, "Max. ilość Spawn Kill nie może być mniejsza od 1!");
  5206. }
  5207. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  5208. return 1;
  5209. }
  5210.  
  5211. dcmd_amaxdb(playerid, cmdtext[])
  5212. {
  5213. if(IsPlayerAdmin(playerid))
  5214. {
  5215. new idx;
  5216. new tmp[256];
  5217. tmp = strtok(cmdtext, idx, ' ');
  5218.  
  5219. if(!strlen(tmp))
  5220. {
  5221. SendClientMessage(playerid, WHITE, "UŻYJ: /amaxdb <Ilość>");
  5222. return 1;
  5223. }
  5224.  
  5225. if(strval(tmp) >= 1)
  5226. {
  5227. dini_IntSet("AntyCheatConfig.ini", "MaxDrive-By", strval(tmp));
  5228. Anty[MaxDB] = strval(tmp);
  5229. format(str, sizeof(str), "Max. ilość Drive-By ustawiona na %i", strval(tmp));
  5230. SendClientMessage(playerid, GREEN, str);
  5231. }
  5232. else SendClientMessage(playerid, RED, "Max. ilość Drive-By nie może być mniejsza od 1!");
  5233. }
  5234. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  5235. return 1;
  5236. }
  5237.  
  5238. dcmd_amaxdt(playerid, cmdtext[])
  5239. {
  5240. if(IsPlayerAdmin(playerid))
  5241. {
  5242. new idx;
  5243. new tmp[256];
  5244. tmp = strtok(cmdtext, idx, ' ');
  5245.  
  5246. if(!strlen(tmp))
  5247. {
  5248. SendClientMessage(playerid, WHITE, "UŻYJ: /Amaxdt <Ilość>");
  5249. return 1;
  5250. }
  5251.  
  5252. if(strval(tmp) >= 1)
  5253. {
  5254. dini_IntSet("AntyCheatConfig.ini", "MaxDrive-Thru", strval(tmp));
  5255. Anty[MaxDT] = strval(tmp);
  5256. format(str, sizeof(str), "Max. ilość Drive-Thru ustawiona na %i", strval(tmp));
  5257. SendClientMessage(playerid, GREEN, str);
  5258. }
  5259. else SendClientMessage(playerid, RED, "Max. ilość Drive-Thru nie może być mniejsza od 1!");
  5260. }
  5261. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  5262. return 1;
  5263. }
  5264.  
  5265. dcmd_amaxck(playerid, cmdtext[])
  5266. {
  5267. if(IsPlayerAdmin(playerid))
  5268. {
  5269. new idx;
  5270. new tmp[256];
  5271. tmp = strtok(cmdtext, idx, ' ');
  5272.  
  5273. if(!strlen(tmp))
  5274. {
  5275. SendClientMessage(playerid, WHITE, "UŻYJ: /Amaxck <Ilość>");
  5276. return 1;
  5277. }
  5278.  
  5279. if(strval(tmp) >= 1)
  5280. {
  5281. dini_IntSet("AntyCheatConfig.ini", "MaxCarKill", strval(tmp));
  5282. Anty[MaxCK] = strval(tmp);
  5283. format(str, sizeof(str), "Max. ilość Car Kill ustawiona na %i", strval(tmp));
  5284. SendClientMessage(playerid, GREEN, str);
  5285. }
  5286. else SendClientMessage(playerid, RED, "Max. ilość Car Kill nie może być mniejsza od 1!");
  5287. }
  5288. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  5289. return 1;
  5290. }
  5291.  
  5292. dcmd_amaxhk(playerid, cmdtext[])
  5293. {
  5294. if(IsPlayerAdmin(playerid))
  5295. {
  5296. new idx;
  5297. new tmp[256];
  5298. tmp = strtok(cmdtext, idx, ' ');
  5299.  
  5300. if(!strlen(tmp))
  5301. {
  5302. SendClientMessage(playerid, WHITE, "UŻYJ: /Amaxhk <Ilość>");
  5303. return 1;
  5304. }
  5305.  
  5306. if(strval(tmp) >= 1)
  5307. {
  5308. dini_IntSet("AntyCheatConfig.ini", "MaxHeliKill", strval(tmp));
  5309. Anty[MaxHK] = strval(tmp);
  5310. format(str, sizeof(str), "Max. ilość Heli Kill ustawiona na %i", strval(tmp));
  5311. SendClientMessage(playerid, GREEN, str);
  5312. }
  5313. else SendClientMessage(playerid, RED, "Max. ilość Heli Kill nie może być mniejsza od 1!");
  5314. }
  5315. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  5316. return 1;
  5317. }
  5318.  
  5319. dcmd_amaxhunterk(playerid, cmdtext[])
  5320. {
  5321. if(IsPlayerAdmin(playerid))
  5322. {
  5323. new idx;
  5324. new tmp[256];
  5325. tmp = strtok(cmdtext, idx, ' ');
  5326.  
  5327. if(!strlen(tmp))
  5328. {
  5329. SendClientMessage(playerid, WHITE, "UŻYJ: /Amaxhunterk <Ilość>");
  5330. return 1;
  5331. }
  5332.  
  5333. if(strval(tmp) >= 1)
  5334. {
  5335. dini_IntSet("AntyCheatConfig.ini", "MaxHunterKill", strval(tmp));
  5336. Anty[MaxHunterK] = strval(tmp);
  5337. format(str, sizeof(str), "Max. ilość Hunter Kill ustawiona na %i", strval(tmp));
  5338. SendClientMessage(playerid, GREEN, str);
  5339. }
  5340. else SendClientMessage(playerid, RED, "Max. ilość Hunter Kill nie może być mniejsza od 1!");
  5341. }
  5342. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  5343. return 1;
  5344. }
  5345.  
  5346. dcmd_amaxrhinok(playerid, cmdtext[])
  5347. {
  5348. if(IsPlayerAdmin(playerid))
  5349. {
  5350. new idx;
  5351. new tmp[256];
  5352. tmp = strtok(cmdtext, idx, ' ');
  5353.  
  5354. if(!strlen(tmp))
  5355. {
  5356. SendClientMessage(playerid, WHITE, "UŻYJ: /amaxrhinok [Ilość]");
  5357. return 1;
  5358. }
  5359.  
  5360. if(strval(tmp) >= 1)
  5361. {
  5362. dini_IntSet("AntyCheatConfig.ini", "MaxRhinoKill", strval(tmp));
  5363. Anty[MaxRhinoK] = strval(tmp);
  5364. format(str, sizeof(str), "Max. ilość Rhino Kill ustawiona na %i", strval(tmp));
  5365. SendClientMessage(playerid, GREEN, str);
  5366. }
  5367. else SendClientMessage(playerid, RED, "Max. ilość Rhino Kill nie może być mniejsza od 1!");
  5368. }
  5369. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  5370. return 1;
  5371. }
  5372.  
  5373. dcmd_amaxsparrowk(playerid, cmdtext[])
  5374. {
  5375. if(IsPlayerAdmin(playerid))
  5376. {
  5377. new idx;
  5378. new tmp[256];
  5379. tmp = strtok(cmdtext, idx, ' ');
  5380.  
  5381. if(!strlen(tmp))
  5382. {
  5383. SendClientMessage(playerid, WHITE, "UŻYJ: /amaxsparrowk [Ilość]");
  5384. return 1;
  5385. }
  5386.  
  5387. if(strval(tmp) >= 1)
  5388. {
  5389. dini_IntSet("AntyCheatConfig.ini", "MaxSparrowKill", strval(tmp));
  5390. Anty[MaxSparrowK] = strval(tmp);
  5391. format(str, sizeof(str), "Max. ilość Sparrow Kill ustawiona na %i", strval(tmp));
  5392. SendClientMessage(playerid, GREEN, str);
  5393. }
  5394. else SendClientMessage(playerid, RED, "Max. ilość Sparrow Kill nie może być mniejsza od 1!");
  5395. }
  5396. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  5397. return 1;
  5398. }
  5399.  
  5400. dcmd_amaxrustlerk(playerid, cmdtext[])
  5401. {
  5402. if(IsPlayerAdmin(playerid))
  5403. {
  5404. new idx;
  5405. new tmp[256];
  5406. tmp = strtok(cmdtext, idx, ' ');
  5407.  
  5408. if(!strlen(tmp))
  5409. {
  5410. SendClientMessage(playerid, WHITE, "UŻYJ: /amaxrustlerk [Ilość]");
  5411. return 1;
  5412. }
  5413.  
  5414. if(strval(tmp) >= 1)
  5415. {
  5416. dini_IntSet("AntyCheatConfig.ini", "MaxRustlerKill", strval(tmp));
  5417. Anty[MaxRustlerK] = strval(tmp);
  5418. format(str, sizeof(str), "Max. ilość Rustler Kill ustawiona na %i", strval(tmp));
  5419. SendClientMessage(playerid, GREEN, str);
  5420. }
  5421. else SendClientMessage(playerid, RED, "Max. ilość Rustler Kill nie może być mniejsza od 1!");
  5422. }
  5423. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  5424. return 1;
  5425. }
  5426.  
  5427. dcmd_amaxplanek(playerid, cmdtext[])
  5428. {
  5429. if(IsPlayerAdmin(playerid))
  5430. {
  5431. new idx;
  5432. new tmp[256];
  5433. tmp = strtok(cmdtext, idx, ' ');
  5434.  
  5435. if(!strlen(tmp))
  5436. {
  5437. SendClientMessage(playerid, WHITE, "UŻYJ: /amaxplanek [Ilość]");
  5438. return 1;
  5439. }
  5440.  
  5441. if(strval(tmp) >= 1)
  5442. {
  5443. dini_IntSet("AntyCheatConfig.ini", "MaxPlaneKill", strval(tmp));
  5444. Anty[MaxPlaneK] = strval(tmp);
  5445. format(str, sizeof(str), "Max. ilość Plane Kill ustawiona na %i", strval(tmp));
  5446. SendClientMessage(playerid, GREEN, str);
  5447. }
  5448. else SendClientMessage(playerid, RED, "Max. ilość Plane Kill nie może być mniejsza od 1!");
  5449. }
  5450. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  5451. return 1;
  5452. }
  5453.  
  5454. dcmd_acckara(playerid, cmdtext[])
  5455. {
  5456. if(IsPlayerAdmin(playerid))
  5457. {
  5458. new Wybor;
  5459. new idx;
  5460. new tmp[256];
  5461. new tmp2[256];
  5462. tmp = strtok(cmdtext, idx, ' ');
  5463.  
  5464. if(!strlen(tmp))
  5465. {
  5466. SendClientMessage(playerid, WHITE, "UŻYJ: /ACCkara <Nazwa> <Rodzaj (1 - Kick, 2 - Ban, 3 - Host-Ban)>");
  5467. return 1;
  5468. }
  5469. tmp2 = strtok(cmdtext, idx, ' ');
  5470.  
  5471. if(!strlen(tmp2) || strval(tmp2) < 1 || strval(tmp2) > 3)
  5472. {
  5473. SendClientMessage(playerid, WHITE, "UŻYJ: /ACCkara <Nazwa> <Rodzaj (1 - Kick, 2 - Ban, 3 - Host-Ban)>");
  5474. return 1;
  5475. }
  5476. Wybor = strval(tmp2);
  5477.  
  5478. if(strcmp(tmp, "aspeed", false) == 0 || strcmp(tmp, "aairbrake", false) == 0 || strcmp(tmp, "avdk", false) == 0 || strcmp(tmp, "arustlerk", false) == 0 || strcmp(tmp, "ajet", false) == 0 || strcmp(tmp, "asparrowk", false) == 0 || strcmp(tmp, "anj", false) == 0 || strcmp(tmp, "aweapcheat", false) == 0 || strcmp(tmp, "aindoors", false) == 0 || strcmp(tmp, "aflood", false) == 0 || strcmp(tmp, "aping", false) == 0 || strcmp(tmp, "amoney", false) == 0 || strcmp(tmp, "atp", false) == 0
  5479. || strcmp(tmp, "aarmour", false) == 0 || strcmp(tmp, "ahealth", false) == 0 || strcmp(tmp, "abikefall", false) == 0 || strcmp(tmp, "aafk", false) == 0 || strcmp(tmp, "anadbluzgi", false) == 0 || strcmp(tmp, "afsprint", false) == 0 || strcmp(tmp, "ainfammo", false) == 0 || strcmp(tmp, "amegajump", false) == 0 || strcmp(tmp, "afreezeveh", false) == 0 || strcmp(tmp, "avehwarp", false) == 0 || strcmp(tmp, "adb", false) == 0 || strcmp(tmp, "adt", false) == 0 || strcmp(tmp, "ack", false) == 0
  5480. || strcmp(tmp, "arhinok", false) == 0 || strcmp(tmp, "ahk", false) == 0 || strcmp(tmp, "ahydrak", false) == 0 || strcmp(tmp, "ahunterk", false) == 0 || strcmp(tmp, "aplanek", false) == 0 || strcmp(tmp, "ask", false) == 0 || strcmp(tmp, "aip", false) == 0 || strcmp(tmp, "apodsz", false) == 0 || strcmp(tmp, "apmflood", false) == 0 || strcmp(tmp, "acmdflood", false) == 0 || strcmp(tmp, "abugua", false) == 0 || strcmp(tmp, "aglitch", false) == 0 || strcmp(tmp, "agod", false) == 0
  5481. || strcmp(tmp, "avehgod", false) == 0 || strcmp(tmp, "ainfioxy", false) == 0 || strcmp(tmp, "awunder", false) == 0 || strcmp(tmp, "awww", false) == 0 || strcmp(tmp, "apause", false) == 0 || strcmp(tmp, "acrash", false) == 0)
  5482. {
  5483. if(strcmp(tmp, "aspeed", false) == 0)
  5484. {
  5485. Kara[SpeedHack] = Wybor;
  5486. dini_IntSet("AntyCheatConfig.ini", "SpeedHack", Wybor);
  5487. switch(Wybor)
  5488. {
  5489. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Speed Hack");
  5490. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Speed Hack");
  5491. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Speed Hack");
  5492. }
  5493. }
  5494. if(strcmp(tmp, "aairbrake", false) == 0)
  5495. {
  5496. Kara[AirBrake] = Wybor;
  5497. dini_IntSet("AntyCheatConfig.ini", "AirBrake", Wybor);
  5498. switch(Wybor)
  5499. {
  5500. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Air Brake");
  5501. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Air Brake");
  5502. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Air Brake");
  5503. }
  5504. }
  5505. if(strcmp(tmp, "avdk", false) == 0)
  5506. {
  5507. Kara[VehDriverKilling] = Wybor;
  5508. dini_IntSet("AntyCheatConfig.ini", "VehicleDriverKilling", Wybor);
  5509. switch(Wybor)
  5510. {
  5511. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Vehicle Driver Killing");
  5512. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Vehicle Driver Killing");
  5513. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Vehicle Driver Killing");
  5514. }
  5515. }
  5516. if(strcmp(tmp, "arustlerk", false) == 0)
  5517. {
  5518. Kara[RustlerKill] = Wybor;
  5519. dini_IntSet("AntyCheatConfig.ini", "RustlerKill", Wybor);
  5520. switch(Wybor)
  5521. {
  5522. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Rustler Kill");
  5523. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Rustler Kill");
  5524. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Rustler Kill");
  5525. }
  5526. }
  5527. if(strcmp(tmp, "ajet", false) == 0)
  5528. {
  5529. Kara[Jetpack] = Wybor;
  5530. dini_IntSet("AntyCheatConfig.ini", "Jetpack", Wybor);
  5531. switch(Wybor)
  5532. {
  5533. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za posiadanie Jetpack'a");
  5534. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za posiadanie Jetpack'a");
  5535. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za posiadanie Jetpack'a");
  5536. }
  5537. }
  5538. if(strcmp(tmp, "asparrowk", false) == 0)
  5539. {
  5540. Kara[SparrowKill] = Wybor;
  5541. dini_IntSet("AntyCheatConfig.ini", "SparrowKill", Wybor);
  5542. switch(Wybor)
  5543. {
  5544. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Sparrow Kill");
  5545. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Sparrow Kill");
  5546. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Sparrow Kill");
  5547. }
  5548. }
  5549. if(strcmp(tmp, "anj", false) == 0)
  5550. {
  5551. Kara[NinjaJacking] = Wybor;
  5552. dini_IntSet("AntyCheatConfig.ini", "NinjaJacking", Wybor);
  5553. switch(Wybor)
  5554. {
  5555. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Ninja Jacking");
  5556. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Ninja Jacking");
  5557. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Ninja Jacking");
  5558. }
  5559. }
  5560. if(strcmp(tmp, "aweapcheat", false) == 0)
  5561. {
  5562. Kara[WeaponCheat] = Wybor;
  5563. dini_IntSet("AntyCheatConfig.ini", "WeaponCheat", Wybor);
  5564. switch(Wybor)
  5565. {
  5566. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Weapon Cheat");
  5567. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Weapon Cheat");
  5568. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Weapon Cheat");
  5569. }
  5570. }
  5571. if(strcmp(tmp, "aindoors", false) == 0)
  5572. {
  5573. Kara[InteriorWeapons] = Wybor;
  5574. dini_IntSet("AntyCheatConfig.ini", "InteriorWeapons", Wybor);
  5575. switch(Wybor)
  5576. {
  5577. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Interior Weapons");
  5578. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Interior Weapons");
  5579. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Interior Weapons");
  5580. }
  5581. }
  5582. if(strcmp(tmp, "aflood", false) == 0)
  5583. {
  5584. Kara[Flood] = Wybor;
  5585. dini_IntSet("AntyCheatConfig.ini", "Flood", Wybor);
  5586. switch(Wybor)
  5587. {
  5588. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Flood");
  5589. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Flood");
  5590. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Flood");
  5591. }
  5592. }
  5593. if(strcmp(tmp, "aping", false) == 0)
  5594. {
  5595. Kara[Ping] = Wybor;
  5596. dini_IntSet("AntyCheatConfig.ini", "Ping", Wybor);
  5597. switch(Wybor)
  5598. {
  5599. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za wysoki Ping");
  5600. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za wysoki Ping");
  5601. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za wysoki Ping");
  5602. }
  5603. }
  5604. if(strcmp(tmp, "amoney", false) == 0)
  5605. {
  5606. Kara[MoneyCheat] = Wybor;
  5607. dini_IntSet("AntyCheatConfig.ini", "MoneyCheat", Wybor);
  5608. switch(Wybor)
  5609. {
  5610. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Money Cheat");
  5611. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Money Cheat");
  5612. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Money Cheat");
  5613. }
  5614. }
  5615. if(strcmp(tmp, "atp", false) == 0)
  5616. {
  5617. Kara[Teleport] = Wybor;
  5618. dini_IntSet("AntyCheatConfig.ini", "Teleport", Wybor);
  5619. switch(Wybor)
  5620. {
  5621. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Teleport");
  5622. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Teleport");
  5623. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Teleport");
  5624. }
  5625. }
  5626. if(strcmp(tmp, "aarmour", false) == 0)
  5627. {
  5628. Kara[ArmourCheat] = Wybor;
  5629. dini_IntSet("AntyCheatConfig.ini", "ArmourCheat", Wybor);
  5630. switch(Wybor)
  5631. {
  5632. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Armour Cheat");
  5633. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Armour Cheat");
  5634. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Armour Cheat");
  5635. }
  5636. }
  5637. if(strcmp(tmp, "ahealth", false) == 0)
  5638. {
  5639. Kara[HealthCheat] = Wybor;
  5640. dini_IntSet("AntyCheatConfig.ini", "HealthCheat", Wybor);
  5641. switch(Wybor)
  5642. {
  5643. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Health Cheat");
  5644. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Health Cheat");
  5645. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Health Cheat");
  5646. }
  5647. }
  5648. if(strcmp(tmp, "abikefall", false) == 0)
  5649. {
  5650. Kara[AntyBikeFallOffK] = Wybor;
  5651. dini_IntSet("AntyCheatConfig.ini", "AntiBikeFallOff", Wybor);
  5652. switch(Wybor)
  5653. {
  5654. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Anti Bike Fall Off");
  5655. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Anti Bike Fall Off");
  5656. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Anti Bike Fall Off");
  5657. }
  5658. }
  5659. if(strcmp(tmp, "aafk", false) == 0)
  5660. {
  5661. Kara[AFK] = Wybor;
  5662. dini_IntSet("AntyCheatConfig.ini", "AFK", Wybor);
  5663. switch(Wybor)
  5664. {
  5665. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za AFK");
  5666. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za AFK");
  5667. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za AFK");
  5668. }
  5669. }
  5670. if(strcmp(tmp, "anadbluzgi", false) == 0)
  5671. {
  5672. Kara[NadmierneBluzgi] = Wybor;
  5673. dini_IntSet("AntyCheatConfig.ini", "NadmierneBluzgi", Wybor);
  5674. switch(Wybor)
  5675. {
  5676. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Nadmierne Bluzgi");
  5677. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Nadmierne Bluzgi");
  5678. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Nadmierne Bluzgi");
  5679. }
  5680. }
  5681. if(strcmp(tmp, "afsprint", false) == 0)
  5682. {
  5683. Kara[FasterSprint] = Wybor;
  5684. dini_IntSet("AntyCheatConfig.ini", "FasterSprint", Wybor);
  5685. switch(Wybor)
  5686. {
  5687. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Faster Sprint");
  5688. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Faster Sprint");
  5689. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Faster Sprint");
  5690. }
  5691. }
  5692. if(strcmp(tmp, "ainfammo", false) == 0)
  5693. {
  5694. Kara[InfiniteAmmo] = Wybor;
  5695. dini_IntSet("AntyCheatConfig.ini", "InfiniteAmmo", Wybor);
  5696. switch(Wybor)
  5697. {
  5698. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Infinite Ammo");
  5699. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Infinite Ammo");
  5700. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Infinite Ammo");
  5701. }
  5702. }
  5703. if(strcmp(tmp, "amegajump", false) == 0)
  5704. {
  5705. Kara[MegaJumpK] = Wybor;
  5706. dini_IntSet("AntyCheatConfig.ini", "MegaJump", Wybor);
  5707. switch(Wybor)
  5708. {
  5709. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Mega Jump");
  5710. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Mega Jump");
  5711. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Mega Jump");
  5712. }
  5713. }
  5714. if(strcmp(tmp, "afreezeveh", false) == 0)
  5715. {
  5716. Kara[FreezeVehicles] = Wybor;
  5717. dini_IntSet("AntyCheatConfig.ini", "FreezeVehicles", Wybor);
  5718. switch(Wybor)
  5719. {
  5720. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Freeze Vehicles");
  5721. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Freeze Vehicles");
  5722. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Freeze Vehicles");
  5723. }
  5724. }
  5725. if(strcmp(tmp, "avehwarp", false) == 0)
  5726. {
  5727. Kara[VehicleWarp] = Wybor;
  5728. dini_IntSet("AntyCheatConfig.ini", "VehicleWarp", Wybor);
  5729. switch(Wybor)
  5730. {
  5731. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Vehicle Warp");
  5732. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Vehicle Warp");
  5733. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Vehicle Warp");
  5734. }
  5735. }
  5736. if(strcmp(tmp, "adb", false) == 0)
  5737. {
  5738. Kara[DriveBy] = Wybor;
  5739. dini_IntSet("AntyCheatConfig.ini", "DriveBy", Wybor);
  5740. switch(Wybor)
  5741. {
  5742. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Drive-By");
  5743. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Drive-By");
  5744. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Drive-By");
  5745. }
  5746. }
  5747. if(strcmp(tmp, "adt", false) == 0)
  5748. {
  5749. Kara[DriveThru] = Wybor;
  5750. dini_IntSet("AntyCheatConfig.ini", "DriveThru", Wybor);
  5751. switch(Wybor)
  5752. {
  5753. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Drive-Thru");
  5754. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Drive-Thru");
  5755. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Drive-Thru");
  5756. }
  5757. }
  5758. if(strcmp(tmp, "ack", false) == 0)
  5759. {
  5760. Kara[CarKill] = Wybor;
  5761. dini_IntSet("AntyCheatConfig.ini", "CarKill", Wybor);
  5762. switch(Wybor)
  5763. {
  5764. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Car Kill");
  5765. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Car Kill");
  5766. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Car Kill");
  5767. }
  5768. }
  5769. if(strcmp(tmp, "arhinok", false) == 0)
  5770. {
  5771. Kara[RhinoKill] = Wybor;
  5772. dini_IntSet("AntyCheatConfig.ini", "RhinoKill", Wybor);
  5773. switch(Wybor)
  5774. {
  5775. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Rhino Kill");
  5776. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Rhino Kill");
  5777. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Rhino Kill");
  5778. }
  5779. }
  5780. if(strcmp(tmp, "ahk", false) == 0)
  5781. {
  5782. Kara[HeliKill] = Wybor;
  5783. dini_IntSet("AntyCheatConfig.ini", "HeliKill", Wybor);
  5784. switch(Wybor)
  5785. {
  5786. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Heli Kill");
  5787. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Heli Kill");
  5788. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Heli Kill");
  5789. }
  5790. }
  5791. if(strcmp(tmp, "ahydrak", false) == 0)
  5792. {
  5793. Kara[HydraKill] = Wybor;
  5794. dini_IntSet("AntyCheatConfig.ini", "HydraKill", Wybor);
  5795. switch(Wybor)
  5796. {
  5797. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Hydra Kill");
  5798. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Hydra Kill");
  5799. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Hydra Kill");
  5800. }
  5801. }
  5802. if(strcmp(tmp, "ahunterk", false) == 0)
  5803. {
  5804. Kara[HunterKill] = Wybor;
  5805. dini_IntSet("AntyCheatConfig.ini", "HunterKill", Wybor);
  5806. switch(Wybor)
  5807. {
  5808. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Hunter Kill");
  5809. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Hunter Kill");
  5810. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Hunter Kill");
  5811. }
  5812. }
  5813. if(strcmp(tmp, "aplanek", false) == 0)
  5814. {
  5815. Kara[PlaneKill] = Wybor;
  5816. dini_IntSet("AntyCheatConfig.ini", "PlaneKill", Wybor);
  5817. switch(Wybor)
  5818. {
  5819. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Plane Kill");
  5820. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Plane Kill");
  5821. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Plane Kill");
  5822. }
  5823. }
  5824. if(strcmp(tmp, "ask", false) == 0)
  5825. {
  5826. Kara[SpawnKill] = Wybor;
  5827. dini_IntSet("AntyCheatConfig.ini", "SpawnKill", Wybor);
  5828. switch(Wybor)
  5829. {
  5830. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Spawn Kill");
  5831. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Spawn Kill");
  5832. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Spawn Kill");
  5833. }
  5834. }
  5835. if(strcmp(tmp, "aip", false) == 0)
  5836. {
  5837. Kara[ReklamaSerwera] = Wybor;
  5838. dini_IntSet("AntyCheatConfig.ini", "ReklamaSerwera", Wybor);
  5839. switch(Wybor)
  5840. {
  5841. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Reklamę Serwera");
  5842. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Reklamę Serwera");
  5843. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Reklamę Serwera");
  5844. }
  5845. }
  5846. if(strcmp(tmp, "apodsz", false) == 0)
  5847. {
  5848. Kara[Podszywanie] = Wybor;
  5849. dini_IntSet("AntyCheatConfig.ini", "Podszywanie", Wybor);
  5850. switch(Wybor)
  5851. {
  5852. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za podszywanie się pod Admina");
  5853. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za podszywanie się pod Admina");
  5854. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za podszywanie się pod Admina");
  5855. }
  5856. }
  5857. if(strcmp(tmp, "apmflood", false) == 0)
  5858. {
  5859. Kara[PMFlood] = Wybor;
  5860. dini_IntSet("AntyCheatConfig.ini", "PrivateMessageFlood", Wybor);
  5861. switch(Wybor)
  5862. {
  5863. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Private Message Flood");
  5864. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Private Message Flood");
  5865. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Private Message Flood");
  5866. }
  5867. }
  5868. if(strcmp(tmp, "acmdflood", false) == 0)
  5869. {
  5870. Kara[CmdFlood] = Wybor;
  5871. dini_IntSet("AntyCheatConfig.ini", "CommandFlood", Wybor);
  5872. switch(Wybor)
  5873. {
  5874. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Command Flood");
  5875. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Command Flood");
  5876. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Command Flood");
  5877. }
  5878. }
  5879. if(strcmp(tmp, "abugua", false) == 0)
  5880. {
  5881. Kara[BugUAK] = Wybor;
  5882. dini_IntSet("AntyCheatConfig.ini", "BugUnlimitedAmmo", Wybor);
  5883. switch(Wybor)
  5884. {
  5885. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Bug Unlimited Ammo");
  5886. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Bug Unlimited Ammo");
  5887. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Bug Unlimited Ammo");
  5888. }
  5889. }
  5890. if(strcmp(tmp, "aglitch", false) == 0)
  5891. {
  5892. Kara[GlitchK] = Wybor;
  5893. dini_IntSet("AntyCheatConfig.ini", "Glitch", Wybor);
  5894. switch(Wybor)
  5895. {
  5896. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Glitch");
  5897. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Glitch");
  5898. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Glitch");
  5899. }
  5900. }
  5901. if(strcmp(tmp, "avehgod", false) == 0)
  5902. {
  5903. Kara[VehicleGodMode] = Wybor;
  5904. dini_IntSet("AntyCheatConfig.ini", "VehicleGodMode", Wybor);
  5905. switch(Wybor)
  5906. {
  5907. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Vehicle God Mode");
  5908. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Vehicle God Mode");
  5909. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Vehicle God Mode");
  5910. }
  5911. }
  5912. if(strcmp(tmp, "agod", false) == 0)
  5913. {
  5914. Kara[GodMode] = Wybor;
  5915. dini_IntSet("AntyCheatConfig.ini", "GodMode", Wybor);
  5916. switch(Wybor)
  5917. {
  5918. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za God Mode");
  5919. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za God Mode");
  5920. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za God Mode");
  5921. }
  5922. }
  5923. if(strcmp(tmp, "ainfioxy", false) == 0)
  5924. {
  5925. Kara[InfiniteOxygen] = Wybor;
  5926. dini_IntSet("AntyCheatConfig.ini", "InfiniteOxygen", Wybor);
  5927. switch(Wybor)
  5928. {
  5929. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Infinite Oxygen");
  5930. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Infinite Oxygen");
  5931. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Infinite Oxygen");
  5932. }
  5933. }
  5934. if(strcmp(tmp, "awunder", false) == 0)
  5935. {
  5936. Kara[WalkUnderwater] = Wybor;
  5937. dini_IntSet("AntyCheatConfig.ini", "WalkUnderwater", Wybor);
  5938. switch(Wybor)
  5939. {
  5940. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Walk Underwater");
  5941. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Walk Underwater");
  5942. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Walk Underwater");
  5943. }
  5944. }
  5945. if(strcmp(tmp, "awww", false) == 0)
  5946. {
  5947. Kara[ReklamaStrony] = Wybor;
  5948. dini_IntSet("AntyCheatConfig.ini", "ReklamaStrony", Wybor);
  5949. switch(Wybor)
  5950. {
  5951. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Reklamę Strony");
  5952. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Reklamę Strony");
  5953. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Reklamę Strony");
  5954. }
  5955. }
  5956. if(strcmp(tmp, "apause", false) == 0)
  5957. {
  5958. Kara[Pauza] = Wybor;
  5959. dini_IntSet("AntyCheatConfig.ini", "Pause", Wybor);
  5960. switch(Wybor)
  5961. {
  5962. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Pauzę");
  5963. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Pauzę");
  5964. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Pauzę");
  5965. }
  5966. }
  5967. if(strcmp(tmp, "acrash", false) == 0)
  5968. {
  5969. Kara[ProbaCrash] = Wybor;
  5970. dini_IntSet("AntyCheatConfig.ini", "ProbaCrash", Wybor);
  5971. switch(Wybor)
  5972. {
  5973. case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Próbę Crash'owania Serwera");
  5974. case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Próbę Crash'owania Serweraę");
  5975. case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Próbę Crash'owania Serweraę");
  5976. }
  5977. }
  5978. }
  5979. else SendClientMessage(playerid, RED, "Nie ma takiej opcji!");
  5980. }
  5981. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  5982. return 1;
  5983. }
  5984.  
  5985. dcmd_accblr(playerid, cmdtext[])
  5986. {
  5987. if(Anty[BL] == true)
  5988. {
  5989. if(IsPlayerAdmin(playerid))
  5990. {
  5991. new idx;
  5992. Nick = strtok(cmdtext, idx, ' ');
  5993.  
  5994. if(!strlen(Nick))
  5995. {
  5996. SendClientMessage(playerid, WHITE, "UŻYJ: /ACCblr <Nick>");
  5997. return 1;
  5998. }
  5999.  
  6000. if(strlen(Nick) >= 3 && strlen(Nick) <= 16) UsunZBL(playerid, "BLGracz.txt", "BLGracz2.txt", Nick, false);
  6001. else SendClientMessage(playerid, RED, "Nick musi mieć conajmniej 3 znaki i max. 16 znaków!");
  6002. }
  6003. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  6004. }
  6005. else SendClientMessage(playerid, RED, "Czarna Lista jest wyłączona!");
  6006. return 1;
  6007. }
  6008.  
  6009. dcmd_accbcr(playerid, cmdtext[])
  6010. {
  6011. if(Anty[BC] == true)
  6012. {
  6013. if(IsPlayerAdmin(playerid))
  6014. {
  6015. new idx;
  6016. Nick = strtok(cmdtext, idx, ' ');
  6017.  
  6018. if(!strlen(Nick))
  6019. {
  6020. SendClientMessage(playerid, WHITE, "UŻYJ: /ACCbcr <Tag>");
  6021. return 1;
  6022. }
  6023.  
  6024. if(strlen(Nick) >= 2 && strlen(Nick) <= 15) UsunZBL(playerid, "BLKlan.txt", "BLKlan2.txt", Nick, true);
  6025. else SendClientMessage(playerid, RED, "Tag musi mieć conajmniej 2 znaki i max. 15 znaków!");
  6026. }
  6027. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  6028. }
  6029. else SendClientMessage(playerid, RED, "Czarna Lista Klanów jest wyłączona!");
  6030. return 1;
  6031. }
  6032.  
  6033. dcmd_accbc(playerid, cmdtext[])
  6034. {
  6035. if(Anty[BC] == true)
  6036. {
  6037. if(IsPlayerAdmin(playerid))
  6038. {
  6039. new Co;
  6040. new idx;
  6041. new tmp[256];
  6042. new Powod[256];
  6043. Nick = strtok(cmdtext, idx, ' ');
  6044.  
  6045. if(!strlen(Nick))
  6046. {
  6047. SendClientMessage(playerid, WHITE, "UŻYJ: /accbc <Tag> <1 - Kick, 2 - Ban> <Powód>");
  6048. return 1;
  6049. }
  6050. tmp = strtok(cmdtext, idx, ' ');
  6051.  
  6052. if(!strlen(tmp))
  6053. {
  6054. SendClientMessage(playerid, WHITE, "UŻYJ: /accbc <Tag> <1 - Kick, 2 - Ban> <Powód>");
  6055. return 1;
  6056. }
  6057. Co = strval(tmp);
  6058. tmp = strtok(cmdtext, idx, ' ');
  6059.  
  6060. if(!strlen(tmp))
  6061. {
  6062. SendClientMessage(playerid, WHITE, "UŻYJ: /accbc <Tag> <1 - Kick, 2 - Ban> <Powód>");
  6063. return 1;
  6064. }
  6065. if(Co == 1 || Co == 2)
  6066. {
  6067. if(strfind(Nick, "_", false) != -1 || strfind(Nick, "[", false) != -1 || strfind(Nick, "]", false) != -1)
  6068. {
  6069. if(strlen(Nick) >= 2 && strlen(Nick) <= 15)
  6070. {
  6071. new File:Plik = fopen("BLKlan.txt", io_append);
  6072. strmid(Powod, cmdtext, strlen(Nick)+3, 256, sizeof(Powod));
  6073. format(str, sizeof(str), "%s-%i-%s\r\n", Nick, Co, Powod);
  6074. fwrite(Plik, str);
  6075. fclose(Plik);
  6076. switch(Co)
  6077. {
  6078. case 1:
  6079. {
  6080. format(str, sizeof(str), "Dodałeś klan %s na Czarną Listę, graczy z tym Tag'iem będzie wyrzucać z powodem: %s", Nick, Powod);
  6081. SendClientMessage(playerid, GREEN, str);
  6082. }
  6083. case 2:
  6084. {
  6085. format(str, sizeof(str), "Dodałeś klan %s Czarną Listę, graczy z tym Tag'iem będzie banować z powodem: %s", Nick, Powod);
  6086. SendClientMessage(playerid, GREEN, str);
  6087. }
  6088. }
  6089. new Klan[256];
  6090. strcat(Klan, Nick, sizeof(Klan));
  6091. GetPlayerName(playerid, Nick, sizeof(Nick));
  6092. format(str, sizeof(str), "Klan %s został dodany na Czarną Listę Klanów przez Admina %s, powód: %s", Klan, Nick, Powod);
  6093. SendClientMessageToAll(DARK, str);
  6094. }
  6095. else SendClientMessage(playerid, RED, "Tag musi mieć conajmniej 2 znaki i max. 15 znaków!");
  6096. }
  6097. else SendClientMessage(playerid, RED, "Tag musi mieć znak '_', '[', lub ']'!");
  6098. }
  6099. else SendClientMessage(playerid, RED, "Możesz tylko wpisać 1, lub 2!");
  6100. }
  6101. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  6102. }
  6103. else SendClientMessage(playerid, RED, "Czarna Lista Klanów jest wyłączona!");
  6104. return 1;
  6105. }
  6106.  
  6107. dcmd_accbl(playerid, cmdtext[])
  6108. {
  6109. if(Anty[BL] == true)
  6110. {
  6111. if(IsPlayerAdmin(playerid))
  6112. {
  6113. new Co;
  6114. new idx;
  6115. new tmp[256];
  6116. new Powod[256];
  6117. Nick = strtok(cmdtext, idx, ' ');
  6118.  
  6119. if(!strlen(Nick))
  6120. {
  6121. SendClientMessage(playerid, WHITE, "UŻYJ: /accbl <Tag> <1 - Kick, 2 - Ban> <Powód>");
  6122. return 1;
  6123. }
  6124. tmp = strtok(cmdtext, idx, ' ');
  6125.  
  6126. if(!strlen(tmp))
  6127. {
  6128. SendClientMessage(playerid, WHITE, "UŻYJ: /accbl <Tag> <1 - Kick, 2 - Ban> <Powód>");
  6129. return 1;
  6130. }
  6131. Co = strval(tmp);
  6132. tmp = strtok(cmdtext, idx, ' ');
  6133.  
  6134. if(!strlen(tmp))
  6135. {
  6136. SendClientMessage(playerid, WHITE, "UŻYJ: /accbl <Tag> <1 - Kick, 2 - Ban> <Powód>");
  6137. return 1;
  6138. }
  6139. if(Co == 1 || Co == 2)
  6140. {
  6141. if(strlen(Nick) >= 3 && strlen(Nick) <= 16)
  6142. {
  6143. new File:Plik = fopen("BLGracz.txt", io_append);
  6144. strmid(Powod, cmdtext, strlen(Nick)+3, 256, sizeof(Powod));
  6145. format(str, sizeof(str), "%s-%i-%s\r\n", Nick, Co, Powod);
  6146. fwrite(Plik, str);
  6147. fclose(Plik);
  6148. switch(Co)
  6149. {
  6150. case 1:
  6151. {
  6152. format(str, sizeof(str), "Dodałeś gracza %s na Czarną Listę, przy każdym wejściu będzie go wyrzucać z powodem: %s", Nick, Powod);
  6153. SendClientMessage(playerid, GREEN, str);
  6154. }
  6155. case 2:
  6156. {
  6157. format(str, sizeof(str), "Dodałeś gracz %s Czarną Listę, przy każdym wejściu będzie go banować z powodem: %s", Nick, Powod);
  6158. SendClientMessage(playerid, GREEN, str);
  6159. }
  6160. }
  6161. new Gracz[256];
  6162. strcat(Gracz, Nick, sizeof(Gracz));
  6163. GetPlayerName(playerid, Nick, sizeof(Nick));
  6164. format(str, sizeof(str), "%s został dodany na Czarną Listę przez Admina %s, powód: %s", Gracz, Nick, Powod);
  6165. SendClientMessageToAll(DARK, str);
  6166. }
  6167. else SendClientMessage(playerid, RED, "Nick musi mieć conajmniej 3 znaki i max. 16 znaków!");
  6168. }
  6169. else SendClientMessage(playerid, RED, "Możesz tylko wpisać 1, lub 2!");
  6170. }
  6171. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  6172. }
  6173. else SendClientMessage(playerid, RED, "Czarna Lista jest wyłączona!");
  6174. return 1;
  6175. }
  6176.  
  6177. dcmd_accbluzg(playerid, cmdtext[])
  6178. {
  6179. if(Anty[AntyBluzgi] == true)
  6180. {
  6181. if(IsPlayerAdmin(playerid))
  6182. {
  6183. new idx;
  6184. Nick = strtok(cmdtext, idx, ' ');
  6185.  
  6186. if(!strlen(Nick))
  6187. {
  6188. SendClientMessage(playerid, WHITE, "UŻYJ: /accbluzg [Bluzg]");
  6189. return 1;
  6190. }
  6191. new File:Plik = fopen("Bluzgi.txt", io_append);
  6192. strmid(Nick, cmdtext, 0, 256, sizeof(Nick));
  6193. format(str, sizeof(str), "%s,\r\n", Nick);
  6194. fwrite(Plik, str);
  6195. fclose(Plik);
  6196. format(str, sizeof(str), "Dodałeś %s do cenzury", Nick);
  6197. SendClientMessage(playerid, GREEN, str);
  6198. }
  6199. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  6200. }
  6201. else SendClientMessage(playerid, RED, "Anty Bluzgi są wyłączone!");
  6202. return 1;
  6203. }
  6204.  
  6205. dcmd_accbluzgr(playerid, cmdtext[])
  6206. {
  6207. if(Anty[AntyBluzgi] == true)
  6208. {
  6209. if(IsPlayerAdmin(playerid))
  6210. {
  6211. new idx;
  6212. Nick = strtok(cmdtext, idx, ' ');
  6213.  
  6214. if(!strlen(Nick))
  6215. {
  6216. SendClientMessage(playerid, WHITE, "UŻYJ: /accbluzgr <Bluzga>");
  6217. return 1;
  6218. }
  6219. UsunZPliku(playerid, "Bluzgi.txt", "Bluzgi2.txt", Nick, false);
  6220. }
  6221. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  6222. }
  6223. else SendClientMessage(playerid, RED, "Anty Bluzgi są wyłączone!");
  6224. return 1;
  6225. }
  6226.  
  6227. dcmd_accemor(playerid, cmdtext[])
  6228. {
  6229. if(Anty[AntyBluzgi] == true)
  6230. {
  6231. if(IsPlayerAdmin(playerid))
  6232. {
  6233. new idx;
  6234. Nick = strtok(cmdtext, idx, ' ');
  6235.  
  6236. if(!strlen(Nick))
  6237. {
  6238. SendClientMessage(playerid, WHITE, "UŻYJ: /accemor <Emotka>");
  6239. return 1;
  6240. }
  6241. UsunZPliku(playerid, "Emotikonki.txt", "Emotikonki2.txt", Nick, true);
  6242. }
  6243. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  6244. }
  6245. else SendClientMessage(playerid, RED, "Anty Emotikonki w IC są wyłączone!");
  6246. return 1;
  6247. }
  6248.  
  6249. dcmd_accemo(playerid, cmdtext[])
  6250. {
  6251. if(Anty[AntiICEmo] == true)
  6252. {
  6253. if(IsPlayerAdmin(playerid))
  6254. {
  6255. new idx;
  6256. Nick = strtok(cmdtext, idx, ' ');
  6257.  
  6258. if(!strlen(Nick))
  6259. {
  6260. SendClientMessage(playerid, WHITE, "UŻYJ: /accemo <Emotka>);
  6261. return 1;
  6262. }
  6263. new File:Plik = fopen("Emotikonki.txt", io_append);
  6264. strmid(Nick, cmdtext, 0, 256, sizeof(Nick));
  6265. format(str, sizeof(str), "%s,\r\n", Nick);
  6266. fwrite(Plik, str);
  6267. fclose(Plik);
  6268. format(str, sizeof(str), "Dodałeś %s do emotikonek", Nick);
  6269. SendClientMessage(playerid, GREEN, str);
  6270. }
  6271. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  6272. }
  6273. else SendClientMessage(playerid, RED, "Anty Emotikonki w IC są wyłączone!");
  6274. return 1;
  6275. }
  6276.  
  6277. dcmd_azbron(playerid, cmdtext[])
  6278. {
  6279. if(IsPlayerAdmin(playerid))
  6280. {
  6281. new WybranaBron;
  6282. new NoYes;
  6283. new idx;
  6284. new tmp[256];
  6285. tmp = strtok(cmdtext, idx, ' ');
  6286.  
  6287. if(!strlen(tmp))
  6288. {
  6289. SendClientMessage(playerid, WHITE, "UŻYJ: /azbron <ID> <1 - Wlacz/2 - Wylacz>");
  6290. return 1;
  6291. }
  6292.  
  6293. WybranaBron = strval(tmp);
  6294. tmp = strtok(cmdtext, idx, ' ');
  6295.  
  6296. if(!strlen(tmp))
  6297. {
  6298. SendClientMessage(playerid, WHITE, "UŻYJ: /azbron <ID> <1 - Wlacz/2 - Wylacz>");
  6299. return 1;
  6300. }
  6301. NoYes = strval(tmp);
  6302.  
  6303. if(WybranaBron > 0 && WybranaBron < 46 && WybranaBron != 19 && WybranaBron != 20 && WybranaBron != 21)
  6304. {
  6305. if(NoYes == 1 || NoYes == 0)
  6306. {
  6307. new bool:TakNie;
  6308. if(NoYes == 1) TakNie = true;
  6309. dini_IntSet("AntyCheatConfig.ini", Bronie[WybranaBron][NazwaConfig], NoYes);
  6310. Bronie[WybranaBron][Zakazana] = TakNie;
  6311. if(NoYes == 1)
  6312. {
  6313. format(str, sizeof(str), "Ochrona na %s włączona", Bronie[WybranaBron][Nazwa]);
  6314. SendClientMessage(playerid, GREEN, str);
  6315. }
  6316. else if(NoYes == 0)
  6317. {
  6318. format(str, sizeof(str), "Ochrona na %s wyłączona", Bronie[WybranaBron][Nazwa]);
  6319. SendClientMessage(playerid, GREEN, str);
  6320. }
  6321. }
  6322. else SendClientMessage(playerid, RED, "Możesz napisać tylko 1 lub 0!");
  6323. }
  6324. else SendClientMessage(playerid, RED, "Nie ma takiej broni!");
  6325. }
  6326. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  6327. return 1;
  6328. }
  6329.  
  6330. dcmd_accmd(playerid, cmdtext[])
  6331. {
  6332. if(IsPlayerAdmin(playerid))
  6333. {
  6334. new idx;
  6335. new tmp[256];
  6336. tmp = strtok(cmdtext, idx, ' ');
  6337.  
  6338. if(!strlen(tmp) || strval(tmp) > 9 || strval(tmp) < 1)
  6339. {
  6340. SendClientMessage(playerid, WHITE, "UŻYJ: /accmd <1 - 9>");
  6341. return 1;
  6342. }
  6343. switch(strval(tmp))
  6344. {
  6345. case 1:
  6346. {
  6347. SendClientMessage(playerid, GREEN, "Strona 1. - Lista komend Admina *AntyCheat*");
  6348. SendClientMessage(playerid, WHITE, "/aspeed [on/off] - włącza/wyłącza Anty Speed Hack/Air Brake");
  6349. SendClientMessage(playerid, WHITE, "/aafk [on/off] - włącza/wyłącza Anty AFK");
  6350. SendClientMessage(playerid, WHITE, "/abikefall [on/off] - włącza/wyłącza Anty Bike Fall Off");
  6351. SendClientMessage(playerid, WHITE, "/aweapcheat [on/off] - włącza/wyłącza Anty Weapon Cheat");
  6352. SendClientMessage(playerid, WHITE, "/aindoors [on/off] - włącza/wyłącza Anty Indoors Weapons");
  6353. SendClientMessage(playerid, WHITE, "/ainfiammo [on/off] - włącza/wyłącza Anty Infinite Ammo");
  6354. SendClientMessage(playerid, WHITE, "/ajet [on/off] - włącza/wyłącza Anty Jetpack");
  6355. SendClientMessage(playerid, WHITE, "/aping [on/off] - włącza/wyłącza Anty Ping");
  6356. SendClientMessage(playerid, RED, "Wpisz /accmd 2, by ujrzeć następną listę komend");
  6357. }
  6358. case 2:
  6359. {
  6360. SendClientMessage(playerid, GREEN, "Strona 2. - Lista komend Admina *AntyCheat*");
  6361. SendClientMessage(playerid, WHITE, "/ask [on/off] - włącza/wyłącza Anty Spawn Kill");
  6362. SendClientMessage(playerid, WHITE, "/adb [on/off] - włącza/wyłącza Anty Drive-By");
  6363. SendClientMessage(playerid, WHITE, "/adt [on/off] - włącza/wyłącza Anty Drive-Thru");
  6364. SendClientMessage(playerid, WHITE, "/ack [on/off] - włącza/wyłącza Anty Car Kill");
  6365. SendClientMessage(playerid, WHITE, "/ahk [on/off] - włącza/wyłącza Anty Heli Kill");
  6366. SendClientMessage(playerid, WHITE, "/ahydrak [on/off] - włącza/wyłącza Anty Hydra Kill");
  6367. SendClientMessage(playerid, WHITE, "/azbron [ID Broni] [1 - on, 0 - off] - włącza/wyłącza ochronę na broń");
  6368. SendClientMessage(playerid, WHITE, "/amaxping [Max] - ustawia ile można mieć max. ping'u (większy - kick)");
  6369. SendClientMessage(playerid, RED, "Wpisz /accmd 3, by ujrzeć następną listę komend");
  6370. }
  6371. case 3:
  6372. {
  6373. SendClientMessage(playerid, GREEN, "Strona 3. - Lista komend Admina *AntyCheat*");
  6374. SendClientMessage(playerid, YELLOW, "/amaxafk [Minuty] - ustawia ile można najdłużej stać w miejscu");
  6375. SendClientMessage(playerid, YELLOW, "/askczas [Sekundy] - ustawia ile sekund ma być Spawn Protection");
  6376. SendClientMessage(playerid, YELLOW, "/aflood [on/off] - włącza/wyłącza Anty Flood");
  6377. SendClientMessage(playerid, YELLOW, "/aarmour [on/off] - włącza/wyłącza Anty Armour");
  6378. SendClientMessage(playerid, YELLOW, "/avdk [on/off] - włącza/wyłącza Anty Vehicle Driver Killing");
  6379. SendClientMessage(playerid, YELLOW, "/ark [on/off] - włącza/wyłącza Anty Rustler Kill");
  6380. SendClientMessage(playerid, YELLOW, "/arhinok [on/off] - włącza/wyłącza Anty Rhino Kill");
  6381. SendClientMessage(playerid, YELLOW, "/asparrowk [on/off] - włącza/wyłącza Anty SeaSparrow");
  6382. SendClientMessage(playerid, RED, "Wpisz /accmd 4, by ujrzeć następną listę komend");
  6383. }
  6384. case 4:
  6385. {
  6386. SendClientMessage(playerid, GREEN, "Strona 4. - Lista komend Admina *AntyCheat*");
  6387. SendClientMessage(playerid, YELLOW, "/ahunterk [on/off] - włącza/wyłącza Anty Hunter Kill");
  6388. SendClientMessage(playerid, YELLOW, "/apause [on/off] - włącza/wyłącza Anty Pause");
  6389. SendClientMessage(playerid, YELLOW, "/aplanek [on/off] - włącza/wyłącza Anty Plane Kill");
  6390. SendClientMessage(playerid, YELLOW, "/avehgod [on/off] - włącza/wyłącza Anty Vehicle God");
  6391. SendClientMessage(playerid, YELLOW, "/arepeat [on/off] - włącza/wyłącza Anty Repeat");
  6392. SendClientMessage(playerid, YELLOW, "/abluzgi [on/off] - włącza/wyłącza Anty Bluzgi");
  6393. SendClientMessage(playerid, YELLOW, "/aglitch [on/off] - włącza/wyłącza Anty Glitch");
  6394. SendClientMessage(playerid, YELLOW, "/afsprint [on/off] - włącza/wyłącza Anty Faster Sprint");
  6395. SendClientMessage(playerid, RED, "Wpisz /accmd 5, by ujrzeć następną listę komend");
  6396. }
  6397. case 5:
  6398. {
  6399. SendClientMessage(playerid, GREEN, "Strona 5. - Lista komend Admina *AntyCheat*");
  6400. SendClientMessage(playerid, YELLOW, "/alsprint [on/off] - włącza/wyłącza Anty Long Sprint");
  6401. SendClientMessage(playerid, YELLOW, "/amaxsprint [czas] - Ustawia po jakim czasie sprintowania (w sekundach), gracz ma się przewrócić");
  6402. SendClientMessage(playerid, YELLOW, "/abhop [on/off] - włącza/wyłącza Anty Bunny Hop");
  6403. SendClientMessage(playerid, YELLOW, "/amaxhop [Ilość] - Ustawia po którym skoku gracz ma się przewracać");
  6404. SendClientMessage(playerid, YELLOW, "/aemoic [on/off] - włącza/wyłącza Anty Emotikonki w IC");
  6405. SendClientMessage(playerid, YELLOW, "/anj [on/off] - włącza/wyłącza Anty Ninja Jacking");
  6406. SendClientMessage(playerid, YELLOW, "/acaps [on/off] - włącza/wyłącza Anty Caps Lock");
  6407. SendClientMessage(playerid, YELLOW, "/aip [on/off] - włącza/wyłącza Anty Reklame Serwera");
  6408. SendClientMessage(playerid, RED, "Wpisz /accmd 6, by ujrzeć następną listę komend");
  6409. }
  6410. case 6:
  6411. {
  6412. SendClientMessage(playerid, GREEN, "Strona 6. - Lista komend Admina *AntyCheat*");
  6413. SendClientMessage(playerid, YELLOW, "/apodsz [on/off] - włącza/wyłącza Anty Podszywanie");
  6414. SendClientMessage(playerid, YELLOW, "/amoney [on/off] - włącza/wyłącza Anty Money Cheat");
  6415. SendClientMessage(playerid, YELLOW, "/atp [on/off] - włącza/wyłącza Anty Teleport");
  6416. SendClientMessage(playerid, YELLOW, "/afreezeveh [on/off] - włącza/wyłącza Anty Freeze Vehicles");
  6417. SendClientMessage(playerid, YELLOW, "/abugua [on/off] - włącza/wyłącza Anty Bug Unlimited Ammo");
  6418. SendClientMessage(playerid, YELLOW, "/acmdflood [on/off] - włącza/wyłącza Anty Command Flood");
  6419. SendClientMessage(playerid, YELLOW, "/avehwarp [on/off] - włącza/wyłącza Anty Vehicle Warp");
  6420. SendClientMessage(playerid, YELLOW, "/aairbrake [on/off] - włącza/wyłącza Anty Air Brake");
  6421. SendClientMessage(playerid, RED, "Wpisz /accmd 7, by ujrzeć następną listę komend");
  6422. }
  6423. case 7:
  6424. {
  6425. SendClientMessage(playerid, GREEN, "Strona 7. - Lista komend Admina *AntyCheat*");
  6426. SendClientMessage(playerid, YELLOW, "/apmflood [on/off] - włącza/wyłącza Anty Private Message Flood");
  6427. SendClientMessage(playerid, YELLOW, "/anadbluzgi [on/off] - włącza/wyłącza Anty Nadmierne Bluzgi");
  6428. SendClientMessage(playerid, YELLOW, "/amaxdb [Ilość] - ustawia ile razy można zabić z Drive-By");
  6429. SendClientMessage(playerid, YELLOW, "/amaxdt [Ilość] - ustawia ile razy można zabić z Drive-Thru");
  6430. SendClientMessage(playerid, YELLOW, "/amaxhydrak [Ilość] - ustawia ile razy można zabić Hydrą");
  6431. SendClientMessage(playerid, YELLOW, "/amaxrhinok [Ilość] - ustawia ile razy można zabić Czołgiem");
  6432. SendClientMessage(playerid, YELLOW, "/amaxsparrowk [Ilość] - ustawia ile razy można zabić SeaSparrow'em");
  6433. SendClientMessage(playerid, YELLOW, "/amaxplanek [Ilość] - ustawia ile razy można zabić samolotem");
  6434. SendClientMessage(playerid, RED, "Wpisz /accmd 8, by ujrzeć następną listę komend");
  6435. }
  6436. case 8:
  6437. {
  6438. SendClientMessage(playerid, GREEN, "Strona 8. - Lista komend Admina *AntyCheat*");
  6439. SendClientMessage(playerid, YELLOW, "/amaxhunterk [Ilość] - ustawia ile razy można zabić Hunter'em");
  6440. SendClientMessage(playerid, YELLOW, "/amaxrustlerk [Ilość] - ustawia ile razy można zabić Rustler'em");
  6441. SendClientMessage(playerid, YELLOW, "/amaxsk [Ilość] - ustawia ile razy można zabić na Spawn'ie");
  6442. SendClientMessage(playerid, YELLOW, "/amaxhk [Ilość] - ustawia ile razy można zabić śmigłem helikoptera");
  6443. SendClientMessage(playerid, YELLOW, "/amaxglitch [Ilość] - ustawia ile razy można zrobić Glitch'a");
  6444. SendClientMessage(playerid, YELLOW, "/agod [on/off] - włącza/wyłącza Anty God Mode");
  6445. SendClientMessage(playerid, YELLOW, "/accbc [Tag] [1 - Kick, 2 - Ban] [Powód] - Dodajesz klan na Czarną Listę");
  6446. SendClientMessage(playerid, YELLOW, "/accbl [Nick] [1 - Kick, 2 - Ban] [Powód] - Dodajesz gracza na Czarną Listę");
  6447. SendClientMessage(playerid, RED, "Wpisz /accmd 9, by ujrzeć następną listę komend");
  6448. }
  6449. case 9:
  6450. {
  6451. SendClientMessage(playerid, GREEN, "Strona 9. - Lista komend Admina *AntyCheat*");
  6452. SendClientMessage(playerid, YELLOW, "/ainfioxy [on/off] - włącza/wyłącza Anty Infinite Oxygen");
  6453. SendClientMessage(playerid, YELLOW, "/awunder [on/off] - włącza/wyłącza Anty Walk Underwater");
  6454. SendClientMessage(playerid, YELLOW, "/accbcr [Tag] - usuwasz klan z Czarnej Listy");
  6455. SendClientMessage(playerid, YELLOW, "/accblr [Nick] - usuwasz gracza z Czarnej Listy");
  6456. SendClientMessage(playerid, YELLOW, "/acrash [on/off] - włącza/wyłącza Anty Crash");
  6457. SendClientMessage(playerid, YELLOW, "/accbluzg [Słowo] - nakładasz cenzure na podane słowo");
  6458. SendClientMessage(playerid, YELLOW, "/accemo [Emotikonka] - dodajesz emotikonke do Anty Emoty w IC");
  6459. SendClientMessage(playerid, YELLOW, "/accbluzgr [Słowo] - usuwasz cenzurę z podanego słowa");
  6460. SendClientMessage(playerid, RED, "Wpisz /accmd 10, by ujrzeć następną listę komend");
  6461. }
  6462. case 10:
  6463. {
  6464. SendClientMessage(playerid, GREEN, "Strona 10. - Lista komend Admina *AntyCheat*");
  6465. SendClientMessage(playerid, YELLOW, "/accemor [Emotikonka] - usuwasz emotikonke z Anty Emoty w IC");
  6466. SendClientMessage(playerid, RED, "Koniec komend Admina *AntyCheat*");
  6467. }
  6468. }
  6469. }
  6470. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  6471. return 1;
  6472. }
  6473.  
  6474. dcmd_karahelp(playerid, cmdtext[])
  6475. {
  6476. #pragma unused cmdtext
  6477. if(IsPlayerAdmin(playerid))
  6478. {
  6479. SendClientMessage(playerid, GREEN, "Komenda /acckara [Nazwa] [Rodzaj (1 - Kick, 2 - Ban, 3 - Ban na host)]");
  6480. SendClientMessage(playerid, YELLOW, "Tą komendą możemy ustawić wymiar kary za dany czyn");
  6481. SendClientMessage(playerid, YELLOW, "W 'Nazwa' wpisujemy np. 'aspeed', 'aairbrake', 'apodsz' itd.");
  6482. SendClientMessage(playerid, YELLOW, "Czemu tak? Bo tak nazywa się komenda na wyłączanie/włączanie tej opcji");
  6483. SendClientMessage(playerid, YELLOW, "Czyli powyższe przykłady były z komend: /aspeed, /aairbrake i /apodsz");
  6484. SendClientMessage(playerid, YELLOW, "W 'Rodzaj' wpisujemy co ma się dziać, gdy Anty Cheat wykryje u kogos np. Speed Hack'a, czyli piszemy");
  6485. SendClientMessage(playerid, YELLOW, "/acckara aspeed 2 - za Speed Hack'a będzie banować, a jak wpiszemy np. /acckara ajet 1, to będzie kickować za Jetpack'a");
  6486. }
  6487. else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
  6488. return 1;
  6489. }
  6490.  
  6491.  
  6492. IsPlayerOnBike(playerid)
  6493. {
  6494. if(IsPlayerInAnyVehicle(playerid))
  6495. {
  6496. new vehicleclass = GetVehicleModel(GetPlayerVehicleID(playerid));
  6497. switch(vehicleclass)
  6498. {
  6499. case 448: return 1;
  6500. case 461: return 1;
  6501. case 462: return 1;
  6502. case 463: return 1;
  6503. case 468: return 1;
  6504. case 521: return 1;
  6505. case 522: return 1;
  6506. case 523: return 1;
  6507. case 581: return 1;
  6508. case 586: return 1;
  6509. case 471: return 1;
  6510. }
  6511. }
  6512. return 0;
  6513. }
  6514.  
  6515. IsPlayerInBoat(playerid)
  6516. {
  6517. if(IsPlayerInAnyVehicle(playerid))
  6518. {
  6519. new vehicleclass = GetVehicleModel(GetPlayerVehicleID(playerid));
  6520. switch(vehicleclass)
  6521. {
  6522. case 430: return 1;
  6523. case 446: return 1;
  6524. case 452: return 1;
  6525. case 453: return 1;
  6526. case 454: return 1;
  6527. case 472: return 1;
  6528. case 473: return 1;
  6529. case 484: return 1;
  6530. case 493: return 1;
  6531. case 595: return 1;
  6532. }
  6533. }
  6534. return 0;
  6535. }
  6536.  
  6537. IsPlayerInHelicopter(playerid)
  6538. {
  6539. if(IsPlayerInAnyVehicle(playerid))
  6540. {
  6541. new vehicleclass = GetVehicleModel(GetPlayerVehicleID(playerid));
  6542. switch(vehicleclass)
  6543. {
  6544. case 501: return 1;
  6545. case 465: return 1;
  6546. case 417: return 1;
  6547. case 425: return 1;
  6548. case 447: return 1;
  6549. case 469: return 1;
  6550. case 487: return 1;
  6551. case 488: return 1;
  6552. case 497: return 1;
  6553. case 548: return 1;
  6554. case 563: return 1;
  6555. }
  6556. }
  6557. return 0;
  6558. }
  6559.  
  6560. IsPlayerOnBicycle(playerid)
  6561. {
  6562. if(IsPlayerInAnyVehicle(playerid))
  6563. {
  6564. new vehicleclass = GetVehicleModel(GetPlayerVehicleID(playerid));
  6565. switch(vehicleclass)
  6566. {
  6567. case 481: return 1;
  6568. case 509: return 1;
  6569. case 510: return 1;
  6570. }
  6571. }
  6572. return 0;
  6573. }
  6574.  
  6575. strtok(const string[], &index, seperator = ' ')
  6576. {
  6577. new length = strlen(string);
  6578. new offset = index;
  6579. new result[256];
  6580. while((index < length) && (string[index] != seperator) && ((index - offset) < (sizeof(result) - 1)))
  6581. {
  6582. result[index - offset] = string[index];
  6583. index++;
  6584. }
  6585.  
  6586. result[index - offset] = EOS;
  6587. if((index < length) && (string[index] == seperator))
  6588. {
  6589. index++;
  6590. }
  6591. return result;
  6592. }
  6593.  
  6594. PlayerToPoint(Float:radi, playerid, Float:xxx, Float:yyy, Float:zzz)
  6595. {
  6596. new Float:oldposx, Float:oldposy, Float:oldposz;
  6597. new Float:tempposx, Float:tempposy, Float:tempposz;
  6598. GetPlayerPos(playerid, oldposx, oldposy, oldposz);
  6599. tempposx = (oldposx -xxx);
  6600. tempposy = (oldposy -yyy);
  6601. tempposz = (oldposz -zzz);
  6602. if(((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi))) return 1;
  6603. return 0;
  6604. }
  6605.  
  6606. GetPointDistanceToPoint(Float:xx, Float:yy, Float:x2, Float:y2)
  6607. {
  6608. new Float:dis;
  6609. dis = floatsqroot((xx-x2)*(xx-x2)+(yy-y2)*(yy-y2));
  6610. return floatround(dis);
  6611. }
  6612.  
  6613. DisableWord(const badword[], text[], bool:type)
  6614. {
  6615. for(new i=0; i<strlen(text); i++)
  6616. if(strfind(text[i], badword, true) == 0)
  6617. {
  6618. for(new a=0; a<strlen(text); a++)
  6619. {
  6620. if(a >= i && a < i+strlen(badword) && type == false) text[a]='*';
  6621. else if(a >= i && a < i+strlen(badword) && type == true) text[a]=' ';
  6622. }
  6623. }
  6624. }
  6625.  
  6626. VehicleDriverID(vehicleid)
  6627. {
  6628. for(new i; i<HighestID+1; i++)
  6629. if((IsPlayerConnected(i)) && (GetPlayerVehicleID(i) == vehicleid) && (GetPlayerState(i) == 2)) return i;
  6630. return -1;
  6631. }
  6632.  
  6633. Kickuj(playerid, const Powod[])
  6634. {
  6635. GetPlayerName(playerid, Nick, sizeof(Nick));
  6636. format(str, sizeof(str), "%s został/a wyrzucony/na za %s", Nick, Powod);
  6637. SendClientMessageToAll(RED, str);
  6638. print(str);
  6639. Kick(playerid);
  6640. }
  6641.  
  6642. Banuj(playerid, const Powod[])
  6643. {
  6644. GetPlayerName(playerid, Nick, sizeof(Nick));
  6645. format(str, sizeof(str), "%s został/ła zbanowany/na za %s", Nick, Powod);
  6646. SendClientMessageToAll(RED, str);
  6647. print(str);
  6648. Ban(playerid);
  6649. }
  6650.  
  6651. BanujHost(playerid, const Powod[])
  6652. {
  6653. new idx;
  6654. new IP[24];
  6655. new IPS[2];
  6656. GetPlayerIp(playerid, IP, sizeof(IP));
  6657. IPS[0] = strval(strtok(IP, idx, '.'));
  6658. IPS[1] = strval(strtok(IP, idx, '.'));
  6659. format(str, sizeof(str), "banip %i.%i.*.*", IPS[0], IPS[1]);
  6660. SendRconCommand(str);
  6661. GetPlayerName(playerid, Nick, sizeof(Nick));
  6662. format(str, sizeof(str), "%s został/ła zbanowany/na na host (%i.%i.*.*) za %s", Nick, IPS[0], IPS[1], Powod);
  6663. SendClientMessageToAll(RED, str);
  6664. Kick(playerid);
  6665. }
  6666.  
  6667. GetXYInFrontOfPlayer(playerid, &Float:xx, &Float:yy, Float:distance)
  6668. {
  6669. new Float:a;
  6670. GetPlayerPos(playerid, xx, yy, a);
  6671. GetPlayerFacingAngle(playerid, a);
  6672. xx += (distance * floatsin(-a, degrees));
  6673. yy += (distance * floatcos(-a, degrees));
  6674. }
  6675.  
  6676. GetPlayerClan(playerid)
  6677. {
  6678. new playername[MAX_PLAYER_NAME];
  6679. GetPlayerName(playerid, playername, sizeof(playername));
  6680. new mrk1 = -1;
  6681. new mrk2 = -1;
  6682. new clan[16];
  6683. if(strfind(playername, "[", false) != -1 && strfind(playername, "]", false) != -1)
  6684. {
  6685. for(new i; i<strlen(playername); i++)
  6686. {
  6687. new character[3];
  6688. strmid(character, playername, i, i+1, 2);
  6689. if(strcmp(character, "[", false) == 0) mrk1 = i;
  6690. else if(strcmp(character, "]", false) == 0) mrk2 = i+1;
  6691. }
  6692. if(mrk1 != -1 && mrk2 != -1)
  6693. {
  6694. strmid(clan, playername, mrk1, mrk2);
  6695. return clan;
  6696. }
  6697. else
  6698. {
  6699. mrk1 = 0;
  6700. mrk2 = 0;
  6701. }
  6702. }
  6703. if(strfind(playername, "_", false) != -1)
  6704. {
  6705. for(new i; i<strlen(playername); i++)
  6706. {
  6707. new character[3];
  6708. strmid(character, playername, i, i+1, 2);
  6709. if(strcmp(character, "_", false) == 0)
  6710. if(mrk1 == 0) mrk1 = i;
  6711. else mrk2 = i+1;
  6712. }
  6713. if(mrk1 != 0 && mrk2 != 0)
  6714. {
  6715. strmid(clan, playername, mrk1, mrk2);
  6716. return clan;
  6717. }
  6718. else
  6719. {
  6720. mrk1 = 0;
  6721. mrk2 = 0;
  6722. }
  6723. }
  6724. return clan;
  6725. }
  6726.  
  6727. IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy)
  6728. {
  6729. new Float:xx, Float:yy, Float:zz;
  6730. GetPlayerPos(playerid, xx, yy, zz);
  6731. if(xx > minx && xx < maxx && yy > miny && yy < maxy) return 1;
  6732. return 0;
  6733. }
  6734.  
  6735. IsPlayerUnderwater(playerid)
  6736. {
  6737. new Float:x, Float:y, Float:z;
  6738. GetPlayerPos(playerid, x, y, z);
  6739. if(IsPlayerInArea(playerid, -1584, -1360, -1826, -1642) && z <= -1) return 1;
  6740. if(IsPlayerInArea(playerid, -3000, -2832, 354, 2942) && z <= -1) return 1;
  6741. if(IsPlayerInArea(playerid, -2832, -2704, 1296, 2192) && z <= -1) return 1;
  6742. if(IsPlayerInArea(playerid, -2704, -2240, 1360, 2224) && z <= -1) return 1;
  6743. if(IsPlayerInArea(playerid, -2240, -2000, 1432, 2224) && z <= -1) return 1;
  6744. if(IsPlayerInArea(playerid, -2064, -2000, 1312, 1432) && z <= -1) return 1;
  6745. if(IsPlayerInArea(playerid, -2000, -1712, 1392, 1792) && z <= -1) return 1;
  6746. if(IsPlayerInArea(playerid, -2000, -1724, 1792, 2016) && z <= -1) return 1;
  6747. if(IsPlayerInArea(playerid, -2000, -1836, 2016, 2176) && z <= -1) return 1;
  6748. if(IsPlayerInArea(playerid, -2000, -1920, 2176, 2224) && z <= -1) return 1;
  6749. if(IsPlayerInArea(playerid, -2208, -2000, 2224, 2432) && z <= -1) return 1;
  6750. if(IsPlayerInArea(playerid, -2208, -2000, 2432, 2576) && z <= -1) return 1;
  6751. if(IsPlayerInArea(playerid, -2352, -2208, 2448, 2576) && z <= -1) return 1;
  6752. if(IsPlayerInArea(playerid, -2312, -2208, 2344, 2448) && z <= -1) return 1;
  6753. if(IsPlayerInArea(playerid, -1712, -1600, 1360, 1792) && z <= -1) return 1;
  6754. if(IsPlayerInArea(playerid, -1664, -1600, 1280, 1360) && z <= -1) return 1;
  6755. if(IsPlayerInArea(playerid, -1600, -1440, 1280, 1696) && z <= -1) return 1;
  6756. if(IsPlayerInArea(playerid, -1600, -1488, 1696, 1744) && z <= -1) return 1;
  6757. if(IsPlayerInArea(playerid, -1440, -1232, 1440, 1696) && z <= -1) return 1;
  6758. if(IsPlayerInArea(playerid, -1232, -1136, 1440, 1616) && z <= -1) return 1;
  6759. if(IsPlayerInArea(playerid, -1440, -1136, 1280, 1440) && z <= -1) return 1;
  6760. if(IsPlayerInArea(playerid, -1136, -1104, 1248, 1424) && z <= -1) return 1;
  6761. if(IsPlayerInArea(playerid, -1520, -1104, 1104, 1248) && z <= -1) return 1;
  6762. if(IsPlayerInArea(playerid, -1520, -1136, 1248, 1280) && z <= -1) return 1;
  6763. if(IsPlayerInArea(playerid, -1600, -1520, 1200, 1280) && z <= -1) return 1;
  6764. if(IsPlayerInArea(playerid, -1104, -932, 944, 1136) && z <= -1) return 1;
  6765. if(IsPlayerInArea(playerid, -1424, -1104, 944, 1104) && z <= -1) return 1;
  6766. if(IsPlayerInArea(playerid, -1520, -1424, 1008, 1104) && z <= -1) return 1;
  6767. if(IsPlayerInArea(playerid, -1424, -896, 784, 944) && z <= -1) return 1;
  6768. if(IsPlayerInArea(playerid, -1488, -896, 560, 784) && z <= -1) return 1;
  6769. if(IsPlayerInArea(playerid, -1536, -1488, 560, 672) && z <= -1) return 1;
  6770. if(IsPlayerInArea(playerid, -896, -768, 208, 732) && z <= -1) return 1;
  6771. if(IsPlayerInArea(playerid, -1600, -896, 208, 560) && z <= -1) return 1;
  6772. if(IsPlayerInArea(playerid, -992, -912, -144, 208) && z <= -1) return 1;
  6773. if(IsPlayerInArea(playerid, -1748, -1180, -816, -592) && z <= -1) return 1;
  6774. if(IsPlayerInArea(playerid, -1458, -1054, -592, -432) && z <= -1) return 1;
  6775. if(IsPlayerInArea(playerid, -3000, -2880, -1186, -822) && z <= -1) return 1;
  6776. if(IsPlayerInArea(playerid, -2880, -2768, -1168, -896) && z <= -1) return 1;
  6777. if(IsPlayerInArea(playerid, -2768, -2656, -1106, -830) && z <= -1) return 1;
  6778. if(IsPlayerInArea(playerid, -2656, -2512, -1024, -816) && z <= -1) return 1;
  6779. if(IsPlayerInArea(playerid, -2512, -2400, -976, -816) && z <= -1) return 1;
  6780. if(IsPlayerInArea(playerid, -2400, -2256, -1056, -864) && z <= -1) return 1;
  6781. if(IsPlayerInArea(playerid, -2256, -2144, -1198, -950) && z <= -1) return 1;
  6782. if(IsPlayerInArea(playerid, -2144, -2000, -1408, -1072) && z <= -1) return 1;
  6783. if(IsPlayerInArea(playerid, -2000, -1856, -1536, -1280) && z <= -1) return 1;
  6784. if(IsPlayerInArea(playerid, -1856, -1728, -1648, -1440) && z <= -1) return 1;
  6785. if(IsPlayerInArea(playerid, -1728, -1584, -1728, -1520) && z <= -1) return 1;
  6786. if(IsPlayerInArea(playerid, -1360, -1216, -2052, -1696) && z <= -1) return 1;
  6787. if(IsPlayerInArea(playerid, -1440, -1360, -2110, -1950) && z <= -1) return 1;
  6788. if(IsPlayerInArea(playerid, -1484, -1440, -2180, -2036) && z <= -1) return 1;
  6789. if(IsPlayerInArea(playerid, -1572, -1484, -2352, -2096) && z <= -1) return 1;
  6790. if(IsPlayerInArea(playerid, -1216, -1104, -2208, -1864) && z <= -1) return 1;
  6791. if(IsPlayerInArea(playerid, -1232, -1120, -2304, -2208) && z <= -1) return 1;
  6792. if(IsPlayerInArea(playerid, -1270, -1178, -2480, -2304) && z <= -1) return 1;
  6793. if(IsPlayerInArea(playerid, -1260, -1188, -2560, -2480) && z <= -1) return 1;
  6794. if(IsPlayerInArea(playerid, -1262, -1146, -2640, -2560) && z <= -1) return 1;
  6795. if(IsPlayerInArea(playerid, -1216, -1080, -2752, -2640) && z <= -1) return 1;
  6796. if(IsPlayerInArea(playerid, -1200, -928, -2896, -2752) && z <= -1) return 1;
  6797. if(IsPlayerInArea(playerid, -2016, -1520, -3000, -2704) && z <= -1) return 1;
  6798. if(IsPlayerInArea(playerid, -1520, -1376, -3000, -2894) && z <= -1) return 1;
  6799. if(IsPlayerInArea(playerid, -2256, -2016, -3000, -2772) && z <= -1) return 1;
  6800. if(IsPlayerInArea(playerid, -2448, -2256, -3000, -2704) && z <= -1) return 1;
  6801. if(IsPlayerInArea(playerid, -3000, -2448, -3000, -2704) && z <= -1) return 1;
  6802. if(IsPlayerInArea(playerid, -3000, -2516, -2704, -2576) && z <= -1) return 1;
  6803. if(IsPlayerInArea(playerid, -3000, -2600, -2576, -2448) && z <= -1) return 1;
  6804. if(IsPlayerInArea(playerid, -3000, -2628, -2448, -2144) && z <= -1) return 1;
  6805. if(IsPlayerInArea(playerid, -3000, -2670, -2144, -2032) && z <= -1) return 1;
  6806. if(IsPlayerInArea(playerid, -3000, -2802, -2032, -1904) && z <= -1) return 1;
  6807. if(IsPlayerInArea(playerid, -3000, -2920, -1904, -1376) && z <= -1) return 1;
  6808. if(IsPlayerInArea(playerid, -3000, -2936, -1376, -1186) && z <= -1) return 1;
  6809. if(IsPlayerInArea(playerid, -768, -720, 208, 672) && z <= -1) return 1;
  6810. if(IsPlayerInArea(playerid, -720, -656, 256, 672) && z <= -1) return 1;
  6811. if(IsPlayerInArea(playerid, -656, -496, 276, 576) && z <= -1) return 1;
  6812. if(IsPlayerInArea(playerid, -496, -384, 298, 566) && z <= -1) return 1;
  6813. if(IsPlayerInArea(playerid, -384, -224, 254, 530) && z <= -1) return 1;
  6814. if(IsPlayerInArea(playerid, -224, -64, 212, 528) && z <= -1) return 1;
  6815. if(IsPlayerInArea(playerid, -64, 64, 140, 544) && z <= -1) return 1;
  6816. if(IsPlayerInArea(playerid, 64, 304, 140, 544) && z <= -1) return 1;
  6817. if(IsPlayerInArea(playerid, 120, 304, 544, 648) && z <= -1) return 1;
  6818. if(IsPlayerInArea(playerid, 304, 384, 164, 608) && z <= -1) return 1;
  6819. if(IsPlayerInArea(playerid, 384, 464, 222, 630) && z <= -1) return 1;
  6820. if(IsPlayerInArea(playerid, 464, 544, 304, 656) && z <= -1) return 1;
  6821. if(IsPlayerInArea(playerid, 544, 800, 362, 646) && z <= -1) return 1;
  6822. if(IsPlayerInArea(playerid, 800, 944, 432, 704) && z <= -1) return 1;
  6823. if(IsPlayerInArea(playerid, 944, 976, 480, 720) && z <= -1) return 1;
  6824. if(IsPlayerInArea(playerid, 976, 1040, 528, 704) && z <= -1) return 1;
  6825. if(IsPlayerInArea(playerid, 1040, 1280, 560, 672) && z <= -1) return 1;
  6826. if(IsPlayerInArea(playerid, 1280, 1472, 480, 640) && z <= -1) return 1;
  6827. if(IsPlayerInArea(playerid, 1472, 1616, 432, 640) && z <= -1) return 1;
  6828. if(IsPlayerInArea(playerid, 1616, 1824, 416, 608) && z <= -1) return 1;
  6829. if(IsPlayerInArea(playerid, 1824, 2160, 400, 576) && z <= -1) return 1;
  6830. if(IsPlayerInArea(playerid, 2160, 2432, 400, 512) && z <= -1) return 1;
  6831. if(IsPlayerInArea(playerid, 2432, 2560, 368, 544) && z <= -1) return 1;
  6832. if(IsPlayerInArea(playerid, 2560, 2720, 336, 576) && z <= -1) return 1;
  6833. if(IsPlayerInArea(playerid, 2720, 2816, 196, 560) && z <= -1) return 1;
  6834. if(IsPlayerInArea(playerid, 2816, 3000, 160, 576) && z <= -1) return 1;
  6835. if(IsPlayerInArea(playerid, 2860, 3000, -80, 160) && z <= -1) return 1;
  6836. if(IsPlayerInArea(playerid, -1376, -544, -3000, -2896) && z <= -1) return 1;
  6837. if(IsPlayerInArea(playerid, -928, -544, -2896, -2800) && z <= -1) return 1;
  6838. if(IsPlayerInArea(playerid, -544, -320, -3000, -2824) && z <= -1) return 1;
  6839. if(IsPlayerInArea(playerid, -320, -192, -3000, -2876) && z <= -1) return 1;
  6840. if(IsPlayerInArea(playerid, -192, 160, -3000, -2920) && z <= -1) return 1;
  6841. if(IsPlayerInArea(playerid, -128, 160, -2920, -2872) && z <= -1) return 1;
  6842. if(IsPlayerInArea(playerid, -60, 160, -2872, -2816) && z <= -1) return 1;
  6843. if(IsPlayerInArea(playerid, -4, 160, -2816, -2672) && z <= -1) return 1;
  6844. if(IsPlayerInArea(playerid, 40, 160, -2672, -2256) && z <= -1) return 1;
  6845. if(IsPlayerInArea(playerid, 16, 40, -2560, -2256) && z <= -1) return 1;
  6846. if(IsPlayerInArea(playerid, -32, 16, -2440, -2256) && z <= -1) return 1;
  6847. if(IsPlayerInArea(playerid, -32, 16, -2488, -2440) && z <= -1) return 1;
  6848. if(IsPlayerInArea(playerid, -96, -32, -2440, -2256) && z <= -1) return 1;
  6849. if(IsPlayerInArea(playerid, -168, -96, -2384, -2256) && z <= -1) return 1;
  6850. if(IsPlayerInArea(playerid, -224, 160, -2256, -2080) && z <= -1) return 1;
  6851. if(IsPlayerInArea(playerid, -248, 160, -2080, -1968) && z <= -1) return 1;
  6852. if(IsPlayerInArea(playerid, -280, -128, -1968, -1824) && z <= -1) return 1;
  6853. if(IsPlayerInArea(playerid, -264, -248, -2016, -1968) && z <= -1) return 1;
  6854. if(IsPlayerInArea(playerid, -264, -128, -1824, -1640) && z <= -1) return 1;
  6855. if(IsPlayerInArea(playerid, -128, 124, -1768, -1648) && z <= -1) return 1;
  6856. if(IsPlayerInArea(playerid, -128, 140, -1792, -1768) && z <= -1) return 1;
  6857. if(IsPlayerInArea(playerid, -128, 148, -1968, -1792) && z <= -1) return 1;
  6858. if(IsPlayerInArea(playerid, 160, 592, -2128, -1976) && z <= -1) return 1;
  6859. if(IsPlayerInArea(playerid, 480, 592, -1976, -1896) && z <= -1) return 1;
  6860. if(IsPlayerInArea(playerid, 352, 480, -1976, -1896) && z <= -1) return 1;
  6861. if(IsPlayerInArea(playerid, 232, 352, -1976, -1880) && z <= -1) return 1;
  6862. if(IsPlayerInArea(playerid, 160, 232, -1976, -1872) && z <= -1) return 1;
  6863. if(IsPlayerInArea(playerid, 160, 592, -2784, -2128) && z <= -1) return 1;
  6864. if(IsPlayerInArea(playerid, 160, 592, -3000, -2784) && z <= -1) return 1;
  6865. if(IsPlayerInArea(playerid, 352, 544, -1896, -1864) && z <= -1) return 1;
  6866. if(IsPlayerInArea(playerid, 592, 976, -2112, -1896) && z <= -1) return 1;
  6867. if(IsPlayerInArea(playerid, 736, 904, -1896, -1864) && z <= -1) return 1;
  6868. if(IsPlayerInArea(playerid, 704, 736, -1896, -1728) && z <= -1) return 1;
  6869. if(IsPlayerInArea(playerid, 736, 752, -1864, -1728) && z <= -1) return 1;
  6870. if(IsPlayerInArea(playerid, 688, 752, -1728, -1480) && z <= -1) return 1;
  6871. if(IsPlayerInArea(playerid, 592, 976, -2192, -2112) && z <= -1) return 1;
  6872. if(IsPlayerInArea(playerid, 592, 1008, -2328, -2192) && z <= -1) return 1;
  6873. if(IsPlayerInArea(playerid, 592, 1008, -3000, -2328) && z <= -1) return 1;
  6874. if(IsPlayerInArea(playerid, 1008, 1072, -3000, -2368) && z <= -1) return 1;
  6875. if(IsPlayerInArea(playerid, 1008, 1064, -2368, -2320) && z <= -1) return 1;
  6876. if(IsPlayerInArea(playerid, 1072, 1288, -2672, -2412) && z <= -1) return 1;
  6877. if(IsPlayerInArea(playerid, 1072, 1288, -2768, -2672) && z <= -1) return 1;
  6878. if(IsPlayerInArea(playerid, 1072, 1288, -3000, -2768) && z <= -1) return 1;
  6879. if(IsPlayerInArea(playerid, 1288, 1448, -3000, -2760) && z <= -1) return 1;
  6880. if(IsPlayerInArea(playerid, 1288, 1392, -2760, -2688) && z <= -1) return 1;
  6881. if(IsPlayerInArea(playerid, 1448, 1720, -3000, -2754) && z <= -1) return 1;
  6882. if(IsPlayerInArea(playerid, 1720, 2064, -3000, -2740) && z <= -1) return 1;
  6883. if(IsPlayerInArea(playerid, 2064, 2144, -3000, -2742) && z <= -1) return 1;
  6884. if(IsPlayerInArea(playerid, 2144, 2208, -3000, -2700) && z <= -1) return 1;
  6885. if(IsPlayerInArea(playerid, 2208, 2272, -3000, -2684) && z <= -1) return 1;
  6886. if(IsPlayerInArea(playerid, 2272, 2376, -3000, -2312) && z <= -1) return 1;
  6887. if(IsPlayerInArea(playerid, 2376, 2472, -2480, -2240) && z <= -1) return 1;
  6888. if(IsPlayerInArea(playerid, 2472, 2776, -2376, -2240) && z <= -1) return 1;
  6889. if(IsPlayerInArea(playerid, 2776, 2856, -2336, -2192) && z <= -1) return 1;
  6890. if(IsPlayerInArea(playerid, 2808, 3000, -2560, -2336) && z <= -1) return 1;
  6891. if(IsPlayerInArea(playerid, 2856, 3000, -2336, -2136) && z <= -1) return 1;
  6892. if(IsPlayerInArea(playerid, 2888, 3000, -2136, -1840) && z <= -1) return 1;
  6893. if(IsPlayerInArea(playerid, 2872, 2888, -1880, -1840) && z <= -1) return 1;
  6894. if(IsPlayerInArea(playerid, 2864, 3000, -1840, -1720) && z <= -1) return 1;
  6895. if(IsPlayerInArea(playerid, 2888, 3000, -1720, -1664) && z <= -1) return 1;
  6896. if(IsPlayerInArea(playerid, 2896, 3000, -1664, -1592) && z <= -1) return 1;
  6897. if(IsPlayerInArea(playerid, 2920, 3000, -1592, -1504) && z <= -1) return 1;
  6898. if(IsPlayerInArea(playerid, 2940, 3000, -1504, -1344) && z <= -1) return 1;
  6899. if(IsPlayerInArea(playerid, 2908, 3000, -1344, -1096) && z <= -1) return 1;
  6900. if(IsPlayerInArea(playerid, 2912, 3000, -1096, -800) && z <= -1) return 1;
  6901. if(IsPlayerInArea(playerid, 2918, 3000, -800, -472) && z <= -1) return 1;
  6902. if(IsPlayerInArea(playerid, 2872, 3000, -472, -376) && z <= -1) return 1;
  6903. if(IsPlayerInArea(playerid, 2912, 3000, -376, -80) && z <= -1) return 1;
  6904. if(IsPlayerInArea(playerid, 2864, 2912, -376, -80) && z <= -1) return 1;
  6905. if(IsPlayerInArea(playerid, 2560, 2680, -2560, -2456) && z <= -1) return 1;
  6906. if(IsPlayerInArea(playerid, -992, -848, -422, -238) && z <= -1) return 1;
  6907. if(IsPlayerInArea(playerid, -848, -512, -384, -256) && z <= -1) return 1;
  6908. if(IsPlayerInArea(playerid, -512, -320, -400, -272) && z <= -1) return 1;
  6909. if(IsPlayerInArea(playerid, -320, -208, -400, -304) && z <= -1) return 1;
  6910. if(IsPlayerInArea(playerid, -384, -100, -528, -460) && z <= -1) return 1;
  6911. if(IsPlayerInArea(playerid, -384, -64, -704, -528) && z <= -1) return 1;
  6912. if(IsPlayerInArea(playerid, -336, -80, -816, -704) && z <= -1) return 1;
  6913. if(IsPlayerInArea(playerid, -208, -48, -936, -816) && z <= -1) return 1;
  6914. if(IsPlayerInArea(playerid, -48, 144, -936, -874) && z <= -1) return 1;
  6915. if(IsPlayerInArea(playerid, 32, 128, -1024, -936) && z <= -1) return 1;
  6916. if(IsPlayerInArea(playerid, -16, 96, -1104, -1024) && z <= -1) return 1;
  6917. if(IsPlayerInArea(playerid, 0, 144, -1200, -1104) && z <= -1) return 1;
  6918. if(IsPlayerInArea(playerid, -16, 128, -1296, -1200) && z <= -1) return 1;
  6919. if(IsPlayerInArea(playerid, -16, 112, -1440, -1296) && z <= -1) return 1;
  6920. if(IsPlayerInArea(playerid, 0, 96, -1552, -1440) && z <= -1) return 1;
  6921. if(IsPlayerInArea(playerid, -128, 96, -1648, -1552) && z <= -1) return 1;
  6922. if(IsPlayerInArea(playerid, -64, 32, -672, -576) && z <= -1) return 1;
  6923. if(IsPlayerInArea(playerid, -64, 96, -576, -496) && z <= -1) return 1;
  6924. if(IsPlayerInArea(playerid, 16, 144, -496, -392) && z <= -1) return 1;
  6925. if(IsPlayerInArea(playerid, 144, 240, -448, -384) && z <= -1) return 1;
  6926. if(IsPlayerInArea(playerid, 240, 304, -432, -320) && z <= -1) return 1;
  6927. if(IsPlayerInArea(playerid, 304, 352, -384, -288) && z <= -1) return 1;
  6928. if(IsPlayerInArea(playerid, 352, 400, -332, -252) && z <= -1) return 1;
  6929. if(IsPlayerInArea(playerid, 400, 464, -298, -234) && z <= -1) return 1;
  6930. if(IsPlayerInArea(playerid, 464, 576, -288, -208) && z <= -1) return 1;
  6931. if(IsPlayerInArea(playerid, 576, 688, -272, -192) && z <= -1) return 1;
  6932. if(IsPlayerInArea(playerid, 688, 768, -256, -144) && z <= -1) return 1;
  6933. if(IsPlayerInArea(playerid, 768, 800, -212, -124) && z <= -1) return 1;
  6934. if(IsPlayerInArea(playerid, 800, 976, -180, -92) && z <= -1) return 1;
  6935. if(IsPlayerInArea(playerid, 976, 1200, -160, -64) && z <= -1) return 1;
  6936. if(IsPlayerInArea(playerid, 1200, 1264, -244, -108) && z <= -1) return 1;
  6937. if(IsPlayerInArea(playerid, 1264, 1344, -330, -158) && z <= -1) return 1;
  6938. if(IsPlayerInArea(playerid, 1344, 1456, -320, -208) && z <= -1) return 1;
  6939. if(IsPlayerInArea(playerid, 1456, 1520, -282, -198) && z <= -1) return 1;
  6940. if(IsPlayerInArea(playerid, 1520, 1648, -208, -80) && z <= -1) return 1;
  6941. if(IsPlayerInArea(playerid, 1568, 1648, -80, 16) && z <= -1) return 1;
  6942. if(IsPlayerInArea(playerid, 1648, 1792, -64, 16) && z <= -1) return 1;
  6943. if(IsPlayerInArea(playerid, 1792, 1888, -128, 0) && z <= -1) return 1;
  6944. if(IsPlayerInArea(playerid, 1888, 2016, -268, -20) && z <= -1) return 1;
  6945. if(IsPlayerInArea(playerid, 2016, 2144, -256, -16) && z <= -1) return 1;
  6946. if(IsPlayerInArea(playerid, 2144, 2224, -272, -96) && z <= -1) return 1;
  6947. if(IsPlayerInArea(playerid, 2224, 2288, -272, -144) && z <= -1) return 1;
  6948. if(IsPlayerInArea(playerid, 2048, 2144, -16, 112) && z <= -1) return 1;
  6949. if(IsPlayerInArea(playerid, 2096, 2224, 112, 240) && z <= -1) return 1;
  6950. if(IsPlayerInArea(playerid, 2098, 2242, 240, 400) && z <= -1) return 1;
  6951. if(IsPlayerInArea(playerid, 2160, 2432, 512, 576) && z <= -1) return 1;
  6952. if(IsPlayerInArea(playerid, 2432, 2560, 544, 592) && z <= -1) return 1;
  6953. if(IsPlayerInArea(playerid, 2560, 2720, 576, 608) && z <= -1) return 1;
  6954. if(IsPlayerInArea(playerid, 2720, 2816, 560, 608) && z <= -1) return 1;
  6955. if(IsPlayerInArea(playerid, 2816, 3000, 576, 752) && z <= -1) return 1;
  6956. if(IsPlayerInArea(playerid, -656, -496, 576, 672) && z <= -1) return 1;
  6957. if(IsPlayerInArea(playerid, -740, -484, 672, 784) && z <= -1) return 1;
  6958. if(IsPlayerInArea(playerid, -720, -384, 784, 1008) && z <= -1) return 1;
  6959. if(IsPlayerInArea(playerid, -640, -400, 1008, 1216) && z <= -1) return 1;
  6960. if(IsPlayerInArea(playerid, -880, -688, 1296, 1408) && z <= -1) return 1;
  6961. if(IsPlayerInArea(playerid, -688, -400, 1216, 1424) && z <= -1) return 1;
  6962. if(IsPlayerInArea(playerid, -672, -448, 1424, 1616) && z <= -1) return 1;
  6963. if(IsPlayerInArea(playerid, -832, -512, 1616, 1728) && z <= -1) return 1;
  6964. if(IsPlayerInArea(playerid, -984, -832, 1632, 1712) && z <= -1) return 1;
  6965. if(IsPlayerInArea(playerid, -832, -576, 1728, 2032) && z <= -1) return 1;
  6966. if(IsPlayerInArea(playerid, -1248, -1088, 2536, 2824) && z <= 39) return 1;
  6967. if(IsPlayerInArea(playerid, -1088, -1040, 2544, 2800) && z <= 39) return 1;
  6968. if(IsPlayerInArea(playerid, -1040, -832, 2544, 2760) && z <= 39) return 1;
  6969. if(IsPlayerInArea(playerid, -1088, -832, 2416, 2544) && z <= 39) return 1;
  6970. if(IsPlayerInArea(playerid, -1040, -864, 2304, 2416) && z <= 39) return 1;
  6971. if(IsPlayerInArea(playerid, -1024, -864, 2144, 2304) && z <= 39) return 1;
  6972. if(IsPlayerInArea(playerid, -1072, -1024, 2152, 2264) && z <= 39) return 1;
  6973. if(IsPlayerInArea(playerid, -1200, -1072, 2114, 2242) && z <= 39) return 1;
  6974. if(IsPlayerInArea(playerid, -976, -848, 2016, 2144) && z <= 39) return 1;
  6975. if(IsPlayerInArea(playerid, -864, -448, 2144, 2272) && z <= 39) return 1;
  6976. if(IsPlayerInArea(playerid, -700, -484, 2272, 2320) && z <= 39) return 1;
  6977. if(IsPlayerInArea(playerid, -608, -528, 2320, 2352) && z <= 39) return 1;
  6978. if(IsPlayerInArea(playerid, -848, -816, 2044, 2144) && z <= 39) return 1;
  6979. if(IsPlayerInArea(playerid, -816, -496, 2060, 2144) && z <= 39) return 1;
  6980. if(IsPlayerInArea(playerid, -604, -484, 2036, 2060) && z <= 39) return 1;
  6981. if(IsPlayerInArea(playerid, 2376, 3000, -3000, -2688) && z <= -1) return 1;
  6982. if(IsPlayerInArea(playerid, 2520, 3000, -2688, -2560) && z <= -1) return 1;
  6983. if(IsPlayerInArea(playerid, -1328, -1200, 2082, 2210) && z <= 39) return 1;
  6984. if(IsPlayerInArea(playerid, -1400, -1328, 2074, 2150) && z <= 39) return 1;
  6985. if(IsPlayerInArea(playerid, -1248, -992, -144, 208) && z <= -1) return 1;
  6986. if(IsPlayerInArea(playerid, -1176, -992, -432, -144) && z <= -1) return 1;
  6987. if(IsPlayerInArea(playerid, -1792, -1728, -592, -144) && z <= -1) return 1;
  6988. if(IsPlayerInArea(playerid, -1792, -1600, 170, 274) && z <= -1) return 1;
  6989. if(IsPlayerInArea(playerid, -1600, -1256, 168, 208) && z <= -1) return 1;
  6990. if(IsPlayerInArea(playerid, -1574, -1550, -44, 108) && z <= -1) return 1;
  6991. if(IsPlayerInArea(playerid, 1928, 2012, -1222, -1178) && z <= 17) return 1;
  6992. if(IsPlayerInArea(playerid, -464, -280, -1908, -1832) && z <= -1) return 1;
  6993. if(IsPlayerInArea(playerid, 2248, 2260, -1182, -1170) && z <= 22) return 1;
  6994. if(IsPlayerInArea(playerid, 2292, 2328, -1432, -1400) && z <= 21) return 1;
  6995. if(IsPlayerInArea(playerid, 1888, 2036, 1468, 1700) && z <= 7) return 1;
  6996. if(IsPlayerInArea(playerid, 2090, 2146, 1670, 1694) && z <= 8) return 1;
  6997. if(IsPlayerInArea(playerid, 2110, 2178, 1234, 1330) && z <= 6) return 1;
  6998. if(IsPlayerInArea(playerid, 2108, 2180, 1084, 1172) && z <= 6) return 1;
  6999. if(IsPlayerInArea(playerid, 2506, 2554, 1546, 1586) && z <= 7) return 1;
  7000. if(IsPlayerInArea(playerid, 1270, 1290, -812, -800) && z <= 85) return 1;
  7001. if(IsPlayerInArea(playerid, 1084, 1104, -684, -660) && z <= 111) return 1;
  7002. if(IsPlayerInArea(playerid, 502, 522, -1114, -1098) && z <= 77) return 1;
  7003. if(IsPlayerInArea(playerid, 214, 246, -1208, -1180) && z <= 73) return 1;
  7004. if(IsPlayerInArea(playerid, 218, 238, -1180, -1172) && z <= 73) return 1;
  7005. if(IsPlayerInArea(playerid, 178, 206, -1244, -1216) && z <= 76) return 1;
  7006. if(IsPlayerInArea(playerid, 1744, 1792, 2780, 2868) && z <= 7) return 1;
  7007. if(IsPlayerInArea(playerid, -2832, 3000, 2888, 3000) && z <= -1) return 1;
  7008. if(IsPlayerInArea(playerid, -2778, -2662, -522, -414) && z <= 1) return 1;
  7009. if(IsPlayerInArea(playerid, 1520, 1572, -252, -208) && z <= -1) return 1;
  7010. if(IsPlayerInArea(playerid, 2922, 3000, 752, 2888) && z <= -1) return 1;
  7011. if(IsPlayerInArea(playerid, -3000, -2910, -446, 354) && z <= -1) return 1;
  7012. if(IsPlayerInArea(playerid, -2434, -2294, 2224, 2340) && z <= -1) return 1;
  7013. if(IsPlayerInArea(playerid, -2294, -2208, 2224, 2312) && z <= -1) return 1;
  7014. if(IsPlayerInArea(playerid, 2058, 2110, 1868, 1964) && z <= 8) return 1;
  7015. if(IsPlayerInArea(playerid, -3000, -2832, 2942, 3000) && z <= -1) return 1;
  7016. if(IsPlayerInArea(playerid, -550, -494, 2004, 2036) && z <= 39) return 1;
  7017. if(IsPlayerInArea(playerid, -896, -776, 842, 954) && z <= -1) return 1;
  7018. if(IsPlayerInArea(playerid, -2240, -2088, 1336, 1432) && z <= -1) return 1;
  7019. if(IsPlayerInArea(playerid, -3000, -2930, -822, -446) && z <= -1) return 1;
  7020. if(IsPlayerInArea(playerid, -2660, -2520, 2224, 2264) && z <= -1) return 1;
  7021. if(IsPlayerInArea(playerid, -378, -138, -460, -400) && z <= -1) return 1;
  7022. if(IsPlayerInArea(playerid, 1836, 1888, 1468, 1568) && z <= 7) return 1;
  7023. if(IsPlayerInArea(playerid, 890, 902, -1106, -1098) && z <= 21) return 1;
  7024. if(IsPlayerInArea(playerid, 1202, 1278, -2414, -2334) && z <= 7) return 1;
  7025. if(IsPlayerInArea(playerid, 1072, 1128, -2412, -2372) && z <= -1) return 1;
  7026. if(IsPlayerInArea(playerid, -848, -664, -2082, -1866) && z <= 4) return 1;
  7027. if(IsPlayerInArea(playerid, -664, -464, -1924, -1864) && z <= 4) return 1;
  7028. if(IsPlayerInArea(playerid, -1484, -1424, 784, 840) && z <= -1) return 1;
  7029. if(IsPlayerInArea(playerid, -496, -432, 566, 642) && z <= -1) return 1;
  7030. if(IsPlayerInArea(playerid, 250, 818, 2808, 2888) && z <= -1) return 1;
  7031. if(IsPlayerInArea(playerid, 2502, 2670, -2240, -2120) && z <= -1) return 1;
  7032. if(IsPlayerInArea(playerid, 1270, 1290, -780, -768) && z <= 1081) return 1;
  7033. if(IsPlayerInArea(playerid, 88, 120, 544, 572) && z <= -1) return 1;
  7034. if(IsPlayerInArea(playerid, 1856, 1888, -202, -158) && z <= -1) return 1;
  7035. if(IsPlayerInArea(playerid, -2048, -2004, -962, -758) && z <= 29) return 1;
  7036. if(IsPlayerInArea(playerid, 2564, 2604, 2370, 2398) && z <= 15) return 1;
  7037. if(IsPlayerInArea(playerid, -2522, -2382, -310, -234) && z <= 34) return 1;
  7038. if(IsPlayerInArea(playerid, 2872, 2888, -2136, -2120) && z <= -1) return 1;
  7039. if(IsPlayerInArea(playerid, 2760, 2776, -2240, -2232) && z <= -1) return 1;
  7040. if(IsPlayerInArea(playerid, -2992, -2832, 1184, 2112) && z <= -1) return 1;
  7041. if(IsPlayerInArea(playerid, -2832, -2704, 1296, 2192) && z <= -1) return 1;
  7042. if(IsPlayerInArea(playerid, -2704, -2240, 1360, 2224) && z <= -1) return 1;
  7043. if(IsPlayerInArea(playerid, -2240, -2000, 1440, 2224) && z <= -1) return 1;
  7044. if(IsPlayerInArea(playerid, -2064, -2000, 1312, 1440) && z <= -1) return 1;
  7045. if(IsPlayerInArea(playerid, -2000, -1712, 1392, 1792) && z <= -1) return 1;
  7046. if(IsPlayerInArea(playerid, -2000, -1760, 1792, 2016) && z <= -1) return 1;
  7047. if(IsPlayerInArea(playerid, -2000, -1856, 2016, 2176) && z <= -1) return 1;
  7048. if(IsPlayerInArea(playerid, -2000, -1920, 2176, 2224) && z <= -1) return 1;
  7049. if(IsPlayerInArea(playerid, -2208, -2000, 2224, 2432) && z <= -1) return 1;
  7050. if(IsPlayerInArea(playerid, -2208, -2000, 2432, 2560) && z <= -1) return 1;
  7051. if(IsPlayerInArea(playerid, -2352, -2208, 2448, 2560) && z <= -1) return 1;
  7052. if(IsPlayerInArea(playerid, -2304, -2208, 2352, 2448) && z <= -1) return 1;
  7053. if(IsPlayerInArea(playerid, -1712, -1600, 1360, 1792) && z <= -1) return 1;
  7054. if(IsPlayerInArea(playerid, -1664, -1600, 1280, 1360) && z <= -1) return 1;
  7055. if(IsPlayerInArea(playerid, -1600, -1440, 1280, 1696) && z <= -1) return 1;
  7056. if(IsPlayerInArea(playerid, -1600, -1536, 1696, 1728) && z <= -1) return 1;
  7057. if(IsPlayerInArea(playerid, -1440, -1232, 1440, 1680) && z <= -1) return 1;
  7058. if(IsPlayerInArea(playerid, -1232, -1136, 1440, 1616) && z <= -1) return 1;
  7059. if(IsPlayerInArea(playerid, -1440, -1136, 1280, 1440) && z <= -1) return 1;
  7060. if(IsPlayerInArea(playerid, -1136, -1104, 1248, 1424) && z <= -1) return 1;
  7061. if(IsPlayerInArea(playerid, -1520, -1104, 1104, 1248) && z <= -1) return 1;
  7062. if(IsPlayerInArea(playerid, -1520, -1136, 1248, 1280) && z <= -1) return 1;
  7063. if(IsPlayerInArea(playerid, -1600, -1520, 1200, 1280) && z <= -1) return 1;
  7064. if(IsPlayerInArea(playerid, -1104, -960, 944, 1136) && z <= -1) return 1;
  7065. if(IsPlayerInArea(playerid, -1424, -1104, 944, 1104) && z <= -1) return 1;
  7066. if(IsPlayerInArea(playerid, -1520, -1424, 1008, 1104) && z <= -1) return 1;
  7067. if(IsPlayerInArea(playerid, -1424, -896, 784, 944) && z <= -1) return 1;
  7068. if(IsPlayerInArea(playerid, -1488, -896, 560, 784) && z <= -1) return 1;
  7069. if(IsPlayerInArea(playerid, -1536, -1488, 560, 672) && z <= -1) return 1;
  7070. if(IsPlayerInArea(playerid, -896, -768, 208, 720) && z <= -1) return 1;
  7071. if(IsPlayerInArea(playerid, -1600, -896, 208, 560) && z <= -1) return 1;
  7072. if(IsPlayerInArea(playerid, -992, -912, -144, 208) && z <= -1) return 1;
  7073. if(IsPlayerInArea(playerid, -1744, -1184, -816, -592) && z <= -1) return 1;
  7074. if(IsPlayerInArea(playerid, -1456, -1056, -592, -432) && z <= -1) return 1;
  7075. if(IsPlayerInArea(playerid, -3000, -2880, -1184, -816) && z <= -1) return 1;
  7076. if(IsPlayerInArea(playerid, -2880, -2768, -1168, -896) && z <= -1) return 1;
  7077. if(IsPlayerInArea(playerid, -2768, -2656, -1088, -848) && z <= -1) return 1;
  7078. if(IsPlayerInArea(playerid, -2656, -2512, -1024, -816) && z <= -1) return 1;
  7079. if(IsPlayerInArea(playerid, -2512, -2400, -976, -816) && z <= -1) return 1;
  7080. if(IsPlayerInArea(playerid, -2400, -2256, -1056, -864) && z <= -1) return 1;
  7081. if(IsPlayerInArea(playerid, -2256, -2144, -1184, -976) && z <= -1) return 1;
  7082. if(IsPlayerInArea(playerid, -2144, -2000, -1408, -1072) && z <= -1) return 1;
  7083. if(IsPlayerInArea(playerid, -2000, -1856, -1536, -1280) && z <= -1) return 1;
  7084. if(IsPlayerInArea(playerid, -1856, -1728, -1648, -1440) && z <= -1) return 1;
  7085. if(IsPlayerInArea(playerid, -1728, -1584, -1728, -1520) && z <= -1) return 1;
  7086. if(IsPlayerInArea(playerid, -1584, -1344, -1792, -1648) && z <= -1) return 1;
  7087. if(IsPlayerInArea(playerid, -1344, -1216, -2032, -1712) && z <= -1) return 1;
  7088. if(IsPlayerInArea(playerid, -1440, -1344, -2112, -1968) && z <= -1) return 1;
  7089. if(IsPlayerInArea(playerid, -1488, -1440, -2192, -2048) && z <= -1) return 1;
  7090. if(IsPlayerInArea(playerid, -1568, -1488, -2352, -2096) && z <= -1) return 1;
  7091. if(IsPlayerInArea(playerid, -1216, -1104, -2208, -1888) && z <= -1) return 1;
  7092. if(IsPlayerInArea(playerid, -1232, -1120, -2304, -2208) && z <= -1) return 1;
  7093. if(IsPlayerInArea(playerid, -1248, -1184, -2480, -2304) && z <= -1) return 1;
  7094. if(IsPlayerInArea(playerid, -1248, -1200, -2560, -2480) && z <= -1) return 1;
  7095. if(IsPlayerInArea(playerid, -1248, -1152, -2640, -2560) && z <= -1) return 1;
  7096. if(IsPlayerInArea(playerid, -1200, -1088, -2752, -2640) && z <= -1) return 1;
  7097. if(IsPlayerInArea(playerid, -1200, -928, -2896, -2752) && z <= -1) return 1;
  7098. if(IsPlayerInArea(playerid, -2016, -1520, -2976, -2704) && z <= -1) return 1;
  7099. if(IsPlayerInArea(playerid, -1520, -1376, -2976, -2896) && z <= -1) return 1;
  7100. if(IsPlayerInArea(playerid, -2256, -2016, -2992, -2768) && z <= -1) return 1;
  7101. if(IsPlayerInArea(playerid, -2448, -2256, -2992, -2704) && z <= -1) return 1;
  7102. if(IsPlayerInArea(playerid, -2912, -2448, -2992, -2704) && z <= -1) return 1;
  7103. if(IsPlayerInArea(playerid, -3000, -2516, -2704, -2576) && z <= -1) return 1;
  7104. if(IsPlayerInArea(playerid, -3000, -2600, -2576, -2448) && z <= -1) return 1;
  7105. if(IsPlayerInArea(playerid, -3000, -2628, -2448, -2144) && z <= -1) return 1;
  7106. if(IsPlayerInArea(playerid, -3000, -2670, -2144, -2032) && z <= -1) return 1;
  7107. if(IsPlayerInArea(playerid, -3000, -2836, -2032, -1904) && z <= -1) return 1;
  7108. if(IsPlayerInArea(playerid, -3000, -2924, -1904, -1376) && z <= -1) return 1;
  7109. if(IsPlayerInArea(playerid, -3000, -2960, -1376, -1184) && z <= -1) return 1;
  7110. if(IsPlayerInArea(playerid, -2960, -2936, -1244, -1184) && z <= -1) return 1;
  7111. if(IsPlayerInArea(playerid, -768, -720, 224, 656) && z <= -1) return 1;
  7112. if(IsPlayerInArea(playerid, -720, -656, 256, 672) && z <= -1) return 1;
  7113. if(IsPlayerInArea(playerid, -656, -496, 288, 576) && z <= -1) return 1;
  7114. if(IsPlayerInArea(playerid, -496, -384, 304, 560) && z <= -1) return 1;
  7115. if(IsPlayerInArea(playerid, -384, -224, 272, 512) && z <= -1) return 1;
  7116. if(IsPlayerInArea(playerid, -224, -64, 224, 480) && z <= -1) return 1;
  7117. if(IsPlayerInArea(playerid, -64, 64, 160, 496) && z <= -1) return 1;
  7118. if(IsPlayerInArea(playerid, 64, 304, 144, 544) && z <= -1) return 1;
  7119. if(IsPlayerInArea(playerid, 144, 304, 544, 608) && z <= -1) return 1;
  7120. if(IsPlayerInArea(playerid, 304, 384, 176, 608) && z <= -1) return 1;
  7121. if(IsPlayerInArea(playerid, 384, 464, 240, 624) && z <= -1) return 1;
  7122. if(IsPlayerInArea(playerid, 464, 544, 304, 624) && z <= -1) return 1;
  7123. if(IsPlayerInArea(playerid, 544, 800, 368, 640) && z <= -1) return 1;
  7124. if(IsPlayerInArea(playerid, 800, 944, 432, 672) && z <= -1) return 1;
  7125. if(IsPlayerInArea(playerid, 944, 976, 480, 688) && z <= -1) return 1;
  7126. if(IsPlayerInArea(playerid, 976, 1040, 528, 688) && z <= -1) return 1;
  7127. if(IsPlayerInArea(playerid, 1040, 1280, 560, 656) && z <= -1) return 1;
  7128. if(IsPlayerInArea(playerid, 1280, 1472, 480, 640) && z <= -1) return 1;
  7129. if(IsPlayerInArea(playerid, 1472, 1616, 432, 640) && z <= -1) return 1;
  7130. if(IsPlayerInArea(playerid, 1616, 1824, 416, 608) && z <= -1) return 1;
  7131. if(IsPlayerInArea(playerid, 1824, 2160, 400, 576) && z <= -1) return 1;
  7132. if(IsPlayerInArea(playerid, 2160, 2432, 400, 512) && z <= -1) return 1;
  7133. if(IsPlayerInArea(playerid, 2432, 2560, 368, 544) && z <= -1) return 1;
  7134. if(IsPlayerInArea(playerid, 2560, 2720, 336, 576) && z <= -1) return 1;
  7135. if(IsPlayerInArea(playerid, 2720, 2816, 304, 560) && z <= -1) return 1;
  7136. if(IsPlayerInArea(playerid, 2816, 2992, 160, 576) && z <= -1) return 1;
  7137. if(IsPlayerInArea(playerid, 2864, 2992, -80, 160) && z <= -1) return 1;
  7138. if(IsPlayerInArea(playerid, -1376, -544, -2976, -2896) && z <= -1) return 1;
  7139. if(IsPlayerInArea(playerid, -928, -544, -2896, -2800) && z <= -1) return 1;
  7140. if(IsPlayerInArea(playerid, -544, -320, -2976, -2840) && z <= -1) return 1;
  7141. if(IsPlayerInArea(playerid, -320, -192, -2976, -2880) && z <= -1) return 1;
  7142. if(IsPlayerInArea(playerid, -192, 160, -2976, -2920) && z <= -1) return 1;
  7143. if(IsPlayerInArea(playerid, -104, 160, -2920, -2872) && z <= -1) return 1;
  7144. if(IsPlayerInArea(playerid, -32, 160, -2872, -2816) && z <= -1) return 1;
  7145. if(IsPlayerInArea(playerid, 16, 160, -2816, -2672) && z <= -1) return 1;
  7146. if(IsPlayerInArea(playerid, 40, 160, -2672, -2256) && z <= -1) return 1;
  7147. if(IsPlayerInArea(playerid, 16, 40, -2536, -2256) && z <= -1) return 1;
  7148. if(IsPlayerInArea(playerid, -32, 16, -2440, -2256) && z <= -1) return 1;
  7149. if(IsPlayerInArea(playerid, -16, 16, -2488, -2440) && z <= -1) return 1;
  7150. if(IsPlayerInArea(playerid, -96, -32, -2424, -2256) && z <= -1) return 1;
  7151. if(IsPlayerInArea(playerid, -168, -96, -2384, -2256) && z <= -1) return 1;
  7152. if(IsPlayerInArea(playerid, -224, 160, -2256, -2080) && z <= -1) return 1;
  7153. if(IsPlayerInArea(playerid, -248, 160, -2080, -1968) && z <= -1) return 1;
  7154. if(IsPlayerInArea(playerid, -280, -128, -1968, -1824) && z <= -1) return 1;
  7155. if(IsPlayerInArea(playerid, -264, -248, -2016, -1968) && z <= -1) return 1;
  7156. if(IsPlayerInArea(playerid, -264, -128, -1824, -1648) && z <= -1) return 1;
  7157. if(IsPlayerInArea(playerid, -128, 112, -1768, -1648) && z <= -1) return 1;
  7158. if(IsPlayerInArea(playerid, -128, 120, -1792, -1768) && z <= -1) return 1;
  7159. if(IsPlayerInArea(playerid, -128, 136, -1968, -1792) && z <= -1) return 1;
  7160. if(IsPlayerInArea(playerid, 160, 592, -2128, -1976) && z <= -1) return 1;
  7161. if(IsPlayerInArea(playerid, 480, 592, -1976, -1896) && z <= -1) return 1;
  7162. if(IsPlayerInArea(playerid, 352, 480, -1976, -1896) && z <= -1) return 1;
  7163. if(IsPlayerInArea(playerid, 232, 352, -1976, -1880) && z <= -1) return 1;
  7164. if(IsPlayerInArea(playerid, 160, 232, -1976, -1872) && z <= -1) return 1;
  7165. if(IsPlayerInArea(playerid, 136, 160, -1968, -1872) && z <= -1) return 1;
  7166. if(IsPlayerInArea(playerid, 160, 592, -2784, -2128) && z <= -1) return 1;
  7167. if(IsPlayerInArea(playerid, 160, 592, -2976, -2784) && z <= -1) return 1;
  7168. if(IsPlayerInArea(playerid, 352, 544, -1896, -1864) && z <= -1) return 1;
  7169. if(IsPlayerInArea(playerid, 592, 976, -2112, -1896) && z <= -1) return 1;
  7170. if(IsPlayerInArea(playerid, 736, 904, -1896, -1864) && z <= -1) return 1;
  7171. if(IsPlayerInArea(playerid, 704, 736, -1888, -1728) && z <= -1) return 1;
  7172. if(IsPlayerInArea(playerid, 736, 752, -1808, -1728) && z <= -1) return 1;
  7173. if(IsPlayerInArea(playerid, 696, 744, -1728, -1480) && z <= -1) return 1;
  7174. if(IsPlayerInArea(playerid, 592, 976, -2192, -2112) && z <= -1) return 1;
  7175. if(IsPlayerInArea(playerid, 592, 1008, -2328, -2192) && z <= -1) return 1;
  7176. if(IsPlayerInArea(playerid, 592, 1008, -2976, -2328) && z <= -1) return 1;
  7177. if(IsPlayerInArea(playerid, 1008, 1072, -2976, -2368) && z <= -1) return 1;
  7178. if(IsPlayerInArea(playerid, 1008, 1064, -2368, -2328) && z <= -1) return 1;
  7179. if(IsPlayerInArea(playerid, 1072, 1288, -2672, -2376) && z <= -1) return 1;
  7180. if(IsPlayerInArea(playerid, 1072, 1288, -2768, -2672) && z <= -1) return 1;
  7181. if(IsPlayerInArea(playerid, 1072, 1288, -2976, -2768) && z <= -1) return 1;
  7182. if(IsPlayerInArea(playerid, 1288, 1448, -2976, -2760) && z <= -1) return 1;
  7183. if(IsPlayerInArea(playerid, 1288, 1392, -2760, -2688) && z <= -1) return 1;
  7184. if(IsPlayerInArea(playerid, 1448, 1720, -2976, -2760) && z <= -1) return 1;
  7185. if(IsPlayerInArea(playerid, 1720, 2064, -2976, -2760) && z <= -1) return 1;
  7186. if(IsPlayerInArea(playerid, 2064, 2144, -2976, -2744) && z <= -1) return 1;
  7187. if(IsPlayerInArea(playerid, 2144, 2208, -2976, -2704) && z <= -1) return 1;
  7188. if(IsPlayerInArea(playerid, 2208, 2272, -2976, -2696) && z <= -1) return 1;
  7189. if(IsPlayerInArea(playerid, 2272, 2376, -2976, -2312) && z <= -1) return 1;
  7190. if(IsPlayerInArea(playerid, 2376, 2472, -2464, -2240) && z <= -1) return 1;
  7191. if(IsPlayerInArea(playerid, 2472, 2776, -2376, -2240) && z <= -1) return 1;
  7192. if(IsPlayerInArea(playerid, 2776, 2856, -2336, -2192) && z <= -1) return 1;
  7193. if(IsPlayerInArea(playerid, 2808, 3000, -2560, -2336) && z <= -1) return 1;
  7194. if(IsPlayerInArea(playerid, 2856, 3000, -2336, -2136) && z <= -1) return 1;
  7195. if(IsPlayerInArea(playerid, 2888, 3000, -2136, -1840) && z <= -1) return 1;
  7196. if(IsPlayerInArea(playerid, 2872, 2888, -1880, -1840) && z <= -1) return 1;
  7197. if(IsPlayerInArea(playerid, 2864, 3000, -1840, -1720) && z <= -1) return 1;
  7198. if(IsPlayerInArea(playerid, 2888, 3000, -1720, -1664) && z <= -1) return 1;
  7199. if(IsPlayerInArea(playerid, 2896, 3000, -1664, -1592) && z <= -1) return 1;
  7200. if(IsPlayerInArea(playerid, 2920, 3000, -1592, -1504) && z <= -1) return 1;
  7201. if(IsPlayerInArea(playerid, 2944, 3000, -1504, -1344) && z <= -1) return 1;
  7202. if(IsPlayerInArea(playerid, 2944, 3000, -1344, -1096) && z <= -1) return 1;
  7203. if(IsPlayerInArea(playerid, 2936, 2944, -1280, -1096) && z <= -1) return 1;
  7204. if(IsPlayerInArea(playerid, 2928, 2936, -1224, -1096) && z <= -1) return 1;
  7205. if(IsPlayerInArea(playerid, 2920, 2928, -1160, -1096) && z <= -1) return 1;
  7206. if(IsPlayerInArea(playerid, 2912, 2920, -1128, -1096) && z <= -1) return 1;
  7207. if(IsPlayerInArea(playerid, 2912, 3000, -1096, -800) && z <= -1) return 1;
  7208. if(IsPlayerInArea(playerid, 2936, 3000, -800, -472) && z <= -1) return 1;
  7209. if(IsPlayerInArea(playerid, 2920, 3000, -472, -376) && z <= -1) return 1;
  7210. if(IsPlayerInArea(playerid, 2912, 3000, -376, -80) && z <= -1) return 1;
  7211. if(IsPlayerInArea(playerid, 2864, 2912, -344, -80) && z <= -1) return 1;
  7212. if(IsPlayerInArea(playerid, 2560, 2680, -2560, -2456) && z <= -1) return 1;
  7213. if(IsPlayerInArea(playerid, -992, -848, -384, -240) && z <= -1) return 1;
  7214. if(IsPlayerInArea(playerid, -848, -512, -384, -256) && z <= -1) return 1;
  7215. if(IsPlayerInArea(playerid, -512, -320, -400, -288) && z <= -1) return 1;
  7216. if(IsPlayerInArea(playerid, -320, -208, -400, -304) && z <= -1) return 1;
  7217. if(IsPlayerInArea(playerid, -384, -112, -528, -400) && z <= -1) return 1;
  7218. if(IsPlayerInArea(playerid, -384, -64, -704, -528) && z <= -1) return 1;
  7219. if(IsPlayerInArea(playerid, -336, -80, -816, -704) && z <= -1) return 1;
  7220. if(IsPlayerInArea(playerid, -208, -48, -928, -816) && z <= -1) return 1;
  7221. if(IsPlayerInArea(playerid, -48, 144, -928, -880) && z <= -1) return 1;
  7222. if(IsPlayerInArea(playerid, 32, 128, -1024, -928) && z <= -1) return 1;
  7223. if(IsPlayerInArea(playerid, -16, 96, -1104, -1024) && z <= -1) return 1;
  7224. if(IsPlayerInArea(playerid, 0, 144, -1200, -1104) && z <= -1) return 1;
  7225. if(IsPlayerInArea(playerid, -16, 128, -1296, -1200) && z <= -1) return 1;
  7226. if(IsPlayerInArea(playerid, -16, 96, -1440, -1296) && z <= -1) return 1;
  7227. if(IsPlayerInArea(playerid, 0, 80, -1552, -1440) && z <= -1) return 1;
  7228. if(IsPlayerInArea(playerid, -128, 96, -1648, -1552) && z <= -1) return 1;
  7229. if(IsPlayerInArea(playerid, -64, 32, -672, -576) && z <= -1) return 1;
  7230. if(IsPlayerInArea(playerid, -48, 80, -576, -496) && z <= -1) return 1;
  7231. if(IsPlayerInArea(playerid, 16, 144, -496, -400) && z <= -1) return 1;
  7232. if(IsPlayerInArea(playerid, 144, 240, -448, -384) && z <= -1) return 1;
  7233. if(IsPlayerInArea(playerid, 240, 304, -432, -320) && z <= -1) return 1;
  7234. if(IsPlayerInArea(playerid, 304, 352, -384, -288) && z <= -1) return 1;
  7235. if(IsPlayerInArea(playerid, 352, 400, -336, -272) && z <= -1) return 1;
  7236. if(IsPlayerInArea(playerid, 400, 464, -304, -240) && z <= -1) return 1;
  7237. if(IsPlayerInArea(playerid, 464, 576, -288, -208) && z <= -1) return 1;
  7238. if(IsPlayerInArea(playerid, 576, 688, -272, -192) && z <= -1) return 1;
  7239. if(IsPlayerInArea(playerid, 688, 768, -256, -144) && z <= -1) return 1;
  7240. if(IsPlayerInArea(playerid, 768, 800, -208, -128) && z <= -1) return 1;
  7241. if(IsPlayerInArea(playerid, 800, 976, -176, -96) && z <= -1) return 1;
  7242. if(IsPlayerInArea(playerid, 976, 1200, -160, -64) && z <= -1) return 1;
  7243. if(IsPlayerInArea(playerid, 1200, 1264, -240, -112) && z <= -1) return 1;
  7244. if(IsPlayerInArea(playerid, 1264, 1344, -320, -176) && z <= -1) return 1;
  7245. if(IsPlayerInArea(playerid, 1344, 1456, -320, -208) && z <= -1) return 1;
  7246. if(IsPlayerInArea(playerid, 1456, 1520, -256, -192) && z <= -1) return 1;
  7247. if(IsPlayerInArea(playerid, 1520, 1648, -208, -80) && z <= -1) return 1;
  7248. if(IsPlayerInArea(playerid, 1568, 1648, -80, 16) && z <= -1) return 1;
  7249. if(IsPlayerInArea(playerid, 1648, 1792, -64, 16) && z <= -1) return 1;
  7250. if(IsPlayerInArea(playerid, 1792, 1888, -128, 0) && z <= -1) return 1;
  7251. if(IsPlayerInArea(playerid, 1888, 2016, -256, -32) && z <= -1) return 1;
  7252. if(IsPlayerInArea(playerid, 2016, 2144, -256, -16) && z <= -1) return 1;
  7253. if(IsPlayerInArea(playerid, 2144, 2224, -272, -96) && z <= -1) return 1;
  7254. if(IsPlayerInArea(playerid, 2224, 2288, -272, -144) && z <= -1) return 1;
  7255. if(IsPlayerInArea(playerid, 2288, 2528, -272, -192) && z <= -1) return 1;
  7256. if(IsPlayerInArea(playerid, 2528, 2640, -272, -224) && z <= -1) return 1;
  7257. if(IsPlayerInArea(playerid, 2048, 2144, -16, 112) && z <= -1) return 1;
  7258. if(IsPlayerInArea(playerid, 2096, 2224, 112, 240) && z <= -1) return 1;
  7259. if(IsPlayerInArea(playerid, 2080, 2224, 240, 400) && z <= -1) return 1;
  7260. if(IsPlayerInArea(playerid, 2224, 2256, 320, 400) && z <= -1) return 1;
  7261. if(IsPlayerInArea(playerid, 2160, 2432, 512, 576) && z <= -1) return 1;
  7262. if(IsPlayerInArea(playerid, 2432, 2560, 544, 592) && z <= -1) return 1;
  7263. if(IsPlayerInArea(playerid, 2560, 2720, 576, 608) && z <= -1) return 1;
  7264. if(IsPlayerInArea(playerid, 2720, 2816, 560, 608) && z <= -1) return 1;
  7265. if(IsPlayerInArea(playerid, 2816, 2992, 576, 752) && z <= -1) return 1;
  7266. if(IsPlayerInArea(playerid, -656, -496, 576, 672) && z <= -1) return 1;
  7267. if(IsPlayerInArea(playerid, -736, -496, 672, 784) && z <= -1) return 1;
  7268. if(IsPlayerInArea(playerid, -720, -384, 784, 1008) && z <= -1) return 1;
  7269. if(IsPlayerInArea(playerid, -640, -400, 1008, 1216) && z <= -1) return 1;
  7270. if(IsPlayerInArea(playerid, -880, -688, 1296, 1408) && z <= -1) return 1;
  7271. if(IsPlayerInArea(playerid, -688, -432, 1216, 1424) && z <= -1) return 1;
  7272. if(IsPlayerInArea(playerid, -672, -448, 1424, 1616) && z <= -1) return 1;
  7273. if(IsPlayerInArea(playerid, -832, -512, 1616, 1728) && z <= -1) return 1;
  7274. if(IsPlayerInArea(playerid, -976, -832, 1632, 1712) && z <= -1) return 1;
  7275. if(IsPlayerInArea(playerid, -832, -576, 1728, 2032) && z <= -1) return 1;
  7276. if(IsPlayerInArea(playerid, -1248, -1088, 2544, 2832) && z <= 39) return 1;
  7277. if(IsPlayerInArea(playerid, -1088, -1040, 2544, 2784) && z <= 39) return 1;
  7278. if(IsPlayerInArea(playerid, -1040, -832, 2544, 2736) && z <= 39) return 1;
  7279. if(IsPlayerInArea(playerid, -1088, -832, 2416, 2544) && z <= 39) return 1;
  7280. if(IsPlayerInArea(playerid, -1040, -864, 2304, 2416) && z <= 39) return 1;
  7281. if(IsPlayerInArea(playerid, -1024, -864, 2144, 2304) && z <= 39) return 1;
  7282. if(IsPlayerInArea(playerid, -1072, -1024, 2160, 2256) && z <= 39) return 1;
  7283. if(IsPlayerInArea(playerid, -1200, -1072, 2114, 2242) && z <= 39) return 1;
  7284. if(IsPlayerInArea(playerid, -976, -848, 2016, 2144) && z <= 39) return 1;
  7285. if(IsPlayerInArea(playerid, -864, -480, 2144, 2272) && z <= 39) return 1;
  7286. if(IsPlayerInArea(playerid, -688, -496, 2272, 2320) && z <= 39) return 1;
  7287. if(IsPlayerInArea(playerid, -608, -528, 2320, 2352) && z <= 39) return 1;
  7288. if(IsPlayerInArea(playerid, -848, -816, 2048, 2144) && z <= 39) return 1;
  7289. if(IsPlayerInArea(playerid, -816, -496, 2064, 2144) && z <= 39) return 1;
  7290. if(IsPlayerInArea(playerid, -576, -512, 2032, 2064) && z <= -1) return 1;
  7291. if(IsPlayerInArea(playerid, 2376, 3000, -3000, -2696) && z <= -1) return 1;
  7292. if(IsPlayerInArea(playerid, 2520, 3000, -2696, -2560) && z <= -1) return 1;
  7293. if(IsPlayerInArea(playerid, -1328, -1200, 2082, 2210) && z <= 39) return 1;
  7294. if(IsPlayerInArea(playerid, -1456, -1328, 2048, 2176) && z <= 39) return 1;
  7295. if(IsPlayerInArea(playerid, -1248, -992, -144, 208) && z <= -1) return 1;
  7296. if(IsPlayerInArea(playerid, -1176, -992, -432, -144) && z <= -1) return 1;
  7297. if(IsPlayerInArea(playerid, -1792, -1728, -592, -144) && z <= -1) return 1;
  7298. if(IsPlayerInArea(playerid, -1792, -1600, 170, 274) && z <= -1) return 1;
  7299. if(IsPlayerInArea(playerid, -1600, -1256, 168, 208) && z <= -1) return 1;
  7300. if(IsPlayerInArea(playerid, -1574, -1550, -50, 102) && z <= -1) return 1;
  7301. return 0;
  7302. }
  7303.  
  7304. UsunZPliku(playerid, const Tekst[], const Przepisz[], const Usun[], bool:BE) //By Przemcio
  7305. {
  7306. new idx;
  7307. new str2[256];
  7308. new bool:Znaleziony;
  7309. new File:Plik = fopen(Tekst, io_read);
  7310. while(fread(Plik, str, sizeof(str), false))
  7311. {
  7312. idx = 0;
  7313. str2 = strtok(str, idx, ',');
  7314. if(strcmp(str2, Usun, false) == 0)
  7315. {
  7316. Znaleziony = true;
  7317. break;
  7318. }
  7319. }
  7320. fclose(Plik);
  7321. if(Znaleziony == true)
  7322. {
  7323. Plik = fopen(Tekst, io_read);
  7324. new File:Plik2 = fopen(Przepisz, io_write);
  7325. while(fread(Plik, str, sizeof(str), false))
  7326. {
  7327. idx = 0;
  7328. str2 = strtok(str, idx, ',');
  7329. if(strcmp(str2, Usun, false) != 0) fwrite(Plik2, str);
  7330. }
  7331. fclose(Plik);
  7332. fclose(Plik2);
  7333. fremove(Tekst);
  7334. Plik = fopen(Tekst, io_write);
  7335. Plik2 = fopen(Przepisz, io_read);
  7336. while(fread(Plik2, str, sizeof(str), false)) fwrite(Plik, str);
  7337. fclose(Plik2);
  7338. fremove(Przepisz);
  7339. fclose(Plik);
  7340. if(BE == false) format(str, sizeof(str), "Słowo %s zostało usunięte", Usun);
  7341. else if(BE == true) format(str, sizeof(str), "Emotikonka %s została usunięta", Usun);
  7342. SendClientMessage(playerid, GREEN, str);
  7343. }
  7344. else
  7345. if(BE == false) SendClientMessage(playerid, RED, "Nie ma takiego słowa!");
  7346. else if(BE == true) SendClientMessage(playerid, RED, "Nie ma takiej emotikonki!");
  7347. }
  7348.  
  7349. UsunZBL(playerid, const BlackLista[], const Przepisz[], const Usun[], bool:KG)
  7350. {
  7351. new idx;
  7352. new str2[256];
  7353. new bool:Znaleziony;
  7354. new File:Plik = fopen(BlackLista, io_read);
  7355. while(fread(Plik, str, sizeof(str), false))
  7356. {
  7357. idx = 0;
  7358. str2 = strtok(str, idx, '-');
  7359. if(strcmp(str2, Usun, false) == 0)
  7360. {
  7361. Znaleziony = true;
  7362. break;
  7363. }
  7364. }
  7365. fclose(Plik);
  7366. if(Znaleziony == true)
  7367. {
  7368. Plik = fopen(BlackLista, io_read);
  7369. new File:Plik2 = fopen(Przepisz, io_write);
  7370. while(fread(Plik, str, sizeof(str), false))
  7371. {
  7372. idx = 0;
  7373. str2 = strtok(str, idx, '-');
  7374. if(strcmp(str2, Usun, false) != 0) fwrite(Plik2, str);
  7375. }
  7376. fclose(Plik);
  7377. fclose(Plik2);
  7378. fremove(BlackLista);
  7379. Plik = fopen(BlackLista, io_write);
  7380. Plik2 = fopen(Przepisz, io_read);
  7381. while(fread(Plik2, str, sizeof(str), false)) fwrite(Plik, str);
  7382. fclose(Plik2);
  7383. fremove(Przepisz);
  7384. fclose(Plik);
  7385. if(KG == false) format(str, sizeof(str), "Gracz %s został usunięty z Czarnej Listy", Usun);
  7386. else if(KG == true) format(str, sizeof(str), "Klan %s został usunięty z Czarnej Listy", Usun);
  7387. SendClientMessage(playerid, GREEN, str);
  7388. }
  7389. else
  7390. if(KG == false) SendClientMessage(playerid, RED, "Takiego Nick'a nie ma na Czarnej Liście!");
  7391. else if(KG == true) SendClientMessage(playerid, RED, "Takiego Klanu nie ma na Czarnej Liście!");
  7392. }
  7393.  
  7394. SprawdzBluzgi(playerid, text[])
  7395. {
  7396. if(Anty[AntyBluzgi] == true)
  7397. {
  7398. new File:Plik = fopen("Bluzgi.txt", io_read);
  7399. while(fread(Plik, str, sizeof(str), false))
  7400. {
  7401. new idx;
  7402. Nick = strtok(str, idx, ',');
  7403. if(strfind(text, Nick, true) != -1)
  7404. {
  7405. DisableWord(Nick, text, false);
  7406. if(Anty[AntiNadmierneBluzgi] == true && !IsPlayerAdmin(playerid))
  7407. {
  7408. GraczInfo[playerid][Bluzg]++;
  7409. if(GraczInfo[playerid][Bluzg] == 15)
  7410. switch(Kara[NadmierneBluzgi])
  7411. {
  7412. case 1: Kickuj(playerid, "Nadmierne bluzgi/wyzwiska");
  7413. case 2: Banuj(playerid, "Nadmierne bluzgi/wyzwiska");
  7414. case 3: BanujHost(playerid, "Nadmierne bluzgi/wyzwiska");
  7415. }
  7416. }
  7417. }
  7418. }
  7419. fclose(Plik);
  7420. }
  7421. else if(Anty[AntiNadmierneBluzgi] == true && !IsPlayerAdmin(playerid) && Anty[AntyBluzgi] == false)
  7422. {
  7423. new File:Plik = fopen("Bluzgi.txt", io_read);
  7424. while(fread(Plik, str, sizeof(str), false))
  7425. {
  7426. new idx;
  7427. Nick = strtok(str, idx, ',');
  7428. if(strfind(text, Nick, true) != -1) GraczInfo[playerid][Bluzg]++;
  7429. }
  7430. fclose(Plik);
  7431. if(GraczInfo[playerid][Bluzg] == 15)
  7432. switch(Kara[NadmierneBluzgi])
  7433. {
  7434. case 1: Kickuj(playerid, "Nadmierne bluzgi/wyzwiska");
  7435. case 2: Banuj(playerid, "Nadmierne bluzgi/wyzwiska");
  7436. case 3: BanujHost(playerid, "Nadmierne bluzgi/wyzwiska");
  7437. }
  7438. }
  7439. return 0;
  7440. }
  7441.  
  7442. equal(str1[], str2[], bool:ignorecase)
  7443. {
  7444. if(strlen(str1) != strlen(str2)) return false;
  7445. if(strcmp(str1, str2, ignorecase) == 0) return true;
  7446. return false;
  7447. }
  7448.  
  7449. strlower(txt[])
  7450. {
  7451. new tmp[MAX_STRING];
  7452. tmp[0] = 0;
  7453. if(txt[0] == 0) return tmp;
  7454. new i = 0;
  7455. for(i = 0; i<strlen(txt); i++) tmp[i] = tolower(txt[i]);
  7456. tmp[strlen(txt)] = 0;
  7457. return tmp;
  7458. }
  7459.  
  7460. ret_memcpy(source[], index = 0, numbytes)
  7461. {
  7462. new tmp[MAX_STRING];
  7463. new i = 0;
  7464. tmp[0] = 0;
  7465. if(index >= strlen(source)) return tmp;
  7466. if(numbytes + index >= strlen(source)) numbytes = strlen(source) - index;
  7467. if(numbytes <= 0) return tmp;
  7468. for(i = index; i<numbytes + index; i++)
  7469. {
  7470. tmp[i - index] = source[i];
  7471. if(source[i] == 0) return tmp;
  7472. }
  7473. tmp[numbytes] = 0;
  7474. return tmp;
  7475. }
  7476.  
  7477. set(dest[], source[])
  7478. {
  7479. new count = strlen(source);
  7480. new i = 0;
  7481. for(i = 0; i<count; i++) dest[i] = source[i];
  7482. dest[count] = 0;
  7483. }
  7484.  
  7485. StripNewLine(string[])
  7486. {
  7487. new len = strlen(string);
  7488. if(string[0] == 0) return ;
  7489. if((string[len - 1] == '\n') || (string[len - 1] == '\r'))
  7490. {
  7491. string[len - 1] = 0;
  7492. if(string[0] == 0) return ;
  7493. if((string[len - 2] == '\n') || (string[len - 2] == '\r')) string[len - 2] = 0;
  7494. }
  7495. }
  7496.  
  7497. fcopytextfile(oldname[], newname[])
  7498. {
  7499. new File:ohnd, File:nhnd;
  7500. if(!fexist(oldname)) return false;
  7501. ohnd = fopen(oldname, io_read);
  7502. nhnd = fopen(newname, io_write);
  7503. new tmpres[MAX_STRING];
  7504. while(fread(ohnd, tmpres))
  7505. {
  7506. StripNewLine(tmpres);
  7507. format(tmpres, sizeof(tmpres), "%s\r\n", tmpres);
  7508. fwrite(nhnd, tmpres);
  7509. }
  7510. fclose(ohnd);
  7511. fclose(nhnd);
  7512. return true;
  7513. }
  7514.  
  7515. dini_Set(filename[], key[], value[])
  7516. {
  7517. new File:fohnd, File:fwhnd;
  7518. new bool:wasset = false;
  7519. new tmpres[MAX_STRING];
  7520. if(key[0] == 0) return false;
  7521. format(tmpres, sizeof(tmpres), "%s.part", filename);
  7522. fohnd = fopen(filename, io_read);
  7523. if(!fohnd) return false;
  7524. fremove(tmpres);
  7525. fwhnd = fopen(tmpres, io_write);
  7526. while(fread(fohnd, tmpres))
  7527. {
  7528. StripNewLine(tmpres);
  7529. if((!wasset) && (equal(dini_PRIVATE_ExtractKey(tmpres), key, true)))
  7530. {
  7531. format(tmpres, sizeof(tmpres), "%s=%s", key, value);
  7532. wasset = true;
  7533. }
  7534. fwrite(fwhnd, tmpres);
  7535. fwrite(fwhnd, "\r\n");
  7536. }
  7537.  
  7538. if(!wasset)
  7539. {
  7540. format(tmpres, sizeof(tmpres), "%s=%s", key, value);
  7541. fwrite(fwhnd, tmpres);
  7542. fwrite(fwhnd, "\r\n");
  7543. }
  7544. fclose(fohnd);
  7545. fclose(fwhnd);
  7546. format(tmpres, sizeof(tmpres), "%s.part", filename);
  7547. if(fcopytextfile(tmpres, filename)) return fremove(tmpres);
  7548. return false;
  7549. }
  7550.  
  7551. dini_IntSet(filename[], key[], value)
  7552. {
  7553. new valuestring[MAX_STRING];
  7554. format(valuestring, sizeof(valuestring), "%d", value);
  7555. return dini_Set(filename, key, valuestring);
  7556. }
  7557.  
  7558. dini_Int(filename[], key[]) return strval(dini_Get(filename, key));
  7559.  
  7560. dini_Get(filename[], key[])
  7561. {
  7562. new File:fohnd;
  7563. new tmpres[MAX_STRING];
  7564. new tmpres2[MAX_STRING];
  7565. tmpres[0] = 0;
  7566. fohnd = fopen(filename, io_read);
  7567. if(!fohnd) return tmpres;
  7568. while(fread(fohnd,tmpres))
  7569. {
  7570. StripNewLine(tmpres);
  7571. if(equal(dini_PRIVATE_ExtractKey(tmpres), key, true))
  7572. {
  7573. tmpres2[0] = 0;
  7574. strcat(tmpres2, dini_PRIVATE_ExtractValue(tmpres));
  7575. fclose(fohnd);
  7576. return tmpres2;
  7577. }
  7578. }
  7579. fclose(fohnd);
  7580. return tmpres;
  7581. }
  7582.  
  7583. dini_PRIVATE_ExtractKey(line[])
  7584. {
  7585. new tmp[MAX_STRING];
  7586. tmp[0] = 0;
  7587. if(strfind(line, "=", true) == -1) return tmp;
  7588. set(tmp, strlower(ret_memcpy(line, 0, strfind(line, "=", true))));
  7589. return tmp;
  7590. }
  7591.  
  7592. dini_PRIVATE_ExtractValue(line[])
  7593. {
  7594. new tmp[MAX_STRING];
  7595. tmp[0] = 0;
  7596. if(strfind(line, "=", true) == -1) return tmp;
  7597. set(tmp, ret_memcpy(line, strfind(line, "=", true)+1, strlen(line)));
  7598. return tmp;
  7599. }
  7600. return 0;
  7601. }
  7602.  
  7603. //End of the script: *AntyCheat 2.8*
Advertisement
Add Comment
Please, Sign In to add comment