Anti Health Hack Problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Anti Health Hack Problem (
/showthread.php?tid=407685)
Anti Health Hack Problem -
Blackazur - 14.01.2013
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?
Re: Anti Health Hack Problem -
Windrush - 15.01.2013
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
AW: Anti Health Hack Problem -
Blackazur - 15.01.2013
Think you it will work?