14.01.2013, 20:44
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?
I think the Problem is the
, 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?
Код:
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 |»"); }
Код:
SetPlayerHealth(i,99999.0);