Anti Health Hack
#21

Quote:

Check if player is losing health after the explode.

Where it is in your script?

Quote:

Send the message to the administrator if he HP hacks or not.

Emm
pawn Код:
format(msg,sizeof(msg),""#COL_ORANGE"[ADMIN] "#COL_LRED"%s was checked for Invulnerability HAX.",PlayerName(targetid));
        SendClientMessage(playerid,COLOR_WHITE, msg);
With this code, it will always return the same text

pawn Код:
if(sscanf(params, "uz", targetid))
I guess, that 'z' parameter is not necessary.
Reply
#22

Don't think I am noob. I forget the last part of my code =]

pawn Код:
forward Explosion(playerid, adminid);

public Explosion(playerid, adminid) {
    if(checkinv == 1)
    {
        new Float:health;
        GetPlayerHealth(playerid,health);
        if(health == 100)
        {
            SendClientMessage(adminid,COLOR_YELLOW,"Invulnerability check result : [POSITIVE]");
            checkinv = 0;
        }
        else if(health != 100)
        {
            SendClientMessage(adminid,COLOR_YELLOW,"Invulnerability check result : [NEGATIVE]");
            checkinv = 0;
        }
    }
    return 1;
}
Happy now?
Reply
#23

Thank you both, and thanks LetsOWN[PL] it works perfectly Trololololo
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)