08.06.2009, 11:27
In the AntiCheat System that i'm using this is the anti money cheat:
How i can modify this thins that not only if a player has the money > 9999999999? Because there are other cheats that allow to increase money of 1000, 100000, 1000000 ... I saw some servers where, if u apply money cheat, it come back on your original money amount, making the money hack useless...
Код:
public moneycheat() { for(new i=0; i < MAX_PLAYERS; i++) { new playername[MAX_PLAYER_NAME], string[256]; GetPlayerName(i, playername, sizeof(playername)); //MONEYCHEAT if(GetPlayerMoney(i) >= 9999999999) if(hguard == 1) if(IsPlayerConnected(i)) { format(string, 256, "%s (ID:%d) has banned from server. Reason: MoneyCheat(+9999999999!)"); SendClientMessageToAll(COLOR_RED, string); Ban(i); } } return 1; }