US_AC (anticheat include) -
UltraScripter - 24.06.2015
Hi everyone ive mad anticheat include it may have few bugs

pls tell if you find
How to use please read there important things at the end!
pawn Код:
US_ACActivateHealthACKick();//Activate health anticheat kick if use health cheat
US_ACActivateHealthACBan(); //same but Ban
US_ACActivateArmourACKick(); //Same but with armour
US_ACActivateArmourACBan();
US_ACSetPlayerMaxHealth(playerid); // or SetPlayerHealth(playerid, 99); //not 100 else it kick / ban whatever you choose
US_ACSetPlayerMaxArmour(playerid); //Same with armour
US_ACResetPlayerMoney(playerid, value); //To reset player money or you can just use ResetPlayerMoney(playerid); instead
US_ACGivePlayerMoney(playerid, value); //To give player money use only this!.
US_ACActivateMoneyAC(); //Will detect if player using money cheat and reset his money
US_ACActivateMoneyACKick(); //Same but kick instead
US_ACActivateMoneyACBan(); // same but ban instead.
copy and paste in if gamemode OnGameModeInit() or if filterscript OnFilterScriptInit Exept The US_ACGivePlayerMoney(playerid, value);
and on player connect add ResetPlayerMoney(playerid);
download links:
solidfiles:
http://www.solidfiles.com/d/fcd1fc7957/
pastebin:
http://pastebin.com/Uzkdy3gS
US_AC v2
solidfiles:
http://www.solidfiles.com/d/60fffd7669/
pastebin:
http://pastebin.com/msS04jtQ
Same usage like used to be in V1 but add playerid now!
US_AC V3 (speed anticcheat added)
solidfiles:
http://www.solidfiles.com/d/084ba3590c/
pastebin:
http://pastebin.com/CTSUmpdW
Usage
pawn Код:
US_ACActivateSpeedAC(playerid); //Push the car back if using speed hack
US_ACActivateSpeedACKick(playerid); //Kick if using speed hack
US_ACActivateSpeedACBan(playerid); //Ban if using speed hack.
.
Re: US_AC (anticheat include) -
kyriakos587 - 24.06.2015
Good Work
Re: US_AC (anticheat include) -
UltraScripter - 24.06.2015
Thank you
Re: US_AC (anticheat include) -
ChromeAmazing - 24.06.2015
Nice, I'll look into this.
Re: US_AC (anticheat include) -
UltraScripter - 24.06.2015
thx
Re: US_AC (anticheat include) -
kyriakos587 - 24.06.2015
You're Welcome
AW: US_AC (anticheat include) -
BigETI - 24.06.2015
Your script might just ban innocent people. I suggest you to read
https://sampforum.blast.hk/showthread.php?tid=220089
Also there are no "native" functions as stated in your documentation.
Get rid of this keyword, if you're not writing plugins.
Re: AW: US_AC (anticheat include) -
Crayder - 24.06.2015
Quote:
Originally Posted by BigETI
Get rid of this keyword, if you're not writing plugins.
|
No, the native keyword is read by Pawno. This is how Pawno adds functions to it's list, that's why the native keyword is commented out.
Re: US_AC (anticheat include) -
Yashas - 25.06.2015
The include won't work.
It won't detect anything!!
You set a timer without passing playerid
Код:
SetTimer("USACHealthCheckKick", 500, true);
Код:
forward USACHealthCheckKick(playerid);
public USACHealthCheckKick(playerid)
{
GetPlayerHealth(playerid, USACPlayerHealth);
if(USACPlayerHealth >= 100)
{
Kick(playerid);
}
return 1;
}
You have done it everywhere!!
Moreover, even if you correct it will ban innocents if they use a vending machine.
Re: US_AC (anticheat include) -
vannesenn - 25.06.2015
Nice but few functions you don't need if you make eg. money system on different way(without GivePlayerMoney), also with weapons and health/armour