Health hack detector
#1

hi i created a health hack detector it checks players health every 2 seconds if its above 98 and below 101 the player is using if its not then the player is clean here is my 2 sec timer:

Код:
	if(health > 98 && health < 101 || armour > 98)
	{
	    Kick(playerid);
	    print("Player HH");
	}
and this is my player on spawn

Код:
	    SetPlayerHealth(playerid, 98);
            SetPlayerArmour(playerid, 98);
the problem is when player enable godmode and set hes health to 99999 and then the player types /kill to disable godmode which is

Код:
CMD:kill(playerid, params[])
{
    SetPlayerHealth(playerid, 0);
    return 1;
}
script calls

Код:
	if(health > 98 && health < 101 || armour > 98)
	{
	    Kick(playerid);
	    print("Player HH");
	}
Reply
#2

so if my health is 101 and i get punched im health hacking?
Reply
#3

Quote:
Originally Posted by MaazS
Посмотреть сообщение
so if my health is 101 and i get punched im health hacking?
no because your health will never be lower than 99989 and higher than 98
Reply
#4

Call me what you want, but I don't understand a word of your question/problem?
Reply
#5

Your code isn't even a Health hack detector... Set a player's health to infinity, create a variable that saves player's health, use a textdraw to display the health, use a custom damage system that you uses your variable thingy and then kill a player if their health is lower than 1.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)