AntiGodMode.
#1

Hello. I have the question - how i can make the AntiGodMode?

Thanks for help.
Reply
#2

You could check if a players health is over 100 if it is kick or ban. I've not tested but i can't see why it won't work unless im missing something.
Reply
#3

Quote:
Originally Posted by iggy1
Посмотреть сообщение
You could check if a players health is over 100 if it is kick or ban. I've not tested but i can't see why it won't work unless im missing something.
In that case....

pawn Код:
new Float:health;
    GetPlayerHealth(playerid,health);
    if (health > 100.0)
    {
        SendClientMessage(playerid, COLOR_RED, "You've been banned for health hacks.");
        BanEx(playerid, "HP Hacks" );
    }

You will need to make your own call back, put this in a timer, and have it scan all players using MaxPlayers, GetMaxPlayers or whatever.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)