Created
July 28, 2019 16:34
-
-
Save tinwritescode/87fee16cc3378c12074872c73be734f4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if defined _nex_ac_included | |
#else | |
#if defined _AntiCarTroll_included | |
public OnPlayerCarTroll(playerid, vehicleid, trolledid, trolltype) { | |
if(InDealer[playerid] > 0 || IsPlayerLogged[playerid] == 0 || PlayerInfo[playerid][pAdmin] > 0) return 1; | |
if(ServerSystem[11] == 0 || StaffOnline() == 0) NightBot(playerid, "Trollcar"); | |
else { | |
new string[180]; | |
if(trolledid == INVALID_PLAYER_ID) | |
format(string, sizeof(string), "Anti-Trollcar: {FFFFFF}%s (CID: %d) su dung trollcar len xe %d.", GetName(playerid), playerid, vehicleid); | |
else format(string, sizeof(string), "Anti-Trollcar: {FFFFFF}%s (CID: %d) su dung trollcar len %s (CID: %d), by vehicle %d.", GetName(playerid), playerid, GetName(trolledid), trolledid, vehicleid); | |
SendStaffMessage(0xAA3333AA, string); | |
} | |
return 1; | |
} | |
#endif | |
#if defined _rAntiSpeed_Included | |
public OnPlayerSpeedCheat(playerid, speedtype) { | |
if(IsPlayerLogged[playerid] == 0 || PlayerInfo[playerid][pAdmin] > 0 || Spectate[playerid] != 255 || IsPlayerPaused(playerid) || Exception{playerid} > 0) return 1; | |
new text[30]; | |
format(text, sizeof(text), (speedtype == 0) ? "Speed-Hack [Chay bo]" : (speedtype == 1) ? "Speed-Hack [Xe]" : "Speed-Hack [May bay]"); | |
if(ServerSystem[5] == 0 || StaffOnline() == 0) NightBot(playerid, text); | |
else if(UsedFly[playerid] == 0 && Spectate[playerid] == 255 && !IsPlayerPaused(playerid)) { | |
new string[180]; | |
format(string, sizeof(string), "Anti Speed-Cheat: {FFFFFF}%s (CID: %d) su dung %s.", GetName(playerid), playerid, text); | |
SendStaffMessage(0xAA3333AA, string); | |
} | |
return 1; | |
} | |
#endif | |
#if defined _rAGM_Included | |
public OnPlayerGodmode(playerid, gmtype) { | |
if(playerid == INVALID_PLAYER_ID || IsPlayerLogged[playerid] == 0 || PlayerInfo[playerid][pAdmin] > 0) return 1; | |
if(UsedFly[playerid] == 0 && Spectate[playerid] == 255 && !IsPlayerPaused(playerid)) { | |
if(ServerSystem[15] == 0 || StaffOnline() == 0) NightBot(playerid, "Godmode"); | |
else { | |
new string[180]; | |
format(string, sizeof(string), "Anti God-Mode: {FFFFFF}%s (CID: %d) su dung GodMode.", GetName(playerid), playerid); | |
SendStaffMessage(0xAA3333AA, string); | |
} | |
} | |
return 1; | |
} | |
#endif | |
#if defined _rAntiFakeKill_Included | |
public OnPlayerFakeKill(playerid, spoofedid, spoofedreason, faketype) { | |
if(spoofedid == 65535 || IsPlayerLogged[playerid] == 0 || PlayerInfo[playerid][pAdmin] > 0 || IsPlayerPaused(playerid) || spoofedreason == 255 || spoofedreason == 201 || spoofedreason == 200) return 1; | |
new string[148], spoofedreasontext[30]; | |
GetWeaponName(spoofedreason, spoofedreasontext, sizeof(spoofedreasontext)); | |
format(string, sizeof(string), "{AA3333}Anti-Cheat: {FFFFFF}%s (CID: %d) su dung Fakekill, giet %s (ID: %d) voi vu khi %s, do nguy hiem: %s.", GetName(playerid), playerid, GetName(spoofedid), spoofedid, spoofedreasontext, (faketype == 1) ? "Normal Fakekill (kick ngay lan thu 2)":"Spammed Fakekill (ban ngay lap tuc)"); | |
if(ServerSystem[14] == 0 || StaffOnline() == 0) NightBot(playerid, "Fakekill"); | |
else SendStaffMessage(-1, string); | |
return 1; | |
} | |
#endif | |
#if defined r_BreakAir_ | |
static OpbaCheatName[][] = { | |
{""}, | |
{"Air-Break [Chay bo]"}, | |
{"Air-Break [Lai xe]"}, | |
{"Air-Break [Hanh khach]"}, | |
{"Teleport [Chay bo]"}, | |
{"Teleport [Lai xe]"}, | |
{"Teleport [Hanh khach]"} | |
}; | |
public OnPlayerBreakAir(playerid, breaktype) { | |
if(IsPlayerLogged[playerid] == 0 || PlayerInfo[playerid][pAdmin] > 0 || Spectate[playerid] != 255 || IsPlayerPaused(playerid) || Exception{playerid} > 0) return 1; | |
if(ServerSystem[16] == 0 || StaffOnline() == 0) return NightBot(playerid, OpbaCheatName[breaktype]); | |
else if(gettime() - GetPVarInt(playerid, "PlayerAirBreak") > 0){ | |
new string[148]; | |
SetPVarInt(playerid, "PlayerAirBreak", gettime()+3); | |
format(string, sizeof(string), "Anti Break-Air: {FFFFFF}%s (CID: %d) su dung %s.", GetName(playerid), playerid, OpbaCheatName[breaktype]); | |
SendStaffMessage(0xAA3333AA, string); | |
} | |
return 1; | |
} | |
#endif | |
#if defined r_EAC_Included | |
public OnPlayerCarSwing(playerid, vehicleid) { | |
if(IsPlayerLogged[playerid] == 0 || PlayerInfo[playerid][pAdmin] > 0 || Spectate[playerid] != 255 || IsPlayerPaused(playerid)) return 1; | |
if(ServerSystem[17] == 0 || StaffOnline() == 0) return NightBot(playerid, "Carswing"); | |
if(GetPVarInt(playerid, "CarSwing") < gettime()) { | |
new string[148]; | |
format(string, sizeof(string), "Anti CarSwing: {FFFFFF}%s (CID: %d) su dung carswing (vehicle: %s).", GetName(playerid), playerid, aVehicleNames[GetVehicleModel(vehicleid)-400]); | |
SendStaffMessage(0xAA3333AA, string); | |
SetPVarInt(playerid, "CarSwing", gettime() + 10); | |
} | |
return 1; | |
} | |
public OnPlayerParticleSpam(playerid, vehicleid) { | |
if(IsPlayerLogged[playerid] == 0 || PlayerInfo[playerid][pAdmin] > 0 || Spectate[playerid] != 255 || IsPlayerPaused(playerid)) return 1; | |
if(ServerSystem[18] == 0 || StaffOnline() == 0) return NightBot(playerid, "ParticleSpam"); | |
if(GetPVarInt(playerid, "ParticleSpam") < gettime()) { | |
new string[148]; | |
format(string, sizeof(string), "Anti ParticleSpam: {FFFFFF}%s (CID: %d) su dung ParticleSpam (vehicle: %s).", GetName(playerid), playerid, aVehicleNames[GetVehicleModel(vehicleid)-400]); | |
SendStaffMessage(0xAA3333AA, string); | |
SetPVarInt(playerid, "ParticleSpam", gettime() + 10); | |
} | |
return 1; | |
} | |
#endif | |
#endif | |
#if defined _AntiCarTroll2_included | |
public OnPlayerTroll(playerid) { | |
if(InDealer[playerid] > 0 || IsPlayerLogged[playerid] == 0 || PlayerInfo[playerid][pAdmin] > 0 || Spectate[playerid] != 255 || IsPlayerPaused(playerid)) return 1; | |
if(ServerSystem[11] == 0 || StaffOnline() == 0) NightBot(playerid, "Trollcar"); | |
else { | |
if(GetPVarInt(playerid, "Trollcar") < gettime()) { | |
new string[180]; | |
format(string, sizeof(string), "Anti-Trollcar: {FFFFFF}%s (CID: %d) co the su dung trollcar.", GetName(playerid), playerid); | |
SendStaffMessage(0xAA3333AA, string); | |
SetPVarInt(playerid, "Trollcar", gettime() + 10); | |
} | |
} | |
return 1; | |
} | |
#endif | |
#if defined _rAgc_Included_ | |
static GunCheatName[][] = { | |
{""}, | |
{"weapon cheat"}, | |
{"ammo cheat"}, | |
{"freeze ammo cheat"}, | |
{"nghi van fakekill"} | |
// {"Rapid fire (also super fast cbugging)"} | |
}; | |
public OnPlayerGunCheat(playerid, weaponid, ammo, hacktype) { | |
if(IsPlayerLogged[playerid] == 0 || PlayerInfo[playerid][pAdmin] > 0 || Exception{playerid} > 0) return 1; | |
if(ServerSystem[1] == 0 || StaffOnline() == 0) return NightBot(playerid, GunCheatName[hacktype]); | |
if(GetPVarInt(playerid, "GunCheat") < gettime()) { | |
new string[148]; | |
format(string, sizeof(string), "Anti Gun-Cheat: {FFFFFF}%s (CID: %d) su dung hack %s, ammo: %d, weaponid: %d.", GetName(playerid), playerid, GunCheatName[hacktype], ammo, weaponid); | |
SendStaffMessage(0xAA3333AA, string); | |
SetPVarInt(playerid, "GunCheat", gettime() + 10); | |
} | |
return 1; | |
} | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment