28.08.2011, 00:22
hi,
im using a simple but untill today i thought very effective anti money hack script:
This always worked perfect, ive also tested it myself with different money hacks and it always detected the hacked money and resetted it back to the normal legal money amount.
But yesterday there came a guy to the server and started to give all players huge money amounts, like: 10000000$+!!
How is this possible? How can i fix this?
Is there a more effective anti money hack available?
Or where is the bug in this script?
Would be very happy about some advices.
Thx in advance, wolf.
im using a simple but untill today i thought very effective anti money hack script:
pawn Код:
new Cash[MAX_PLAYERS];
//OnGameModeInit
SetTimer("AntiCheat",200,true);
forward AntiCheat();
public AntiCheat()
{
foreach(Player, i)
{
if(GetPlayerMoney(i) != Cash[i])
{
ResetPlayerMoney(i);
GivePlayerMoney(i, Cash[i]);
}
}
}
//And im giving money like this:
Cash[playerid] += 2000;
//or
Cash[playerid] -= 2000;
But yesterday there came a guy to the server and started to give all players huge money amounts, like: 10000000$+!!
How is this possible? How can i fix this?
Is there a more effective anti money hack available?
Or where is the bug in this script?
Would be very happy about some advices.
Thx in advance, wolf.