21.08.2009, 15:58
ok, i found way to cheat. Use some money hack and make money and before check(its every 4 sec) /q(uit game) and that money saves in acc. Very easy to hack
But i have solution, make another function almoust same as CheckMoney(); lets neme new CheckMoneyDisc(); and lets look like this
only diference is that i have remove isplayerconnect becasue even player disconnect i want to check did he hack money! And functon CheckMoneyDisc() call on your gamemode on public OnPlayerDisconnect(playerid), but before "OnUpdatePlayer(playerid);". If you put after it will save hacked money into account.
But i have solution, make another function almoust same as CheckMoney(); lets neme new CheckMoneyDisc(); and lets look like this
Код:
public CheckMoneyDisc() { for(new i=0; i<GetMaxPlayers(); i++) { new file[128]; format(file, sizeof(file), "F_AntiCheat/id_%i.ini", i); new F_Money; F_Money = dini_Int(file, "Money"); new cash = GetPlayerMoney(i); if (cash > F_Money) { if ((cash-F_Money) > MAX_DIFFERENCE) { SetTimerEx("DifferenceDetected", 2000, 0, "i", i); } } } }