18.08.2015, 21:19
it shouldn't be checked on OnPlayerUpdate bcz it gets called too often, but here is the idea:
Код:
public OnPlayerUpdate(playerid) { if(GetPlayerMoney(playerid) != PlayerInfo[playerid][pCash]) { GivePlayerMoney(playerid, -GetPlayerMoney(playerid)); GivePlayerMoney(playerid, PlayerInfo[playerid][pCash]); // Player's a hacker, do whatever u want with him } return 1; }