Quote:
Originally Posted by Larsey123IsMe
Well, it works =/ (i hope :O.. not tested)
On Top:
pawn Код:
forward AntiMoneyCheat();
#define MONEY_LIMIT 15000000 //The MAX limit of money.. if he have more that that, then his money get reset.
OnGameModeInit():
pawn Код:
SetTimer("AntiMoneyCheat",1000,1);
Put it where you want:
pawn Код:
public AntiMoneyCheat() { for(new i = 0; i < MAX_PLAYERS; i++) { if(!IsPlayerAdmin(i) && IsPlayerConnected(i)) { if(GetPlayerMoney(i)>=MONEY_LIMIT) { new name[MAX_PLAYER_NAME], string[128]; GetPlayerName(i, name, sizeof(name)); format(string, sizeof(string), "Anti Cheat: %s(%d) Please dont hack", name, i); SendClientMessageToAll(COLOR_ANTIHAX,string); ResetPlayerMoney(i); //Resets the player money } } } return 0; }
|
That is stupid no offense. Why? First people can still hack 10k and not done anything. Second maybe he got them legit like admin give him it or something but legit.