Anti Health Hack Problem
#1

Hello, i have a Anti Spawn Kill on my Server, also that with Heal Time, so now i tried to make an Anti Health Hack, all works, but i tested it and i got banned because the Anti Health Hack think its a Hack, know everyone what the Problem is?

Код:
      
              new Float:health;
                GetPlayerHealth(i,health);
		        if(PlayerHealTime[i] ==1) if(health >= 100)
		        {
			       format(str,144,"«| %s Has Been Banned! [Reason: Health Hack] |»",PlayerName[i]);
                   SendClientMessageToAll(COLOR_HAUT,str);
			       Ban(i);
		        }
Код:
 if(PlayerHealTime[i] > 1)
			{
                SetPlayerHealth(i,99999.0);
			    PlayerHealTime[i] --;
			    SetPlayerChatBubble(i,"[ANTI-SPAWN-KILL]",COLOR_YELLOW,40.0,1000);
			}
			else if(PlayerHealTime[i] == 1)
			{
			    PlayerHealTime[i] = 0;

			    if(PlayerTeam[i] == TEAM_ZOMBIE) SetPlayerHealth(i,99.0);
			    else if(PlayerTeam[i] == TEAM_HUMAN) SetPlayerHealth(i,99.0);

			    SendClientMessage(i,COLOR_LIGHTGREEN,"«| Spawn Protection off |»");
			}
I think the Problem is the
Код:
SetPlayerHealth(i,99999.0);
, because the Anti Health Hack ban Hackers when the Health is 100. But when i make the SetPlayerHealth so: SetPlayerHealth(i,99.0); the Heal Time work not. Can everyone help me?
Reply
#2

ANTI HACK
pawn Код:
new Float:health;
                GetPlayerHealth(i,health);
                if(PlayerHealTime[i] ==1) if(health >= 100 && health =< 25728 && health => 25730)
                {
                   format(str,144,"«| %s Has Been Banned! [Reason: Health Hack] |»",PlayerName[i]);
                   SendClientMessageToAll(COLOR_HAUT,str);
                   Ban(i);
                }
Command? i Think
pawn Код:
if(PlayerHealTime[i] > 1)
            {
                SetPlayerHealth(i,25729.0);
                PlayerHealTime[i] --;
                SetPlayerChatBubble(i,"[ANTI-SPAWN-KILL]",COLOR_YELLOW,40.0,1000);
            }
            else if(PlayerHealTime[i] == 1)
            {
                PlayerHealTime[i] = 0;

                if(PlayerTeam[i] == TEAM_ZOMBIE) SetPlayerHealth(i,99.0);
                else if(PlayerTeam[i] == TEAM_HUMAN) SetPlayerHealth(i,99.0);

                SendClientMessage(i,COLOR_LIGHTGREEN,"«| Spawn Protection off |»");
            }
UnTested
Reply
#3

Think you it will work?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)