18.09.2012, 17:20
Hello,
i code my onw little anticheat for halth. I set all players hp to 99 and if a player have over 99hp (like cheating) will banned. But if anyone dies he get banned. Is code must work but it not ^^
If i connect on the server it work and i have 99hp but if i die and respawn automatic it will bann me..
hope for help
i code my onw little anticheat for halth. I set all players hp to 99 and if a player have over 99hp (like cheating) will banned. But if anyone dies he get banned. Is code must work but it not ^^
If i connect on the server it work and i have 99hp but if i die and respawn automatic it will bann me..
hope for help
Код:
public OnPlayerSpawn(playerid)
{
SetPlayerHealth(playerid, 50);
...
Код:
public OnPlayerUpdate(playerid)
{
new Float:health;
GetPlayerHealth(playerid,health);
if (health > 99)
{
SpielerInfo[playerid][pBan] = 1;
SendClientMessage(playerid, red, "[ANTICHEAT] {FFFFFF}Du wurdest wegen Health-Hack gebannt");
format(string,sizeof(string),"{FF0000}[ANTICHEAT] {00FF00}%s {FFFFFF}wurde wegen Health-Hack gebannt",SpielerNameAnzeige(playerid));
SendClientMessageToAll(red,string);
Kick(playerid);
}
...


