ANTICHEAT | spawnhp 100??
#1

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


Код:
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);
    }
...
Reply


Messages In This Thread
ANTICHEAT | spawnhp 100?? - by s3rserii - 18.09.2012, 17:20
Re: ANTICHEAT | spawnhp 100?? - by 2KY - 18.09.2012, 17:58
AW: ANTICHEAT | spawnhp 100?? - by s3rserii - 18.09.2012, 18:08
AW: ANTICHEAT | spawnhp 100?? - by Littl3j0hNy - 18.09.2012, 20:46
Re: AW: ANTICHEAT | spawnhp 100?? - by 2KY - 18.09.2012, 20:47
Re: ANTICHEAT | spawnhp 100?? - by next-studio|TheKiller - 18.09.2012, 20:48

Forum Jump:


Users browsing this thread: 1 Guest(s)