16.06.2009, 13:45
Here is the anticheat,I got the include in pawno but I need a help
Here I would like to know how to and if its possible:
When the system detects a teleport,healthhack,etc to be like /report <id> <reason> to admins.So admins see it and do their job.Not auto-punish system.Would be really apriciated if you give me an example
}
Код:
new HealthCheck = 1; // Enabled (1) / Disabled (0) the Health Checks new ArmourCheck = 1; // Enabled (1) / Disabled (0) the Armour Checks new JetpackCheck = 1; // Enabled (1) / Disabled (0) the Jetpack Checks new WeaponCheck = 1; // Enabled (1) / Disabled (0) the Weapon Checks new MoneyCheck = 1; // Enabled (1) / Disabled (0) the Money Checks new AmmoCheck = 1; // Enabled (1) / Disabled (0) the Ammo Checks
Код:
forward AntiHealthHack(); new Float:health; forward AntiArmourHack(); new Float:armour; forward AntiWeaponHack(); forward AntiAmmoHack(); #define MAX_WEAPONS 46 #define UAC_MAX_AMMO 50 // Max Number of Ammo, as difference enum Winfo forward ResetSpam(playerid); forward ResetSpamCMD(playerid); forward ResetMute(playerid); #define MAX_SPAM_MESSAGES 3 #define MAX_SPAM_CMDS 3 new Spam[MAX_PLAYERS]; new SpamCMD[MAX_PLAYERS]; new Mute[MAX_PLAYERS]; etc for other
When the system detects a teleport,healthhack,etc to be like /report <id> <reason> to admins.So admins see it and do their job.Not auto-punish system.Would be really apriciated if you give me an example
Код:
if(HealthCheck == 1) // If HealthCheck is Enablbed
{
HealthTimer = SetTimer("AntiHealthHack", 3000, 1); // All 3.0 Seconds a check
}
if(ArmourCheck == 1) // If ArmourCheck is Enablbed
{
ArmourTimer = SetTimer("AntiArmourHack", 3000, 1); // All 3.0 Seconds a check
}
if(JetpackCheck == 1) // If JetpackCheck is Enablbed
{
JetpackTimer = SetTimer("AntiJetpack", 700, 1); // All 0.7 Seconds a check
}
if(WeaponCheck == 1) // If WeaponCheck is Enablbed
{
WeaponTimer = SetTimer("AntiWeaponHack", 800, 1); // All 0.8 Seconds a check
}
if(MoneyCheck == 1) // If MoneyCheck is Enablbed
{
MoneyTimer = SetTimer("AntiMoneyHack", 4000, 1); // All 4 Seconds a check
}
if(AmmoCheck == 1) // If AmmoCheck is Enablbed
{
AmmoTimer = SetTimer("AntiAmmoHack", 5000, 1); // All 5 Seconds a check
}
if(BotCheck == 1) // If BotCheck is Enablbed
{
BotTimer = SetTimer("AntiBot", 150000, 1); // All 2,5 Minutes a check
}
if(PosCheck == 1) // If PosCheck is Enablbed
{
PosTimer = SetTimer("AntiPositionHack", 1000, 1); // Jede Seconds a check


thanks