Anti Health/Armour Hack.
#5

Quote:
Originally Posted by jueix
Посмотреть сообщение
Can you show us the anticheat code, For example, The code to detect wether or not the player is hacking?
OnPlayerUpdate:
Код:
		new Float:health, Float:armour;
		GetPlayerHealth(playerid, health);
		GetPlayerArmour(playerid, armour);
		if(health != GetPVarFloat(playerid, "Health"))
		{
			SetPlayerHealth(playerid, GetPVarFloat(playerid, "Health"));
		}
		if(armour != GetPVarFloat(playerid, "Armour"))
		{
			SetPlayerArmour(playerid, GetPVarFloat(playerid, "Armour"));
		}
Function:
Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
	new Float:p[2];
	CDM_GetPlayerHealth(issuerid, p[0]);
	CDM_GetPlayerArmour(issuerid, p[1]);
	if(p[1] != 0) CDM_SetPlayerArmour(issuerid, p[1]-amount);
	else if(!p[1]) CDM_SetPlayerHealth(issuerid, p[0]-amount);

	if(amount != 0 && p[0] == 100.0)
	{
		for(new i; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i) && player[i][adminlevel] != 0)
		{
		    message[0] = EOS;
			SendFormatMessageToAll(color_red, message, "(AC) {FFFFFF}%s {FF0000}has using hacks (reason: Godmode Hack)", getname[issuerid]);
		}
	}
    return 1;
}
I dont think that's the right public.
HELP.
Reply


Messages In This Thread
Anti Health/Armour Hack. - by AfikAtashga - 20.09.2013, 23:11
Re: Anti Health/Armour Hack. - by AfikAtashga - 21.09.2013, 09:53
Re: Anti Health/Armour Hack. - by AfikAtashga - 22.09.2013, 17:29
Re: Anti Health/Armour Hack. - by jueix - 22.09.2013, 19:05
Re: Anti Health/Armour Hack. - by AfikAtashga - 29.09.2013, 15:47
Re: Anti Health/Armour Hack. - by AfikAtashga - 30.09.2013, 16:18

Forum Jump:


Users browsing this thread: 1 Guest(s)