Quote:
Originally Posted by ]Rafaellos[
True, a good way to prevent false warnings due to this, is this:
pawn Code:
//OnPlayerDeath pInfo[playerid][IgnoreMoneyHack] = true;
//OnPlayerSpawn if(pInfo[playerid][IgnoreMoneyHack]) { if(GetPlayerMoneyEx(playerid) > 100) { SetPlayerMoneyEx(playerid, GetPlayerMoneyEx(playerid) - 100); } else { SetPlayerMoneyEx(playerid, 0); } pInfo[playerid][IgnoreMoneyHack] = false; }
When IgnoreMoneyHack is true, server don't check him for money hack, so you will never have false warnings.
|
Great idea. Now, if a player cheats money between death and spawning, he won`t be caught.