[FilterScript] ColdBuster 1.0
#27

Coldheart, your Anti-Armour and Anti-Health code will NEVER work.
1) GetPlayerHealth will only return values between 0 and 255 (as far as I know).
2) Why would you ban someone with full armour? That's not cheating?
3) Actually the code for checking health and armour is nonsense:
pawn Код:
if(GetPlayerHealth(playerid, health) > 999999)
if(GetPlayerArmour(playerid, armor) == 100)
GetPlayerHealth and GetPlayerArmour do both NOT return any health/armour value.
compare the variables health and armour with the numbers after you have used GetPlayerHealth/Armour.
pawn Код:
GetPlayerHealth(playerid, health);
if(health > 100)
{
...//If server doesn't set higher amounts of health than 100, the player is a cheater.
Before you try making an anti-cheat, you should know how to use a specific function correctly.

---

Quote:
Originally Posted by gamer931215
Посмотреть сообщение
Looks nice, however some methods wont work on every hack.
Your checking the player's health as instance if its above 999999, but what if i use cheatengine and set it to 999998 ?

Can't you try something like this (im now sure if this is a good method however):
pawn Код:
for(new i = 0;i<MAX_PLAYERS;i++)
    {
        if(!IsPlayerConnected(i)) continue;
        new Float:health,Float:check;
        GetPlayerHealth(i,health);
        SetPlayerHealth(i,(health -1)); //check if you can remove 1 HP
        GetPlayerHealth(i,check); //verify the check
        if(check != (health -1) || health > 100) //if the check isnt correct or that the health is above 100
        {
            SendClientMessage(i,COLOR_RED,"You have been kicked by the server (Reason: Health hacks).");
            Kick(i);
        } else {
            SetPlayerHealth(i,health); //restore the health
        }
    }
?

I think its much more effective.
This will also not work correctly.
pawn Код:
GetPlayerHealth(i,health);
SetPlayerHealth(i,(health -1)); //check if you can remove 1 HP
GetPlayerHealth(i,check); //verify the check
That's will not work at all because the server does as far as I know (since SA-MP isn't multithread except for HTTP as far as I know) not send/recieve data until the PAWN code has been executed. Even If it would update while PAWN code is executed, the players health would never update fast enough: Player must recieve information that his health has been lowered and also has to send back data of his updated health.
Reply


Messages In This Thread
ColdBuster 1.0 - by Max_Coldheart - 05.06.2011, 17:48
Respuesta: ColdBuster 1.0 - by Host-samp - 05.06.2011, 18:04
Re: ColdBuster 1.0 - by Max_Coldheart - 05.06.2011, 18:06
AW: ColdBuster 1.0 - by Forbidden - 05.06.2011, 18:42
Re: ColdBuster 1.0 - by Max_Coldheart - 05.06.2011, 19:54
AW: ColdBuster 1.0 - by Forbidden - 05.06.2011, 21:55
Re: ColdBuster 1.0 - by Max_Coldheart - 06.06.2011, 07:08
Re: ColdBuster 1.0 - by Lorenc_ - 06.06.2011, 07:10
Re: ColdBuster 1.0 - by Max_Coldheart - 06.06.2011, 07:15
Re: ColdBuster 1.0 - by gamer931215 - 06.06.2011, 07:27
Re: ColdBuster 1.0 - by Max_Coldheart - 06.06.2011, 07:32
Re: ColdBuster 1.0 - by Basicz - 06.06.2011, 07:37
Re: ColdBuster 1.0 - by gamer931215 - 06.06.2011, 07:37
Re: ColdBuster 1.0 - by Max_Coldheart - 06.06.2011, 07:50
Re: ColdBuster 1.0 - by Ironboy - 06.06.2011, 08:06
Re: ColdBuster 1.0 - by Max_Coldheart - 07.06.2011, 17:26
Re : ColdBuster 1.0 - by Naruto_Emilio - 09.06.2011, 10:40
Re: ColdBuster 1.0 - by NeTuddMeg - 09.06.2011, 11:21
Re: ColdBuster 1.0 - by Odyssey - 09.06.2011, 14:49
Re: ColdBuster 1.0 - by Mike Garber - 09.06.2011, 17:36
Re: ColdBuster 1.0 - by Max_Coldheart - 11.06.2011, 18:09
Re: ColdBuster 1.0 - by Double-O-Seven - 11.06.2011, 19:09
Re: ColdBuster 1.0 - by OldDirtyBastard - 11.06.2011, 20:04
Re: ColdBuster 1.0 - by Double-O-Seven - 11.06.2011, 20:15
Re: ColdBuster 1.0 - by Michael@Belgium - 11.06.2011, 20:28
Re: ColdBuster 1.0 - by Max_Coldheart - 11.06.2011, 20:29
Re: ColdBuster 1.0 - by Double-O-Seven - 11.06.2011, 21:01
Re: ColdBuster 1.0 - by Hiddos - 11.06.2011, 22:43
Re: ColdBuster 1.0 - by Double-O-Seven - 12.06.2011, 11:03
Re: ColdBuster 1.0 - by Max_Coldheart - 12.06.2011, 12:31
Re: ColdBuster 1.0 - by BASITJALIL - 12.06.2011, 13:41
Re: ColdBuster 1.0 - by Homerman - 12.06.2011, 19:53
Re: ColdBuster 1.0 - by Phanto90 - 12.06.2011, 21:22
Re: ColdBuster 1.0 - by Max_Coldheart - 12.06.2011, 21:25
Re: ColdBuster 1.0 - by Odyssey - 13.06.2011, 20:12

Forum Jump:


Users browsing this thread: 1 Guest(s)