07.11.2012, 11:34
I am trying to make a script but i have a problem with my anti money cheat, so that hackers can't use money hacks. In Pawno, it shows me no errors, but in-game it doesn't work... That hacker can spam how much money he wants. I am using YSI to save stats and pass. It's all happening on OnPlayerUpdate. Any Help?
Here is the code:
Thanks!
Here is the code:
Код:
public OnPlayerUpdate(playerid) { if(GetPlayerMoney(playerid) < PlayerInfo[playerid][pCash] || GetPlayerMoney(playerid) > PlayerInfo[playerid][pCash]) { ResetPlayerMoney(playerid); GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]); } return 1; }