Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- *AntyCheat v2.8*
- Autor: Sacky, Jan "DracoBlue" Schütze, Alex "Y_Less" Cole
- Edycja: Smuggler, Przemcio, VisztaPL
- */
- #include <a_samp>
- #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
- #define Wersja "2.8"
- #define MAX_STRING 255
- #define RED 0xFF0000FF
- #define GREEN 0x00FF00FF
- #define WHITE 0xFFFFFFFF
- #define YELLOW 0xFFFFFFFF
- #define DARK 0x808080FF
- enum Opcje
- {
- bool:AntiVehicleDriverKilling,
- bool:AntyRustlerK,
- bool:AntyRhinoK,
- bool:AntyHunterK,
- bool:AntySparrowK,
- bool:AntyPlaneK,
- bool:AntyBluzgi,
- bool:AntyRepeat,
- bool:AntiFasterSprint,
- bool:AntiGlitch,
- bool:AntiICEmo,
- bool:AntiLongSprint,
- bool:AntiBunnyHop,
- bool:AntiNinjaJacking,
- bool:AntiCaps,
- bool:AntiIP,
- bool:AntiPodszywanie,
- bool:SpawnProtE,
- bool:AntyHydraK,
- bool:AntyCK,
- bool:AntyDB,
- bool:AntyDT,
- bool:AntyHK,
- bool:AntiMegaJump,
- bool:AntiAirBrake,
- bool:AntiSpeedHack,
- bool:Raport,
- bool:AntiFreezeVeh,
- bool:AntiBugUA,
- bool:AntiVehWarp,
- bool:AntiNadmierneBluzgi,
- bool:AntiVehGod,
- bool:BL,
- bool:BC,
- bool:AntiWWW,
- bool:AntyCrash,
- AntiAFK,
- AntiCmdFlood,
- AntiPMFlood,
- MaxPing,
- CzasAFK,
- AntiPing,
- AntyFlood,
- AntiJetpack,
- AntiBikeFallOff,
- AntiIndoorsWeapons,
- AntiWeaponCheat,
- CzasSpawnProt,
- AntiInfiniteAmmo,
- TimerAntiSpeedHack,
- AntiArmour,
- AntiHealth,
- MaxSprint,
- MaxJump,
- AntiMoneyCheat,
- AntiTeleport,
- MaxDB,
- MaxDT,
- MaxCK,
- MaxRhinoK,
- MaxHK,
- MaxHydraK,
- MaxHunterK,
- MaxPlaneK,
- MaxSparrowK,
- MaxRustlerK,
- MaxSK,
- MaxGlitch,
- AntiGodMode,
- AntiInfOxygen,
- AntiUnderwater,
- AntiPause
- {
- enum aKara
- {
- VehDriverKilling,
- RustlerKill,
- Jetpack,
- SparrowKill,
- NinjaJacking,
- WeaponCheat,
- InteriorWeapons,
- Flood,
- Ping,
- MoneyCheat,
- Teleport,
- ArmourCheat,
- HealthCheat,
- AntyBikeFallOffK,
- AFK,
- NadmierneBluzgi,
- FasterSprint,
- InfiniteAmmo,
- MegaJumpK,
- AirBrake,
- SpeedHack,
- FreezeVehicles,
- VehicleWarp,
- DriveBy,
- DriveThru,
- CarKill,
- RhinoKill,
- HeliKill,
- HydraKill,
- HunterKill,
- PlaneKill,
- SpawnKill,
- ReklamaSerwera,
- Podszywanie,
- PMFlood,
- CmdFlood,
- BugUAK,
- GlitchK,
- VehicleGodMode,
- GodMode,
- InfiniteOxygen,
- WalkUnderwater,
- ReklamaStrony,
- Pauza,
- ProbaCrash
- }
- enum GraczeInfo
- {
- //Anty God Mode
- bool:ProtGod,
- Float:GodNoweHP,
- Float:GodStareHP,
- Float:GodNowyArm,
- Float:GodStaryArm,
- TimerGod,
- TimerBombaGod,
- TimerProtGod,
- //Anty Vehicle God Mode
- Float:GodWozNoweHP,
- Float:GodWozStareHP,
- TimerBombaVehGod,
- //Anty Speed Hack/Air Brake
- Float:StaryX,
- Float:StaryY,
- Float:OldZSpeed,
- Float:NewZSpeed,
- Float:NowyX,
- Float:NowyY,
- WarnSpeed,
- //Anty Armour Cheat
- Float:NowyArm,
- Float:StaryArm,
- //Anty Health Cheat
- Float:NewVehHP,
- Float:OldVehHP,
- Float:NewHP,
- Float:OldHP,
- //Anty Infinite Ammo
- bool:Strzela,
- WarnUnlimitedAmmo,
- StaraAmunicja,
- NowaAmunicja,
- SlotBroni,
- KlawiszUA,
- //Anty Interior Weapons
- WarnIndoors,
- //Anty Anti Bike Fall Off
- Float:WozNewHP,
- Float:WozOldHP,
- Float:OldPointX,
- Float:OldPointY,
- Float:NewPointX,
- Float:NewPointY,
- Woz,
- //Anty Money Cheat
- StaraKasa,
- NowaKasa,
- //Anty Teleport
- Float:StaryPktX,
- Float:NowyPktX,
- Float:StaryPktY,
- Float:NowyPktY,
- Float:StaryPktZ,
- Float:NowyPktZ,
- //Anty Mega Jump
- Float:PierwszeZ,
- Float:DrugieZ,
- Float:StareHPMJ,
- Float:NoweHPMJ,
- WarnJump,
- TimerMegaJump,
- //Anty Vehicle Warp
- OldVeh,
- //Anty Infinite Oxygen
- Float:WodaStareHP,
- Float:WodaNoweHP,
- PodWoda,
- TimerSprawdzHP,
- //Anty Walk Underwater
- Float:PodWodaOldX,
- Float:PodWodaOldY,
- Float:PodWodaOldZ,
- Float:PodWodaNewX,
- Float:PodWodaNewY,
- Float:PodWodaNewZ,
- WarnUnderwater,
- //Anty Faster Sprint
- WarnSprint,
- TimerBieg,
- //Anty Glitch
- WarnGlitch,
- Klawisz,
- TimerGlitch,
- //Anty Vehicle Driver Killing
- WarnBuger,
- TimerBuger,
- TimerBugerPoraz,
- //Anty Bug Unlimited Ammo
- TimerUA,
- CrouchTimes,
- //Anty Hydra Kill
- WarnHydraK,
- //Anty Drive-By
- WarnDB,
- //Anty Drive-Thru
- WarnDT,
- //Anty Car Kill
- WarnCK,
- //Anty Heli Kill
- WarnHK,
- //Anty Hunter Kill
- WarnHunterK,
- //Anty Rhino Kill
- WarnRhinoK,
- //Anty Sparrow Kill
- WarnSparrowK,
- //Anty Rustler Kill
- WarnRustlerK,
- //Anty Plane Kill
- WarnPlaneK,
- //Anty AFK
- Float:StaraPozycjaX,
- Float:StaraPozycjaY,
- Float:StaraPozycjaZ,
- Float:PozycjaX,
- Float:PozycjaY,
- Float:PozycjaZ,
- Float:StaraRotacja,
- Float:Rotacja,
- WarnAFK,
- //Anty Ping
- WarnPing,
- //Anty Spawn Kill
- bool:SpawnProt,
- SpawnProtT,
- SpawnKillWarn,
- //Anty Pause
- Float:StareHP,
- Float:NoweHP,
- WarnPause,
- TimerPauza,
- //Anty Podszywanie
- bool:TaSamaDlugosc,
- PodobneZnaki,
- //Anty Flood
- WarnFlood,
- //Anty Command Flood
- WarnCmdFlood,
- //Anty Private Message Flood
- WarnPMFlood,
- //Anty Nadmierne Bluzgi
- Bluzg,
- //Anty Repeat
- Text[256],
- PMText[256],
- //Anty Bunny Hopping
- WarnBunnyHop,
- TimerWstan,
- TimerBunnyHop,
- //Anty Long Sprint
- WarnLSprint,
- GoraDol,
- LewoPrawo,
- TimerLongSprint,
- //Inne
- bool:Prot,
- bool:AdminLogged,
- ProtArmHP,
- TimerLecz
- }
- enum ZBronA
- {
- Nazwa[50],
- bool:Zakazana,
- NazwaConfig[50]
- }
- new Bronie[47][ZBronA] =
- {
- ("", false, ""),
- ("Kastet", false, "Kastet"),
- ("Kij Golfowy", false, "KijGolfowy"),
- ("Pałka Policyjna", false, "PalkaPolicyjna"),
- ("Nóż", false, "Noz"),
- ("Kij Baseball'owy", false, "Baseball"),
- ("Łopata", false, "Lopata"),
- ("Kij Bilardowy", false, "KijBilardowy"),
- ("Katana", false, "Katana"),
- ("Piła Łancuchowa", false, "Pila"),
- ("Różowy Wibrator", false, "RozowyWibrator"),
- ("Biały Wibrator", false, "BialyWibrator"),
- ("Długi Biały Wibrator", false, "DlugiBialyWibrator"),
- ("Biały Wibrator 2", false, "BialyWibrator2"),
- ("Kwiaty", false, "Kwiaty"),
- ("Laska", false, "Laska"),
- ("Granaty", false, "Granaty"),
- ("Gaz Łzawiący", false, "GazLzawiacy"),
- "Koktail Molotova", false, "Molotov"),
- {"", false, ""},
- {"", false, ""},
- {"", false, ""},
- {"Pistolety", false, "Pistolety"},
- {"Pistolet z Tłumikiem", false, "PistoletZTlumikiem"},
- {"Desert Eagle", false, "DesertEagle"},
- {"Shotgun", false, "Shotgun"},
- {"Obrzyny", false, "Obrzyny"},
- {"Combat Shotgun", false, "CombatShotgun"},
- {"Uzi", false, "Uzi"},
- {"MP5", false, "MP5"},
- {"AK47", false, "AK47"},
- {"M4", false, "M4"},
- {"TEC9", false, "TEC9"},
- {"Country Rifle", false, "ContryRifle"},
- {"Karabin Snajperski", false, "Sniperka"},
- {"RPG", false, "RPG"},
- {"Wyrzutnia Rakiet", false, "WyrzutniaRakiet"},
- {"Miotacz Ognia", false, "MiotaczOgnia"},
- {"Minigun", false, "Minigun"},
- {"C4", false, "C4"},
- {"Detonator", false, "Detonator"},
- {"Spray", false, "Spray"},
- {"Gaśnica", false, "Gasnica"},
- {"Aparat Fotograficzny", false, "AparatFotograficzny"},
- {"Noktowizor", false, "Noktowizor"},
- {"Termowizor", false, "Termowizor"},
- {"Spadochron", false, "Spadochron"}
- };
- new HighestID;
- new Sloty;
- new Nick[256];
- new Nick2[256];
- new str[256];
- new Float:CarOldX[MAX_VEHICLES], Float:CarOldY[MAX_VEHICLES], Float:CarOldZ[MAX_VEHICLES];
- new GraczInfo[MAX_PLAYERS][GraczeInfo];
- new Anty[Opcje];
- new Kara[aKara];
- public OnFilterScriptInit()
- (
- new ID = -1;
- new tmp[256];
- new idx;
- Sloty = GetServerVarAsInt("maxplayers");
- //Config
- if(!fexist("AntyCheatConfig.ini"))
- (
- new File:Plik = fopen("AntyCheatConfig.ini", io_append);
- fwrite(Plik, "//Tutaj mozesz ustawic co bedzie wlaczone, a co nie (1 - wlaczone, 0 - wylaczone)\r\n");
- fwrite(Plik, "AntyGodMode=1\r\n");
- fwrite(Plik, "AntyVehicleGod=0\r\n");
- fwrite(Plik, "AntySpeedHack=1\r\n");
- fwrite(Plik, "AntyAirBrake=1\r\n");
- fwrite(Plik, "AntyJetpack=0\r\n");
- fwrite(Plik, "AntyWeaponCheat=1\r\n");
- fwrite(Plik, "AntyArmourCheat=0\r\n");
- fwrite(Plik, "AntyHealthCheat=0\r\n");
- fwrite(Plik, "AntyInfiniteAmmo=0\r\n");
- fwrite(Plik, "AntyInteriorWeapons=0\r\n");
- fwrite(Plik, "AntyAntiBikeFallOff=0\r\n");
- fwrite(Plik, "AntyMoneyCheat=0\r\n");
- fwrite(Plik, "AntyTeleport=0\r\n");
- fwrite(Plik, "AntyFreezeVehicles=0\r\n");
- fwrite(Plik, "AntyMegaJump=0\r\n");
- fwrite(Plik, "AntyVehicleWarp=0\r\n");
- fwrite(Plik, "AntyInfiniteOxygen=0\r\n");
- fwrite(Plik, "AntyWalkUnderwater=0\r\n");
- fwrite(Plik, "//Bugi\r\n");
- fwrite(Plik, "AntyFasterSprint=0\r\n");
- fwrite(Plik, "AntyGlitch=0\r\n");
- fwrite(Plik, "MaxGlitchy=3\r\n");
- fwrite(Plik, "AntyVehicleDriverKilling=0\r\n");
- fwrite(Plik, "AntyBugUnlimitedAmmo=1\r\n");
- fwrite(Plik, "//Inne\r\n");
- fwrite(Plik, "AntyHydraKill=1\r\n");
- fwrite(Plik, "MaxHydraKill=2\r\n");
- fwrite(Plik, "AntyDrive-By=1\r\n");
- fwrite(Plik, "MaxDrive-By=2\r\n");
- fwrite(Plik, "AntyDrive-Thru=1\r\n");
- fwrite(Plik, "MaxDrive-Thru=2\r\n");
- fwrite(Plik, "AntyCarKill=1\r\n");
- fwrite(Plik, "MaxCK=2\r\n");
- fwrite(Plik, "AntyHeliKill=1\r\n");
- fwrite(Plik, "MaxHK=1\r\n");
- fwrite(Plik, "AntyHunterKill=1\r\n");
- fwrite(Plik, "MaxHunterKill=2\r\n");
- fwrite(Plik, "AntyRhinoKill=1\r\n");
- fwrite(Plik, "MaxRhinoKill=2\r\n");
- fwrite(Plik, "AntySparrowKill=1\r\n");
- fwrite(Plik, "MaxSparrowKill=2\r\n");
- fwrite(Plik, "AntyRustlerKill=1\r\n");
- fwrite(Plik, "MaxRustlerKill=2\r\n");
- fwrite(Plik, "AntyPlaneKill=1\r\n");
- fwrite(Plik, "MaxPlaneKill=2\r\n");
- fwrite(Plik, "AntyAFK=1\r\n");
- fwrite(Plik, "CzasAFK=30 //w minutach\r\n");
- fwrite(Plik, "AntyPing=1\r\n");
- fwrite(Plik, "MaxPing=500\r\n");
- fwrite(Plik, "AntySpawnKill=0\r\n");
- fwrite(Plik, "MaxSpawnKill=2\r\n");
- fwrite(Plik, "CzasAntySpawnKill=3 //w sekundach\r\n");
- fwrite(Plik, "AntyPause=1\r\n");
- fwrite(Plik, "AntyPodszywanie=1\r\n");
- fwrite(Plik, "KomendaRaport=1\r\n");
- fwrite(Plik, "BlackListGraczy=0\r\n");
- fwrite(Plik, "BlackListKlanow=0\r\n");
- fwrite(Plik, "AntyCrash=1\r\n");
- fwrite(Plik, "//Do Chat'u\r\n");
- fwrite(Plik, "AntyFlood=1\r\n");
- fwrite(Plik, "AntyCommandFlood=1\r\n");
- fwrite(Plik, "AntyPrivateMessageFlood=1\r\n");
- fwrite(Plik, "AntyBluzgi=1\r\n");
- fwrite(Plik, "AntyNadmierneBluzgi=1\r\n");
- fwrite(Plik, "AntyRepeat=1\r\n");
- fwrite(Plik, "AntyCapsLock=1\r\n");
- fwrite(Plik, "AntyReklamaSerwera=1\r\n");
- fwrite(Plik, "AntyReklamaStrony=1\r\n");
- fwrite(Plik, "//Do RP\r\n");
- fwrite(Plik, "AntyEmotyIC=0\r\n");
- fwrite(Plik, "AntyBunnyHopping=0\r\n");
- fwrite(Plik, "MaxSkokow=3\r\n");
- fwrite(Plik, "AntyLongSprint=0\r\n");
- fwrite(Plik, "CzasSprint=1000\r\n");
- fwrite(Plik, "AntyNinjaJacking=0\r\n");
- fwrite(Plik, "//Ustaw 1 przy zakazanej broni\r\n");
- fwrite(Plik, "Kastet=0\r\n");
- fwrite(Plik, "KijGolfowy=0\r\n");
- fwrite(Plik, "PalkaPolicyjna=0\r\n");
- fwrite(Plik, "Noz=0\r\n");
- fwrite(Plik, "Baseball=0\r\n");
- fwrite(Plik, "Lopata=0\r\n");
- fwrite(Plik, "KijBilardowy=0\r\n");
- fwrite(Plik, "Katana=0\r\n");
- fwrite(Plik, "Pila=0\r\n");
- fwrite(Plik, "RozowyWibrator=0\r\n");
- fwrite(Plik, "BialyWibrator=0\r\n");
- fwrite(Plik, "DlugiBialyWibrator=0\r\n");
- fwrite(Plik, "BialyWibrator2=0\r\n");
- fwrite(Plik, "Kwiaty=0\r\n");
- fwrite(Plik, "Laska=0\r\n");
- fwrite(Plik, "Granaty=0\r\n");
- fwrite(Plik, "GazLzawiacy=0\r\n");
- fwrite(Plik, "Molotov=0\r\n");
- fwrite(Plik, "Pistolety=0\r\n");
- fwrite(Plik, "PistoletZTlumikiem=0\r\n");
- fwrite(Plik, "DesertEagle=0\r\n");
- fwrite(Plik, "Shotgun=0\r\n");
- fwrite(Plik, "Obrzyny=0\r\n");
- fwrite(Plik, "CombatShotgun=0\r\n");
- fwrite(Plik, "Uzi=0\r\n");
- fwrite(Plik, "MP5=0\r\n");
- fwrite(Plik, "AK47=0\r\n");
- fwrite(Plik, "M4=0\r\n");
- fwrite(Plik, "Tec9=0\r\n");
- fwrite(Plik, "CountryRifle=0\r\n");
- fwrite(Plik, "Sniperka=0\r\n");
- fwrite(Plik, "RPG=1\r\n");
- fwrite(Plik, "WyrzutniaRakiet=1\r\n");
- fwrite(Plik, "MiotaczOgnia=1\r\n");
- fwrite(Plik, "Minigun=1\r\n");
- fwrite(Plik, "C4=1\r\n");
- fwrite(Plik, "Detonator=1\r\n");
- fwrite(Plik, "Spray=0\r\n");
- fwrite(Plik, "Gasnica=0\r\n");
- fwrite(Plik, "AparatFotograficzny=0\r\n");
- fwrite(Plik, "Noktowizor=1\r\n");
- fwrite(Plik, "Termowizor=1\r\n");
- fwrite(Plik, "Spadochron=0\r\n");
- fwrite(Plik, "//Kary: 1 - Kick, 2 - Ban, 3 - Ban na host\r\n");
- fwrite(Plik, "GodMode=2\r\n");
- fwrite(Plik, "VehicleGodMode=1\r\n");
- fwrite(Plik, "SpeedHack=2\r\n");
- fwrite(Plik, "AirBrake=2\r\n");
- fwrite(Plik, "Jetpack=1\r\n");
- fwrite(Plik, "WeaponCheat=1\r\n");
- fwrite(Plik, "ArmourCheat=1\r\n");
- fwrite(Plik, "HealthCheat=1\r\n");
- fwrite(Plik, "InfiniteAmmo=1\r\n");
- fwrite(Plik, "InteriorWeapons=1\r\n");
- fwrite(Plik, "AntiBikeFallOff=1\r\n");
- fwrite(Plik, "InfiniteOxygen=1\r\n");
- fwrite(Plik, "WalkUnderwater=1\r\n");
- fwrite(Plik, "MoneyCheat=1\r\n");
- fwrite(Plik, "Teleport=1\r\n");
- fwrite(Plik, "FreezeVehicles=1\r\n");
- fwrite(Plik, "MegaJump=1\r\n");
- fwrite(Plik, "VehicleWarp=1\r\n");
- fwrite(Plik, "FasterSprint=1\r\n");
- fwrite(Plik, "Glitch=1\r\n");
- fwrite(Plik, "VehicleDriverKilling=1\r\n");
- fwrite(Plik, "BugUnlimitedAmmo=1\r\n");
- fwrite(Plik, "HydraKill=1\r\n");
- fwrite(Plik, "Drive-By=1\r\n");
- fwrite(Plik, "Drive-Thru=1\r\n");
- fwrite(Plik, "CarKill=1\r\n");
- fwrite(Plik, "HeliKill=1\r\n");
- fwrite(Plik, "HunterKill=1\r\n");
- fwrite(Plik, "RhinoKill=1\r\n");
- fwrite(Plik, "SparrowKill=1\r\n");
- fwrite(Plik, "RustlerKill=1\r\n");
- fwrite(Plik, "PlaneKill=1\r\n");
- fwrite(Plik, "AFK=1\r\n");
- fwrite(Plik, "Pause=1\r\n");
- fwrite(Plik, "Ping=1\r\n");
- fwrite(Plik, "SpawnKill=1\r\n");
- fwrite(Plik, "Podszywanie=1\r\n");
- fwrite(Plik, "Flood=1\r\n");
- fwrite(Plik, "CommandFlood=1\r\n");
- fwrite(Plik, "PrivateMessageFlood=1\r\n");
- fwrite(Plik, "NadmierneBluzgi=1\r\n");
- fwrite(Plik, "ReklamaSerwera=2\r\n");
- fwrite(Plik, "ReklamaStrony=2\r\n");
- fwrite(Plik, "NinjaJacking=1\r\n");
- fwrite(Plik, "ProbaCrash=1\r\n");
- fclose(Plik);
- )
- if(!fexist("BLGracz.txt"))
- (
- new File:Plik = fopen("BLGracz.txt", io_write);
- fclose(Plik);
- )
- if(!fexist("BLKlan.txt"))
- (
- new File:Plik = fopen("BLKlan.txt", io_write);
- fclose(Plik);
- )
- if(!fexist("Emotikonki.txt"))
- (
- new File:Plik = fopen("Emotikonki.txt", io_append);
- fwrite(Plik, ":),\r\n");
- fwrite(Plik, ";),\r\n");
- fwrite(Plik, ":(,\r\n");
- fwrite(Plik, ";(,\r\n");
- fwrite(Plik, ":],\r\n");
- fwrite(Plik, ";],\r\n");
- fwrite(Plik, ":[,\r\n");
- fwrite(Plik, ";[,\r\n");
- fwrite(Plik, ":),\r\n");
- fwrite(Plik, ";),\r\n");
- fwrite(Plik, ":(,\r\n");
- fwrite(Plik, ";(,\r\n");
- fwrite(Plik, ":D,\r\n");
- fwrite(Plik, ";D,\r\n");
- fwrite(Plik, ":d,\r\n");
- fwrite(Plik, ";d,\r\n");
- fwrite(Plik, ":F,\r\n");
- fwrite(Plik, ";F,\r\n");
- fwrite(Plik, ":f,\r\n");
- fwrite(Plik, ";f,\r\n");
- fwrite(Plik, ":X,\r\n");
- fwrite(Plik, ";X,\r\n");
- fwrite(Plik, ":x,\r\n");
- fwrite(Plik, ";x,\r\n");
- fwrite(Plik, ":J,\r\n");
- fwrite(Plik, ";J,\r\n");
- fwrite(Plik, ":j,\r\n");
- fwrite(Plik, ";j,\r\n");
- fwrite(Plik, ":S,\r\n");
- fwrite(Plik, ";S,\r\n");
- fwrite(Plik, ":s,\r\n");
- fwrite(Plik, ";s,\r\n");
- fwrite(Plik, ":P,\r\n");
- fwrite(Plik, ";P,\r\n");
- fwrite(Plik, ":p,\r\n");
- fwrite(Plik, ";p,\r\n");
- fwrite(Plik, ":O,\r\n");
- fwrite(Plik, ";O,\r\n");
- fwrite(Plik, ":o,\r\n");
- fwrite(Plik, ";o,\r\n");
- fwrite(Plik, ":*,\r\n");
- fwrite(Plik, ";*,\r\n");
- fwrite(Plik, ":>,\r\n");
- fwrite(Plik, ";>,\r\n");
- fwrite(Plik, ":<,\r\n");
- fwrite(Plik, ";<,\r\n");
- fwrite(Plik, ":|,\r\n");
- fwrite(Plik, ";|,\r\n");
- fwrite(Plik, "xD,\r\n");
- fwrite(Plik, "xd,\r\n");
- fwrite(Plik, "Xd,\r\n");
- fwrite(Plik, "XD,\r\n");
- fwrite(Plik, "xF,\r\n");
- fwrite(Plik, "Xf,\r\n");
- fwrite(Plik, "XF,\r\n");
- fwrite(Plik, "xf,\r\n");
- fwrite(Plik, "xP,\r\n");
- fwrite(Plik, "Xp,\r\n");
- fwrite(Plik, "XP,\r\n");
- fwrite(Plik, "xp,\r\n");
- fwrite(Plik, "xS,\r\n");
- fwrite(Plik, "Xs,\r\n");
- fwrite(Plik, "XS,\r\n");
- fwrite(Plik, "xs,\r\n");
- fwrite(Plik, "xE,\r\n");
- fwrite(Plik, "Xe,\r\n");
- fwrite(Plik, "XE,\r\n");
- fwrite(Plik, "xe,\r\n");
- fwrite(Plik, "xO,\r\n");
- fwrite(Plik, "Xo,\r\n");
- fwrite(Plik, "XO,\r\n");
- fwrite(Plik, "xo,\r\n");
- fwrite(Plik, "-.-,\r\n");
- fwrite(Plik, "-,-,\r\n");
- fwrite(Plik, "O_o,\r\n");
- fwrite(Plik, "o_O,\r\n");
- fwrite(Plik, "O_O,\r\n");
- fwrite(Plik, "-_-,\r\n");
- fwrite(Plik, "X_x,\r\n");
- fwrite(Plik, "x_X,\r\n");
- fwrite(Plik, "x_x,\r\n");
- fwrite(Plik, "X_x,\r\n");
- fwrite(Plik, "X_X,\r\n");
- fwrite(Plik, "*_*,\r\n");
- fwrite(Plik, "^^,\r\n");
- fwrite(Plik, "^_^,\r\n");
- fwrite(Plik, "^-^,\r\n");
- fwrite(Plik, "lol,\r\n");
- fwrite(Plik, "rotfl,\r\n");
- fwrite(Plik, "lmao,\r\n");
- fwrite(Plik, "rofl,\r\n");
- fclose(Plik);
- )
- if(!fexist("Bluzgi.txt"))
- (
- new File:Plik = fopen("Bluzgi.txt", io_append);
- fwrite(Plik, "kurw,\r\n");
- fwrite(Plik, "qrw,\r\n");
- fwrite(Plik, "chuj,\r\n");
- fwrite(Plik, "huj,\r\n");
- fwrite(Plik, "korwa,\r\n");
- fwrite(Plik, "hoj,\r\n");
- fwrite(Plik, "choj,\r\n");
- fwrite(Plik, "pizd,\r\n");
- fwrite(Plik, "pizt,\r\n");
- fwrite(Plik, "dziwka,\r\n");
- fwrite(Plik, "dzifka,\r\n");
- fwrite(Plik, "szmat,\r\n");
- fwrite(Plik, "cwel,\r\n");
- fwrite(Plik, "cfel,\r\n");
- fwrite(Plik, "pierdol,\r\n");
- fwrite(Plik, "wyjebac,\r\n");
- fwrite(Plik, "wyjebać,\r\n");
- fwrite(Plik, "spierdal,\r\n");
- fwrite(Plik, "wypierdal,\r\n");
- fwrite(Plik, "ciot,\r\n");
- fwrite(Plik, "ryj,\r\n");
- fwrite(Plik, "kutas,\r\n");
- fwrite(Plik, "kutach,\r\n");
- fwrite(Plik, "jeban,\r\n");
- fwrite(Plik, "pierdol,\r\n");
- fwrite(Plik, "cip,\r\n");
- fwrite(Plik, "twoja stara,\r\n");
- fwrite(Plik, "twoj stary,\r\n");
- fwrite(Plik, "twuj stary,\r\n");
- fwrite(Plik, "tfuj stary,\r\n");
- fwrite(Plik, "tfoj stary,\r\n");
- fwrite(Plik, "tfój stary,\r\n");
- fwrite(Plik, "twój stary,\r\n");
- fwrite(Plik, "tfoja stara,\r\n");
- fwrite(Plik, "twoj stara,\r\n");
- fwrite(Plik, "japierdol,\r\n");
- fwrite(Plik, "jebie,\r\n");
- fwrite(Plik, "jeba,\r\n");
- fwrite(Plik, "zjeb,\r\n");
- fwrite(Plik, "ssij,\r\n");
- fwrite(Plik, "ssa,\r\n");
- fwrite(Plik, "zapier,\r\n");
- fwrite(Plik, "jebiem,\r\n");
- fwrite(Plik, "wyjeb,\r\n");
- fwrite(Plik, "dziwk,\r\n");
- fwrite(Plik, "dzifk,\r\n");
- fwrite(Plik, "zajeb,\r\n");
- fwrite(Plik, "dupic,\r\n");
- fwrite(Plik, "dupić,\r\n");
- fwrite(Plik, "fiut,\r\n");
- fwrite(Plik, "fiot,\r\n");
- fwrite(Plik, "fiót,\r\n");
- fwrite(Plik, "napierd,\r\n");
- fwrite(Plik, "wyrucha,\r\n");
- fwrite(Plik, "wyróh,\r\n");
- fwrite(Plik, "wyróch,\r\n");
- fwrite(Plik, "rucha,\r\n");
- fwrite(Plik, "obciag,\r\n");
- fwrite(Plik, "obciąg,\r\n");
- fwrite(Plik, "kurew,\r\n");
- fwrite(Plik, "kórew,\r\n");
- fwrite(Plik, "korew,\r\n");
- fwrite(Plik, "lacho,\r\n");
- fwrite(Plik, "gówn,\r\n");
- fwrite(Plik, "guwn,\r\n");
- fwrite(Plik, "debil,\r\n");
- fwrite(Plik, "fuck,\r\n");
- fwrite(Plik, "shit,\r\n");
- fwrite(Plik, "bitch,\r\n");
- fwrite(Plik, "bith,\r\n");
- fclose(Plik);
- )
- new File:Plik = fopen("AntyCheatConfig.ini", io_read);
- while(fread(Plik, str, sizeof(str), false))
- (
- ID++;
- switch(ID)
- (
- 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:
- (
- idx = 0;
- for(new i; i<2; i++) tmp = strtok(str, idx, '=');
- if(strcmp(tmp, "1\r\n", false) != 0 && strcmp(tmp, "0\r\n", false) != 0)
- (
- printf("\nZla konfiguracja AntyCheat'a.\nLinia: %s jest niepoprawna\nSerwer zostanie wylaczony za 3 sekundy.\n", str);
- SetTimer("WylaczSerwer", 3000, 0);
- return 0;
- )
- )
- case 121 .. 165:
- (
- idx = 0;
- for(new i; i<2; i++) tmp = strtok(str, idx, '=');
- if(strcmp(tmp, "1\r\n", false) != 0 && strcmp(tmp, "2\r\n", false) != 0 && strcmp(tmp, "3\r\n", false) != 0)
- (
- printf("\nZla konfiguracja AntyCheat'a\nLinia: %s jest niepoprawna\nSerwer zostanie wylaczony za 3 sekundy.\n", str);
- SetTimer("WylaczSerwer", 3000, 0);
- return 0;
- )
- )
- )
- )
- fclose(Plik);
- //Wczytywanie - cheat'y
- if(dini_Int("AntyCheatConfig.ini", "AntyGodMode") == 1) Anty[AntiGodMode] = SetTimer("AntyGod", 60000, 1);
- if(dini_Int("AntyCheatConfig.ini", "AntyJetpack") == 1) Anty[AntiJetpack] = SetTimer("AntyJetpack", 1000, 1);
- if(dini_Int("AntyCheatConfig.ini", "AntyInteriorWeapons") == 1) Anty[AntiIndoorsWeapons] = SetTimer("BronieWBudynku", 1000, 1);
- if(dini_Int("AntyCheatConfig.ini", "AntyWeaponCheat") == 1) Anty[AntiWeaponCheat] = SetTimer("AntyBronie", 1000, 1);
- if(dini_Int("AntyCheatConfig.ini", "AntyInfiniteAmmo") == 1) Anty[AntiInfiniteAmmo] = SetTimer("AntyUnlimitedAmmo", 1000, 1);
- if(dini_Int("AntyCheatConfig.ini", "AntyAntiBikeFallOff") == 1) Anty[AntiBikeFallOff] = SetTimer("AntyBikeFallOff", 1000, 1);
- if(dini_Int("AntyCheatConfig.ini", "AntyArmourCheat") == 1) Anty[AntiArmour] = SetTimer("AntyArmour", 1000, 1);
- if(dini_Int("AntyCheatConfig.ini", "AntyHealthCheat") == 1) Anty[AntiHealth] = SetTimer("AntyHP", 1000, 1);
- if(dini_Int("AntyCheatConfig.ini", "AntyMoneyCheat") == 1) Anty[AntiMoneyCheat] = SetTimer("AntyMoneyCheat", 1000, 1);
- if(dini_Int("AntyCheatConfig.ini", "AntyTeleport") == 1) Anty[AntiTeleport] = SetTimer("AntyTP", 1000, 1);
- if(dini_Int("AntyCheatConfig.ini", "AntyMegaJump") == 1) Anty[AntiMegaJump] = true;
- if(dini_Int("AntyCheatConfig.ini", "AntyFreezeVehicles") == 1) Anty[AntiFreezeVeh] = true;
- if(dini_Int("AntyCheatConfig.ini", "AntyVehicleWarp") == 1) Anty[AntiVehWarp] = true;
- if(dini_Int("AntyCheatConfig.ini", "AntyVehicleGod") == 1) Anty[AntiVehGod] = true;
- if(dini_Int("AntyCheatConfig.ini", "AntyInfiniteOxygen") == 1) Anty[AntiInfOxygen] = SetTimer("AntyInfOxygen", 1000, 1);
- if(dini_Int("AntyCheatConfig.ini", "AntyWalkUnderwater") == 1) Anty[AntiUnderwater] = SetTimer("AntyWalkUnderwater", 1000, 1);
- str = dini_Get("AntyCheatConfig.ini", "AntySpeedHack");
- if(strval(str) == 1) Anty[AntiSpeedHack] = true;
- Nick = dini_Get("AntyCheatConfig.ini", "AntyAirBrake");
- if(strval(Nick) == 1) Anty[AntiAirBrake] = true;
- if(strval(str) == 1 || strval(Nick) == 1) Anty[TimerAntiSpeedHack] = SetTimer("AntySpeed", 1000, 1);
- //Wczytywanie - inne
- if(dini_Int("AntyCheatConfig.ini", "AntyAFK") == 1) Anty[AntiAFK] = SetTimer("AntyAFK", 60000, 1);
- if(dini_Int("AntyCheatConfig.ini", "AntyPing") == 1) Anty[AntiPing] = SetTimer("AntyPing", 1000, 1);
- if(dini_Int("AntyCheatConfig.ini", "AntyDrive-By") == 1) Anty[AntyDB] = true;
- if(dini_Int("AntyCheatConfig.ini", "AntyDrive-Thru") == 1) Anty[AntyDT] = true;
- if(dini_Int("AntyCheatConfig.ini", "AntyHeliKill") == 1) Anty[AntyHK] = true;
- if(dini_Int("AntyCheatConfig.ini", "AntyHydraKill") == 1) Anty[AntyHydraK] = true;
- if(dini_Int("AntyCheatConfig.ini", "AntyCarKill") == 1) Anty[AntyCK] = true;
- if(dini_Int("AntyCheatConfig.ini", "AntyPlaneKill") == 1) Anty[AntyPlaneK] = true;
- if(dini_Int("AntyCheatConfig.ini", "AntyHunterKill") == 1) Anty[AntyHunterK] = true;
- if(dini_Int("AntyCheatConfig.ini", "AntyRhinoKill") == 1) Anty[AntyRhinoK] = true;
- if(dini_Int("AntyCheatConfig.ini", "AntySparrowKill") == 1) Anty[AntySparrowK] = true;
- if(dini_Int("AntyCheatConfig.ini", "AntyRustlerKill") == 1) Anty[AntyRustlerK] = true;
- if(dini_Int("AntyCheatConfig.ini", "AntySpawnKill") == 1) Anty[SpawnProtE] = true;
- if(dini_Int("AntyCheatConfig.ini", "AntyPodszywanie") == 1) Anty[AntiPodszywanie] = true;
- if(dini_Int("AntyCheatConfig.ini", "KomendaRaport") == 1) Anty[Raport] = true;
- if(dini_Int("AntyCheatConfig.ini", "BlackListGraczy") == 1) Anty[BL] = true;
- if(dini_Int("AntyCheatConfig.ini", "BlackListKlanow") == 1) Anty[BC] = true;
- if(dini_Int("AntyCheatConfig.ini", "AntyCrash") == 1) Anty[AntyCrash] = true;
- if(dini_Int("AntyCheatConfig.ini", "AntyPause") == 1) Anty[AntiPause] = SetTimer("AntyPause", 3000, 1);
- //Wczytywanie - chat
- if(dini_Int("AntyCheatConfig.ini", "AntyRepeat") == 1) Anty[AntyRepeat] = true;
- if(dini_Int("AntyCheatConfig.ini", "AntyBluzgi") == 1) Anty[AntyBluzgi] = true;
- if(dini_Int("AntyCheatConfig.ini", "AntyCapsLock") == 1) Anty[AntiCaps] = true;
- if(dini_Int("AntyCheatConfig.ini", "AntyReklamaSerwera") == 1) Anty[AntiIP] = true;
- if(dini_Int("AntyCheatConfig.ini", "AntyNadmierneBluzgi") == 1) Anty[AntiNadmierneBluzgi] = true;
- if(dini_Int("AntyCheatConfig.ini", "AntyReklamaStrony") == 1) Anty[AntiWWW] = true;
- if(dini_Int("AntyCheatConfig.ini", "AntyCommandFlood") == 1) Anty[AntiCmdFlood] = SetTimer("AntyCmdFlood", 1000, 1);
- if(dini_Int("AntyCheatConfig.ini", "AntyFlood") == 1) Anty[AntyFlood] = SetTimer("AntiFlood", 1000, 1);
- if(dini_Int("AntyCheatConfig.ini", "AntyPrivateMessageFlood") == 1) Anty[AntiPMFlood] = SetTimer("AntyPMFlood", 1000, 1);
- //Wczytywanie - bugi
- if(dini_Int("AntyCheatConfig.ini", "AntyGlitch") == 1) Anty[AntiGlitch] = true;
- if(dini_Int("AntyCheatConfig.ini", "AntyFasterSprint") == 1) Anty[AntiFasterSprint] = true;
- if(dini_Int("AntyCheatConfig.ini", "AntyVehicleDriverKilling") == 1) Anty[AntiVehicleDriverKilling] = true;
- if(dini_Int("AntyCheatConfig.ini", "AntyBugUnlimitedAmmo") == 1) Anty[AntiBugUA] = true;
- //Wczytywanie - opcje
- Anty[MaxPing] = dini_Int("AntyCheatConfig.ini", "MaxPing");
- Anty[CzasAFK] = dini_Int("AntyCheatConfig.ini", "CzasAFK");
- Anty[MaxSprint] = dini_Int("AntyCheatConfig.ini", "CzasSprint");
- Anty[MaxJump] = dini_Int("AntyCheatConfig.ini", "MaxSkokow");
- Anty[CzasSpawnProt] = dini_Int("AntyCheatConfig.ini", "CzasAntySpawnKill");
- Anty[MaxHydraK] = dini_Int("AntyCheatConfig.ini", "MaxHydraKill");
- Anty[MaxDB] = dini_Int("AntyCheatConfig.ini", "MaxDrive-By");
- Anty[MaxDT] = dini_Int("AntyCheatConfig.ini", "MaxDrive-Thru");
- Anty[MaxCK] = dini_Int("AntyCheatConfig.ini", "MaxCarKill");
- Anty[MaxHK] = dini_Int("AntyCheatConfig.ini", "MaxHeliKill");
- Anty[MaxHunterK] = dini_Int("AntyCheatConfig.ini", "MaxHunterKill");
- Anty[MaxRhinoK] = dini_Int("AntyCheatConfig.ini", "MaxRhinoKill");
- Anty[MaxSparrowK] = dini_Int("AntyCheatConfig.ini", "MaxSparrowKill");
- Anty[MaxRustlerK] = dini_Int("AntyCheatConfig.ini", "MaxRustlerKill");
- Anty[MaxPlaneK] = dini_Int("AntyCheatConfig.ini", "MaxPlaneKill");
- Anty[MaxSK] = dini_Int("AntyCheatConfig.ini", "MaxSpawnKill");
- Anty[MaxGlitch] = dini_Int("AntyCheatConfig.ini", "MaxGlitchy");
- //Wczytywanie - bronie
- if(dini_Int("AntyCheatConfig.ini", "AntyWeaponCheat") == 1)
- (
- if(dini_Int("AntyCheatConfig.ini", "Kastet") == 1) Bronie[1][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "KijGolfowy") == 1) Bronie[2][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "PalkaPolicyjna") == 1) Bronie[3][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "Noz") == 1) Bronie[4][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "Baseball") == 1) Bronie[5][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "Lopata") == 1) Bronie[6][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "KijBilardowy") == 1) Bronie[7][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "Katana") == 1) Bronie[8][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "Pila") == 1) Bronie[9][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "RozowyWibrator") == 1) Bronie[10][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "BialyWibrator") == 1) Bronie[11][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "DlugiBialyWibrator") == 1) Bronie[12][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "BialyWibrator2") == 1) Bronie[13][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "Kwiaty") == 1) Bronie[14][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "Laska") == 1) Bronie[15][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "Granaty") == 1) Bronie[16][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "GazLzawiacy") == 1) Bronie[17][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "Molotov") == 1) Bronie[18][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "Pistolety") == 1) Bronie[22][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "PistoletZTlumikiem") == 1) Bronie[23][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "DesertEagle") == 1) Bronie[24][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "Shotgun") == 1) Bronie[25][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "Obrzyny") == 1) Bronie[26][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "CombatShotgun") == 1) Bronie[27][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "Uzi") == 1) Bronie[28][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "MP5") == 1) Bronie[29][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "AK47") == 1) Bronie[30][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "M4") == 1) Bronie[31][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "Tec9") == 1) Bronie[32][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "CountryRifle") == 1) Bronie[33][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "Sniperka") == 1) Bronie[34][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "RPG") == 1) Bronie[35][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "WyrzutniaRakiet") == 1) Bronie[36][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "MiotaczOgnia") == 1) Bronie[37][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "Minigun") == 1) Bronie[38][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "C4") == 1) Bronie[39][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "Detonator") == 1) Bronie[40][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "Spray") == 1) Bronie[41][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "Gasnica") == 1) Bronie[42][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "AparatFotograficzny") == 1) Bronie[43][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "Noktowizor") == 1) Bronie[44][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "Termowizor") == 1) Bronie[45][Zakazana] = true;
- if(dini_Int("AntyCheatConfig.ini", "Spadochron") == 1) Bronie[46][Zakazana] = true;
- )
- //Wczytywanie - RP
- if(dini_Int("AntyCheatConfig.ini", "AntyEmotyIC") == 1) Anty[AntiICEmo] = true;
- if(dini_Int("AntyCheatConfig.ini", "AntyLongSprint") == 1) Anty[AntiLongSprint] = true;
- if(dini_Int("AntyCheatConfig.ini", "AntyBunnyHopping") == 1) Anty[AntiBunnyHop] = true;
- if(dini_Int("AntyCheatConfig.ini", "AntyNinjaJacking") == 1) Anty[AntiNinjaJacking] = true;
- //Wczytywanie - Kary
- Kara[Jetpack] = dini_Int("AntyCheatConfig.ini", "Jetpack");
- Kara[InteriorWeapons] = dini_Int("AntyCheatConfig.ini", "InteriorWeapons");
- Kara[WeaponCheat] = dini_Int("AntyCheatConfig.ini", "WeaponCheat");
- Kara[InfiniteAmmo] = dini_Int("AntyCheatConfig.ini", "InfiniteAmmo");
- Kara[AntyBikeFallOffK] = dini_Int("AntyCheatConfig.ini", "AntiBikeFallOff");
- Kara[ArmourCheat] = dini_Int("AntyCheatConfig.ini", "ArmourCheat");
- Kara[HealthCheat] = dini_Int("AntyCheatConfig.ini", "HealthCheat");
- Kara[MoneyCheat] = dini_Int("AntyCheatConfig.ini", "MoneyCheat");
- Kara[Teleport] = dini_Int("AntyCheatConfig.ini", "Teleport");
- Kara[MegaJumpK] = dini_Int("AntyCheatConfig.ini", "MegaJump");
- Kara[FreezeVehicles] = dini_Int("AntyCheatConfig.ini", "FreezeVehicles");
- Kara[VehicleWarp] = dini_Int("AntyCheatConfig.ini", "VehicleWarp");
- Kara[SpeedHack] = dini_Int("AntyCheatConfig.ini", "SpeedHack");
- Kara[AirBrake] = dini_Int("AntyCheatConfig.ini", "AirBrake");
- Kara[AFK] = dini_Int("AntyCheatConfig.ini", "AFK");
- Kara[Ping] = dini_Int("AntyCheatConfig.ini", "Ping");
- Kara[Jetpack] = dini_Int("AntyCheatConfig.ini", "Jetpack");
- Kara[DriveBy] = dini_Int("AntyCheatConfig.ini", "Drive-By");
- Kara[DriveThru] = dini_Int("AntyCheatConfig.ini", "Drive-Thru");
- Kara[HeliKill] = dini_Int("AntyCheatConfig.ini", "HeliKill");
- Kara[HydraKill] = dini_Int("AntyCheatConfig.ini", "HydraKill");
- Kara[CarKill] = dini_Int("AntyCheatConfig.ini", "CarKill");
- Kara[PlaneKill] = dini_Int("AntyCheatConfig.ini", "PlaneKill");
- Kara[HunterKill] = dini_Int("AntyCheatConfig.ini", "HunterKill");
- Kara[RhinoKill] = dini_Int("AntyCheatConfig.ini", "RhinoKill");
- Kara[SparrowKill] = dini_Int("AntyCheatConfig.ini", "SparrowKill");
- Kara[RustlerKill] = dini_Int("AntyCheatConfig.ini", "RustlerKill");
- Kara[SpawnKill] = dini_Int("AntyCheatConfig.ini", "SpawnKill");
- Kara[Podszywanie] = dini_Int("AntyCheatConfig.ini", "Podszywanie");
- Kara[ReklamaSerwera] = dini_Int("AntyCheatConfig.ini", "ReklamaSerwera");
- Kara[Flood] = dini_Int("AntyCheatConfig.ini", "Flood");
- Kara[PMFlood] = dini_Int("AntyCheatConfig.ini", "PrivateMessageFlood");
- Kara[CmdFlood] = dini_Int("AntyCheatConfig.ini", "CommandFlood");
- Kara[NadmierneBluzgi] = dini_Int("AntyCheatConfig.ini", "NadmierneBluzgi");
- Kara[GlitchK] = dini_Int("AntyCheatConfig.ini", "Glitch");
- Kara[FasterSprint] = dini_Int("AntyCheatConfig.ini", "FasterSprint");
- Kara[VehDriverKilling] = dini_Int("AntyCheatConfig.ini", "VehicleDriverKilling");
- Kara[BugUAK] = dini_Int("AntyCheatConfig.ini", "BugUnlimitedAmmo");
- Kara[NinjaJacking] = dini_Int("AntyCheatConfig.ini", "NinjaJacking");
- Kara[VehicleGodMode] = dini_Int("AntyCheatConfig.ini", "VehicleGodMode");
- Kara[GodMode] = dini_Int("AntyCheatConfig.ini", "GodMode");
- Kara[InfiniteOxygen] = dini_Int("AntyCheatConfig.ini", "InfiniteOxygen");
- Kara[WalkUnderwater] = dini_Int("AntyCheatConfig.ini", "WalkUnderwater");
- Kara[ReklamaStrony] = dini_Int("AntyCheatConfig.ini", "ReklamaStrony");
- Kara[Pauza] = dini_Int("AntyCheatConfig.ini", "Pause");
- Kara[ProbaCrash] = dini_Int("AntyCheatConfig.ini", "ProbaCrash");
- SetTimer("SprawdzAdmina", 1000, 1);
- SetTimer("NajwyzszeID", 800, 1);
- if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
- for(new i; i<Sloty; i++)
- if(IsPlayerConnected(i))
- (
- KillTimer(GraczInfo[i][ProtArmHP]);
- GraczInfo[i][Prot] = true;
- GraczInfo[i][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", i);
- )
- printf("\n----------------------------------\nAntyCheat by Przemcio. Edit by VisztaPL (%s)\n----------------------------------\n--- ON ---\n", Wersja);
- return 1;
- )
- public OnFilterScriptExit()
- (
- printf("\n----------------------------------\nAntyCheat by Przemcio. Edit by VisztaPL (%s)\n----------------------------------\n--- OFF ---\n", Wersja);
- return 1;
- )
- public OnPlayerConnect(playerid)
- (
- if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
- (
- KillTimer(GraczInfo[playerid][ProtArmHP]);
- GraczInfo[playerid][Prot] = true;
- GraczInfo[playerid][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", playerid);
- )
- format(str, sizeof(str), "AntyCheat by Przemo. Edycja by VisztaPL - załadowany. Prosimy nie oszukiwać.");
- SendClientMessage(playerid, RED, str);
- if(Anty[BL] == true)
- (
- new File:Plik = fopen("BLGracz.txt", io_read);
- GetPlayerName(playerid, Nick, sizeof(Nick));
- strdel(Nick, 0, strlen(GetPlayerClan(playerid)));
- while(fread(Plik, str, sizeof(str), false))
- (
- new idx;
- new Szukaj[256];
- Szukaj = strtok(str, idx, '-');
- if(strfind(Szukaj, Nick, false) != -1)
- (
- new Znak;
- new Co;
- new Powod[256];
- Co = strval(strtok(str, idx, '-'));
- Znak = idx;
- strmid(Powod, str, Znak, strlen(str), sizeof(Powod));
- GetPlayerName(playerid, Nick, sizeof(Nick));
- switch(Co)
- (
- case 1:
- (
- format(str, sizeof(str), "%s został wyrzucony przez Black List, powód: %s", Nick, Powod);
- SendClientMessageToAll(DARK, str);
- print(str);
- Kick(playerid);
- break;
- )
- case 2:
- (
- format(str, sizeof(str), "%s został zbanowany przez Black List, powód: %s", Nick, Powod);
- SendClientMessageToAll(DARK, str);
- print(str);
- Ban(playerid);
- break;
- )
- )
- break;
- )
- )
- fclose(Plik);
- )
- if(Anty[BC] == true)
- (
- new File:Plik = fopen("BLKlan.txt", io_read);
- while(fread(Plik, str, sizeof(str), false))
- (
- new idx;
- new Szukaj[256];
- Szukaj = strtok(str, idx, '-');
- if(strfind(Szukaj, GetPlayerClan(playerid), false) != -1)
- (
- new Znak;
- new Co;
- new Powod[256];
- Co = strval(strtok(str, idx, '-'));
- Znak = idx;
- strmid(Powod, str, Znak, strlen(str), sizeof(Powod));
- GetPlayerName(playerid, Nick, sizeof(Nick));
- switch(Co)
- (
- case 1:
- (
- format(str, sizeof(str), "%s został wyrzucony przez Clan Black List, powód: %s", Nick, Powod);
- SendClientMessageToAll(DARK, str);
- print(str);
- Kick(playerid);
- break;
- )
- case 2:
- (
- format(str, sizeof(str), "%s został zbanowany przez Clan Black List, powód: %s", Nick, Powod);
- SendClientMessageToAll(DARK, str);
- print(str);
- Ban(playerid);
- break;
- )
- )
- )
- )
- fclose(Plik);
- )
- if(Anty[AntiPodszywanie] == true)
- for(new i; i<HighestID+1; i++)
- (
- if(IsPlayerConnected(i) && i != playerid && IsPlayerAdmin(i))
- (
- GetPlayerName(playerid, Nick, sizeof(Nick));
- GetPlayerName(i, Nick2, sizeof(Nick2));
- if(strlen(Nick) == strlen(Nick2)) GraczInfo[playerid][TaSamaDlugosc] = true;
- for(new g; g<strlen(Nick); g++) if(Nick[g] == Nick2[g]) GraczInfo[playerid][PodobneZnaki]++;
- if(GraczInfo[playerid][TaSamaDlugosc] == true && strlen(Nick2) - GraczInfo[playerid][PodobneZnaki] <= 2)
- (
- format(str, sizeof(str), "Podszywanie się pod admina %s", Nick2);
- switch(Kara[Podszywanie])
- (
- case 1: Kickuj(playerid, str);
- case 2: Banuj(playerid, str);
- case 3: BanujHost(playerid, str);
- )
- )
- else if(GraczInfo[playerid][TaSamaDlugosc] == false && GraczInfo[playerid][PodobneZnaki] == strlen(Nick2))
- (
- format(str, sizeof(str), "Podszywanie się pod admina %s", Nick2);
- switch(Kara[Podszywanie])
- (
- case 1: Kickuj(playerid, str);
- case 2: Banuj(playerid, str);
- case 3: BanujHost(playerid, str);
- )
- )
- GraczInfo[playerid][PodobneZnaki] = 0;
- GraczInfo[playerid][TaSamaDlugosc] = false;
- )
- )
- return 1;
- )
- public OnPlayerDisconnect(playerid, reason)
- (
- GraczInfo[playerid][SpawnProt] = false;
- GraczInfo[playerid][AdminLogged] = false;
- GraczInfo[playerid][WarnAFK] = 0;
- GraczInfo[playerid][WarnPing] = 0;
- GraczInfo[playerid][WarnSpeed] = 0;
- GraczInfo[playerid][WarnJump] = 0;
- GraczInfo[playerid][WarnFlood] = 0;
- GraczInfo[playerid][StaraAmunicja] = 0;
- GraczInfo[playerid][NowaAmunicja] = 1;
- GraczInfo[playerid][SpawnKillWarn] = 0;
- GraczInfo[playerid][WarnUnlimitedAmmo] = 0;
- GraczInfo[playerid][WarnIndoors] = 0;
- GraczInfo[playerid][WarnBuger] = 0;
- GraczInfo[playerid][TimerBugerPoraz] = 0;
- GraczInfo[playerid][WarnGlitch] = 0;
- GraczInfo[playerid][WarnDB] = 0;
- GraczInfo[playerid][WarnCK] = 0;
- GraczInfo[playerid][WarnHK] = 0;
- GraczInfo[playerid][WarnHydraK] = 0;
- GraczInfo[playerid][WarnRhinoK] = 0;
- GraczInfo[playerid][WarnSparrowK] = 0;
- GraczInfo[playerid][WarnPause] = 0;
- GraczInfo[playerid][WarnPlaneK] = 0;
- GraczInfo[playerid][WarnDT] = 0;
- GraczInfo[playerid][WarnHunterK] = 0;
- GraczInfo[playerid][WarnRustlerK] = 0;
- GraczInfo[playerid][WarnLSprint] = 0;
- GraczInfo[playerid][WarnBunnyHop] = 0;
- GraczInfo[playerid][WarnSprint] = 0;
- GraczInfo[playerid][WarnCmdFlood] = 0;
- GraczInfo[playerid][Bluzg] = 0;
- GraczInfo[playerid][PodWoda] = 0;
- GraczInfo[playerid][WarnUnderwater] = 0;
- return 1;
- )
- public OnPlayerDeath(playerid, killerid, reason)
- (
- if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
- for(new i; i<HighestID+1; i++)
- (
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- if(PlayerToPoint(10, i, x, y, z) && IsPlayerConnected(i) && !IsPlayerAdmin(i))
- (
- KillTimer(GraczInfo[i][ProtArmHP]);
- GraczInfo[i][Prot] = true;
- GraczInfo[i][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", playerid);
- )
- )
- GraczInfo[playerid][PodWoda] = 0;
- if(GraczInfo[playerid][SpawnProt] == true)
- (
- GraczInfo[killerid][SpawnKillWarn]++;
- if(GraczInfo[killerid][SpawnKillWarn] == Anty[MaxSK])
- switch(Kara[SpawnKill])
- (
- case 1: Kickuj(killerid, "Spawn Kill");
- case 2: Banuj(killerid, "Spawn Kill");
- case 3: BanujHost(killerid, "Spawn Kill");
- )
- format(str, sizeof(str), "Nie zabijaj na spawnie! To Twoje {FFFFFF}%i/%i{FF0000} ostrzeżenie!", GraczInfo[killerid][SpawnKillWarn], Anty[MaxSK]);
- SendClientMessage(killerid, RED, str);
- )
- if(Anty[AntyCK] == true && !IsPlayerAdmin(killerid) && reason == 49 && IsPlayerInAnyVehicle(killerid) && !IsPlayerInHelicopter(killerid))
- (
- GraczInfo[killerid][WarnCK]++;
- if(GraczInfo[killerid][WarnCK] == Anty[MaxCK])
- switch(Kara[CarKill])
- (
- case 1: Kickuj(killerid, "Car Kill");
- case 2: Banuj(killerid, "Car Kill");
- case 3: BanujHost(killerid, "Car Kill");
- )
- format(str, sizeof(str), "Nie zabijaj pojazdem! To Twoje {FFFFFF}%i/%i{FF0000} ostrzeżenie!", GraczInfo[killerid][WarnCK], Anty[MaxCK]);
- SendClientMessage(killerid, RED, str);
- )
- if(Anty[AntyHK] == true && !IsPlayerAdmin(killerid) && reason == 50 && IsPlayerInAnyVehicle(killerid) && IsPlayerInHelicopter(killerid))
- (
- GraczInfo[killerid][WarnHK]++;
- if(GraczInfo[killerid][WarnHK] == Anty[MaxHK])
- switch(Kara[HeliKill])
- (
- case 1: Kickuj(killerid, "Heli Kill");
- case 2: Banuj(killerid, "Heli Kill");
- case 3: BanujHost(killerid, "Heli Kill");
- )
- format(str, sizeof(str), "Nie zabijaj helikopterem! To Twoje {FFFFFF}%i/%i{FF0000} ostrzeżenie!", GraczInfo[killerid][WarnHK], Anty[MaxHK]);
- SendClientMessage(killerid, RED, str);
- )
- if(Anty[AntyHydraK] == true && !IsPlayerAdmin(killerid) && reason == 51 && IsPlayerInAnyVehicle(killerid) && GetVehicleModel(GetPlayerVehicleID(killerid)) == 520)
- (
- GraczInfo[killerid][WarnHydraK]++;
- if(GraczInfo[killerid][WarnHydraK] == Anty[MaxHydraK])
- switch(Kara[HydraKill])
- (
- case 1: Kickuj(killerid, "Hydra Kill");
- case 2: Banuj(killerid, "Hydra Kill");
- case 3: BanujHost(killerid, "Hydra Kill");
- )
- format(str, sizeof(str), "Nie zabijaj Hydrą! To Twoje {FFFFFF}%i/%i{FF0000} ostrzeżenie!", GraczInfo[killerid][WarnHydraK], Anty[MaxHydraK]);
- SendClientMessage(killerid, RED, str);
- )
- if(Anty[AntyRustlerK] == true && !IsPlayerAdmin(killerid) && reason == WEAPON_M4 && IsPlayerInAnyVehicle(killerid) && GetVehicleModel(GetPlayerVehicleID(killerid)) == 476)
- (
- GraczInfo[killerid][WarnRustlerK]++;
- if(GraczInfo[killerid][WarnRustlerK] == Anty[MaxRustlerK])
- switch(Kara[RustlerKill])
- (
- case 1: Kickuj(killerid, "Rustler Kill");
- case 2: Banuj(killerid, "Rustler Kill");
- case 3: BanujHost(killerid, "Rustler Kill");
- )
- format(str, sizeof(str), "Nie zabijaj Rustler'em! To Twoje {FFFFFF}%i/%i{FF0000} ostrzeżenie!", GraczInfo[killerid][WarnRustlerK], Anty[MaxRustlerK]);
- SendClientMessage(killerid, RED, str);
- )
- if(Anty[AntyHunterK] == true && !IsPlayerAdmin(killerid) && (reason == WEAPON_MINIGUN || reason == 51) && IsPlayerInAnyVehicle(killerid) && GetVehicleModel(GetPlayerVehicleID(killerid)) == 425)
- (
- GraczInfo[killerid][WarnHunterK]++;
- if(GraczInfo[killerid][WarnHunterK] == Anty[MaxHunterK])
- switch(Kara[HunterKill])
- (
- case 1: Kickuj(killerid, "Hunter Kill");
- case 2: Banuj(killerid, "Hunter Kill");
- case 3: BanujHost(killerid, "Hunter Kill");
- )
- format(str, sizeof(str), "Nie zabijaj Hunter'em! To Twoje {FFFFFF}%i/%i{FF0000} ostrzeżenie!", GraczInfo[killerid][WarnHunterK], Anty[MaxHunterK]);
- SendClientMessage(killerid, RED, str);
- )
- if(Anty[AntySparrowK] == true && !IsPlayerAdmin(killerid) && reason == WEAPON_M4 && IsPlayerInAnyVehicle(killerid) && GetVehicleModel(GetPlayerVehicleID(killerid)) == 447)
- (
- GraczInfo[killerid][WarnSparrowK]++;
- if(GraczInfo[killerid][WarnSparrowK] == Anty[MaxSparrowK])
- switch(Kara[SparrowKill])
- (
- case 1: Kickuj(killerid, "Sparrow Kill");
- case 2: Banuj(killerid, "Sparrow Kill");
- case 3: BanujHost(killerid, "Sparrow Kill");
- )
- format(str, sizeof(str), "Nie zabijaj Sea-sparrow'em! To Twoje {FFFFFF}%i/%i{FF0000} ostrzeżenie!", GraczInfo[killerid][WarnSparrowK], Anty[MaxSparrowK]);
- SendClientMessage(killerid, RED, str);
- )
- if(Anty[AntyRhinoK] == true && !IsPlayerAdmin(killerid) && reason == 51 && IsPlayerInAnyVehicle(killerid) && GetVehicleModel(GetPlayerVehicleID(killerid)) == 432)
- (
- GraczInfo[killerid][WarnRhinoK]++;
- if(GraczInfo[killerid][WarnRhinoK] == Anty[MaxRhinoK])
- switch(Kara[RhinoKill])
- (
- case 1: Kickuj(killerid, "Rhino Kill");
- case 2: Banuj(killerid, "Rhino Kill");
- case 3: BanujHost(killerid, "Rhino Kill");
- )
- format(str, sizeof(str), "Nie zabijaj czołgiem! To Twoje {FFFFFF}%i/%i{FF0000} ostrzeżenie!", GraczInfo[killerid][WarnRhinoK], Anty[MaxRhinoK]);
- SendClientMessage(killerid, RED, str);
- )
- if(Anty[AntyPlaneK] == true && !IsPlayerAdmin(killerid) && reason == 54 && IsPlayerInAnyVehicle(killerid))
- (
- GraczInfo[killerid][WarnPlaneK]++;
- if(GraczInfo[killerid][WarnPlaneK] == Anty[MaxPlaneK])
- (
- switch(Kara[PlaneKill])
- (
- case 1: Kickuj(killerid, "Plane Kill");
- case 2: Banuj(killerid, "Plane Kill");
- case 3: BanujHost(killerid, "Plane Kill");
- )
- )
- format(str, sizeof(str), "Nie zabijaj samolotem! To Twoje {FFFFFF}%i/%i{FF0000} ostrzeżenie!", GraczInfo[killerid][WarnPlaneK], Anty[MaxPlaneK]);
- SendClientMessage(killerid, RED, str);
- )
- if(Anty[AntyDB] == true && !IsPlayerAdmin(killerid) && (reason == WEAPON_TEC9 || reason == WEAPON_MP5 || reason == WEAPON_UZI) && GetPlayerState(killerid) == PLAYER_STATE_DRIVER && !IsPlayerInAnyVehicle(playerid))
- (
- GraczInfo[killerid][WarnDB]++;
- if(GraczInfo[killerid][WarnDB] == Anty[MaxDB])
- switch(Kara[DriveBy])
- (
- case 1: Kickuj(killerid, "Drive-By");
- case 2: Banuj(killerid, "Drive-By");
- case 3: BanujHost(killerid, "Drive-By");
- )
- format(str, sizeof(str), "Nie strzelaj z Drive-By! To Twoje {FFFFFF}%i/%i{FF0000} ostrzeżenie!", GraczInfo[killerid][WarnDB], Anty[MaxDB]);
- SendClientMessage(killerid, RED, str);
- )
- if(Anty[AntyDT] == true && !IsPlayerAdmin(killerid) && (reason == WEAPON_TEC9 || reason == WEAPON_MP5 || reason == WEAPON_UZI) && GetPlayerState(killerid) == PLAYER_STATE_PASSENGER && !IsPlayerInAnyVehicle(playerid))
- (
- GraczInfo[killerid][WarnDT]++;
- if(GraczInfo[killerid][WarnDT] == Anty[MaxDT])
- switch(Kara[DriveThru])
- (
- case 1: Kickuj(killerid, "Drive-Thru");
- case 2: Banuj(killerid, "Drive-Thru");
- case 3: BanujHost(killerid, "Drive-Thru");
- )
- format(str, sizeof(str), "Nie strzelaj z Drive-Thru! To Twoje {FFFFFF}%i/%i{FF0000} ostrzeżenie!", GraczInfo[killerid][WarnDT], Anty[MaxDT]);
- SendClientMessage(killerid, RED, str);
- )
- return 1;
- )
- public OnPlayerEnterCheckpoint(playerid)
- (
- if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
- for(new i; i<HighestID+1; i++)
- (
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- if(PlayerToPoint(10, i, x, y, z) && IsPlayerConnected(i) && !IsPlayerAdmin(i))
- (
- KillTimer(GraczInfo[i][ProtArmHP]);
- GraczInfo[i][Prot] = true;
- GraczInfo[i][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", playerid);
- )
- )
- return 1;
- )
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- (
- if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
- for(new i; i<HighestID+1; i++)
- (
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- if(PlayerToPoint(10, i, x, y, z) && IsPlayerConnected(i) && !IsPlayerAdmin(i))
- (
- KillTimer(GraczInfo[i][ProtArmHP]);
- GraczInfo[i][Prot] = true;
- GraczInfo[i][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", playerid);
- )
- )
- return 1;
- )
- public OnPlayerExitVehicle(playerid, vehicleid)
- (
- if(Anty[AntiGodMode] != 0 && GraczInfo[playerid][TimerProtGod] == 0)
- (
- KillTimer(GraczInfo[playerid][ProtGod]);
- GraczInfo[playerid][ProtGod] = true;
- GraczInfo[playerid][TimerProtGod] = SetTimerEx("UsunProtGod", 4000, 0, "d", playerid);
- )
- if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
- for(new i; i<HighestID+1; i++)
- (
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- if(PlayerToPoint(10, i, x, y, z) && IsPlayerConnected(i) && !IsPlayerAdmin(i))
- (
- KillTimer(GraczInfo[i][ProtArmHP]);
- GraczInfo[i][Prot] = true;
- GraczInfo[i][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", playerid);
- )
- )
- GraczInfo[playerid][OldVeh] = vehicleid;
- return 1;
- )
- public OnVehicleDeath(vehicleid, killerid)
- (
- if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
- (
- KillTimer(GraczInfo[VehicleDriverID(vehicleid)][ProtArmHP]);
- GraczInfo[VehicleDriverID(vehicleid)][Prot] = true;
- GraczInfo[VehicleDriverID(vehicleid)][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", VehicleDriverID(vehicleid));
- )
- CarOldX[vehicleid] = 0;
- CarOldY[vehicleid] = 0;
- CarOldZ[vehicleid] = 0;
- return 1;
- )
- public OnVehicleSpawn(vehicleid)
- (
- if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
- (
- KillTimer(GraczInfo[VehicleDriverID(vehicleid)][ProtArmHP]);
- GraczInfo[VehicleDriverID(vehicleid)][Prot] = true;
- GraczInfo[VehicleDriverID(vehicleid)][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", VehicleDriverID(vehicleid));
- )
- CarOldX[vehicleid] = 0;
- CarOldY[vehicleid] = 0;
- CarOldZ[vehicleid] = 0;
- return 1;
- )
- public OnVehicleRespray(vehicleid, color1, color2)
- (
- if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
- (
- KillTimer(GraczInfo[VehicleDriverID(vehicleid)][ProtArmHP]);
- GraczInfo[VehicleDriverID(vehicleid)][Prot] = true;
- GraczInfo[VehicleDriverID(vehicleid)][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", VehicleDriverID(vehicleid));
- )
- return 1;
- )
- public OnVehicleMod(vehicleid, componentid)
- (
- if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
- (
- KillTimer(GraczInfo[VehicleDriverID(vehicleid)][ProtArmHP]);
- GraczInfo[VehicleDriverID(vehicleid)][Prot] = true;
- GraczInfo[VehicleDriverID(vehicleid)][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", VehicleDriverID(vehicleid));
- )
- return 1;
- )
- public OnVehiclePaintjob(vehicleid, paintjobid)
- (
- if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
- (
- KillTimer(GraczInfo[VehicleDriverID(vehicleid)][ProtArmHP]);
- GraczInfo[VehicleDriverID(vehicleid)][Prot] = true;
- GraczInfo[VehicleDriverID(vehicleid)][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", VehicleDriverID(vehicleid));
- )
- return 1;
- )
- public OnPlayerRequestClass(playerid, classid)
- (
- if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
- for(new i; i<HighestID+1; i++)
- (
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- if(PlayerToPoint(10, i, x, y, z) && IsPlayerConnected(i) && !IsPlayerAdmin(i))
- (
- KillTimer(GraczInfo[i][ProtArmHP]);
- GraczInfo[i][Prot] = true;
- GraczInfo[i][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", playerid);
- )
- )
- return 1;
- )
- public OnPlayerStateChange(playerid, newstate, oldstate)
- (
- if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
- for(new i; i<HighestID+1; i++)
- (
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- if(PlayerToPoint(10, i, x, y, z) && IsPlayerConnected(i) && !IsPlayerAdmin(i))
- (
- KillTimer(GraczInfo[i][ProtArmHP]);
- GraczInfo[i][Prot] = true;
- GraczInfo[i][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", playerid);
- )
- )
- if(Anty[AntiVehWarp] == true && !IsPlayerAdmin(playerid) && oldstate == PLAYER_STATE_DRIVER) GetPlayerPos(playerid, CarOldX[GraczInfo[playerid][OldVeh]], CarOldY[GraczInfo[playerid][OldVeh]], CarOldZ[GraczInfo[playerid][OldVeh]]);
- if(Anty[AntiVehGod] == true && !IsPlayerAdmin(playerid) && newstate == PLAYER_STATE_DRIVER)
- (
- KillTimer(GraczInfo[playerid][TimerGod]);
- GraczInfo[playerid][TimerGod] = 0;
- GetVehicleHealth(GetPlayerVehicleID(playerid), GraczInfo[playerid][GodWozStareHP]);
- GraczInfo[playerid][TimerBombaVehGod] = SetTimerEx("BombaVehGod", 300, 0, "d", playerid);
- )
- return 1;
- )
- public OnPlayerLeaveCheckpoint(playerid)
- (
- if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
- for(new i; i<HighestID+1; i++)
- (
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- if(PlayerToPoint(10, i, x, y, z) && IsPlayerConnected(i) && !IsPlayerAdmin(i))
- (
- KillTimer(GraczInfo[i][ProtArmHP]);
- GraczInfo[i][Prot] = true;
- GraczInfo[i][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", playerid);
- )
- )
- return 1;
- )
- public OnPlayerPrivmsg(playerid, recieverid, text[])
- (
- if(Anty[AntyRepeat] == true && !IsPlayerAdmin(playerid))
- (
- if(strcmp(GraczInfo[playerid][PMText], text, false) == 0 && strlen(GraczInfo[playerid][PMText]) != 0)
- (
- if(Anty[AntiPMFlood] != 0) GraczInfo[playerid][WarnPMFlood]++;
- SendClientMessage(playerid, RED, "Nie spamuj bo zostaniesz wyrzucony!");
- return 0;
- )
- format(GraczInfo[playerid][PMText], 256, "%s", text);
- )
- GraczInfo[playerid][WarnPMFlood]++;
- SprawdzBluzgi(playerid, text);
- if(Anty[AntiCaps] == true)
- (
- new DuzeLitery;
- for(new i; i<strlen(text); i++)
- if(text[i] >= 'A' && text[i] <= 'Z') DuzeLitery++;
- if(strlen(text) / DuzeLitery <= 2)
- for(new i = 1; i<strlen(text); i++) text[i] = tolower(text[i]);
- )
- return 1;
- )
- public OnPlayerRequestSpawn(playerid)
- (
- if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
- for(new i; i<HighestID+1; i++)
- (
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- if(PlayerToPoint(10, i, x, y, z) && IsPlayerConnected(i) && !IsPlayerAdmin(i))
- (
- KillTimer(GraczInfo[i][ProtArmHP]);
- GraczInfo[i][Prot] = true;
- GraczInfo[i][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", playerid);
- )
- )
- return 1;
- )
- public OnPlayerSelectedMenuRow(playerid, row)
- (
- if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
- for(new i; i<HighestID+1; i++)
- (
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- if(PlayerToPoint(10, i, x, y, z) && IsPlayerConnected(i) && !IsPlayerAdmin(i))
- (
- KillTimer(GraczInfo[i][ProtArmHP]);
- GraczInfo[i][Prot] = true;
- GraczInfo[i][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", playerid);
- )
- )
- return 1;
- )
- public OnPlayerExitedMenu(playerid)
- (
- if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
- for(new i; i<HighestID+1; i++)
- (
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- if(PlayerToPoint(10, i, x, y, z) && IsPlayerConnected(i) && !IsPlayerAdmin(i))
- (
- KillTimer(GraczInfo[i][ProtArmHP]);
- GraczInfo[i][Prot] = true;
- GraczInfo[i][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", playerid);
- )
- )
- return 1;
- )
- public OnPlayerPickUpPickup(playerid, pickupid)
- (
- if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
- for(new i; i<HighestID+1; i++)
- (
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- if(PlayerToPoint(10, i, x, y, z) && IsPlayerConnected(i) && !IsPlayerAdmin(i))
- (
- KillTimer(GraczInfo[i][ProtArmHP]);
- GraczInfo[i][Prot] = true;
- GraczInfo[i][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", playerid);
- )
- )
- return 1;
- )
- public OnPlayerSpawn(playerid)
- (
- if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
- for(new i; i<HighestID+1; i++)
- (
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- if(PlayerToPoint(10, i, x, y, z) && IsPlayerConnected(i) && !IsPlayerAdmin(i))
- (
- KillTimer(GraczInfo[i][ProtArmHP]);
- GraczInfo[i][Prot] = true;
- GraczInfo[i][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", playerid);
- )
- )
- GraczInfo[playerid][PodWoda] = 0;
- if(Anty[SpawnProtE] == true)
- (
- GraczInfo[playerid][SpawnProt] = true;
- GraczInfo[playerid][SpawnProtT] = SetTimerEx("WylaczSpawnProt", Anty[CzasSpawnProt]*1000, 0, "d", playerid);
- )
- return 1;
- )
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- (
- if(Anty[AntiMegaJump] == true && newkeys & KEY_JUMP && !IsPlayerAdmin(playerid) && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT && GraczInfo[playerid][PierwszeZ] == 0 && GraczInfo[playerid][WarnSpeed] == 0)
- (
- GetServerVarAsString("gravity", str, sizeof(str));
- if(strcmp(str, "0.008", true) == 0)
- (
- new Float:x, Float:y;
- GetPlayerHealth(playerid, GraczInfo[playerid][StareHPMJ]);
- GetPlayerPos(playerid, x, y, GraczInfo[playerid][PierwszeZ]);
- GraczInfo[playerid][TimerMegaJump] = SetTimerEx("MegaJump", 500, 0, "d", playerid);
- )
- )
- if(Anty[AntiFasterSprint] == true && !IsPlayerAdmin(playerid) && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT && newkeys & KEY_SPRINT)
- (
- new Cos;
- GetPlayerKeys(playerid, Cos, GraczInfo[playerid][GoraDol], GraczInfo[playerid][LewoPrawo]);
- if(GraczInfo[playerid][GoraDol] != 0 || GraczInfo[playerid][LewoPrawo] != 0)
- (
- if(GraczInfo[playerid][TimerBieg] == 0) GraczInfo[playerid][TimerBieg] = SetTimerEx("SprawdzBieg", 3000, 0, "d", playerid);
- GraczInfo[playerid][WarnSprint]++;
- if(GraczInfo[playerid][WarnSprint] == 10)
- (
- switch(Kara[FasterSprint])
- (
- case 1: Kickuj(playerid, "Faster Sprint");
- case 2: Banuj(playerid, "Faster Sprint");
- case 3: BanujHost(playerid, "Faster Sprint");
- )
- KillTimer(GraczInfo[playerid][TimerBieg]);
- GraczInfo[playerid][TimerBieg] = 0;
- )
- )
- )
- if(Anty[AntiLongSprint] == true && newkeys & KEY_SPRINT && !IsPlayerAdmin(playerid) && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT && GraczInfo[playerid][TimerWstan] == 0 && GraczInfo[playerid][TimerLongSprint] == 0)
- (
- new Cos;
- GetPlayerKeys(playerid, Cos, GraczInfo[playerid][GoraDol], GraczInfo[playerid][LewoPrawo]);
- if(GraczInfo[playerid][GoraDol] != 0 || GraczInfo[playerid][LewoPrawo] != 0) GraczInfo[playerid][TimerLongSprint] = SetTimerEx("LongSprint", 1000, 1, "d", playerid);
- )
- if(Anty[AntiLongSprint] == true && !IsPlayerAdmin(playerid) && oldkeys & KEY_SPRINT)
- (
- KillTimer(GraczInfo[playerid][TimerLongSprint]);
- GraczInfo[playerid][TimerLongSprint] = 0;
- GraczInfo[playerid][WarnLSprint] = 0;
- )
- if(Anty[AntiBunnyHop] == true && !IsPlayerAdmin(playerid) && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT && newkeys & KEY_JUMP && GraczInfo[playerid][TimerWstan] == 0)
- (
- if(GraczInfo[playerid][TimerBunnyHop] == 0) GraczInfo[playerid][TimerBunnyHop] = SetTimerEx("BunnyHop", 5000, 0, "d", playerid);
- GraczInfo[playerid][WarnBunnyHop]++;
- if(GraczInfo[playerid][WarnBunnyHop] > Anty[MaxJump])
- (
- GraczInfo[playerid][WarnBunnyHop] = 0;
- SendClientMessage(playerid, YELLOW, "Przewróciłeś się!");
- ApplyAnimation(playerid, "PED", "FLOOR_hit_f", 4.1, 0, 1, 1, 1, 0);
- GraczInfo[playerid][TimerWstan] = SetTimerEx("Wstan", 5000, 0, "d", playerid);
- KillTimer(GraczInfo[playerid][TimerBunnyHop]);
- GraczInfo[playerid][TimerBunnyHop] = 0;
- )
- )
- if(Anty[AntiGlitch] == true && !IsPlayerAdmin(playerid) && newkeys & KEY_FIRE && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT && GraczInfo[playerid][Klawisz] == 0)
- (
- new Bron;
- Bron = GetPlayerWeapon(playerid);
- if(Bron == 23 || Bron == 24 || Bron == 25 || Bron == 27 || Bron == 29 || Bron == 30 || Bron == 31 || Bron == 33 || Bron == 34 || Bron == 41 || Bron == 42)
- (
- GraczInfo[playerid][Klawisz] = KEY_FIRE;
- if(GraczInfo[playerid][TimerGlitch] == 0) GraczInfo[playerid][TimerGlitch] = SetTimerEx("Glitch", 500, 0, "d", playerid);
- )
- )
- if(newkeys & KEY_CROUCH && GraczInfo[playerid][Klawisz] == KEY_FIRE) GraczInfo[playerid][Klawisz] = KEY_CROUCH;
- if((newkeys & KEY_JUMP || newkeys & KEY_SPRINT) && GraczInfo[playerid][Klawisz] == KEY_CROUCH)
- (
- KillTimer(GraczInfo[playerid][TimerGlitch]);
- GraczInfo[playerid][TimerGlitch] = 0;
- GraczInfo[playerid][WarnGlitch]++;
- GraczInfo[playerid][Klawisz] = 0;
- if(GraczInfo[playerid][WarnGlitch] == Anty[MaxGlitch])
- switch(Kara[GlitchK])
- (
- case 1: Kickuj(playerid, "Glitch");
- case 2: Banuj(playerid, "Glitch");
- case 3: BanujHost(playerid, "Glitch");
- )
- )
- if(Anty[AntiBugUA] == true && !IsPlayerAdmin(playerid) && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT && newkeys & KEY_FIRE && GetPlayerWeapon(playerid) == 0 && GraczInfo[playerid][Klawisz] == 0)
- (
- GraczInfo[playerid][Klawisz] = 666;
- if(GraczInfo[playerid][TimerUA] == 0) GraczInfo[playerid][TimerUA] = SetTimerEx("BugUA", 1000, 0, "d", playerid);
- )
- if(newkeys & KEY_CROUCH && GraczInfo[playerid][Klawisz] == 666 && GetPlayerWeapon(playerid) == 0)
- (
- GraczInfo[playerid][CrouchTimes]++;
- if(GraczInfo[playerid][CrouchTimes] == 3)
- (
- KillTimer(GraczInfo[playerid][TimerUA]);
- GraczInfo[playerid][TimerUA] = 0;
- GraczInfo[playerid][Klawisz] = 0;
- switch(Kara[BugUAK])
- (
- case 1: Kickuj(playerid, "Bug Unlimited Ammo");
- case 2: Banuj(playerid, "Bug Unlimited Ammo");
- case 3: BanujHost(playerid, "Bug Unlimited Ammo");
- )
- )
- )
- return 1;
- )
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- (
- if(Anty[AntiGodMode] != 0 && GraczInfo[playerid][TimerProtGod] == 0)
- (
- KillTimer(GraczInfo[playerid][ProtGod]);
- GraczInfo[playerid][ProtGod] = true;
- GraczInfo[playerid][TimerProtGod] = SetTimerEx("UsunProtGod", 4000, 0, "d", playerid);
- )
- if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
- for(new i; i<HighestID+1; i++)
- (
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- if(PlayerToPoint(10, i, x, y, z) && IsPlayerConnected(i) && !IsPlayerAdmin(i))
- (
- KillTimer(GraczInfo[i][ProtArmHP]);
- GraczInfo[i][Prot] = true;
- GraczInfo[i][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", playerid);
- )
- )
- if(Anty[AntiVehWarp] == true && ispassenger == 0)
- (
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- if(CarOldX[vehicleid] != 0 && CarOldY[vehicleid] != 0 && CarOldZ[vehicleid] != 0 && GetPointDistanceToPoint(x, y, CarOldX[vehicleid], CarOldY[vehicleid]) >= 200)
- switch(Kara[VehicleWarp])
- (
- case 1: Kickuj(playerid, "Vehicle Warp");
- case 2: Banuj(playerid, "Vehicle Warp");
- case 3: BanujHost(playerid, "Vehicle Warp");
- )
- )
- if(Anty[AntiBikeFallOff] != 0)
- (
- GraczInfo[playerid][WozNewHP] = 0;
- GraczInfo[playerid][WozOldHP] = 0;
- )
- if(Anty[AntiHealth] != 0)
- (
- new Float: x;
- GetVehicleHealth(vehicleid, x);
- GraczInfo[playerid][NewVehHP] = x;
- GraczInfo[playerid][OldVehHP] = x;
- )
- if(Anty[AntiVehicleDriverKilling] == true && !IsPlayerAdmin(playerid) && ispassenger == 0)
- (
- for(new i; i<HighestID+1; i++)
- if(IsPlayerConnected(i))
- 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);
- )
- if(Anty[AntiNinjaJacking] == true && !IsPlayerAdmin(playerid) && ispassenger == 0)
- for(new i; i<HighestID+1; i++)
- if(i != playerid && IsPlayerConnected(i) && IsPlayerInVehicle(i, vehicleid) && GetPlayerState(i) == PLAYER_STATE_DRIVER)
- switch(Kara[NinjaJacking])
- (
- case 1: Kickuj(playerid, "Ninja Jacking");
- case 2: Banuj(playerid, "Ninja Jacking");
- case 3: BanujHost(playerid, "Ninja Jacking");
- )
- if(Anty[AntiFreezeVeh] == true && !IsPlayerAdmin(playerid))
- for(new i; i<HighestID+1; i++)
- if(IsPlayerConnected(i))
- (
- new Float:x, Float:y, Float:z, Float:x3, Float:y3, Float:z3;
- GetPlayerPos(playerid, x, y, z);
- GetVehiclePos(vehicleid, x3, y3, z3);
- if(i != playerid && IsPlayerInVehicle(i, vehicleid) && GetPlayerState(i) == PLAYER_STATE_DRIVER && GetPointDistanceToPoint(x, y, x3, y3) >= 20)
- switch(Kara[FreezeVehicles])
- (
- case 1: Kickuj(playerid, "Freeze Vehicles");
- case 2: Banuj(playerid, "Freeze Vehicles");
- case 3: BanujHost(playerid, "Freeze Vehicles");
- )
- )
- return 1;
- )
- public OnPlayerCommandText(playerid, cmdtext[])
- (
- if(Anty[AntyCrash] == true && strlen(cmdtext) >= 50)
- (
- switch(Kara[ProbaCrash])
- (
- case 1: Kickuj(playerid, "Próbę Crash'owania Serwera");
- case 2: Banuj(playerid, "Próbę Crash'owania Serwera");
- case 3: BanujHost(playerid, "Próbę Crash'owania Serwera");
- )
- return 0;
- )
- new idx1;
- new id[256];
- GraczInfo[playerid][WarnCmdFlood]++;
- dcmd(aspeed, 6, cmdtext);
- dcmd(aafk, 4, cmdtext);
- dcmd(abikefall, 9, cmdtext);
- dcmd(aweapcheat, 9, cmdtext);
- dcmd(aindoors, 8, cmdtext);
- dcmd(ainfiammo, 9, cmdtext);
- dcmd(ajet, 4, cmdtext);
- dcmd(amaxafk, 7, cmdtext);
- dcmd(amaxping, 8, cmdtext);
- dcmd(aping, 5, cmdtext);
- dcmd(amegajump, 9, cmdtext);
- dcmd(azbron, 6, cmdtext);
- dcmd(ask, 3, cmdtext);
- dcmd(askczas, 7, cmdtext);
- dcmd(adb, 3, cmdtext);
- dcmd(adt, 3, cmdtext);
- dcmd(ahk, 3, cmdtext);
- dcmd(ack, 3, cmdtext);
- dcmd(ahydrak, 7, cmdtext);
- dcmd(aflood, 6, cmdtext);
- dcmd(aairbrake, 9, cmdtext);
- dcmd(aarmour, 7, cmdtext);
- dcmd(ahp, 3, cmdtext);
- dcmd(avdk, 4, cmdtext);
- dcmd(ark, 3, cmdtext);
- dcmd(ahunterk, 8, cmdtext);
- dcmd(arhinok, 7, cmdtext);
- dcmd(asparrowk, 9, cmdtext);
- dcmd(apause, 6, cmdtext);
- dcmd(aplanek, 7, cmdtext);
- dcmd(abluzgi, 7, cmdtext);
- dcmd(arepeat, 7, cmdtext);
- dcmd(avehgod, 7, cmdtext);
- dcmd(afsprint, 8, cmdtext);
- dcmd(aglitch, 7, cmdtext);
- dcmd(anj, 3, cmdtext);
- dcmd(amaxhop, 7, cmdtext);
- dcmd(amaxsprint, 10, cmdtext);
- dcmd(abhop, 5, cmdtext);
- dcmd(aemoic, 6, cmdtext);
- dcmd(alsprint, 8, cmdtext);
- dcmd(acaps, 5, cmdtext);
- dcmd(aip, 3, cmdtext);
- dcmd(accmd, 5, cmdtext);
- dcmd(apodsz, 6, cmdtext);
- dcmd(atp, 3, cmdtext);
- dcmd(amoney, 6, cmdtext);
- dcmd(report, 6, cmdtext);
- dcmd(afreezeveh, 10, cmdtext);
- dcmd(abugua, 6, cmdtext);
- dcmd(acmdflood, 9, cmdtext);
- dcmd(avehwarp, 8, cmdtext);
- dcmd(apmflood, 8, cmdtext);
- dcmd(anadbluzgi, 9, cmdtext);
- dcmd(acckara, 7, cmdtext);
- dcmd(karahelp, 8, cmdtext);
- dcmd(amaxhydrak, 10, cmdtext);
- dcmd(amaxhunterk, 11, cmdtext);
- dcmd(amaxdb, 6, cmdtext);
- dcmd(amaxck, 6, cmdtext);
- dcmd(amaxdt, 6, cmdtext);
- dcmd(amaxhk, 6, cmdtext);
- dcmd(amaxsparrowk, 12, cmdtext);
- dcmd(amaxrhinok, 10, cmdtext);
- dcmd(amaxsk, 7, cmdtext);
- dcmd(amaxplanek, 10, cmdtext);
- dcmd(amaxrustlerk, 11, cmdtext);
- dcmd(amaxglitch, 10, cmdtext);
- dcmd(agod, 4, cmdtext);
- dcmd(accbl, 5, cmdtext);
- dcmd(accbc, 5, cmdtext);
- dcmd(ainfioxy, 8, cmdtext);
- dcmd(awunder, 7, cmdtext);
- dcmd(awww, 4, cmdtext);
- dcmd(accbcr, 6, cmdtext);
- dcmd(accblr, 6, cmdtext);
- dcmd(acrash, 6, cmdtext);
- dcmd(accbluzg, 8, cmdtext);
- dcmd(accemo, 6, cmdtext);
- dcmd(accbluzgr, 9, cmdtext);
- dcmd(accemor, 7, cmdtext);
- if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0)
- for(new i; i<HighestID+1; i++)
- (
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- if(PlayerToPoint(10, i, x, y, z) && IsPlayerConnected(i) && !IsPlayerAdmin(i))
- (
- KillTimer(GraczInfo[i][ProtArmHP]);
- GraczInfo[i][Prot] = true;
- GraczInfo[i][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", playerid);
- )
- )
- id = strtok(cmdtext, idx1, ' ');
- for(new i; i<3; i++)
- (
- id = strtok(cmdtext, idx1, ' ');
- if(strval(id) >= -1 && strval(id) < 200)
- if(Anty[AntiArmour] != 0 || Anty[AntiHealth] != 0 || Anty[AntiMoneyCheat] != 0 || Anty[AntiTeleport] != 0 && IsPlayerConnected(strval(id)))
- (
- KillTimer(GraczInfo[strval(id)][ProtArmHP]);
- GraczInfo[strval(id)][Prot] = true;
- GraczInfo[strval(id)][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", strval(id));
- )
- )
- return 0;
- )
- public OnPlayerText(playerid, text[])
- (
- if(Anty[AntiICEmo] == true)
- (
- new File:Plik = fopen("Emotikonki.txt", io_read);
- while(fread(Plik, str, sizeof(str), false))
- (
- new idx;
- Nick = strtok(str, idx, ',');
- if(strfind(text, Nick, false) != -1) DisableWord(Nick, text, true);
- )
- fclose(Plik);
- )
- if(Anty[AntiIP] == true && !IsPlayerAdmin(playerid))
- (
- new idx;
- new IP[3][256];
- new GIP[3];
- IP[0] = strtok(text, idx, '.');
- IP[1] = strtok(text, idx, '.');
- IP[2] = strtok(text, idx, '.');
- for(new i; i<strlen(text); i++)
- (
- if(IP[0][i] >= '0' && IP[0][i] <= '9') GIP[0]++;
- if(IP[1][i] >= '0' && IP[1][i] <= '9') GIP[1]++;
- if(IP[2][i] >= '0' && IP[2][i] <= '9') GIP[2]++;
- )
- if(GIP[0] >= 1 && GIP[1] >= 1 && GIP[2] >= 1 && (strfind(text, ":", false) != -1 || strfind(text, "port", false) != -1))
- (
- switch(Kara[ReklamaSerwera])
- (
- case 1: Kickuj(playerid, "reklamę innego serwera");
- case 2: Banuj(playerid, "reklamę innego serwera");
- case 3: BanujHost(playerid, "reklamę innego serwera");
- )
- return 0;
- )
- )
- if(Anty[AntiWWW] == true && !IsPlayerAdmin(playerid))
- (
- if(strfind(text, "www.", false) != -1 || strfind(text, "http://", false) != -1)
- (
- switch(Kara[ReklamaStrony])
- (
- case 1: Kickuj(playerid, "reklamę strony www");
- case 2: Banuj(playerid, "reklamę strony www");
- case 3: BanujHost(playerid, "reklamę strony www");
- )
- return 0;
- )
- )
- if(Anty[AntyRepeat] == true && !IsPlayerAdmin(playerid))
- (
- if(strcmp(GraczInfo[playerid][Text], text, false) == 0 && strlen(GraczInfo[playerid][Text]) != 0)
- (
- if(Anty[AntyFlood] != 0) GraczInfo[playerid][WarnFlood]++;
- SendClientMessage(playerid, RED, "Nie powtarzaj się!");
- return 0;
- )
- format(GraczInfo[playerid][Text], 256, "%s", text);
- )
- SprawdzBluzgi(playerid, text);
- if(Anty[AntyFlood] != 0) GraczInfo[playerid][WarnFlood]++;
- if(Anty[AntiCaps] == true)
- (
- new DuzeLitery;
- for(new i; i<strlen(text); i++)
- if(text[i] >= 'A' && text[i] <= 'Z') DuzeLitery++;
- if(strlen(text) / DuzeLitery <= 2)
- for(new i = 1; i<strlen(text); i++) text[i] = tolower(text[i]);
- )
- return 1;
- )
- forward AntyAFK();
- public AntyAFK()
- (
- for(new i; i<HighestID+1; i++)
- if(IsPlayerConnected(i) && !IsPlayerAdmin(i))
- (
- GetPlayerPos(i, GraczInfo[i][StaraPozycjaX], GraczInfo[i][StaraPozycjaY], GraczInfo[i][StaraPozycjaZ]);
- GetPlayerFacingAngle(i, GraczInfo[i][StaraRotacja]);
- 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]++;
- else
- (
- GraczInfo[i][WarnAFK] = 0;
- GraczInfo[i][PozycjaX] = GraczInfo[i][StaraPozycjaX];
- GraczInfo[i][PozycjaY] = GraczInfo[i][StaraPozycjaY];
- GraczInfo[i][PozycjaZ] = GraczInfo[i][StaraPozycjaZ];
- GraczInfo[i][Rotacja] = GraczInfo[i][StaraRotacja];
- )
- if(GraczInfo[i][WarnAFK] == Anty[CzasAFK])
- switch(Kara[AFK])
- (
- case 1: Kickuj(i, "AFK");
- case 2: Banuj(i, "AFK");
- case 3: BanujHost(i, "AFK");
- )
- )
- return 1;
- )
- forward BronieWBudynku();
- public BronieWBudynku()
- (
- for(new i; i<HighestID+1; i++)
- if(IsPlayerConnected(i) && !IsPlayerAdmin(i) && GetPlayerWeapon(i) != 0 && GetPlayerWeapon(i) != 1 && GetPlayerInterior(i) != 0 && GetPlayerState(i) == PLAYER_STATE_ONFOOT)
- (
- GraczInfo[i][WarnIndoors]++;
- if(GraczInfo[i][WarnIndoors] == 3)
- switch(Kara[InteriorWeapons])
- (
- case 1: Kickuj(i, "Interior Weapons");
- case 2: Banuj(i, "Interior Weapons");
- case 3: BanujHost(i, "Interior Weapons");
- )
- else GraczInfo[i][WarnIndoors] = 0;
- )
- return 1;
- )
- forward AntyBronie();
- public AntyBronie()
- (
- for(new i; i<HighestID+1; i++)
- if(IsPlayerConnected(i) && !IsPlayerAdmin(i) && GetPlayerState(i) != PLAYER_STATE_NONE)
- (
- new Bron = GetPlayerWeapon(i);
- for(new g; g<47; g++)
- if(g != 0 && g != 19 && g != 20 && g != 21 && g == Bron && Bronie[g][Zakazana] == true)
- (
- format(str, sizeof(str), "Weapon Cheat (%s)", Bronie[g][Nazwa]);
- switch(Kara[WeaponCheat])
- (
- case 1: Kickuj(i, str);
- case 2: Banuj(i, str);
- case 3: BanujHost(i, str);
- )
- )
- else if(g != 0 && g != 19 && g != 20 && g != 21 && g == Bron && Bronie[g][Zakazana] == false) break;
- )
- return 1;
- )
- forward AntyJetpack();
- public AntyJetpack()
- (
- for(new i; i<HighestID+1; i++)
- if(IsPlayerConnected(i) && !IsPlayerAdmin(i) && GetPlayerSpecialAction(i) == SPECIAL_ACTION_USEJETPACK)
- switch(Kara[Jetpack])
- (
- case 1: Kickuj(i, "posiadanie Jetpack'a");
- case 2: Banuj(i, "posiadanie Jetpack'a");
- case 3: BanujHost(i, "posiadanie Jetpack'a");
- )
- return 1;
- )
- forward AntyPing();
- public AntyPing()
- (
- for(new i; i<HighestID+1; i++)
- if(IsPlayerConnected(i) && !IsPlayerAdmin(i) && GetPlayerPing(i) >= Anty[MaxPing] && GetPlayerState(i) != PLAYER_STATE_NONE)
- (
- GraczInfo[i][WarnPing]++;
- if(GraczInfo[i][WarnPing] == 5)
- (
- format(str, sizeof(str), "High Ping (%i)", GetPlayerPing(i));
- switch(Kara[Ping])
- (
- case 1: Kickuj(i, str);
- case 2: Banuj(i, str);
- case 3: BanujHost(i, str);
- )
- )
- else if(IsPlayerConnected(i) && !IsPlayerAdmin(i) && GetPlayerPing(i) < Anty[MaxPing]) GraczInfo[i][WarnPing] = 0;
- )
- return 1;
- )
- forward AntyPause();
- public AntyPause()
- (
- for(new i; i<HighestID+1; i++)
- if(IsPlayerConnected(i) && !IsPlayerAdmin(i) && GetPlayerState(i) != PLAYER_STATE_NONE && GetPlayerState(i) != PLAYER_STATE_WASTED)
- (
- GetPlayerHealth(i, GraczInfo[i][StareHP]);
- if(GraczInfo[i][StareHP] >= 1)
- (
- SetPlayerHealth(i, GraczInfo[i][StareHP]-1);
- GraczInfo[i][TimerPauza] = SetTimerEx("SprawdzPauze", 200, 0, "d", i);
- )
- )
- return 1;
- )
- forward AntiFlood();
- public AntiFlood()
- (
- for(new i; i<HighestID+1; i++)
- if(IsPlayerConnected(i) && !IsPlayerAdmin(i) && GraczInfo[i][WarnFlood] >= 5)
- switch(Kara[Flood])
- (
- case 1: Kickuj(i, "Flood");
- case 2: Banuj(i, "Flood");
- case 3: BanujHost(i, "Flood");
- )
- else if(IsPlayerConnected(i) && GraczInfo[i][WarnFlood] < 5) GraczInfo[i][WarnFlood] = 0;
- return 1;
- )
- forward AntyPMFlood();
- public AntyPMFlood()
- (
- for(new i; i<HighestID+1; i++)
- if(IsPlayerConnected(i) && !IsPlayerAdmin(i) && GraczInfo[i][WarnPMFlood] >= 5)
- switch(Kara[PMFlood])
- (
- case 1: Kickuj(i, "Private Message Flood");
- case 2: Banuj(i, "Private Message Flood");
- case 3: BanujHost(i, "Private Message Flood");
- )
- else if(IsPlayerConnected(i) && GraczInfo[i][WarnPMFlood] < 5) GraczInfo[i][WarnPMFlood] = 0;
- return 1;
- )
- forward AntyInfOxygen();
- public AntyInfOxygen()
- (
- for(new i; i<HighestID+1; i++)
- if(IsPlayerConnected(i) && !IsPlayerAdmin(i))
- if(IsPlayerUnderwater(i) && GetPlayerInterior(i) == 0)
- (
- if(GraczInfo[i][PodWoda] == 40)
- (
- GetPlayerHealth(i, GraczInfo[i][WodaStareHP]);
- GraczInfo[i][TimerSprawdzHP] = SetTimerEx("SprawdzHP", 1000, 0, "d", i);
- )
- else if(GraczInfo[i][PodWoda] < 40) GraczInfo[i][PodWoda]++;
- )
- else if(GraczInfo[i][PodWoda] > 0) GraczInfo[i][PodWoda]--;
- return 1;
- )
- forward AntyCmdFlood();
- public AntyCmdFlood()
- (
- for(new i; i<HighestID+1; i++)
- if(IsPlayerConnected(i) && !IsPlayerAdmin(i) && GraczInfo[i][WarnCmdFlood] >= 5)
- switch(Kara[CmdFlood])
- (
- case 1: Kickuj(i, "Command Flood");
- case 2: Banuj(i, "Command Flood");
- case 3: BanujHost(i, "Command Flood");
- )
- else if(IsPlayerConnected(i) && !IsPlayerAdmin(i) && GraczInfo[i][WarnCmdFlood] < 5) GraczInfo[i][WarnCmdFlood] = 0;
- return 1;
- )
- forward AntyArmour();
- public AntyArmour()
- (
- for(new i; i<HighestID+1; i++)
- if(IsPlayerConnected(i) && !IsPlayerAdmin(i))
- (
- GetPlayerArmour(i, GraczInfo[i][NowyArm]);
- 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) &&
- !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))
- switch(Kara[ArmourCheat])
- (
- case 1: Kickuj(i, "Armour Cheat");
- case 2: Banuj(i, "Armour Cheat");
- case 3: BanujHost(i, "Armour Cheat");
- )
- GetPlayerArmour(i, GraczInfo[i][StaryArm]);
- )
- return 1;
- )
- forward AntyGod();
- public AntyGod()
- (
- for(new i; i<HighestID+1; i++)
- if(IsPlayerConnected(i) && !IsPlayerAdmin(i)) SetTimerEx("BombaGod", random(60000), 0, "d", i);
- return 1;
- )
- forward AntyHP();
- public AntyHP()
- (
- for(new i; i<HighestID+1; i++)
- if(IsPlayerConnected(i) && !IsPlayerAdmin(i) && !IsPlayerInAnyVehicle(i))
- (
- GetPlayerHealth(i, GraczInfo[i][NewHP]);
- 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))
- (
- switch(Kara[HealthCheat])
- (
- case 1: Kickuj(i, "Health Cheat");
- case 2: Banuj(i, "Health Cheat");
- case 3: BanujHost(i, "Health Cheat");
- )
- )
- else
- (
- new Pojazd = GetPlayerVehicleID(i);
- GetVehicleHealth(Pojazd, GraczInfo[i][NewVehHP]);
- 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)
- && !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)
- && !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))
- switch(Kara[HealthCheat])
- (
- case 1: Kickuj(i, "Vehicle Health Cheat");
- case 2: Banuj(i, "Vehicle Health Cheat");
- case 3: BanujHost(i, "Vehicle Health Cheat");
- )
- GetVehicleHealth(Pojazd, GraczInfo[i][OldVehHP]);
- )
- GetPlayerHealth(i, GraczInfo[i][OldHP]);
- )
- return 1;
- )
- forward AntyMoneyCheat();
- public AntyMoneyCheat()
- (
- for(new i; i<HighestID+1; i++)
- if(IsPlayerConnected(i) && !IsPlayerAdmin(i))
- (
- GraczInfo[i][NowaKasa] = GetPlayerMoney(i);
- if(GraczInfo[i][Prot] == false && GraczInfo[i][NowaKasa] - GraczInfo[i][StaraKasa] >= 500 && GetPlayerInterior(i) != 10 && GetPlayerInterior(i) != 1 && GetPlayerInterior(i) != 12)
- switch(Kara[MoneyCheat])
- (
- case 1: Kickuj(i, "Money Cheat");
- case 2: Banuj(i, "Money Cheat");
- case 3: BanujHost(i, "Money Cheat");
- )
- GraczInfo[i][StaraKasa] = GetPlayerMoney(i);
- )
- return 1;
- )
- forward AntyTP();
- public AntyTP()
- (
- for(new i; i<HighestID+1; i++)
- if(IsPlayerConnected(i) && !IsPlayerAdmin(i))
- (
- GetPlayerPos(i, GraczInfo[i][NowyPktX], GraczInfo[i][NowyPktY], GraczInfo[i][NowyPktZ]);
- if(GraczInfo[i][Prot] == false && GetPointDistanceToPoint(GraczInfo[i][NowyPktX], GraczInfo[i][NowyPktY], GraczInfo[i][StaryPktX], GraczInfo[i][StaryPktY]) >= 100 && GetPlayerState(i) != PLAYER_STATE_NONE)
- for(new g; g<MAX_PLAYERS; g++)
- if(IsPlayerConnected(g))
- if(g != i && PlayerToPoint(10, g, GraczInfo[i][NowyPktX], GraczInfo[i][NowyPktY], GraczInfo[i][NowyPktZ]))
- switch(Kara[Teleport])
- (
- case 1: Kickuj(i, "Teleport");
- case 2: Banuj(i, "Teleport");
- case 3: BanujHost(i, "Teleport");
- )
- GetPlayerPos(i, GraczInfo[i][StaryPktX], GraczInfo[i][StaryPktY], GraczInfo[i][StaryPktZ]);
- )
- return 1;
- )
- forward AntySpeed();
- public AntySpeed()
- (
- for(new i; i<HighestID+1; i++)
- (
- new Float:z;
- if(IsPlayerConnected(i) && !IsPlayerAdmin(i) && GetPlayerState(i) != PLAYER_STATE_NONE)
- (
- GetPlayerPos(i, GraczInfo[i][NowyX], GraczInfo[i][NowyY], z);
- if(GetPlayerState(i) == PLAYER_STATE_ONFOOT)
- (
- if(Anty[AntiAirBrake] == true && GetPointDistanceToPoint(GraczInfo[i][NowyX], GraczInfo[i][NowyY], GraczInfo[i][StaryX], GraczInfo[i][StaryY]) >= 100)
- (
- GraczInfo[i][WarnSpeed]++;
- if(GraczInfo[i][WarnSpeed] == 3)
- switch(Kara[AirBrake])
- (
- case 1: Kickuj(i, "Air Brake");
- case 2: Banuj(i, "Air Brake");
- case 3: BanujHost(i, "Air Brake");
- )
- )
- else GraczInfo[i][WarnSpeed] = 0;
- )
- else if(GetPlayerState(i) == PLAYER_STATE_DRIVER)
- (
- new Float:x, Float:y;
- GetVehiclePos(GetPlayerVehicleID(i), x, y, GraczInfo[i][NewZSpeed]);
- 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)
- (
- GraczInfo[i][WarnSpeed]++;
- if(GraczInfo[i][WarnSpeed] == 3)
- switch(Kara[SpeedHack])
- (
- case 1: Kickuj(i, "Speed Hack");
- case 2: Banuj(i, "Speed Hack");
- case 3: BanujHost(i, "Speed Hack");
- )
- )
- else GraczInfo[i][WarnSpeed] = 0;
- GetVehiclePos(GetPlayerVehicleID(i), x, y, GraczInfo[i][OldZSpeed]);
- )
- )
- GetPlayerPos(i, GraczInfo[i][StaryX], GraczInfo[i][StaryY], z);
- )
- return 1;
- )
- forward AntyBikeFallOff();
- public AntyBikeFallOff()
- (
- for(new i; i<HighestID+1; i++)
- if(IsPlayerConnected(i) && !IsPlayerAdmin(i) && GetPlayerState(i) != PLAYER_STATE_NONE && GetPlayerState(i) == PLAYER_STATE_DRIVER)
- (
- new Float:z;
- GetVehicleHealth(GraczInfo[i][Woz], GraczInfo[i][WozNewHP]);
- GetVehiclePos(GraczInfo[i][Woz], GraczInfo[i][OldPointX], GraczInfo[i][OldPointY], z);
- 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)
- switch(Kara[AntyBikeFallOffK])
- (
- case 1: Kickuj(i, "Anti Bike Fall Off");
- case 2: Banuj(i, "Anti Bike Fall Off");
- case 3: BanujHost(i, "Anti Bike Fall Off");
- )
- GraczInfo[i][Woz] = GetPlayerVehicleID(i);
- GetVehicleHealth(GraczInfo[i][Woz], GraczInfo[i][WozOldHP]);
- GetVehiclePos(GraczInfo[i][Woz], GraczInfo[i][NewPointX], GraczInfo[i][NewPointY], z);
- )
- return 1;
- )
- forward AntyUnlimitedAmmo();
- public AntyUnlimitedAmmo()
- (
- for(new i; i<HighestID+1; i++)
- if(IsPlayerConnected(i) && !IsPlayerAdmin(i))
- (
- new Bron = GetPlayerWeapon(i);
- 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)
- (
- switch(Bron)
- (
- case 16, 17, 18, 39: GraczInfo[i][SlotBroni] = 8;
- case 22, 23, 24: GraczInfo[i][SlotBroni] = 2;
- case 25, 26, 27: GraczInfo[i][SlotBroni] = 3;
- case 28, 29, 32: GraczInfo[i][SlotBroni] = 4;
- case 30, 31: GraczInfo[i][SlotBroni] = 5;
- case 33, 34: GraczInfo[i][SlotBroni] = 6;
- case 35, 36, 37, 38: GraczInfo[i][SlotBroni] = 7;
- case 41, 42, 43: GraczInfo[i][SlotBroni] = 9;
- )
- if(GraczInfo[i][Strzela] == false) GetPlayerWeaponData(i, GraczInfo[i][SlotBroni], Bron, GraczInfo[i][StaraAmunicja]);
- GetPlayerKeys(i, GraczInfo[i][KlawiszUA], Bron, Bron);
- if(GraczInfo[i][KlawiszUA] & KEY_FIRE && !IsPlayerInAnyVehicle(i))
- (
- GraczInfo[i][Strzela] = true;
- GetPlayerWeaponData(i, GraczInfo[i][SlotBroni], Bron, GraczInfo[i][NowaAmunicja]);
- Bron = GetPlayerWeapon(i);
- 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)
- (
- GraczInfo[i][WarnUnlimitedAmmo]++;
- if(GraczInfo[i][WarnUnlimitedAmmo] == 5)
- switch(Kara[InfiniteAmmo])
- (
- case 1: Kickuj(i, "Unlimited Ammo");
- case 2: Banuj(i, "Unlimited Ammo");
- case 3: BanujHost(i, "Unlimited Ammo");
- )
- )
- else
- (
- GraczInfo[i][WarnUnlimitedAmmo] = 0;
- GraczInfo[i][Strzela] = false;
- )
- )
- )
- )
- return 1;
- )
- forward AntyWalkUnderwater();
- public AntyWalkUnderwater()
- (
- for(new i; i<HighestID+1; i++)
- if(IsPlayerConnected(i) && !IsPlayerAdmin(i))
- (
- if(GetPlayerState(i) == PLAYER_STATE_ONFOOT) GetPlayerPos(i, GraczInfo[i][PodWodaOldX], GraczInfo[i][PodWodaOldY], GraczInfo[i][PodWodaOldZ]);
- else if(GetPlayerState(i) == PLAYER_STATE_DRIVER) GetVehiclePos(GetPlayerVehicleID(i), GraczInfo[i][PodWodaOldX], GraczInfo[i][PodWodaOldY], GraczInfo[i][PodWodaOldZ]);
- if(IsPlayerUnderwater(i) && GetPlayerInterior(i) == 0 && GetPointDistanceToPoint(GraczInfo[i][PodWodaOldX], GraczInfo[i][PodWodaOldY], GraczInfo[i][PodWodaNewX], GraczInfo[i][PodWodaNewY]) >= 6)
- (
- GraczInfo[i][WarnUnderwater]++;
- if(GraczInfo[i][WarnUnderwater] >= 5)
- switch(Kara[WalkUnderwater])
- (
- case 1: Kickuj(i, "Walk Underwater");
- case 2: Banuj(i, "Walk Underwater");
- case 3: BanujHost(i, "Walk Underwater");
- )
- )
- else GraczInfo[i][WarnUnderwater] = 0;
- if(GetPlayerState(i) == PLAYER_STATE_ONFOOT) GetPlayerPos(i, GraczInfo[i][PodWodaNewX], GraczInfo[i][PodWodaNewY], GraczInfo[i][PodWodaNewZ]);
- if(GetPlayerState(i) == PLAYER_STATE_DRIVER) GetVehiclePos(GetPlayerVehicleID(i), GraczInfo[i][PodWodaNewX], GraczInfo[i][PodWodaNewY], GraczInfo[i][PodWodaNewZ]);
- )
- return 1;
- )
- forward WylaczSerwer();
- public WylaczSerwer() SendRconCommand("exit");
- forward NajwyzszeID();
- public NajwyzszeID()
- (
- for(new i; i<Sloty; i++)
- if(IsPlayerConnected(i)) HighestID = i;
- return 1;
- )
- forward SprawdzAdmina();
- public SprawdzAdmina()
- (
- for(new i; i<HighestID+1; i++)
- if(IsPlayerAdmin(i) && GraczInfo[i][AdminLogged] == false)
- (
- GraczInfo[i][AdminLogged] = true;
- SendClientMessage(i, WHITE, "Komendy AntyCheatu:");
- SendClientMessage(i, WHITE, "{FF0000}/ACcmd <1/9>{FFFFFF} - lista komend");
- SendClientMessage(i, WHITE, "{FF0000}/KARAhelp{FFFFFF} - tutaj dowiesz się, jak używać komendy {FF0000}/ACCkara <Nazwa> <Rodzaj>{FFFFFF}.");
- )
- return 1;
- )
- forward MegaJump(playerid);
- public MegaJump(playerid)
- (
- new Float:x, Float:y;
- GetPlayerPos(playerid, x, y, GraczInfo[playerid][DrugieZ]);
- GetPlayerHealth(playerid, GraczInfo[playerid][NoweHPMJ]);
- if(GraczInfo[playerid][DrugieZ] - GraczInfo[playerid][PierwszeZ] >= 3 && GraczInfo[playerid][NoweHPMJ] == GraczInfo[playerid][StareHPMJ])
- (
- GraczInfo[playerid][WarnJump]++;
- if(GraczInfo[playerid][WarnJump] == 3)
- switch(Kara[MegaJumpK])
- (
- case 1: Kickuj(playerid, "Mega Jump");
- case 2: Banuj(playerid, "Mega Jump");
- case 3: BanujHost(playerid, "Mega Jump");
- )
- )
- else GraczInfo[playerid][WarnJump] = 0;
- GraczInfo[playerid][PierwszeZ] = 0;
- KillTimer(GraczInfo[playerid][TimerMegaJump]);
- GraczInfo[playerid][TimerMegaJump] = 0;
- return 1;
- )
- forward SprawdzPauze(playerid);
- public SprawdzPauze(playerid)
- (
- GetPlayerHealth(playerid, GraczInfo[playerid][NoweHP]);
- if(GraczInfo[playerid][StareHP] - GraczInfo[playerid][NoweHP] == 0)
- (
- GraczInfo[playerid][WarnPause]++;
- if(GraczInfo[playerid][WarnPause] == 3)
- switch(Kara[Pauza])
- (
- case 1: Kickuj(playerid, "Pauze");
- case 2: Banuj(playerid, "Pauze");
- case 3: BanujHost(playerid, "Pauze");
- )
- )
- else
- (
- GetPlayerHealth(playerid, GraczInfo[playerid][StareHP]);
- SetPlayerHealth(playerid, GraczInfo[playerid][StareHP]+1);
- GraczInfo[playerid][WarnPause] = 0;
- )
- KillTimer(GraczInfo[playerid][TimerPauza]);
- return 1;
- )
- forward BombaGod(playerid);
- public BombaGod(playerid)
- (
- if(GraczInfo[playerid][ProtGod] == false && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
- (
- new Float:x, Float:y, Float:z;
- GetPlayerArmour(playerid, x);
- if(x > 0)
- (
- GetPlayerArmour(playerid, GraczInfo[playerid][GodStaryArm]);
- GraczInfo[playerid][GodStareHP] = 0;
- )
- else
- (
- GetPlayerHealth(playerid, GraczInfo[playerid][GodStareHP]);
- GraczInfo[playerid][GodStaryArm] = 0;
- )
- GetPlayerPos(playerid, x, y, z);
- GetXYInFrontOfPlayer(playerid, x, y, 1);
- if((GraczInfo[playerid][GodStaryArm] == 0 && GraczInfo[playerid][GodStareHP] >= 8) || (GraczInfo[playerid][GodStaryArm] > 0 && GraczInfo[playerid][GodStareHP] == 0))
- (
- for(new i; i<HighestID+1; i++)
- if(i != playerid && PlayerToPoint(10, i, x, y, z))
- (
- KillTimer(GraczInfo[i][ProtArmHP]);
- GraczInfo[i][Prot] = true;
- GraczInfo[i][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", i);
- if(GetPlayerState(i) == PLAYER_STATE_ONFOOT)
- (
- GetPlayerHealth(i, GraczInfo[i][GodStareHP]);
- GetPlayerArmour(i, GraczInfo[i][GodStaryArm]);
- )
- else if(GetPlayerState(i) == PLAYER_STATE_DRIVER) GetVehicleHealth(GetPlayerVehicleID(i), GraczInfo[i][GodWozStareHP]);
- GraczInfo[i][TimerLecz] = SetTimerEx("Lecz", 100, 0, "d", i);
- )
- CreateExplosion(x, y, z-8.5, 5, 1);
- GraczInfo[playerid][TimerGod] = SetTimerEx("SprawdzGoda", 300, 0, "d", playerid);
- )
- )
- KillTimer(GraczInfo[playerid][TimerBombaGod]);
- return 1;
- )
- forward BombaVehGod(playerid);
- public BombaVehGod(playerid)
- (
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER && !IsPlayerOnBicycle(playerid))
- (
- new Float:x, Float:y, Float:z;
- GetVehicleHealth(GetPlayerVehicleID(playerid), GraczInfo[playerid][GodWozStareHP]);
- GetVehiclePos(GetPlayerVehicleID(playerid), x, y, z);
- for(new i; i<HighestID+1; i++)
- if(i != playerid && PlayerToPoint(10, i, x, y, z))
- (
- KillTimer(GraczInfo[i][ProtArmHP]);
- GraczInfo[i][Prot] = true;
- GraczInfo[i][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", i);
- if(GetPlayerState(i) == PLAYER_STATE_ONFOOT)
- (
- GetPlayerHealth(i, GraczInfo[i][GodStareHP]);
- GetPlayerArmour(i, GraczInfo[i][GodStaryArm]);
- )
- else if(GetPlayerState(i) == PLAYER_STATE_DRIVER) GetVehicleHealth(GetPlayerVehicleID(i), GraczInfo[i][GodWozStareHP]);
- GraczInfo[i][TimerLecz] = SetTimerEx("Lecz", 100, 0, "d", i);
- )
- CreateExplosion(x, y, z-8.8, 5, 1);
- GraczInfo[playerid][TimerGod] = SetTimerEx("SprawdzGoda", 300, 0, "d", playerid);
- )
- KillTimer(GraczInfo[playerid][TimerBombaVehGod]);
- return 1;
- )
- forward SprawdzHP(playerid);
- public SprawdzHP(playerid)
- (
- GetPlayerHealth(playerid, GraczInfo[playerid][WodaNoweHP]);
- if(GraczInfo[playerid][WodaNoweHP] < GraczInfo[playerid][WodaStareHP]) GraczInfo[playerid][PodWoda] = 0;
- else if(GraczInfo[playerid][WodaNoweHP] == GraczInfo[playerid][WodaStareHP])
- switch(Kara[InfiniteOxygen])
- (
- case 1: Kickuj(playerid, "Infinite Oxygen");
- case 2: Banuj(playerid, "Infinite Oxygen");
- case 3: BanujHost(playerid, "Infinite Oxygen");
- )
- KillTimer(GraczInfo[playerid][TimerSprawdzHP]);
- return 1;
- )
- forward SprawdzGoda(playerid);
- public SprawdzGoda(playerid)
- (
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- (
- GetVehicleHealth(GetPlayerVehicleID(playerid), GraczInfo[playerid][GodWozNoweHP]);
- 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)
- && !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)
- && !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))
- (
- switch(Kara[VehicleGodMode])
- (
- case 1: Kickuj(playerid, "Vehicle God Mode");
- case 2: Banuj(playerid, "Vehicle God Mode");
- case 3: BanujHost(playerid, "Vehicle God Mode");
- )
- )
- else SetVehicleHealth(GetPlayerVehicleID(playerid), GraczInfo[playerid][GodWozStareHP]);
- )
- else if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
- (
- if(GraczInfo[playerid][GodStareHP] == 0)
- (
- GetPlayerArmour(playerid, GraczInfo[playerid][GodNowyArm]);
- GraczInfo[playerid][GodNoweHP] = 0;
- )
- else
- (
- GetPlayerHealth(playerid, GraczInfo[playerid][GodNoweHP]);
- GraczInfo[playerid][GodNowyArm] = 0;
- )
- 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) &&
- !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)
- (
- switch(Kara[GodMode])
- (
- case 1: Kickuj(playerid, "God Mode");
- case 2: Banuj(playerid, "God Mode");
- case 3: BanujHost(playerid, "God Mode");
- )
- )
- else
- (
- KillTimer(GraczInfo[playerid][ProtArmHP]);
- GraczInfo[playerid][Prot] = true;
- GraczInfo[playerid][ProtArmHP] = SetTimerEx("UsunProt", 4000, 0, "d", playerid);
- if(GraczInfo[playerid][GodStareHP] != 0) SetPlayerHealth(playerid, GraczInfo[playerid][GodStareHP]);
- else if(GraczInfo[playerid][GodStaryArm] != 0) SetPlayerArmour(playerid, GraczInfo[playerid][GodStaryArm]);
- )
- )
- GraczInfo[playerid][TimerGod] = 0;
- KillTimer(GraczInfo[playerid][TimerGod]);
- return 1;
- )
- forward Lecz(playerid);
- public Lecz(playerid)
- (
- if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) SetVehicleHealth(GetPlayerVehicleID(playerid), GraczInfo[playerid][GodWozStareHP]);
- else if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
- (
- SetPlayerHealth(playerid, GraczInfo[playerid][GodStareHP]);
- SetPlayerArmour(playerid, GraczInfo[playerid][GodStaryArm]);
- )
- KillTimer(GraczInfo[playerid][TimerLecz]);
- return 1;
- )
- forward WylaczSpawnProt(playerid);
- public WylaczSpawnProt(playerid)
- (
- GraczInfo[playerid][SpawnProt] = false;
- KillTimer(GraczInfo[playerid][SpawnProtT]);
- GraczInfo[playerid][SpawnProtT] = 0;
- return 1;
- )
- forward UsunProt(playerid);
- public UsunProt(playerid)
- (
- GraczInfo[playerid][Prot] = false;
- KillTimer(GraczInfo[playerid][ProtArmHP]);
- GraczInfo[playerid][ProtArmHP] = 0;
- return 1;
- )
- forward UsunProtGod(playerid);
- public UsunProtGod(playerid)
- (
- GraczInfo[playerid][ProtGod] = false;
- KillTimer(GraczInfo[playerid][TimerProtGod]);
- GraczInfo[playerid][TimerProtGod] = 0;
- return 1;
- )
- forward Glitch(playerid);
- public Glitch(playerid)
- (
- GraczInfo[playerid][Klawisz] = 0;
- KillTimer(GraczInfo[playerid][TimerGlitch]);
- GraczInfo[playerid][TimerGlitch] = 0;
- return 1;
- )
- forward BugUA(playerid);
- public BugUA(playerid)
- (
- GraczInfo[playerid][CrouchTimes] = 0;
- GraczInfo[playerid][Klawisz] = 0;
- KillTimer(GraczInfo[playerid][TimerUA]);
- GraczInfo[playerid][TimerUA] = 0;
- return 1;
- )
- forward SprawdzBieg(playerid);
- public SprawdzBieg(playerid)
- (
- GraczInfo[playerid][WarnSprint] = 0;
- KillTimer(GraczInfo[playerid][TimerBieg]);
- GraczInfo[playerid][TimerBieg] = 0;
- return 1;
- )
- forward LongSprint(playerid);
- public LongSprint(playerid)
- (
- GraczInfo[playerid][WarnLSprint]++;
- if(GraczInfo[playerid][WarnLSprint] > Anty[MaxSprint])
- (
- GraczInfo[playerid][WarnLSprint] = 0;
- SendClientMessage(playerid, YELLOW, "Przewróciłeś się!");
- ApplyAnimation(playerid,"PED","FLOOR_hit_f",4.1,0,1,1,1,0);
- GraczInfo[playerid][TimerWstan] = SetTimerEx("Wstan", 5000, 0, "d", playerid);
- KillTimer(GraczInfo[playerid][TimerLongSprint]);
- GraczInfo[playerid][TimerLongSprint] = 0;
- )
- return 1;
- )
- forward BunnyHop(playerid);
- public BunnyHop(playerid)
- (
- GraczInfo[playerid][WarnBunnyHop] = 0;
- KillTimer(GraczInfo[playerid][TimerBunnyHop]);
- GraczInfo[playerid][TimerBunnyHop] = 0;
- return 1;
- )
- forward Wstan(playerid);
- public Wstan(playerid)
- (
- ApplyAnimation(playerid,"PED","getup_front",4.1,0,0,0,0,0);
- KillTimer(GraczInfo[playerid][TimerWstan]);
- GraczInfo[playerid][TimerWstan] = 0;
- return 1;
- )
- forward AntyVehicleDriverKilling(playerid);
- public AntyVehicleDriverKilling(playerid)
- (
- new Cos;
- GraczInfo[playerid][TimerBugerPoraz]++;
- GetPlayerKeys(playerid, GraczInfo[playerid][Klawisz], Cos, Cos);
- if(GraczInfo[playerid][Klawisz] & KEY_JUMP)
- (
- GraczInfo[playerid][WarnBuger]++;
- if(GraczInfo[playerid][WarnBuger] == 3)
- (
- GraczInfo[playerid][WarnBuger] = 0;
- KillTimer(GraczInfo[playerid][TimerBuger]);
- GraczInfo[playerid][TimerBuger] = 0;
- GraczInfo[playerid][TimerBugerPoraz] = 0;
- switch(Kara[VehDriverKilling])
- (
- case 1: Kickuj(playerid, "Vehicle Driver Killing");
- case 2: Banuj(playerid, "Vehicle Driver Killing");
- case 3: BanujHost(playerid, "Vehicle Driver Killing");
- )
- )
- )
- if(IsPlayerInAnyVehicle(playerid) || GraczInfo[playerid][TimerBugerPoraz] == 6)
- (
- GraczInfo[playerid][WarnBuger] = 0;
- KillTimer(GraczInfo[playerid][TimerBuger]);
- GraczInfo[playerid][TimerBuger] = 0;
- )
- return 1;
- )
- //Komendy
- dcmd_aspeed(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Aspeed <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntySpeedHack");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntySpeedHack", 1);
- Anty[AntiSpeedHack] = true;
- if(Anty[AntiAirBrake] == false) Anty[TimerAntiSpeedHack] = SetTimer("AntySpeed", 1000, 1);
- SendClientMessage(playerid, GREEN, "Anty Speed Hack włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Speed Hack jest już włączony!");
- return 1;
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntySpeedHack");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntySpeedHack", 0);
- Anty[AntiSpeedHack] = false;
- if(Anty[AntiAirBrake] == false) KillTimer(Anty[TimerAntiSpeedHack]);
- SendClientMessage(playerid, GREEN, "Anty Speed-Hack wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Speed-Hack jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_aairbrake(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Aairbrake <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyAirBrake");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyAirBrake", 1);
- Anty[AntiAirBrake] = true;
- if(Anty[AntiSpeedHack] == false) Anty[TimerAntiSpeedHack] = SetTimer("AntySpeed", 1000, 1);
- SendClientMessage(playerid, GREEN, "Anty Air-Brake włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Air-Brake jest już włączony!");
- return 1;
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyAirBrake");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyAirBrake", 0);
- Anty[AntiAirBrake] = false;
- if(Anty[AntiSpeedHack] == false) KillTimer(Anty[TimerAntiSpeedHack]);
- SendClientMessage(playerid, GREEN, "Anty Air-Brake wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Air-Brake jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_aafk(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Aafk <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyAFK");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyAFK", 1);
- Anty[AntiAFK] = SetTimer("AntyAFK", 60000, 1);
- SendClientMessage(playerid, GREEN, "Anty AFK włączony");
- )
- else SendClientMessage(playerid, RED, "Anty AFK jest już włączony!");
- return 1;
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyAFK");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyAFK", 0);
- KillTimer(Anty[AntiAFK]);
- SendClientMessage(playerid, GREEN, "Anty AFK wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty AFK jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_apause(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Apause <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyPause");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyPause", 1);
- Anty[AntiPause] = SetTimer("AntyPause", 1000, 1);
- SendClientMessage(playerid, GREEN, "Anty Pause włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Pause jest już włączony!");
- return 1;
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyPause");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyPause", 0);
- KillTimer(Anty[AntiPause]);
- SendClientMessage(playerid, GREEN, "Anty Pause wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Pause jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_ainfioxy(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Ainfioxy <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyInfiniteOxygen");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyInfiniteOxygen", 1);
- Anty[AntiInfOxygen] = SetTimer("AntyInfOxygen", 1000, 1);
- SendClientMessage(playerid, GREEN, "Anty Infinite Oxygen włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Infinite Oxygen jest już włączony!");
- return 1;
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyInfiniteOxygen");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyInfiniteOxygen", 0);
- KillTimer(Anty[AntiInfOxygen]);
- SendClientMessage(playerid, GREEN, "Anty Infinite Oxygen wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Infinite Oxygen jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_awunder(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Awunder <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyWalkUnderwater");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyWalkUnderwater", 1);
- Anty[AntiUnderwater] = SetTimer("AntyWalkUnderwater", 1000, 1);
- SendClientMessage(playerid, GREEN, "Anty Walk Underwater włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Walk Underwater jest już włączony!");
- return 1;
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyWalkUnderwater");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyWalkUnderwater", 0);
- KillTimer(Anty[AntiUnderwater]);
- SendClientMessage(playerid, GREEN, "Anty Walk Underwater wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Walk Underwater jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_ajet(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Ajet <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyJetpack");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyJetpack", 1);
- Anty[AntiJetpack] = SetTimer("AntyJetpack", 1000, 1);
- SendClientMessage(playerid, GREEN, "Anty Jetpack włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Jetpack jest już włączony!");
- return 1;
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyJetpack");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyJetpack", 0);
- KillTimer(Anty[AntiJetpack]);
- SendClientMessage(playerid, GREEN, "Anty Jetpack wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Jetpack jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_acrash(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Acrash <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyCrash");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyCrash", 1);
- Anty[AntyCrash] = true;
- SendClientMessage(playerid, GREEN, "Anty Crash włączone");
- )
- else SendClientMessage(playerid, RED, "Anty Crash jest już włączone!");
- return 1;
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyCrash");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyCrash", 0);
- Anty[AntyCrash] = false;
- SendClientMessage(playerid, GREEN, "Anty Crash wyłączone");
- )
- else SendClientMessage(playerid, RED, "Anty Crash jest już wyłączone");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_avehgod(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Avehgod <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyVehicleGodMode");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyVehicleGodMode", 1);
- Anty[AntiVehGod] = true;
- SendClientMessage(playerid, GREEN, "Anty Vehicle God Mode włączone");
- )
- else SendClientMessage(playerid, RED, "Anty Vehicle God Mode jest już włączone!");
- return 1;
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyVehicleGodMode");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyVehicleGodMode", 0);
- Anty[AntiVehGod] = false;
- SendClientMessage(playerid, GREEN, "Anty Vehicle God Mode wyłączone");
- )
- else SendClientMessage(playerid, RED, "Anty Vehicle God Mode jest już wyłączone");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_agod(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Agod <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyGodMode");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyGodMode", 1);
- Anty[AntiGodMode] = SetTimer("AntyGod", 1000, 1);
- SendClientMessage(playerid, GREEN, "Anty God-Mode włączony");
- )
- else SendClientMessage(playerid, RED, "Anty God-Mode jest już włączony!");
- return 1;
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyGodMode");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyGodMode", 0);
- KillTimer(Anty[AntiGodMode]);
- SendClientMessage(playerid, GREEN, "Anty God-Mode wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty God-Mode jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_ainfiammo(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Ainfiammo <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyInfiniteAmmo");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyInfiniteAmmo", 1);
- Anty[AntiInfiniteAmmo] = SetTimer("AntyUnlimitedAmmo", 1000, 1);
- SendClientMessage(playerid, GREEN, "Anty Unlimited Ammo włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Unlimited Ammo jest już włączony!");
- return 1;
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyInfiniteAmmo");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyInfiniteAmmo", 0);
- KillTimer(Anty[AntiInfiniteAmmo]);
- SendClientMessage(playerid, GREEN, "Anty Unlimited Ammo wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Unlimited Ammo jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_abluzgi(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Abluzgi <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyBluzgi");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyBluzgi", 1);
- Anty[AntyBluzgi] = true;
- SendClientMessage(playerid, GREEN, "Anty Bluzgi włączone");
- )
- else SendClientMessage(playerid, RED, "Anty Bluzgi jest już włączone!");
- return 1;
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyBluzgi");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyBluzgi", 0);
- Anty[AntyBluzgi] = false;
- SendClientMessage(playerid, GREEN, "Anty Bluzgi wyłączone");
- )
- else SendClientMessage(playerid, RED, "Anty Bluzgi jest już wyłączone");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_arepeat(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Arepeat <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyRepeat");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyRepeat", 1);
- Anty[AntyRepeat] = true;
- SendClientMessage(playerid, GREEN, "Anty Repeat włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Repeat jest już włączony!");
- return 1;
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyRepeat");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyRepeat", 0);
- Anty[AntyRepeat] = false;
- SendClientMessage(playerid, GREEN, "Anty Repeat wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Repeat jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_amegajump(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Amegajump <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyMegaJump");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyMegaJump", 1);
- Anty[AntiMegaJump] = true;
- SendClientMessage(playerid, GREEN, "Anty Mega-Jump włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Mega-Jump jest już włączony!");
- return 1;
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyMegaJump");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyMegaJump", 0);
- Anty[AntiMegaJump] = false;
- SendClientMessage(playerid, GREEN, "Anty Mega-Jump wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Mega-Jump jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_aglitch(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Aglitch <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyGlitch");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyGlitch", 1);
- Anty[AntiGlitch] = true;
- SendClientMessage(playerid, GREEN, "Anty-Glitch włączony");
- )
- else SendClientMessage(playerid, RED, "Anty-Glitch jest już włączony!");
- return 1;
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyGlitch");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyGlitch", 0);
- Anty[AntiGlitch] = false;
- SendClientMessage(playerid, GREEN, "Anty-Glitch wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty-Glitch jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_afsprint(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Afsprint <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyFasterSprint");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyFasterSprint", 1);
- Anty[AntiFasterSprint] = true;
- SendClientMessage(playerid, GREEN, "Anty Faster Sprint włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Faster Sprint jest już włączony!");
- return 1;
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyFasterSprint");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyFasterSprint", 0);
- Anty[AntiFasterSprint] = false;
- SendClientMessage(playerid, GREEN, "Anty Faster Sprint wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Faster Sprint jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_aping(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Aping <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyPing");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyPing", 1);
- Anty[AntiPing] = SetTimer("AntyPing", 1000, 1);
- SendClientMessage(playerid, GREEN, "Anty Ping włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Ping jest już włączony!");
- return 1;
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyPing");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyPing", 0);
- KillTimer(Anty[AntiPing]);
- SendClientMessage(playerid, GREEN, "Anty Ping wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Ping jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_aindoors(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Aindoors <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyInteriorWeapons");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyInteriorWeapons", 1);
- Anty[AntiIndoorsWeapons] = SetTimer("BronieWBudynku", 1000, 1);
- SendClientMessage(playerid, GREEN, "Anty Interior Weapons włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Interior Weapons jest już włączony!");
- return 1;
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyInteriorWeapons");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyInteriorWeapons", 0);
- KillTimer(Anty[AntiIndoorsWeapons]);
- SendClientMessage(playerid, GREEN, "Anty Interior Weapons wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Interior Weapons jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_abikefall(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Abikefall <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyAntiBikeFallOff");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyAntiBikeFallOff", 1);
- Anty[AntiBikeFallOff] = SetTimer("AntyBikeFallOff", 1000, 1);
- SendClientMessage(playerid, GREEN, "Anty Anti Bike Fall Off włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Anti Bike Fall Off jest już włączony!");
- return 1;
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyAntiBikeFallOff");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyAntiBikeFallOff", 0);
- KillTimer(Anty[AntiBikeFallOff]);
- SendClientMessage(playerid, GREEN, "Anty Anti Bike Fall Off wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Anti Bike Fall Off jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_aweapcheat(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Aweapcheat <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyWeaponCheat");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyWeaponCheat", 1);
- Anty[AntiWeaponCheat] = SetTimer("AntyBronie", 1000, 1);
- SendClientMessage(playerid, GREEN, "Anty Weapon Cheat włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Weapon Cheat jest już włączony!");
- return 1;
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyWeaponCheat");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyWeaponCheat", 0);
- KillTimer(Anty[AntiWeaponCheat]);
- SendClientMessage(playerid, GREEN, "Anty Weapon Cheat wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Weapon Cheat jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_aarmour(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Aarmour <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyArmourCheat");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyArmourCheat", 1);
- Anty[AntiArmour] = SetTimer("AntyArmour", 1000, 1);
- SendClientMessage(playerid, GREEN, "Anty Armour Cheat włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Armour Cheat jest już włączony!");
- return 1;
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyArmourCheat");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyArmourCheat", 0);
- KillTimer(Anty[AntiArmour]);
- SendClientMessage(playerid, GREEN, "Anty Armour Cheat wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Armour Cheat jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_ahp(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Ahp <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyHealthCheat");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyHealthCheat", 1);
- Anty[AntiHealth] = SetTimer("AntyHP", 1000, 1);
- SendClientMessage(playerid, GREEN, "Anty Health Cheat włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Health Cheat jest już włączony!");
- return 1;
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyHealthCheat");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyHealthCheat", 0);
- KillTimer(Anty[AntiHealth]);
- SendClientMessage(playerid, GREEN, "Anty Health Cheat wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Health Cheat jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_amoney(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Amoney <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyMoneyCheat");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyMoneyCheat", 1);
- Anty[AntiMoneyCheat] = SetTimer("AntyMoneyCheat", 1000, 1);
- SendClientMessage(playerid, GREEN, "Anty Money Cheat włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Money Cheat jest już włączony!");
- return 1;
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyMoneyCheat");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyMoneyCheat", 0);
- KillTimer(Anty[AntiMoneyCheat]);
- SendClientMessage(playerid, GREEN, "Anty Money Cheat wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Money Cheat jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_atp(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Atp <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyTeleport");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyTeleport", 1);
- Anty[AntiTeleport] = SetTimer("AntyTP", 1000, 1);
- SendClientMessage(playerid, GREEN, "Anty Money Cheat włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Teleport jest już włączony!");
- return 1;
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyTeleport");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyTeleport", 0);
- KillTimer(Anty[AntiTeleport]);
- SendClientMessage(playerid, GREEN, "Anty Teleport wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Teleport jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_anadbluzgi(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Anadbluzgi <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyNadmierneBluzgi");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyNadmierneBluzgi", 1);
- Anty[AntiNadmierneBluzgi] = true;
- SendClientMessage(playerid, GREEN, "Anty Nadmierne Bluzgi włączone");
- )
- else SendClientMessage(playerid, RED, "Anty Nadmierne Bluzgi są już włączone!");
- return 1;
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyNadmierneBluzgi");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyNadmierneBluzgi", 0);
- Anty[AntiBugUA] = false;
- SendClientMessage(playerid, GREEN, "Anty Nadmierne Bluzgi wyłączone");
- )
- else SendClientMessage(playerid, RED, "Anty Nadmierne Bluzgi są już wyłączone");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_abugua(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Abugua <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyBugUnlimitedAmmo");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyBugUnlimitedAmmo", 1);
- Anty[AntiBugUA] = true;
- SendClientMessage(playerid, GREEN, "Anty Bug Unlimited Ammo włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Bug Unlimited Ammo jest już włączony!");
- return 1;
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyBugUnlimitedAmmo");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyBugUnlimitedAmmo", 0);
- Anty[AntiBugUA] = false;
- SendClientMessage(playerid, GREEN, "Anty Bug Unlimited Ammo wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Bug Unlimited Ammo jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_ask(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Ask <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntySpawnKill");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntySpawnKill", 1);
- Anty[SpawnProtE] = true;
- SendClientMessage(playerid, GREEN, "Anty Spawn Kill włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Spawn Kill jest już włączony!");
- return 1;
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "SpawnProtection");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntySpawnKill", 0);
- Anty[SpawnProtE] = false;
- SendClientMessage(playerid, GREEN, "Anty Spawn Kill wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Spawn Kill jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_acmdflood(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Aflood <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyCommandFlood");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyCommandFlood", 1);
- Anty[AntiCmdFlood] = SetTimer("AntyCmdFlood", 1000, 1);
- SendClientMessage(playerid, GREEN, "Anty Command Flood włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Command Flood jest już włączony!");
- return 1;
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyCommandFlood");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyCommandFlood", 0);
- KillTimer(Anty[AntiCmdFlood]);
- SendClientMessage(playerid, GREEN, "Anty Command Flood wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Command Flood jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_apmflood(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Apmflood <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyPrivateMessageFlood");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyPrivateMessageFlood", 1);
- Anty[AntiPMFlood] = SetTimer("AntyPMFlood", 1000, 1);
- SendClientMessage(playerid, GREEN, "Anty Private Message Flood włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Private Message Flood jest już włączony!");
- return 1;
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyPrivateMessageFlood");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyPrivateMessageFlood", 0);
- KillTimer(Anty[AntiPMFlood]);
- SendClientMessage(playerid, GREEN, "Anty Private Message Flood wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Private Message Flood jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_aflood(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Aflood <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyFlood");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyFlood", 1);
- Anty[AntyFlood] = SetTimer("AntiFlood", 1000, 1);
- SendClientMessage(playerid, GREEN, "Anty Flood włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Flood jest już włączony!");
- return 1;
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyFlood");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyFlood", 0);
- KillTimer(Anty[AntyFlood]);
- SendClientMessage(playerid, GREEN, "Anty Flood wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Flood jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_ark(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Ark <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyRustlerKill");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyRustlerKill", 1);
- Anty[AntyRustlerK] = true;
- SendClientMessage(playerid, GREEN, "Anty Rustler Kill włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Rustler Kill jest już włączony!");
- return 1;
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyRustlerKill");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyRustlerKill", 0);
- Anty[AntyRustlerK] = false;
- SendClientMessage(playerid, GREEN, "Anty Rustler Kill wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Rustler Kill jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_ahunterk(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Ahunterk <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyHunterKill");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyHunterKill", 1);
- Anty[AntyHunterK] = true;
- SendClientMessage(playerid, GREEN, "Anty Hunter Kill włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Hunter Kill jest już włączony!");
- return 1;
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyHunterKill");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyRustlerKill", 0);
- Anty[AntyHunterK] = false;
- SendClientMessage(playerid, GREEN, "Anty Hunter Kill wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Hunter Kill jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_asparrowk(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Asparrowk <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntySparrowKill");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntySparrowKill", 1);
- Anty[AntySparrowK] = true;
- SendClientMessage(playerid, GREEN, "Anty Sparrow Kill włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Sparrow Kill jest już włączony!");
- return 1;
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntySparrowKill");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntySparrowKill", 0);
- Anty[AntySparrowK] = false;
- SendClientMessage(playerid, GREEN, "Anty Sparrow Kill wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Sparrow Kill jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_arhinok(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Arhinok <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyRhinoKill");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyRhinoKill", 1);
- Anty[AntyRhinoK] = true;
- SendClientMessage(playerid, GREEN, "Anty Rhino Kill włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Rhino Kill jest już włączony!");
- return 1;
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyRhinoKill");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyRhinoKill", 0);
- Anty[AntyRhinoK] = false;
- SendClientMessage(playerid, GREEN, "Anty Rhino Kill wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Rhino Kill jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_adb(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Adb <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyDrive-By");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyDrive-By", 1);
- Anty[AntyDB] = true;
- SendClientMessage(playerid, GREEN, "Anty Drive-By włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Drive-By jest już włączony!");
- return 1;
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyDrive-By");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyDrive-By", 0);
- Anty[AntyDB] = false;
- SendClientMessage(playerid, GREEN, "Anty Drive-By wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Drive-By jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_ahydrak(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Ahydrak <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyHydraKill");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyHydraKill", 1);
- Anty[AntyHydraK] = true;
- SendClientMessage(playerid, GREEN, "Anty Hydra Kill włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Hydra Kill jest już włączony!");
- return 1;
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyHydraKill");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyDrive-By", 0);
- Anty[AntyHydraK] = false;
- SendClientMessage(playerid, GREEN, "Anty Hydra Kill wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Hydra Kill jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_avehwarp(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Avehwarp <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyVehicleWarp");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyVehicleWarp", 1);
- Anty[AntiVehWarp] = true;
- SendClientMessage(playerid, GREEN, "Anty Vehicle Warp włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Vehicle Warp jest już włączony!");
- return 1;
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyVehicleWarp");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyVehicleWarp", 0);
- Anty[AntiVehWarp] = false;
- SendClientMessage(playerid, GREEN, "Anty Vehicle Warp wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Vehicle Warp jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_ack(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Ack <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyCarKill");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyCarKill", 1);
- Anty[AntyCK] = true;
- SendClientMessage(playerid, GREEN, "Anty Car Kill włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Car Kill jest już włączony!");
- return 1;
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyCarKill");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyCarKill", 0);
- Anty[AntyCK] = false;
- SendClientMessage(playerid, GREEN, "Anty Car Kill wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Car Kill jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_adt(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Adt <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyDrive-Thru");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyDrive-Thru", 1);
- Anty[AntyDT] = true;
- SendClientMessage(playerid, GREEN, "Anty Drive-Thru włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Drive-Thru jest już włączony!");
- return 1;
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyDrive-Thru");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyDrive-Thru", 0);
- Anty[AntyDT] = false;
- SendClientMessage(playerid, GREEN, "Anty Drive-Thru wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Drive-Thru jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_apodsz(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Apodsz <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyPodszywanie");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyPodszywanie", 1);
- Anty[AntiPodszywanie] = true;
- SendClientMessage(playerid, GREEN, "Anty Podszywanie włączone");
- )
- else SendClientMessage(playerid, RED, "Anty Podszywanie jest już włączone!");
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyPodszywanie");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyPodszywanie", 0);
- Anty[AntiPodszywanie] = false;
- SendClientMessage(playerid, GREEN, "Anty Podszywanie wyłączone");
- )
- else SendClientMessage(playerid, RED, "Anty Podszywanie jest już wyłączone");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_aplanek(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Aplanek <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyPlaneKill");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyPlaneKill", 1);
- Anty[AntyPlaneK] = true;
- SendClientMessage(playerid, GREEN, "Anty Plane Kill włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Plane Kill jest już włączony!");
- return 1;
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyPlaneKill");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyPlaneKill", 0);
- Anty[AntyPlaneK] = false;
- SendClientMessage(playerid, GREEN, "Anty Plane Kill wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Plane Kill jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_abhop(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Abhop <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyBunnyHop");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyBunnyHop", 1);
- Anty[AntiBunnyHop] = true;
- SendClientMessage(playerid, GREEN, "Anty Bunny Hop włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Bunny Hop jest już włączony!");
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyBunnyHop");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyBunnyHop", 0);
- Anty[AntiBunnyHop] = false;
- SendClientMessage(playerid, GREEN, "Anty Bunny Hop wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Bunny Hop jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_alsprint(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Alsprint <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyLongSprint");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyLongSprint", 1);
- Anty[AntiLongSprint] = true;
- SendClientMessage(playerid, GREEN, "Anty Long Sprint włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Long Sprint jest już włączony!");
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyLongSprint");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyLongSprint", 0);
- Anty[AntiLongSprint] = false;
- SendClientMessage(playerid, GREEN, "Anty Long Sprint wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Long Sprint jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_afreezeveh(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Afreezeveh <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyFreezeVehicles");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyFreezeVehicles", 1);
- Anty[AntiFreezeVeh] = true;
- SendClientMessage(playerid, GREEN, "Anty Freeze Vehicles włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Freeze Vehicles jest już włączony!");
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyFreezeVehicles");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyFreezeVehicles", 0);
- Anty[AntiFreezeVeh] = false;
- SendClientMessage(playerid, GREEN, "Anty Freeze Vehicles wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Freeze Vehicles jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_aemoic(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Aemoic <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyEmotyIC");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyEmotyIC", 1);
- Anty[AntiICEmo] = true;
- SendClientMessage(playerid, GREEN, "Anty Emoty w IC włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Emoty w IC jest już włączony!");
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyEmotyIC");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyEmotyIC", 0);
- Anty[AntiICEmo] = false;
- SendClientMessage(playerid, GREEN, "Anty Emoty IC wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Emoty w IC jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_anj(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Anj <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyNinjaJacking");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyNinjaJacking", 1);
- Anty[AntiNinjaJacking] = true;
- SendClientMessage(playerid, GREEN, "Anty Ninja Jacking włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Ninja Jacking jest już włączony!");
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyNinjaJacking");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyNinjaJacking", 0);
- Anty[AntiNinjaJacking] = false;
- SendClientMessage(playerid, GREEN, "Anty Ninja Jacking wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Ninja Jacking jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_ahk(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Ahk <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyHeliKill");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyHeliKill", 1);
- Anty[AntyHK] = true;
- SendClientMessage(playerid, GREEN, "Anty Heli Kill włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Heli Kill jest już włączony!");
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyHeliKill");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyHeliKill", 0);
- Anty[AntyHK] = false;
- SendClientMessage(playerid, GREEN, "Anty Heli Kill wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Heli Kill jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_acaps(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Acaps <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyCapsLock");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyCapsLock", 1);
- Anty[AntiCaps] = true;
- SendClientMessage(playerid, GREEN, "Anty Caps Lock włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Caps Lock jest już włączony!");
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyCapsLock");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyCapsLock", 0);
- Anty[AntiCaps] = false;
- SendClientMessage(playerid, GREEN, "Anty Caps Lock wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Caps Lock jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_aip(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Aip <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyReklamaSerwera");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyReklamaSerwera", 1);
- Anty[AntiIP] = true;
- SendClientMessage(playerid, GREEN, "Anty Reklama Serwera włączona");
- )
- else SendClientMessage(playerid, RED, "Anty Reklama Serwera jest już włączona!");
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyReklamaSerwera");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyReklamaSerwera", 0);
- Anty[AntiIP] = false;
- SendClientMessage(playerid, GREEN, "Anty Reklama Serwera wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Reklama Serwera jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_awww(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Awww <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyReklamaStrony");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyReklamaStrony", 1);
- Anty[AntiWWW] = true;
- SendClientMessage(playerid, GREEN, "Anty Reklama Strony włączona");
- )
- else SendClientMessage(playerid, RED, "Anty Reklama Strony jest już włączona!");
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyReklamaStrony");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyReklamaStrony", 0);
- Anty[AntiWWW] = false;
- SendClientMessage(playerid, GREEN, "Anty Reklama Strony wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Reklama Strony jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_avdk(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Avdk <ON/OFF>");
- return 1;
- )
- if(strcmp(tmp, "on", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyVehicleDriverKilling");
- if(strval(str) == 0)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyVehicleDriverKilling", 1);
- Anty[AntiVehicleDriverKilling] = true;
- SendClientMessage(playerid, GREEN, "Anty Vehicle Driver Killing włączony");
- )
- else SendClientMessage(playerid, RED, "Anty Vehicle Driver Killing jest już włączony!");
- )
- if(strcmp(tmp, "off", true)==0)
- (
- str = dini_Get("AntyCheatConfig.ini", "AntyVehicleDriverKilling");
- if(strval(str) == 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "AntyVehicleDriverKilling", 0);
- Anty[AntiVehicleDriverKilling] = false;
- SendClientMessage(playerid, GREEN, "Anty Vehicle Driver Killing wyłączony");
- )
- else SendClientMessage(playerid, RED, "Anty Vehicle Driver Killing jest już wyłączony");
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_amaxping(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Amaxping <Ilość>");
- return 1;
- )
- if(strval(tmp) >= 50)
- (
- dini_IntSet("AntyCheatConfig.ini", "MaxPing", strval(tmp));
- Anty[MaxPing] = strval(tmp);
- format(str, sizeof(str), "Maksymalny ping ustawiony na %i", strval(tmp));
- SendClientMessage(playerid, GREEN, str);
- )
- else SendClientMessage(playerid, RED, "Max. ping nie może być mniejszy od 50!");
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_amaxafk(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /amaxafk <Minuty>");
- return 1;
- )
- if(strval(tmp) >= 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "MaxAFK", strval(tmp));
- Anty[CzasAFK] = strval(tmp);
- format(str, sizeof(str), "Maksymalny czas AFK ustawiony na %i", strval(tmp));
- SendClientMessage(playerid, GREEN, str);
- )
- else SendClientMessage(playerid, RED, "Max. czas AFK nie może być mniejszy od 1!");
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_amaxhop(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Amaxhop <Ilość>");
- return 1;
- )
- if(strval(tmp) >= 1 && strval(tmp) <= 30)
- (
- dini_IntSet("AntyCheatConfig.ini", "MaxSkokow", strval(tmp));
- Anty[MaxJump] = strval(tmp);
- format(str, sizeof(str), "Maksymalna ilość skoków ustawiona na %i", strval(tmp));
- SendClientMessage(playerid, GREEN, str);
- )
- else SendClientMessage(playerid, RED, "Max. ilość skoków nie może być większy od 30 ani mniejszy od 1!");
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_amaxsprint(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Amaxsprint <Sekundy>");
- return 1;
- )
- if(strval(tmp) >= 3)
- (
- dini_IntSet("AntyCheatConfig.ini", "CzasSprint", strval(tmp));
- Anty[MaxSprint] = strval(tmp);
- format(str, sizeof(str), "Maksymalny czas sprintu ustawiony na %i", strval(tmp));
- SendClientMessage(playerid, GREEN, str);
- )
- else SendClientMessage(playerid, RED, "Max. ilość czasu sprintu nie może być mniejszy od 3!");
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_askczas(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Askczas <Sekundy>");
- return 1;
- )
- if(strval(tmp) >= 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "CzasAntySpawnKill", strval(tmp));
- Anty[CzasSpawnProt] = strval(tmp);
- format(str, sizeof(str), "Czas Anty Spawn Kill ustawiony na %i", strval(tmp));
- SendClientMessage(playerid, GREEN, str);
- )
- else SendClientMessage(playerid, RED, "Czas Anty Spawn Kill nie może być mniejszy od 1!");
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_amaxglitch(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Amaxglitch <Ilość>");
- return 1;
- )
- if(strval(tmp) >= 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "MaxGlitchy", strval(tmp));
- Anty[MaxGlitch] = strval(tmp);
- format(str, sizeof(str), "Max. ilość Glitch'y ustawiona na %i", strval(tmp));
- SendClientMessage(playerid, GREEN, str);
- )
- else SendClientMessage(playerid, RED, "Max. ilość Glitch'y nie może być mniejsza od 1!");
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_amaxhydrak(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Amaxhydrak <Ilość>");
- return 1;
- )
- if(strval(tmp) >= 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "MaxHydraKill", strval(tmp));
- Anty[MaxHydraK] = strval(tmp);
- format(str, sizeof(str), "Max. ilość zabić z Hydry ustawiona na %i", strval(tmp));
- SendClientMessage(playerid, GREEN, str);
- )
- else SendClientMessage(playerid, RED, "Max. ilość Hydra Kill nie może być mniejsza od 1!");
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_amaxsk(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Amaxsk <Ilość>");
- return 1;
- )
- if(strval(tmp) >= 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "MaxSpawnKill", strval(tmp));
- Anty[MaxSK] = strval(tmp);
- format(str, sizeof(str), "Max. ilość Spawn Kill ustawiona na %i", strval(tmp));
- SendClientMessage(playerid, GREEN, str);
- )
- else SendClientMessage(playerid, RED, "Max. ilość Spawn Kill nie może być mniejsza od 1!");
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_amaxdb(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /amaxdb <Ilość>");
- return 1;
- )
- if(strval(tmp) >= 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "MaxDrive-By", strval(tmp));
- Anty[MaxDB] = strval(tmp);
- format(str, sizeof(str), "Max. ilość Drive-By ustawiona na %i", strval(tmp));
- SendClientMessage(playerid, GREEN, str);
- )
- else SendClientMessage(playerid, RED, "Max. ilość Drive-By nie może być mniejsza od 1!");
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_amaxdt(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Amaxdt <Ilość>");
- return 1;
- )
- if(strval(tmp) >= 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "MaxDrive-Thru", strval(tmp));
- Anty[MaxDT] = strval(tmp);
- format(str, sizeof(str), "Max. ilość Drive-Thru ustawiona na %i", strval(tmp));
- SendClientMessage(playerid, GREEN, str);
- )
- else SendClientMessage(playerid, RED, "Max. ilość Drive-Thru nie może być mniejsza od 1!");
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_amaxck(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Amaxck <Ilość>");
- return 1;
- )
- if(strval(tmp) >= 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "MaxCarKill", strval(tmp));
- Anty[MaxCK] = strval(tmp);
- format(str, sizeof(str), "Max. ilość Car Kill ustawiona na %i", strval(tmp));
- SendClientMessage(playerid, GREEN, str);
- )
- else SendClientMessage(playerid, RED, "Max. ilość Car Kill nie może być mniejsza od 1!");
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_amaxhk(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Amaxhk <Ilość>");
- return 1;
- )
- if(strval(tmp) >= 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "MaxHeliKill", strval(tmp));
- Anty[MaxHK] = strval(tmp);
- format(str, sizeof(str), "Max. ilość Heli Kill ustawiona na %i", strval(tmp));
- SendClientMessage(playerid, GREEN, str);
- )
- else SendClientMessage(playerid, RED, "Max. ilość Heli Kill nie może być mniejsza od 1!");
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_amaxhunterk(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /Amaxhunterk <Ilość>");
- return 1;
- )
- if(strval(tmp) >= 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "MaxHunterKill", strval(tmp));
- Anty[MaxHunterK] = strval(tmp);
- format(str, sizeof(str), "Max. ilość Hunter Kill ustawiona na %i", strval(tmp));
- SendClientMessage(playerid, GREEN, str);
- )
- else SendClientMessage(playerid, RED, "Max. ilość Hunter Kill nie może być mniejsza od 1!");
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_amaxrhinok(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /amaxrhinok [Ilość]");
- return 1;
- )
- if(strval(tmp) >= 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "MaxRhinoKill", strval(tmp));
- Anty[MaxRhinoK] = strval(tmp);
- format(str, sizeof(str), "Max. ilość Rhino Kill ustawiona na %i", strval(tmp));
- SendClientMessage(playerid, GREEN, str);
- )
- else SendClientMessage(playerid, RED, "Max. ilość Rhino Kill nie może być mniejsza od 1!");
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_amaxsparrowk(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /amaxsparrowk [Ilość]");
- return 1;
- )
- if(strval(tmp) >= 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "MaxSparrowKill", strval(tmp));
- Anty[MaxSparrowK] = strval(tmp);
- format(str, sizeof(str), "Max. ilość Sparrow Kill ustawiona na %i", strval(tmp));
- SendClientMessage(playerid, GREEN, str);
- )
- else SendClientMessage(playerid, RED, "Max. ilość Sparrow Kill nie może być mniejsza od 1!");
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_amaxrustlerk(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /amaxrustlerk [Ilość]");
- return 1;
- )
- if(strval(tmp) >= 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "MaxRustlerKill", strval(tmp));
- Anty[MaxRustlerK] = strval(tmp);
- format(str, sizeof(str), "Max. ilość Rustler Kill ustawiona na %i", strval(tmp));
- SendClientMessage(playerid, GREEN, str);
- )
- else SendClientMessage(playerid, RED, "Max. ilość Rustler Kill nie może być mniejsza od 1!");
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_amaxplanek(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /amaxplanek [Ilość]");
- return 1;
- )
- if(strval(tmp) >= 1)
- (
- dini_IntSet("AntyCheatConfig.ini", "MaxPlaneKill", strval(tmp));
- Anty[MaxPlaneK] = strval(tmp);
- format(str, sizeof(str), "Max. ilość Plane Kill ustawiona na %i", strval(tmp));
- SendClientMessage(playerid, GREEN, str);
- )
- else SendClientMessage(playerid, RED, "Max. ilość Plane Kill nie może być mniejsza od 1!");
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_acckara(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new Wybor;
- new idx;
- new tmp[256];
- new tmp2[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /ACCkara <Nazwa> <Rodzaj (1 - Kick, 2 - Ban, 3 - Host-Ban)>");
- return 1;
- )
- tmp2 = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp2) || strval(tmp2) < 1 || strval(tmp2) > 3)
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /ACCkara <Nazwa> <Rodzaj (1 - Kick, 2 - Ban, 3 - Host-Ban)>");
- return 1;
- )
- Wybor = strval(tmp2);
- 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
- || 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
- || 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
- || 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)
- (
- if(strcmp(tmp, "aspeed", false) == 0)
- (
- Kara[SpeedHack] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "SpeedHack", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Speed Hack");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Speed Hack");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Speed Hack");
- )
- )
- if(strcmp(tmp, "aairbrake", false) == 0)
- (
- Kara[AirBrake] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "AirBrake", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Air Brake");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Air Brake");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Air Brake");
- )
- )
- if(strcmp(tmp, "avdk", false) == 0)
- (
- Kara[VehDriverKilling] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "VehicleDriverKilling", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Vehicle Driver Killing");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Vehicle Driver Killing");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Vehicle Driver Killing");
- )
- )
- if(strcmp(tmp, "arustlerk", false) == 0)
- (
- Kara[RustlerKill] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "RustlerKill", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Rustler Kill");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Rustler Kill");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Rustler Kill");
- )
- )
- if(strcmp(tmp, "ajet", false) == 0)
- (
- Kara[Jetpack] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "Jetpack", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za posiadanie Jetpack'a");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za posiadanie Jetpack'a");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za posiadanie Jetpack'a");
- )
- )
- if(strcmp(tmp, "asparrowk", false) == 0)
- (
- Kara[SparrowKill] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "SparrowKill", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Sparrow Kill");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Sparrow Kill");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Sparrow Kill");
- )
- )
- if(strcmp(tmp, "anj", false) == 0)
- (
- Kara[NinjaJacking] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "NinjaJacking", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Ninja Jacking");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Ninja Jacking");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Ninja Jacking");
- )
- )
- if(strcmp(tmp, "aweapcheat", false) == 0)
- (
- Kara[WeaponCheat] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "WeaponCheat", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Weapon Cheat");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Weapon Cheat");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Weapon Cheat");
- )
- )
- if(strcmp(tmp, "aindoors", false) == 0)
- (
- Kara[InteriorWeapons] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "InteriorWeapons", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Interior Weapons");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Interior Weapons");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Interior Weapons");
- )
- )
- if(strcmp(tmp, "aflood", false) == 0)
- (
- Kara[Flood] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "Flood", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Flood");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Flood");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Flood");
- )
- )
- if(strcmp(tmp, "aping", false) == 0)
- (
- Kara[Ping] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "Ping", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za wysoki Ping");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za wysoki Ping");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za wysoki Ping");
- )
- )
- if(strcmp(tmp, "amoney", false) == 0)
- (
- Kara[MoneyCheat] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "MoneyCheat", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Money Cheat");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Money Cheat");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Money Cheat");
- )
- )
- if(strcmp(tmp, "atp", false) == 0)
- (
- Kara[Teleport] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "Teleport", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Teleport");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Teleport");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Teleport");
- )
- )
- if(strcmp(tmp, "aarmour", false) == 0)
- (
- Kara[ArmourCheat] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "ArmourCheat", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Armour Cheat");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Armour Cheat");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Armour Cheat");
- )
- )
- if(strcmp(tmp, "ahealth", false) == 0)
- (
- Kara[HealthCheat] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "HealthCheat", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Health Cheat");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Health Cheat");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Health Cheat");
- )
- )
- if(strcmp(tmp, "abikefall", false) == 0)
- (
- Kara[AntyBikeFallOffK] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "AntiBikeFallOff", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Anti Bike Fall Off");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Anti Bike Fall Off");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Anti Bike Fall Off");
- )
- )
- if(strcmp(tmp, "aafk", false) == 0)
- (
- Kara[AFK] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "AFK", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za AFK");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za AFK");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za AFK");
- )
- )
- if(strcmp(tmp, "anadbluzgi", false) == 0)
- (
- Kara[NadmierneBluzgi] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "NadmierneBluzgi", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Nadmierne Bluzgi");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Nadmierne Bluzgi");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Nadmierne Bluzgi");
- )
- )
- if(strcmp(tmp, "afsprint", false) == 0)
- (
- Kara[FasterSprint] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "FasterSprint", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Faster Sprint");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Faster Sprint");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Faster Sprint");
- )
- )
- if(strcmp(tmp, "ainfammo", false) == 0)
- (
- Kara[InfiniteAmmo] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "InfiniteAmmo", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Infinite Ammo");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Infinite Ammo");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Infinite Ammo");
- )
- )
- if(strcmp(tmp, "amegajump", false) == 0)
- (
- Kara[MegaJumpK] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "MegaJump", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Mega Jump");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Mega Jump");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Mega Jump");
- )
- )
- if(strcmp(tmp, "afreezeveh", false) == 0)
- (
- Kara[FreezeVehicles] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "FreezeVehicles", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Freeze Vehicles");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Freeze Vehicles");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Freeze Vehicles");
- )
- )
- if(strcmp(tmp, "avehwarp", false) == 0)
- (
- Kara[VehicleWarp] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "VehicleWarp", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Vehicle Warp");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Vehicle Warp");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Vehicle Warp");
- )
- )
- if(strcmp(tmp, "adb", false) == 0)
- (
- Kara[DriveBy] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "DriveBy", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Drive-By");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Drive-By");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Drive-By");
- )
- )
- if(strcmp(tmp, "adt", false) == 0)
- (
- Kara[DriveThru] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "DriveThru", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Drive-Thru");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Drive-Thru");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Drive-Thru");
- )
- )
- if(strcmp(tmp, "ack", false) == 0)
- (
- Kara[CarKill] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "CarKill", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Car Kill");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Car Kill");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Car Kill");
- )
- )
- if(strcmp(tmp, "arhinok", false) == 0)
- (
- Kara[RhinoKill] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "RhinoKill", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Rhino Kill");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Rhino Kill");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Rhino Kill");
- )
- )
- if(strcmp(tmp, "ahk", false) == 0)
- (
- Kara[HeliKill] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "HeliKill", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Heli Kill");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Heli Kill");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Heli Kill");
- )
- )
- if(strcmp(tmp, "ahydrak", false) == 0)
- (
- Kara[HydraKill] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "HydraKill", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Hydra Kill");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Hydra Kill");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Hydra Kill");
- )
- )
- if(strcmp(tmp, "ahunterk", false) == 0)
- (
- Kara[HunterKill] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "HunterKill", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Hunter Kill");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Hunter Kill");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Hunter Kill");
- )
- )
- if(strcmp(tmp, "aplanek", false) == 0)
- (
- Kara[PlaneKill] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "PlaneKill", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Plane Kill");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Plane Kill");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Plane Kill");
- )
- )
- if(strcmp(tmp, "ask", false) == 0)
- (
- Kara[SpawnKill] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "SpawnKill", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Spawn Kill");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Spawn Kill");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Spawn Kill");
- )
- )
- if(strcmp(tmp, "aip", false) == 0)
- (
- Kara[ReklamaSerwera] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "ReklamaSerwera", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Reklamę Serwera");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Reklamę Serwera");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Reklamę Serwera");
- )
- )
- if(strcmp(tmp, "apodsz", false) == 0)
- (
- Kara[Podszywanie] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "Podszywanie", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za podszywanie się pod Admina");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za podszywanie się pod Admina");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za podszywanie się pod Admina");
- )
- )
- if(strcmp(tmp, "apmflood", false) == 0)
- (
- Kara[PMFlood] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "PrivateMessageFlood", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Private Message Flood");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Private Message Flood");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Private Message Flood");
- )
- )
- if(strcmp(tmp, "acmdflood", false) == 0)
- (
- Kara[CmdFlood] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "CommandFlood", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Command Flood");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Command Flood");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Command Flood");
- )
- )
- if(strcmp(tmp, "abugua", false) == 0)
- (
- Kara[BugUAK] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "BugUnlimitedAmmo", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Bug Unlimited Ammo");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Bug Unlimited Ammo");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Bug Unlimited Ammo");
- )
- )
- if(strcmp(tmp, "aglitch", false) == 0)
- (
- Kara[GlitchK] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "Glitch", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Glitch");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Glitch");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Glitch");
- )
- )
- if(strcmp(tmp, "avehgod", false) == 0)
- (
- Kara[VehicleGodMode] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "VehicleGodMode", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Vehicle God Mode");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Vehicle God Mode");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Vehicle God Mode");
- )
- )
- if(strcmp(tmp, "agod", false) == 0)
- (
- Kara[GodMode] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "GodMode", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za God Mode");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za God Mode");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za God Mode");
- )
- )
- if(strcmp(tmp, "ainfioxy", false) == 0)
- (
- Kara[InfiniteOxygen] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "InfiniteOxygen", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Infinite Oxygen");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Infinite Oxygen");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Infinite Oxygen");
- )
- )
- if(strcmp(tmp, "awunder", false) == 0)
- (
- Kara[WalkUnderwater] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "WalkUnderwater", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Walk Underwater");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Walk Underwater");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Walk Underwater");
- )
- )
- if(strcmp(tmp, "awww", false) == 0)
- (
- Kara[ReklamaStrony] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "ReklamaStrony", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Reklamę Strony");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Reklamę Strony");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Reklamę Strony");
- )
- )
- if(strcmp(tmp, "apause", false) == 0)
- (
- Kara[Pauza] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "Pause", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Pauzę");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Pauzę");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Pauzę");
- )
- )
- if(strcmp(tmp, "acrash", false) == 0)
- (
- Kara[ProbaCrash] = Wybor;
- dini_IntSet("AntyCheatConfig.ini", "ProbaCrash", Wybor);
- switch(Wybor)
- (
- case 1: SendClientMessage(playerid, GREEN, "Ustawiłeś Kick'owanie za Próbę Crash'owania Serwera");
- case 2: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie za Próbę Crash'owania Serweraę");
- case 3: SendClientMessage(playerid, GREEN, "Ustawiłeś Banowanie na host za Próbę Crash'owania Serweraę");
- )
- )
- )
- else SendClientMessage(playerid, RED, "Nie ma takiej opcji!");
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_accblr(playerid, cmdtext[])
- (
- if(Anty[BL] == true)
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- Nick = strtok(cmdtext, idx, ' ');
- if(!strlen(Nick))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /ACCblr <Nick>");
- return 1;
- )
- if(strlen(Nick) >= 3 && strlen(Nick) <= 16) UsunZBL(playerid, "BLGracz.txt", "BLGracz2.txt", Nick, false);
- else SendClientMessage(playerid, RED, "Nick musi mieć conajmniej 3 znaki i max. 16 znaków!");
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- )
- else SendClientMessage(playerid, RED, "Czarna Lista jest wyłączona!");
- return 1;
- )
- dcmd_accbcr(playerid, cmdtext[])
- (
- if(Anty[BC] == true)
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- Nick = strtok(cmdtext, idx, ' ');
- if(!strlen(Nick))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /ACCbcr <Tag>");
- return 1;
- )
- if(strlen(Nick) >= 2 && strlen(Nick) <= 15) UsunZBL(playerid, "BLKlan.txt", "BLKlan2.txt", Nick, true);
- else SendClientMessage(playerid, RED, "Tag musi mieć conajmniej 2 znaki i max. 15 znaków!");
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- )
- else SendClientMessage(playerid, RED, "Czarna Lista Klanów jest wyłączona!");
- return 1;
- )
- dcmd_accbc(playerid, cmdtext[])
- (
- if(Anty[BC] == true)
- (
- if(IsPlayerAdmin(playerid))
- (
- new Co;
- new idx;
- new tmp[256];
- new Powod[256];
- Nick = strtok(cmdtext, idx, ' ');
- if(!strlen(Nick))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /accbc <Tag> <1 - Kick, 2 - Ban> <Powód>");
- return 1;
- )
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /accbc <Tag> <1 - Kick, 2 - Ban> <Powód>");
- return 1;
- )
- Co = strval(tmp);
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /accbc <Tag> <1 - Kick, 2 - Ban> <Powód>");
- return 1;
- )
- if(Co == 1 || Co == 2)
- (
- if(strfind(Nick, "_", false) != -1 || strfind(Nick, "[", false) != -1 || strfind(Nick, "]", false) != -1)
- (
- if(strlen(Nick) >= 2 && strlen(Nick) <= 15)
- (
- new File:Plik = fopen("BLKlan.txt", io_append);
- strmid(Powod, cmdtext, strlen(Nick)+3, 256, sizeof(Powod));
- format(str, sizeof(str), "%s-%i-%s\r\n", Nick, Co, Powod);
- fwrite(Plik, str);
- fclose(Plik);
- switch(Co)
- (
- case 1:
- (
- format(str, sizeof(str), "Dodałeś klan %s na Czarną Listę, graczy z tym Tag'iem będzie wyrzucać z powodem: %s", Nick, Powod);
- SendClientMessage(playerid, GREEN, str);
- )
- case 2:
- (
- format(str, sizeof(str), "Dodałeś klan %s Czarną Listę, graczy z tym Tag'iem będzie banować z powodem: %s", Nick, Powod);
- SendClientMessage(playerid, GREEN, str);
- )
- )
- new Klan[256];
- strcat(Klan, Nick, sizeof(Klan));
- GetPlayerName(playerid, Nick, sizeof(Nick));
- format(str, sizeof(str), "Klan %s został dodany na Czarną Listę Klanów przez Admina %s, powód: %s", Klan, Nick, Powod);
- SendClientMessageToAll(DARK, str);
- )
- else SendClientMessage(playerid, RED, "Tag musi mieć conajmniej 2 znaki i max. 15 znaków!");
- )
- else SendClientMessage(playerid, RED, "Tag musi mieć znak '_', '[', lub ']'!");
- )
- else SendClientMessage(playerid, RED, "Możesz tylko wpisać 1, lub 2!");
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- )
- else SendClientMessage(playerid, RED, "Czarna Lista Klanów jest wyłączona!");
- return 1;
- )
- dcmd_accbl(playerid, cmdtext[])
- (
- if(Anty[BL] == true)
- (
- if(IsPlayerAdmin(playerid))
- (
- new Co;
- new idx;
- new tmp[256];
- new Powod[256];
- Nick = strtok(cmdtext, idx, ' ');
- if(!strlen(Nick))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /accbl <Tag> <1 - Kick, 2 - Ban> <Powód>");
- return 1;
- )
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /accbl <Tag> <1 - Kick, 2 - Ban> <Powód>");
- return 1;
- )
- Co = strval(tmp);
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /accbl <Tag> <1 - Kick, 2 - Ban> <Powód>");
- return 1;
- )
- if(Co == 1 || Co == 2)
- (
- if(strlen(Nick) >= 3 && strlen(Nick) <= 16)
- (
- new File:Plik = fopen("BLGracz.txt", io_append);
- strmid(Powod, cmdtext, strlen(Nick)+3, 256, sizeof(Powod));
- format(str, sizeof(str), "%s-%i-%s\r\n", Nick, Co, Powod);
- fwrite(Plik, str);
- fclose(Plik);
- switch(Co)
- (
- case 1:
- (
- 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);
- SendClientMessage(playerid, GREEN, str);
- )
- case 2:
- (
- format(str, sizeof(str), "Dodałeś gracz %s Czarną Listę, przy każdym wejściu będzie go banować z powodem: %s", Nick, Powod);
- SendClientMessage(playerid, GREEN, str);
- )
- )
- new Gracz[256];
- strcat(Gracz, Nick, sizeof(Gracz));
- GetPlayerName(playerid, Nick, sizeof(Nick));
- format(str, sizeof(str), "%s został dodany na Czarną Listę przez Admina %s, powód: %s", Gracz, Nick, Powod);
- SendClientMessageToAll(DARK, str);
- )
- else SendClientMessage(playerid, RED, "Nick musi mieć conajmniej 3 znaki i max. 16 znaków!");
- )
- else SendClientMessage(playerid, RED, "Możesz tylko wpisać 1, lub 2!");
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- )
- else SendClientMessage(playerid, RED, "Czarna Lista jest wyłączona!");
- return 1;
- )
- dcmd_accbluzg(playerid, cmdtext[])
- (
- if(Anty[AntyBluzgi] == true)
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- Nick = strtok(cmdtext, idx, ' ');
- if(!strlen(Nick))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /accbluzg [Bluzg]");
- return 1;
- )
- new File:Plik = fopen("Bluzgi.txt", io_append);
- strmid(Nick, cmdtext, 0, 256, sizeof(Nick));
- format(str, sizeof(str), "%s,\r\n", Nick);
- fwrite(Plik, str);
- fclose(Plik);
- format(str, sizeof(str), "Dodałeś %s do cenzury", Nick);
- SendClientMessage(playerid, GREEN, str);
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- )
- else SendClientMessage(playerid, RED, "Anty Bluzgi są wyłączone!");
- return 1;
- )
- dcmd_accbluzgr(playerid, cmdtext[])
- (
- if(Anty[AntyBluzgi] == true)
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- Nick = strtok(cmdtext, idx, ' ');
- if(!strlen(Nick))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /accbluzgr <Bluzga>");
- return 1;
- )
- UsunZPliku(playerid, "Bluzgi.txt", "Bluzgi2.txt", Nick, false);
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- )
- else SendClientMessage(playerid, RED, "Anty Bluzgi są wyłączone!");
- return 1;
- )
- dcmd_accemor(playerid, cmdtext[])
- (
- if(Anty[AntyBluzgi] == true)
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- Nick = strtok(cmdtext, idx, ' ');
- if(!strlen(Nick))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /accemor <Emotka>");
- return 1;
- )
- UsunZPliku(playerid, "Emotikonki.txt", "Emotikonki2.txt", Nick, true);
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- )
- else SendClientMessage(playerid, RED, "Anty Emotikonki w IC są wyłączone!");
- return 1;
- )
- dcmd_accemo(playerid, cmdtext[])
- (
- if(Anty[AntiICEmo] == true)
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- Nick = strtok(cmdtext, idx, ' ');
- if(!strlen(Nick))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /accemo <Emotka>);
- return 1;
- )
- new File:Plik = fopen("Emotikonki.txt", io_append);
- strmid(Nick, cmdtext, 0, 256, sizeof(Nick));
- format(str, sizeof(str), "%s,\r\n", Nick);
- fwrite(Plik, str);
- fclose(Plik);
- format(str, sizeof(str), "Dodałeś %s do emotikonek", Nick);
- SendClientMessage(playerid, GREEN, str);
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- )
- else SendClientMessage(playerid, RED, "Anty Emotikonki w IC są wyłączone!");
- return 1;
- )
- dcmd_azbron(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new WybranaBron;
- new NoYes;
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /azbron <ID> <1 - Wlacz/2 - Wylacz>");
- return 1;
- )
- WybranaBron = strval(tmp);
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp))
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /azbron <ID> <1 - Wlacz/2 - Wylacz>");
- return 1;
- )
- NoYes = strval(tmp);
- if(WybranaBron > 0 && WybranaBron < 46 && WybranaBron != 19 && WybranaBron != 20 && WybranaBron != 21)
- (
- if(NoYes == 1 || NoYes == 0)
- (
- new bool:TakNie;
- if(NoYes == 1) TakNie = true;
- dini_IntSet("AntyCheatConfig.ini", Bronie[WybranaBron][NazwaConfig], NoYes);
- Bronie[WybranaBron][Zakazana] = TakNie;
- if(NoYes == 1)
- (
- format(str, sizeof(str), "Ochrona na %s włączona", Bronie[WybranaBron][Nazwa]);
- SendClientMessage(playerid, GREEN, str);
- )
- else if(NoYes == 0)
- (
- format(str, sizeof(str), "Ochrona na %s wyłączona", Bronie[WybranaBron][Nazwa]);
- SendClientMessage(playerid, GREEN, str);
- )
- )
- else SendClientMessage(playerid, RED, "Możesz napisać tylko 1 lub 0!");
- )
- else SendClientMessage(playerid, RED, "Nie ma takiej broni!");
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_accmd(playerid, cmdtext[])
- (
- if(IsPlayerAdmin(playerid))
- (
- new idx;
- new tmp[256];
- tmp = strtok(cmdtext, idx, ' ');
- if(!strlen(tmp) || strval(tmp) > 9 || strval(tmp) < 1)
- (
- SendClientMessage(playerid, WHITE, "UŻYJ: /accmd <1 - 9>");
- return 1;
- )
- switch(strval(tmp))
- (
- case 1:
- (
- SendClientMessage(playerid, GREEN, "Strona 1. - Lista komend Admina *AntyCheat*");
- SendClientMessage(playerid, WHITE, "/aspeed [on/off] - włącza/wyłącza Anty Speed Hack/Air Brake");
- SendClientMessage(playerid, WHITE, "/aafk [on/off] - włącza/wyłącza Anty AFK");
- SendClientMessage(playerid, WHITE, "/abikefall [on/off] - włącza/wyłącza Anty Bike Fall Off");
- SendClientMessage(playerid, WHITE, "/aweapcheat [on/off] - włącza/wyłącza Anty Weapon Cheat");
- SendClientMessage(playerid, WHITE, "/aindoors [on/off] - włącza/wyłącza Anty Indoors Weapons");
- SendClientMessage(playerid, WHITE, "/ainfiammo [on/off] - włącza/wyłącza Anty Infinite Ammo");
- SendClientMessage(playerid, WHITE, "/ajet [on/off] - włącza/wyłącza Anty Jetpack");
- SendClientMessage(playerid, WHITE, "/aping [on/off] - włącza/wyłącza Anty Ping");
- SendClientMessage(playerid, RED, "Wpisz /accmd 2, by ujrzeć następną listę komend");
- )
- case 2:
- (
- SendClientMessage(playerid, GREEN, "Strona 2. - Lista komend Admina *AntyCheat*");
- SendClientMessage(playerid, WHITE, "/ask [on/off] - włącza/wyłącza Anty Spawn Kill");
- SendClientMessage(playerid, WHITE, "/adb [on/off] - włącza/wyłącza Anty Drive-By");
- SendClientMessage(playerid, WHITE, "/adt [on/off] - włącza/wyłącza Anty Drive-Thru");
- SendClientMessage(playerid, WHITE, "/ack [on/off] - włącza/wyłącza Anty Car Kill");
- SendClientMessage(playerid, WHITE, "/ahk [on/off] - włącza/wyłącza Anty Heli Kill");
- SendClientMessage(playerid, WHITE, "/ahydrak [on/off] - włącza/wyłącza Anty Hydra Kill");
- SendClientMessage(playerid, WHITE, "/azbron [ID Broni] [1 - on, 0 - off] - włącza/wyłącza ochronę na broń");
- SendClientMessage(playerid, WHITE, "/amaxping [Max] - ustawia ile można mieć max. ping'u (większy - kick)");
- SendClientMessage(playerid, RED, "Wpisz /accmd 3, by ujrzeć następną listę komend");
- )
- case 3:
- (
- SendClientMessage(playerid, GREEN, "Strona 3. - Lista komend Admina *AntyCheat*");
- SendClientMessage(playerid, YELLOW, "/amaxafk [Minuty] - ustawia ile można najdłużej stać w miejscu");
- SendClientMessage(playerid, YELLOW, "/askczas [Sekundy] - ustawia ile sekund ma być Spawn Protection");
- SendClientMessage(playerid, YELLOW, "/aflood [on/off] - włącza/wyłącza Anty Flood");
- SendClientMessage(playerid, YELLOW, "/aarmour [on/off] - włącza/wyłącza Anty Armour");
- SendClientMessage(playerid, YELLOW, "/avdk [on/off] - włącza/wyłącza Anty Vehicle Driver Killing");
- SendClientMessage(playerid, YELLOW, "/ark [on/off] - włącza/wyłącza Anty Rustler Kill");
- SendClientMessage(playerid, YELLOW, "/arhinok [on/off] - włącza/wyłącza Anty Rhino Kill");
- SendClientMessage(playerid, YELLOW, "/asparrowk [on/off] - włącza/wyłącza Anty SeaSparrow");
- SendClientMessage(playerid, RED, "Wpisz /accmd 4, by ujrzeć następną listę komend");
- )
- case 4:
- (
- SendClientMessage(playerid, GREEN, "Strona 4. - Lista komend Admina *AntyCheat*");
- SendClientMessage(playerid, YELLOW, "/ahunterk [on/off] - włącza/wyłącza Anty Hunter Kill");
- SendClientMessage(playerid, YELLOW, "/apause [on/off] - włącza/wyłącza Anty Pause");
- SendClientMessage(playerid, YELLOW, "/aplanek [on/off] - włącza/wyłącza Anty Plane Kill");
- SendClientMessage(playerid, YELLOW, "/avehgod [on/off] - włącza/wyłącza Anty Vehicle God");
- SendClientMessage(playerid, YELLOW, "/arepeat [on/off] - włącza/wyłącza Anty Repeat");
- SendClientMessage(playerid, YELLOW, "/abluzgi [on/off] - włącza/wyłącza Anty Bluzgi");
- SendClientMessage(playerid, YELLOW, "/aglitch [on/off] - włącza/wyłącza Anty Glitch");
- SendClientMessage(playerid, YELLOW, "/afsprint [on/off] - włącza/wyłącza Anty Faster Sprint");
- SendClientMessage(playerid, RED, "Wpisz /accmd 5, by ujrzeć następną listę komend");
- )
- case 5:
- (
- SendClientMessage(playerid, GREEN, "Strona 5. - Lista komend Admina *AntyCheat*");
- SendClientMessage(playerid, YELLOW, "/alsprint [on/off] - włącza/wyłącza Anty Long Sprint");
- SendClientMessage(playerid, YELLOW, "/amaxsprint [czas] - Ustawia po jakim czasie sprintowania (w sekundach), gracz ma się przewrócić");
- SendClientMessage(playerid, YELLOW, "/abhop [on/off] - włącza/wyłącza Anty Bunny Hop");
- SendClientMessage(playerid, YELLOW, "/amaxhop [Ilość] - Ustawia po którym skoku gracz ma się przewracać");
- SendClientMessage(playerid, YELLOW, "/aemoic [on/off] - włącza/wyłącza Anty Emotikonki w IC");
- SendClientMessage(playerid, YELLOW, "/anj [on/off] - włącza/wyłącza Anty Ninja Jacking");
- SendClientMessage(playerid, YELLOW, "/acaps [on/off] - włącza/wyłącza Anty Caps Lock");
- SendClientMessage(playerid, YELLOW, "/aip [on/off] - włącza/wyłącza Anty Reklame Serwera");
- SendClientMessage(playerid, RED, "Wpisz /accmd 6, by ujrzeć następną listę komend");
- )
- case 6:
- (
- SendClientMessage(playerid, GREEN, "Strona 6. - Lista komend Admina *AntyCheat*");
- SendClientMessage(playerid, YELLOW, "/apodsz [on/off] - włącza/wyłącza Anty Podszywanie");
- SendClientMessage(playerid, YELLOW, "/amoney [on/off] - włącza/wyłącza Anty Money Cheat");
- SendClientMessage(playerid, YELLOW, "/atp [on/off] - włącza/wyłącza Anty Teleport");
- SendClientMessage(playerid, YELLOW, "/afreezeveh [on/off] - włącza/wyłącza Anty Freeze Vehicles");
- SendClientMessage(playerid, YELLOW, "/abugua [on/off] - włącza/wyłącza Anty Bug Unlimited Ammo");
- SendClientMessage(playerid, YELLOW, "/acmdflood [on/off] - włącza/wyłącza Anty Command Flood");
- SendClientMessage(playerid, YELLOW, "/avehwarp [on/off] - włącza/wyłącza Anty Vehicle Warp");
- SendClientMessage(playerid, YELLOW, "/aairbrake [on/off] - włącza/wyłącza Anty Air Brake");
- SendClientMessage(playerid, RED, "Wpisz /accmd 7, by ujrzeć następną listę komend");
- )
- case 7:
- (
- SendClientMessage(playerid, GREEN, "Strona 7. - Lista komend Admina *AntyCheat*");
- SendClientMessage(playerid, YELLOW, "/apmflood [on/off] - włącza/wyłącza Anty Private Message Flood");
- SendClientMessage(playerid, YELLOW, "/anadbluzgi [on/off] - włącza/wyłącza Anty Nadmierne Bluzgi");
- SendClientMessage(playerid, YELLOW, "/amaxdb [Ilość] - ustawia ile razy można zabić z Drive-By");
- SendClientMessage(playerid, YELLOW, "/amaxdt [Ilość] - ustawia ile razy można zabić z Drive-Thru");
- SendClientMessage(playerid, YELLOW, "/amaxhydrak [Ilość] - ustawia ile razy można zabić Hydrą");
- SendClientMessage(playerid, YELLOW, "/amaxrhinok [Ilość] - ustawia ile razy można zabić Czołgiem");
- SendClientMessage(playerid, YELLOW, "/amaxsparrowk [Ilość] - ustawia ile razy można zabić SeaSparrow'em");
- SendClientMessage(playerid, YELLOW, "/amaxplanek [Ilość] - ustawia ile razy można zabić samolotem");
- SendClientMessage(playerid, RED, "Wpisz /accmd 8, by ujrzeć następną listę komend");
- )
- case 8:
- (
- SendClientMessage(playerid, GREEN, "Strona 8. - Lista komend Admina *AntyCheat*");
- SendClientMessage(playerid, YELLOW, "/amaxhunterk [Ilość] - ustawia ile razy można zabić Hunter'em");
- SendClientMessage(playerid, YELLOW, "/amaxrustlerk [Ilość] - ustawia ile razy można zabić Rustler'em");
- SendClientMessage(playerid, YELLOW, "/amaxsk [Ilość] - ustawia ile razy można zabić na Spawn'ie");
- SendClientMessage(playerid, YELLOW, "/amaxhk [Ilość] - ustawia ile razy można zabić śmigłem helikoptera");
- SendClientMessage(playerid, YELLOW, "/amaxglitch [Ilość] - ustawia ile razy można zrobić Glitch'a");
- SendClientMessage(playerid, YELLOW, "/agod [on/off] - włącza/wyłącza Anty God Mode");
- SendClientMessage(playerid, YELLOW, "/accbc [Tag] [1 - Kick, 2 - Ban] [Powód] - Dodajesz klan na Czarną Listę");
- SendClientMessage(playerid, YELLOW, "/accbl [Nick] [1 - Kick, 2 - Ban] [Powód] - Dodajesz gracza na Czarną Listę");
- SendClientMessage(playerid, RED, "Wpisz /accmd 9, by ujrzeć następną listę komend");
- )
- case 9:
- (
- SendClientMessage(playerid, GREEN, "Strona 9. - Lista komend Admina *AntyCheat*");
- SendClientMessage(playerid, YELLOW, "/ainfioxy [on/off] - włącza/wyłącza Anty Infinite Oxygen");
- SendClientMessage(playerid, YELLOW, "/awunder [on/off] - włącza/wyłącza Anty Walk Underwater");
- SendClientMessage(playerid, YELLOW, "/accbcr [Tag] - usuwasz klan z Czarnej Listy");
- SendClientMessage(playerid, YELLOW, "/accblr [Nick] - usuwasz gracza z Czarnej Listy");
- SendClientMessage(playerid, YELLOW, "/acrash [on/off] - włącza/wyłącza Anty Crash");
- SendClientMessage(playerid, YELLOW, "/accbluzg [Słowo] - nakładasz cenzure na podane słowo");
- SendClientMessage(playerid, YELLOW, "/accemo [Emotikonka] - dodajesz emotikonke do Anty Emoty w IC");
- SendClientMessage(playerid, YELLOW, "/accbluzgr [Słowo] - usuwasz cenzurę z podanego słowa");
- SendClientMessage(playerid, RED, "Wpisz /accmd 10, by ujrzeć następną listę komend");
- )
- case 10:
- (
- SendClientMessage(playerid, GREEN, "Strona 10. - Lista komend Admina *AntyCheat*");
- SendClientMessage(playerid, YELLOW, "/accemor [Emotikonka] - usuwasz emotikonke z Anty Emoty w IC");
- SendClientMessage(playerid, RED, "Koniec komend Admina *AntyCheat*");
- )
- )
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- dcmd_karahelp(playerid, cmdtext[])
- (
- #pragma unused cmdtext
- if(IsPlayerAdmin(playerid))
- (
- SendClientMessage(playerid, GREEN, "Komenda /acckara [Nazwa] [Rodzaj (1 - Kick, 2 - Ban, 3 - Ban na host)]");
- SendClientMessage(playerid, YELLOW, "Tą komendą możemy ustawić wymiar kary za dany czyn");
- SendClientMessage(playerid, YELLOW, "W 'Nazwa' wpisujemy np. 'aspeed', 'aairbrake', 'apodsz' itd.");
- SendClientMessage(playerid, YELLOW, "Czemu tak? Bo tak nazywa się komenda na wyłączanie/włączanie tej opcji");
- SendClientMessage(playerid, YELLOW, "Czyli powyższe przykłady były z komend: /aspeed, /aairbrake i /apodsz");
- SendClientMessage(playerid, YELLOW, "W 'Rodzaj' wpisujemy co ma się dziać, gdy Anty Cheat wykryje u kogos np. Speed Hack'a, czyli piszemy");
- 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");
- )
- else SendClientMessage(playerid, RED, "Nie jesteś adminem!");
- return 1;
- )
- IsPlayerOnBike(playerid)
- (
- if(IsPlayerInAnyVehicle(playerid))
- (
- new vehicleclass = GetVehicleModel(GetPlayerVehicleID(playerid));
- switch(vehicleclass)
- (
- case 448: return 1;
- case 461: return 1;
- case 462: return 1;
- case 463: return 1;
- case 468: return 1;
- case 521: return 1;
- case 522: return 1;
- case 523: return 1;
- case 581: return 1;
- case 586: return 1;
- case 471: return 1;
- )
- )
- return 0;
- )
- IsPlayerInBoat(playerid)
- (
- if(IsPlayerInAnyVehicle(playerid))
- (
- new vehicleclass = GetVehicleModel(GetPlayerVehicleID(playerid));
- switch(vehicleclass)
- (
- case 430: return 1;
- case 446: return 1;
- case 452: return 1;
- case 453: return 1;
- case 454: return 1;
- case 472: return 1;
- case 473: return 1;
- case 484: return 1;
- case 493: return 1;
- case 595: return 1;
- )
- )
- return 0;
- )
- IsPlayerInHelicopter(playerid)
- (
- if(IsPlayerInAnyVehicle(playerid))
- (
- new vehicleclass = GetVehicleModel(GetPlayerVehicleID(playerid));
- switch(vehicleclass)
- (
- case 501: return 1;
- case 465: return 1;
- case 417: return 1;
- case 425: return 1;
- case 447: return 1;
- case 469: return 1;
- case 487: return 1;
- case 488: return 1;
- case 497: return 1;
- case 548: return 1;
- case 563: return 1;
- )
- )
- return 0;
- )
- IsPlayerOnBicycle(playerid)
- (
- if(IsPlayerInAnyVehicle(playerid))
- (
- new vehicleclass = GetVehicleModel(GetPlayerVehicleID(playerid));
- switch(vehicleclass)
- (
- case 481: return 1;
- case 509: return 1;
- case 510: return 1;
- )
- )
- return 0;
- )
- strtok(const string[], &index, seperator = ' ')
- (
- new length = strlen(string);
- new offset = index;
- new result[256];
- while((index < length) && (string[index] != seperator) && ((index - offset) < (sizeof(result) - 1)))
- (
- result[index - offset] = string[index];
- index++;
- )
- result[index - offset] = EOS;
- if((index < length) && (string[index] == seperator))
- (
- index++;
- )
- return result;
- )
- PlayerToPoint(Float:radi, playerid, Float:xxx, Float:yyy, Float:zzz)
- (
- new Float:oldposx, Float:oldposy, Float:oldposz;
- new Float:tempposx, Float:tempposy, Float:tempposz;
- GetPlayerPos(playerid, oldposx, oldposy, oldposz);
- tempposx = (oldposx -xxx);
- tempposy = (oldposy -yyy);
- tempposz = (oldposz -zzz);
- if(((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi))) return 1;
- return 0;
- )
- GetPointDistanceToPoint(Float:xx, Float:yy, Float:x2, Float:y2)
- (
- new Float:dis;
- dis = floatsqroot((xx-x2)*(xx-x2)+(yy-y2)*(yy-y2));
- return floatround(dis);
- )
- DisableWord(const badword[], text[], bool:type)
- (
- for(new i=0; i<strlen(text); i++)
- if(strfind(text[i], badword, true) == 0)
- (
- for(new a=0; a<strlen(text); a++)
- (
- if(a >= i && a < i+strlen(badword) && type == false) text[a]='*';
- else if(a >= i && a < i+strlen(badword) && type == true) text[a]=' ';
- )
- )
- )
- VehicleDriverID(vehicleid)
- (
- for(new i; i<HighestID+1; i++)
- if((IsPlayerConnected(i)) && (GetPlayerVehicleID(i) == vehicleid) && (GetPlayerState(i) == 2)) return i;
- return -1;
- )
- Kickuj(playerid, const Powod[])
- (
- GetPlayerName(playerid, Nick, sizeof(Nick));
- format(str, sizeof(str), "%s został/a wyrzucony/na za %s", Nick, Powod);
- SendClientMessageToAll(RED, str);
- print(str);
- Kick(playerid);
- )
- Banuj(playerid, const Powod[])
- (
- GetPlayerName(playerid, Nick, sizeof(Nick));
- format(str, sizeof(str), "%s został/ła zbanowany/na za %s", Nick, Powod);
- SendClientMessageToAll(RED, str);
- print(str);
- Ban(playerid);
- )
- BanujHost(playerid, const Powod[])
- (
- new idx;
- new IP[24];
- new IPS[2];
- GetPlayerIp(playerid, IP, sizeof(IP));
- IPS[0] = strval(strtok(IP, idx, '.'));
- IPS[1] = strval(strtok(IP, idx, '.'));
- format(str, sizeof(str), "banip %i.%i.*.*", IPS[0], IPS[1]);
- SendRconCommand(str);
- GetPlayerName(playerid, Nick, sizeof(Nick));
- format(str, sizeof(str), "%s został/ła zbanowany/na na host (%i.%i.*.*) za %s", Nick, IPS[0], IPS[1], Powod);
- SendClientMessageToAll(RED, str);
- Kick(playerid);
- )
- GetXYInFrontOfPlayer(playerid, &Float:xx, &Float:yy, Float:distance)
- (
- new Float:a;
- GetPlayerPos(playerid, xx, yy, a);
- GetPlayerFacingAngle(playerid, a);
- xx += (distance * floatsin(-a, degrees));
- yy += (distance * floatcos(-a, degrees));
- )
- GetPlayerClan(playerid)
- (
- new playername[MAX_PLAYER_NAME];
- GetPlayerName(playerid, playername, sizeof(playername));
- new mrk1 = -1;
- new mrk2 = -1;
- new clan[16];
- if(strfind(playername, "[", false) != -1 && strfind(playername, "]", false) != -1)
- (
- for(new i; i<strlen(playername); i++)
- (
- new character[3];
- strmid(character, playername, i, i+1, 2);
- if(strcmp(character, "[", false) == 0) mrk1 = i;
- else if(strcmp(character, "]", false) == 0) mrk2 = i+1;
- )
- if(mrk1 != -1 && mrk2 != -1)
- (
- strmid(clan, playername, mrk1, mrk2);
- return clan;
- )
- else
- (
- mrk1 = 0;
- mrk2 = 0;
- )
- )
- if(strfind(playername, "_", false) != -1)
- (
- for(new i; i<strlen(playername); i++)
- (
- new character[3];
- strmid(character, playername, i, i+1, 2);
- if(strcmp(character, "_", false) == 0)
- if(mrk1 == 0) mrk1 = i;
- else mrk2 = i+1;
- )
- if(mrk1 != 0 && mrk2 != 0)
- (
- strmid(clan, playername, mrk1, mrk2);
- return clan;
- )
- else
- (
- mrk1 = 0;
- mrk2 = 0;
- )
- )
- return clan;
- )
- IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy)
- (
- new Float:xx, Float:yy, Float:zz;
- GetPlayerPos(playerid, xx, yy, zz);
- if(xx > minx && xx < maxx && yy > miny && yy < maxy) return 1;
- return 0;
- )
- IsPlayerUnderwater(playerid)
- (
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- if(IsPlayerInArea(playerid, -1584, -1360, -1826, -1642) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -3000, -2832, 354, 2942) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2832, -2704, 1296, 2192) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2704, -2240, 1360, 2224) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2240, -2000, 1432, 2224) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2064, -2000, 1312, 1432) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2000, -1712, 1392, 1792) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2000, -1724, 1792, 2016) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2000, -1836, 2016, 2176) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2000, -1920, 2176, 2224) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2208, -2000, 2224, 2432) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2208, -2000, 2432, 2576) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2352, -2208, 2448, 2576) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2312, -2208, 2344, 2448) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1712, -1600, 1360, 1792) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1664, -1600, 1280, 1360) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1600, -1440, 1280, 1696) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1600, -1488, 1696, 1744) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1440, -1232, 1440, 1696) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1232, -1136, 1440, 1616) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1440, -1136, 1280, 1440) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1136, -1104, 1248, 1424) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1520, -1104, 1104, 1248) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1520, -1136, 1248, 1280) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1600, -1520, 1200, 1280) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1104, -932, 944, 1136) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1424, -1104, 944, 1104) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1520, -1424, 1008, 1104) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1424, -896, 784, 944) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1488, -896, 560, 784) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1536, -1488, 560, 672) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -896, -768, 208, 732) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1600, -896, 208, 560) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -992, -912, -144, 208) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1748, -1180, -816, -592) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1458, -1054, -592, -432) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -3000, -2880, -1186, -822) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2880, -2768, -1168, -896) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2768, -2656, -1106, -830) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2656, -2512, -1024, -816) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2512, -2400, -976, -816) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2400, -2256, -1056, -864) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2256, -2144, -1198, -950) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2144, -2000, -1408, -1072) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2000, -1856, -1536, -1280) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1856, -1728, -1648, -1440) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1728, -1584, -1728, -1520) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1360, -1216, -2052, -1696) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1440, -1360, -2110, -1950) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1484, -1440, -2180, -2036) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1572, -1484, -2352, -2096) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1216, -1104, -2208, -1864) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1232, -1120, -2304, -2208) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1270, -1178, -2480, -2304) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1260, -1188, -2560, -2480) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1262, -1146, -2640, -2560) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1216, -1080, -2752, -2640) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1200, -928, -2896, -2752) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2016, -1520, -3000, -2704) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1520, -1376, -3000, -2894) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2256, -2016, -3000, -2772) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2448, -2256, -3000, -2704) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -3000, -2448, -3000, -2704) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -3000, -2516, -2704, -2576) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -3000, -2600, -2576, -2448) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -3000, -2628, -2448, -2144) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -3000, -2670, -2144, -2032) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -3000, -2802, -2032, -1904) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -3000, -2920, -1904, -1376) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -3000, -2936, -1376, -1186) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -768, -720, 208, 672) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -720, -656, 256, 672) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -656, -496, 276, 576) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -496, -384, 298, 566) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -384, -224, 254, 530) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -224, -64, 212, 528) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -64, 64, 140, 544) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 64, 304, 140, 544) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 120, 304, 544, 648) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 304, 384, 164, 608) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 384, 464, 222, 630) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 464, 544, 304, 656) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 544, 800, 362, 646) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 800, 944, 432, 704) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 944, 976, 480, 720) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 976, 1040, 528, 704) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1040, 1280, 560, 672) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1280, 1472, 480, 640) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1472, 1616, 432, 640) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1616, 1824, 416, 608) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1824, 2160, 400, 576) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2160, 2432, 400, 512) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2432, 2560, 368, 544) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2560, 2720, 336, 576) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2720, 2816, 196, 560) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2816, 3000, 160, 576) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2860, 3000, -80, 160) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1376, -544, -3000, -2896) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -928, -544, -2896, -2800) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -544, -320, -3000, -2824) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -320, -192, -3000, -2876) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -192, 160, -3000, -2920) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -128, 160, -2920, -2872) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -60, 160, -2872, -2816) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -4, 160, -2816, -2672) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 40, 160, -2672, -2256) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 16, 40, -2560, -2256) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -32, 16, -2440, -2256) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -32, 16, -2488, -2440) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -96, -32, -2440, -2256) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -168, -96, -2384, -2256) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -224, 160, -2256, -2080) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -248, 160, -2080, -1968) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -280, -128, -1968, -1824) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -264, -248, -2016, -1968) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -264, -128, -1824, -1640) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -128, 124, -1768, -1648) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -128, 140, -1792, -1768) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -128, 148, -1968, -1792) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 160, 592, -2128, -1976) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 480, 592, -1976, -1896) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 352, 480, -1976, -1896) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 232, 352, -1976, -1880) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 160, 232, -1976, -1872) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 160, 592, -2784, -2128) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 160, 592, -3000, -2784) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 352, 544, -1896, -1864) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 592, 976, -2112, -1896) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 736, 904, -1896, -1864) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 704, 736, -1896, -1728) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 736, 752, -1864, -1728) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 688, 752, -1728, -1480) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 592, 976, -2192, -2112) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 592, 1008, -2328, -2192) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 592, 1008, -3000, -2328) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1008, 1072, -3000, -2368) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1008, 1064, -2368, -2320) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1072, 1288, -2672, -2412) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1072, 1288, -2768, -2672) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1072, 1288, -3000, -2768) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1288, 1448, -3000, -2760) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1288, 1392, -2760, -2688) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1448, 1720, -3000, -2754) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1720, 2064, -3000, -2740) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2064, 2144, -3000, -2742) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2144, 2208, -3000, -2700) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2208, 2272, -3000, -2684) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2272, 2376, -3000, -2312) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2376, 2472, -2480, -2240) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2472, 2776, -2376, -2240) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2776, 2856, -2336, -2192) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2808, 3000, -2560, -2336) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2856, 3000, -2336, -2136) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2888, 3000, -2136, -1840) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2872, 2888, -1880, -1840) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2864, 3000, -1840, -1720) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2888, 3000, -1720, -1664) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2896, 3000, -1664, -1592) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2920, 3000, -1592, -1504) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2940, 3000, -1504, -1344) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2908, 3000, -1344, -1096) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2912, 3000, -1096, -800) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2918, 3000, -800, -472) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2872, 3000, -472, -376) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2912, 3000, -376, -80) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2864, 2912, -376, -80) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2560, 2680, -2560, -2456) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -992, -848, -422, -238) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -848, -512, -384, -256) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -512, -320, -400, -272) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -320, -208, -400, -304) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -384, -100, -528, -460) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -384, -64, -704, -528) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -336, -80, -816, -704) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -208, -48, -936, -816) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -48, 144, -936, -874) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 32, 128, -1024, -936) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -16, 96, -1104, -1024) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 0, 144, -1200, -1104) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -16, 128, -1296, -1200) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -16, 112, -1440, -1296) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 0, 96, -1552, -1440) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -128, 96, -1648, -1552) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -64, 32, -672, -576) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -64, 96, -576, -496) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 16, 144, -496, -392) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 144, 240, -448, -384) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 240, 304, -432, -320) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 304, 352, -384, -288) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 352, 400, -332, -252) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 400, 464, -298, -234) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 464, 576, -288, -208) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 576, 688, -272, -192) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 688, 768, -256, -144) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 768, 800, -212, -124) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 800, 976, -180, -92) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 976, 1200, -160, -64) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1200, 1264, -244, -108) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1264, 1344, -330, -158) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1344, 1456, -320, -208) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1456, 1520, -282, -198) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1520, 1648, -208, -80) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1568, 1648, -80, 16) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1648, 1792, -64, 16) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1792, 1888, -128, 0) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1888, 2016, -268, -20) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2016, 2144, -256, -16) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2144, 2224, -272, -96) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2224, 2288, -272, -144) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2048, 2144, -16, 112) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2096, 2224, 112, 240) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2098, 2242, 240, 400) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2160, 2432, 512, 576) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2432, 2560, 544, 592) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2560, 2720, 576, 608) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2720, 2816, 560, 608) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2816, 3000, 576, 752) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -656, -496, 576, 672) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -740, -484, 672, 784) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -720, -384, 784, 1008) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -640, -400, 1008, 1216) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -880, -688, 1296, 1408) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -688, -400, 1216, 1424) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -672, -448, 1424, 1616) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -832, -512, 1616, 1728) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -984, -832, 1632, 1712) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -832, -576, 1728, 2032) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1248, -1088, 2536, 2824) && z <= 39) return 1;
- if(IsPlayerInArea(playerid, -1088, -1040, 2544, 2800) && z <= 39) return 1;
- if(IsPlayerInArea(playerid, -1040, -832, 2544, 2760) && z <= 39) return 1;
- if(IsPlayerInArea(playerid, -1088, -832, 2416, 2544) && z <= 39) return 1;
- if(IsPlayerInArea(playerid, -1040, -864, 2304, 2416) && z <= 39) return 1;
- if(IsPlayerInArea(playerid, -1024, -864, 2144, 2304) && z <= 39) return 1;
- if(IsPlayerInArea(playerid, -1072, -1024, 2152, 2264) && z <= 39) return 1;
- if(IsPlayerInArea(playerid, -1200, -1072, 2114, 2242) && z <= 39) return 1;
- if(IsPlayerInArea(playerid, -976, -848, 2016, 2144) && z <= 39) return 1;
- if(IsPlayerInArea(playerid, -864, -448, 2144, 2272) && z <= 39) return 1;
- if(IsPlayerInArea(playerid, -700, -484, 2272, 2320) && z <= 39) return 1;
- if(IsPlayerInArea(playerid, -608, -528, 2320, 2352) && z <= 39) return 1;
- if(IsPlayerInArea(playerid, -848, -816, 2044, 2144) && z <= 39) return 1;
- if(IsPlayerInArea(playerid, -816, -496, 2060, 2144) && z <= 39) return 1;
- if(IsPlayerInArea(playerid, -604, -484, 2036, 2060) && z <= 39) return 1;
- if(IsPlayerInArea(playerid, 2376, 3000, -3000, -2688) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2520, 3000, -2688, -2560) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1328, -1200, 2082, 2210) && z <= 39) return 1;
- if(IsPlayerInArea(playerid, -1400, -1328, 2074, 2150) && z <= 39) return 1;
- if(IsPlayerInArea(playerid, -1248, -992, -144, 208) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1176, -992, -432, -144) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1792, -1728, -592, -144) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1792, -1600, 170, 274) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1600, -1256, 168, 208) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1574, -1550, -44, 108) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1928, 2012, -1222, -1178) && z <= 17) return 1;
- if(IsPlayerInArea(playerid, -464, -280, -1908, -1832) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2248, 2260, -1182, -1170) && z <= 22) return 1;
- if(IsPlayerInArea(playerid, 2292, 2328, -1432, -1400) && z <= 21) return 1;
- if(IsPlayerInArea(playerid, 1888, 2036, 1468, 1700) && z <= 7) return 1;
- if(IsPlayerInArea(playerid, 2090, 2146, 1670, 1694) && z <= 8) return 1;
- if(IsPlayerInArea(playerid, 2110, 2178, 1234, 1330) && z <= 6) return 1;
- if(IsPlayerInArea(playerid, 2108, 2180, 1084, 1172) && z <= 6) return 1;
- if(IsPlayerInArea(playerid, 2506, 2554, 1546, 1586) && z <= 7) return 1;
- if(IsPlayerInArea(playerid, 1270, 1290, -812, -800) && z <= 85) return 1;
- if(IsPlayerInArea(playerid, 1084, 1104, -684, -660) && z <= 111) return 1;
- if(IsPlayerInArea(playerid, 502, 522, -1114, -1098) && z <= 77) return 1;
- if(IsPlayerInArea(playerid, 214, 246, -1208, -1180) && z <= 73) return 1;
- if(IsPlayerInArea(playerid, 218, 238, -1180, -1172) && z <= 73) return 1;
- if(IsPlayerInArea(playerid, 178, 206, -1244, -1216) && z <= 76) return 1;
- if(IsPlayerInArea(playerid, 1744, 1792, 2780, 2868) && z <= 7) return 1;
- if(IsPlayerInArea(playerid, -2832, 3000, 2888, 3000) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2778, -2662, -522, -414) && z <= 1) return 1;
- if(IsPlayerInArea(playerid, 1520, 1572, -252, -208) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2922, 3000, 752, 2888) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -3000, -2910, -446, 354) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2434, -2294, 2224, 2340) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2294, -2208, 2224, 2312) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2058, 2110, 1868, 1964) && z <= 8) return 1;
- if(IsPlayerInArea(playerid, -3000, -2832, 2942, 3000) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -550, -494, 2004, 2036) && z <= 39) return 1;
- if(IsPlayerInArea(playerid, -896, -776, 842, 954) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2240, -2088, 1336, 1432) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -3000, -2930, -822, -446) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2660, -2520, 2224, 2264) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -378, -138, -460, -400) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1836, 1888, 1468, 1568) && z <= 7) return 1;
- if(IsPlayerInArea(playerid, 890, 902, -1106, -1098) && z <= 21) return 1;
- if(IsPlayerInArea(playerid, 1202, 1278, -2414, -2334) && z <= 7) return 1;
- if(IsPlayerInArea(playerid, 1072, 1128, -2412, -2372) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -848, -664, -2082, -1866) && z <= 4) return 1;
- if(IsPlayerInArea(playerid, -664, -464, -1924, -1864) && z <= 4) return 1;
- if(IsPlayerInArea(playerid, -1484, -1424, 784, 840) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -496, -432, 566, 642) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 250, 818, 2808, 2888) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2502, 2670, -2240, -2120) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1270, 1290, -780, -768) && z <= 1081) return 1;
- if(IsPlayerInArea(playerid, 88, 120, 544, 572) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1856, 1888, -202, -158) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2048, -2004, -962, -758) && z <= 29) return 1;
- if(IsPlayerInArea(playerid, 2564, 2604, 2370, 2398) && z <= 15) return 1;
- if(IsPlayerInArea(playerid, -2522, -2382, -310, -234) && z <= 34) return 1;
- if(IsPlayerInArea(playerid, 2872, 2888, -2136, -2120) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2760, 2776, -2240, -2232) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2992, -2832, 1184, 2112) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2832, -2704, 1296, 2192) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2704, -2240, 1360, 2224) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2240, -2000, 1440, 2224) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2064, -2000, 1312, 1440) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2000, -1712, 1392, 1792) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2000, -1760, 1792, 2016) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2000, -1856, 2016, 2176) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2000, -1920, 2176, 2224) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2208, -2000, 2224, 2432) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2208, -2000, 2432, 2560) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2352, -2208, 2448, 2560) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2304, -2208, 2352, 2448) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1712, -1600, 1360, 1792) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1664, -1600, 1280, 1360) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1600, -1440, 1280, 1696) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1600, -1536, 1696, 1728) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1440, -1232, 1440, 1680) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1232, -1136, 1440, 1616) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1440, -1136, 1280, 1440) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1136, -1104, 1248, 1424) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1520, -1104, 1104, 1248) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1520, -1136, 1248, 1280) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1600, -1520, 1200, 1280) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1104, -960, 944, 1136) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1424, -1104, 944, 1104) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1520, -1424, 1008, 1104) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1424, -896, 784, 944) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1488, -896, 560, 784) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1536, -1488, 560, 672) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -896, -768, 208, 720) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1600, -896, 208, 560) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -992, -912, -144, 208) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1744, -1184, -816, -592) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1456, -1056, -592, -432) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -3000, -2880, -1184, -816) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2880, -2768, -1168, -896) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2768, -2656, -1088, -848) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2656, -2512, -1024, -816) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2512, -2400, -976, -816) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2400, -2256, -1056, -864) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2256, -2144, -1184, -976) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2144, -2000, -1408, -1072) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2000, -1856, -1536, -1280) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1856, -1728, -1648, -1440) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1728, -1584, -1728, -1520) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1584, -1344, -1792, -1648) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1344, -1216, -2032, -1712) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1440, -1344, -2112, -1968) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1488, -1440, -2192, -2048) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1568, -1488, -2352, -2096) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1216, -1104, -2208, -1888) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1232, -1120, -2304, -2208) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1248, -1184, -2480, -2304) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1248, -1200, -2560, -2480) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1248, -1152, -2640, -2560) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1200, -1088, -2752, -2640) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1200, -928, -2896, -2752) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2016, -1520, -2976, -2704) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1520, -1376, -2976, -2896) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2256, -2016, -2992, -2768) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2448, -2256, -2992, -2704) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2912, -2448, -2992, -2704) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -3000, -2516, -2704, -2576) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -3000, -2600, -2576, -2448) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -3000, -2628, -2448, -2144) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -3000, -2670, -2144, -2032) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -3000, -2836, -2032, -1904) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -3000, -2924, -1904, -1376) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -3000, -2960, -1376, -1184) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -2960, -2936, -1244, -1184) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -768, -720, 224, 656) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -720, -656, 256, 672) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -656, -496, 288, 576) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -496, -384, 304, 560) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -384, -224, 272, 512) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -224, -64, 224, 480) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -64, 64, 160, 496) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 64, 304, 144, 544) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 144, 304, 544, 608) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 304, 384, 176, 608) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 384, 464, 240, 624) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 464, 544, 304, 624) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 544, 800, 368, 640) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 800, 944, 432, 672) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 944, 976, 480, 688) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 976, 1040, 528, 688) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1040, 1280, 560, 656) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1280, 1472, 480, 640) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1472, 1616, 432, 640) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1616, 1824, 416, 608) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1824, 2160, 400, 576) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2160, 2432, 400, 512) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2432, 2560, 368, 544) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2560, 2720, 336, 576) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2720, 2816, 304, 560) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2816, 2992, 160, 576) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2864, 2992, -80, 160) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1376, -544, -2976, -2896) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -928, -544, -2896, -2800) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -544, -320, -2976, -2840) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -320, -192, -2976, -2880) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -192, 160, -2976, -2920) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -104, 160, -2920, -2872) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -32, 160, -2872, -2816) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 16, 160, -2816, -2672) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 40, 160, -2672, -2256) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 16, 40, -2536, -2256) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -32, 16, -2440, -2256) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -16, 16, -2488, -2440) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -96, -32, -2424, -2256) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -168, -96, -2384, -2256) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -224, 160, -2256, -2080) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -248, 160, -2080, -1968) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -280, -128, -1968, -1824) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -264, -248, -2016, -1968) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -264, -128, -1824, -1648) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -128, 112, -1768, -1648) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -128, 120, -1792, -1768) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -128, 136, -1968, -1792) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 160, 592, -2128, -1976) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 480, 592, -1976, -1896) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 352, 480, -1976, -1896) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 232, 352, -1976, -1880) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 160, 232, -1976, -1872) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 136, 160, -1968, -1872) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 160, 592, -2784, -2128) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 160, 592, -2976, -2784) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 352, 544, -1896, -1864) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 592, 976, -2112, -1896) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 736, 904, -1896, -1864) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 704, 736, -1888, -1728) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 736, 752, -1808, -1728) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 696, 744, -1728, -1480) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 592, 976, -2192, -2112) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 592, 1008, -2328, -2192) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 592, 1008, -2976, -2328) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1008, 1072, -2976, -2368) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1008, 1064, -2368, -2328) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1072, 1288, -2672, -2376) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1072, 1288, -2768, -2672) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1072, 1288, -2976, -2768) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1288, 1448, -2976, -2760) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1288, 1392, -2760, -2688) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1448, 1720, -2976, -2760) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1720, 2064, -2976, -2760) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2064, 2144, -2976, -2744) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2144, 2208, -2976, -2704) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2208, 2272, -2976, -2696) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2272, 2376, -2976, -2312) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2376, 2472, -2464, -2240) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2472, 2776, -2376, -2240) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2776, 2856, -2336, -2192) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2808, 3000, -2560, -2336) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2856, 3000, -2336, -2136) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2888, 3000, -2136, -1840) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2872, 2888, -1880, -1840) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2864, 3000, -1840, -1720) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2888, 3000, -1720, -1664) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2896, 3000, -1664, -1592) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2920, 3000, -1592, -1504) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2944, 3000, -1504, -1344) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2944, 3000, -1344, -1096) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2936, 2944, -1280, -1096) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2928, 2936, -1224, -1096) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2920, 2928, -1160, -1096) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2912, 2920, -1128, -1096) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2912, 3000, -1096, -800) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2936, 3000, -800, -472) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2920, 3000, -472, -376) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2912, 3000, -376, -80) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2864, 2912, -344, -80) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2560, 2680, -2560, -2456) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -992, -848, -384, -240) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -848, -512, -384, -256) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -512, -320, -400, -288) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -320, -208, -400, -304) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -384, -112, -528, -400) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -384, -64, -704, -528) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -336, -80, -816, -704) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -208, -48, -928, -816) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -48, 144, -928, -880) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 32, 128, -1024, -928) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -16, 96, -1104, -1024) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 0, 144, -1200, -1104) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -16, 128, -1296, -1200) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -16, 96, -1440, -1296) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 0, 80, -1552, -1440) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -128, 96, -1648, -1552) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -64, 32, -672, -576) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -48, 80, -576, -496) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 16, 144, -496, -400) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 144, 240, -448, -384) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 240, 304, -432, -320) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 304, 352, -384, -288) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 352, 400, -336, -272) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 400, 464, -304, -240) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 464, 576, -288, -208) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 576, 688, -272, -192) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 688, 768, -256, -144) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 768, 800, -208, -128) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 800, 976, -176, -96) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 976, 1200, -160, -64) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1200, 1264, -240, -112) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1264, 1344, -320, -176) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1344, 1456, -320, -208) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1456, 1520, -256, -192) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1520, 1648, -208, -80) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1568, 1648, -80, 16) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1648, 1792, -64, 16) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1792, 1888, -128, 0) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 1888, 2016, -256, -32) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2016, 2144, -256, -16) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2144, 2224, -272, -96) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2224, 2288, -272, -144) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2288, 2528, -272, -192) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2528, 2640, -272, -224) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2048, 2144, -16, 112) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2096, 2224, 112, 240) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2080, 2224, 240, 400) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2224, 2256, 320, 400) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2160, 2432, 512, 576) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2432, 2560, 544, 592) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2560, 2720, 576, 608) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2720, 2816, 560, 608) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2816, 2992, 576, 752) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -656, -496, 576, 672) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -736, -496, 672, 784) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -720, -384, 784, 1008) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -640, -400, 1008, 1216) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -880, -688, 1296, 1408) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -688, -432, 1216, 1424) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -672, -448, 1424, 1616) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -832, -512, 1616, 1728) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -976, -832, 1632, 1712) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -832, -576, 1728, 2032) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1248, -1088, 2544, 2832) && z <= 39) return 1;
- if(IsPlayerInArea(playerid, -1088, -1040, 2544, 2784) && z <= 39) return 1;
- if(IsPlayerInArea(playerid, -1040, -832, 2544, 2736) && z <= 39) return 1;
- if(IsPlayerInArea(playerid, -1088, -832, 2416, 2544) && z <= 39) return 1;
- if(IsPlayerInArea(playerid, -1040, -864, 2304, 2416) && z <= 39) return 1;
- if(IsPlayerInArea(playerid, -1024, -864, 2144, 2304) && z <= 39) return 1;
- if(IsPlayerInArea(playerid, -1072, -1024, 2160, 2256) && z <= 39) return 1;
- if(IsPlayerInArea(playerid, -1200, -1072, 2114, 2242) && z <= 39) return 1;
- if(IsPlayerInArea(playerid, -976, -848, 2016, 2144) && z <= 39) return 1;
- if(IsPlayerInArea(playerid, -864, -480, 2144, 2272) && z <= 39) return 1;
- if(IsPlayerInArea(playerid, -688, -496, 2272, 2320) && z <= 39) return 1;
- if(IsPlayerInArea(playerid, -608, -528, 2320, 2352) && z <= 39) return 1;
- if(IsPlayerInArea(playerid, -848, -816, 2048, 2144) && z <= 39) return 1;
- if(IsPlayerInArea(playerid, -816, -496, 2064, 2144) && z <= 39) return 1;
- if(IsPlayerInArea(playerid, -576, -512, 2032, 2064) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2376, 3000, -3000, -2696) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, 2520, 3000, -2696, -2560) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1328, -1200, 2082, 2210) && z <= 39) return 1;
- if(IsPlayerInArea(playerid, -1456, -1328, 2048, 2176) && z <= 39) return 1;
- if(IsPlayerInArea(playerid, -1248, -992, -144, 208) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1176, -992, -432, -144) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1792, -1728, -592, -144) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1792, -1600, 170, 274) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1600, -1256, 168, 208) && z <= -1) return 1;
- if(IsPlayerInArea(playerid, -1574, -1550, -50, 102) && z <= -1) return 1;
- return 0;
- )
- UsunZPliku(playerid, const Tekst[], const Przepisz[], const Usun[], bool:BE) //By Przemcio
- (
- new idx;
- new str2[256];
- new bool:Znaleziony;
- new File:Plik = fopen(Tekst, io_read);
- while(fread(Plik, str, sizeof(str), false))
- (
- idx = 0;
- str2 = strtok(str, idx, ',');
- if(strcmp(str2, Usun, false) == 0)
- (
- Znaleziony = true;
- break;
- )
- )
- fclose(Plik);
- if(Znaleziony == true)
- (
- Plik = fopen(Tekst, io_read);
- new File:Plik2 = fopen(Przepisz, io_write);
- while(fread(Plik, str, sizeof(str), false))
- (
- idx = 0;
- str2 = strtok(str, idx, ',');
- if(strcmp(str2, Usun, false) != 0) fwrite(Plik2, str);
- )
- fclose(Plik);
- fclose(Plik2);
- fremove(Tekst);
- Plik = fopen(Tekst, io_write);
- Plik2 = fopen(Przepisz, io_read);
- while(fread(Plik2, str, sizeof(str), false)) fwrite(Plik, str);
- fclose(Plik2);
- fremove(Przepisz);
- fclose(Plik);
- if(BE == false) format(str, sizeof(str), "Słowo %s zostało usunięte", Usun);
- else if(BE == true) format(str, sizeof(str), "Emotikonka %s została usunięta", Usun);
- SendClientMessage(playerid, GREEN, str);
- )
- else
- if(BE == false) SendClientMessage(playerid, RED, "Nie ma takiego słowa!");
- else if(BE == true) SendClientMessage(playerid, RED, "Nie ma takiej emotikonki!");
- )
- UsunZBL(playerid, const BlackLista[], const Przepisz[], const Usun[], bool:KG)
- (
- new idx;
- new str2[256];
- new bool:Znaleziony;
- new File:Plik = fopen(BlackLista, io_read);
- while(fread(Plik, str, sizeof(str), false))
- (
- idx = 0;
- str2 = strtok(str, idx, '-');
- if(strcmp(str2, Usun, false) == 0)
- (
- Znaleziony = true;
- break;
- )
- )
- fclose(Plik);
- if(Znaleziony == true)
- (
- Plik = fopen(BlackLista, io_read);
- new File:Plik2 = fopen(Przepisz, io_write);
- while(fread(Plik, str, sizeof(str), false))
- (
- idx = 0;
- str2 = strtok(str, idx, '-');
- if(strcmp(str2, Usun, false) != 0) fwrite(Plik2, str);
- )
- fclose(Plik);
- fclose(Plik2);
- fremove(BlackLista);
- Plik = fopen(BlackLista, io_write);
- Plik2 = fopen(Przepisz, io_read);
- while(fread(Plik2, str, sizeof(str), false)) fwrite(Plik, str);
- fclose(Plik2);
- fremove(Przepisz);
- fclose(Plik);
- if(KG == false) format(str, sizeof(str), "Gracz %s został usunięty z Czarnej Listy", Usun);
- else if(KG == true) format(str, sizeof(str), "Klan %s został usunięty z Czarnej Listy", Usun);
- SendClientMessage(playerid, GREEN, str);
- )
- else
- if(KG == false) SendClientMessage(playerid, RED, "Takiego Nick'a nie ma na Czarnej Liście!");
- else if(KG == true) SendClientMessage(playerid, RED, "Takiego Klanu nie ma na Czarnej Liście!");
- )
- SprawdzBluzgi(playerid, text[])
- (
- if(Anty[AntyBluzgi] == true)
- (
- new File:Plik = fopen("Bluzgi.txt", io_read);
- while(fread(Plik, str, sizeof(str), false))
- (
- new idx;
- Nick = strtok(str, idx, ',');
- if(strfind(text, Nick, true) != -1)
- (
- DisableWord(Nick, text, false);
- if(Anty[AntiNadmierneBluzgi] == true && !IsPlayerAdmin(playerid))
- (
- GraczInfo[playerid][Bluzg]++;
- if(GraczInfo[playerid][Bluzg] == 15)
- switch(Kara[NadmierneBluzgi])
- (
- case 1: Kickuj(playerid, "Nadmierne bluzgi/wyzwiska");
- case 2: Banuj(playerid, "Nadmierne bluzgi/wyzwiska");
- case 3: BanujHost(playerid, "Nadmierne bluzgi/wyzwiska");
- )
- )
- )
- )
- fclose(Plik);
- )
- else if(Anty[AntiNadmierneBluzgi] == true && !IsPlayerAdmin(playerid) && Anty[AntyBluzgi] == false)
- (
- new File:Plik = fopen("Bluzgi.txt", io_read);
- while(fread(Plik, str, sizeof(str), false))
- (
- new idx;
- Nick = strtok(str, idx, ',');
- if(strfind(text, Nick, true) != -1) GraczInfo[playerid][Bluzg]++;
- )
- fclose(Plik);
- if(GraczInfo[playerid][Bluzg] == 15)
- switch(Kara[NadmierneBluzgi])
- (
- case 1: Kickuj(playerid, "Nadmierne bluzgi/wyzwiska");
- case 2: Banuj(playerid, "Nadmierne bluzgi/wyzwiska");
- case 3: BanujHost(playerid, "Nadmierne bluzgi/wyzwiska");
- )
- )
- return 0;
- )
- equal(str1[], str2[], bool:ignorecase)
- (
- if(strlen(str1) != strlen(str2)) return false;
- if(strcmp(str1, str2, ignorecase) == 0) return true;
- return false;
- )
- strlower(txt[])
- (
- new tmp[MAX_STRING];
- tmp[0] = 0;
- if(txt[0] == 0) return tmp;
- new i = 0;
- for(i = 0; i<strlen(txt); i++) tmp[i] = tolower(txt[i]);
- tmp[strlen(txt)] = 0;
- return tmp;
- )
- ret_memcpy(source[], index = 0, numbytes)
- (
- new tmp[MAX_STRING];
- new i = 0;
- tmp[0] = 0;
- if(index >= strlen(source)) return tmp;
- if(numbytes + index >= strlen(source)) numbytes = strlen(source) - index;
- if(numbytes <= 0) return tmp;
- for(i = index; i<numbytes + index; i++)
- (
- tmp[i - index] = source[i];
- if(source[i] == 0) return tmp;
- )
- tmp[numbytes] = 0;
- return tmp;
- )
- set(dest[], source[])
- (
- new count = strlen(source);
- new i = 0;
- for(i = 0; i<count; i++) dest[i] = source[i];
- dest[count] = 0;
- )
- StripNewLine(string[])
- (
- new len = strlen(string);
- if(string[0] == 0) return ;
- if((string[len - 1] == '\n') || (string[len - 1] == '\r'))
- (
- string[len - 1] = 0;
- if(string[0] == 0) return ;
- if((string[len - 2] == '\n') || (string[len - 2] == '\r')) string[len - 2] = 0;
- )
- )
- fcopytextfile(oldname[], newname[])
- (
- new File:ohnd, File:nhnd;
- if(!fexist(oldname)) return false;
- ohnd = fopen(oldname, io_read);
- nhnd = fopen(newname, io_write);
- new tmpres[MAX_STRING];
- while(fread(ohnd, tmpres))
- (
- StripNewLine(tmpres);
- format(tmpres, sizeof(tmpres), "%s\r\n", tmpres);
- fwrite(nhnd, tmpres);
- )
- fclose(ohnd);
- fclose(nhnd);
- return true;
- )
- dini_Set(filename[], key[], value[])
- (
- new File:fohnd, File:fwhnd;
- new bool:wasset = false;
- new tmpres[MAX_STRING];
- if(key[0] == 0) return false;
- format(tmpres, sizeof(tmpres), "%s.part", filename);
- fohnd = fopen(filename, io_read);
- if(!fohnd) return false;
- fremove(tmpres);
- fwhnd = fopen(tmpres, io_write);
- while(fread(fohnd, tmpres))
- (
- StripNewLine(tmpres);
- if((!wasset) && (equal(dini_PRIVATE_ExtractKey(tmpres), key, true)))
- (
- format(tmpres, sizeof(tmpres), "%s=%s", key, value);
- wasset = true;
- )
- fwrite(fwhnd, tmpres);
- fwrite(fwhnd, "\r\n");
- )
- if(!wasset)
- (
- format(tmpres, sizeof(tmpres), "%s=%s", key, value);
- fwrite(fwhnd, tmpres);
- fwrite(fwhnd, "\r\n");
- )
- fclose(fohnd);
- fclose(fwhnd);
- format(tmpres, sizeof(tmpres), "%s.part", filename);
- if(fcopytextfile(tmpres, filename)) return fremove(tmpres);
- return false;
- )
- dini_IntSet(filename[], key[], value)
- (
- new valuestring[MAX_STRING];
- format(valuestring, sizeof(valuestring), "%d", value);
- return dini_Set(filename, key, valuestring);
- )
- dini_Int(filename[], key[]) return strval(dini_Get(filename, key));
- dini_Get(filename[], key[])
- (
- new File:fohnd;
- new tmpres[MAX_STRING];
- new tmpres2[MAX_STRING];
- tmpres[0] = 0;
- fohnd = fopen(filename, io_read);
- if(!fohnd) return tmpres;
- while(fread(fohnd,tmpres))
- (
- StripNewLine(tmpres);
- if(equal(dini_PRIVATE_ExtractKey(tmpres), key, true))
- (
- tmpres2[0] = 0;
- strcat(tmpres2, dini_PRIVATE_ExtractValue(tmpres));
- fclose(fohnd);
- return tmpres2;
- )
- )
- fclose(fohnd);
- return tmpres;
- )
- dini_PRIVATE_ExtractKey(line[])
- (
- new tmp[MAX_STRING];
- tmp[0] = 0;
- if(strfind(line, "=", true) == -1) return tmp;
- set(tmp, strlower(ret_memcpy(line, 0, strfind(line, "=", true))));
- return tmp;
- )
- dini_PRIVATE_ExtractValue(line[])
- (
- new tmp[MAX_STRING];
- tmp[0] = 0;
- if(strfind(line, "=", true) == -1) return tmp;
- set(tmp, ret_memcpy(line, strfind(line, "=", true)+1, strlen(line)));
- return tmp;
- )
- return 0;
- )
- //End of the script: *AntyCheat 2.8*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement