[Include] US_AC (anticheat include)
#1

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.
.
Reply
#2

Good Work
Reply
#3

Thank you
Reply
#4

Nice, I'll look into this.
Reply
#5

thx
Reply
#6

You're Welcome
Reply
#7

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.
Reply
#8

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.
Reply
#9

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.
Reply
#10

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)