02.03.2012, 13:03
Just ensure your script only ever sets a player's armor to a maximum of 99.
For instance:
#define MAX_ARMOR 99
and when setting the player's armor...
in place of 100.0
If your script can ONLY SET a player's armor to 99 or less, your free to ban anyone that acquires 100 armor.
Don't detect for ONLY more than 100, considering most health/armor hacks are aware this is monitored and don't do it.
You could use the above timer, or simply in OnPlayerUpdate:
For instance:
#define MAX_ARMOR 99
and when setting the player's armor...
pawn Код:
SetPlayerArmour(playerid, MAX_ARMOR);
If your script can ONLY SET a player's armor to 99 or less, your free to ban anyone that acquires 100 armor.
Don't detect for ONLY more than 100, considering most health/armor hacks are aware this is monitored and don't do it.
You could use the above timer, or simply in OnPlayerUpdate:
pawn Код:
public OnPlayerUpdate(playerid)
{
new Float:Armor;
GetPlayerArmour(playerid, Armor);
if(Armor >= 100) BanEx(playerid, "Armor-Hacks");
return 1;
}