[Include] Advanced Server Side Health/Armour
#1

ADVANCED SERVER SIDE HEALTH/ARMOUR

INTRODUCTION
Hi there once again, this is my second release and this time, it's an include. After spending time thinking about creating a server side anti health/armour hack other than setting the variables to 99.0 which seemed stupid, I came up with this little efficient idea to effectively spot players who are using health/armour hacks.

P.S - I haven't tested this include yet, please test it and see how it works. Thank you. However, I've tested the logic of this hack in a friend's server and it works perfectly.


INSTRUCTIONS
Step 1: Place the ssha.inc file in your pawno/includes directory.
Step 2: In your main GameMode, insert #include <ssha> at the top.
Step 3: CTRL + H and replace all the SetPlayerHealth and SetPlayerArmour with szSetPlayerHealth and szSetPlayerArmour.
Step 4: Add this to code to your GameMode (you may modify it to suit your needs):
pawn Code:
public OnPlayerHack(playerid, hackid, newamount, oldamount)
{
    new string[128];
    switch(hackid)
    {
        case PLAYER_HEALTH_HACK:
        {
            format(string, sizeof(string), "{FF6347}Warning:{FFFF00} (ID: %d) %s may be health hacking, %f health was found while they have %f.", playerid, szGetPlayerName(playerid), newamount, oldamount);
            SendClientMessageToAll(0, string);

        }
        case PLAYER_ARMOUR_HACK:
        {
            format(string, sizeof(string), "{FF6347}Warning:{FFFF00} (ID: %d) %s may be armour hacking, %f armour was found while they have %f.", playerid, szGetPlayerName(playerid), newamount, oldamount);
            SendClientMessageToAll(0, string);
        }
    }
    return 1;
}
DOWNLOADS
Live Code #1 - Pastebin

CREDITS
This code was written entirely by me and I worked on it for around 3 hours. There may be bugs. Feel free to report it here and I'll get my friend to actively reply on the thread.

If you're using the code for commercial purposes or if you're editing the script and re-releasing it out to the public, please inform me.


Copyright ©2014, VSM
Imperious Roleplay by VSM is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
Reply
#2

Thanks for this men !
Reply
#3

Great job. I'll be doing the public relations task.
Reply
#4

deleted
Reply
#5

This works good ?
Reply
#6

Thanks
Reply
#7

I think you would be better off making a skinhit system since lagcomp isn't very reliable and also health cheats will do absolutely nothing.
Reply
#8

You shouldn't post untested code, never.
Reply
#9

It works. Tested.

Quote:
Originally Posted by [uL]Pottus
View Post
I think you would be better off making a skinhit system since lagcomp isn't very reliable and also health cheats will do absolutely nothing.
It is. It works nonetheless. LOL.
Reply
#10

-sorry for double post, honest mistake-
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)