*** This topic title is not descriptive.
#1

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:
Код:
public OnPlayerUpdate(playerid)
{
	if(GetPlayerMoney(playerid) < PlayerInfo[playerid][pCash] || GetPlayerMoney(playerid) > PlayerInfo[playerid][pCash])
	{
		ResetPlayerMoney(playerid);
		GivePlayerMoney(playerid,PlayerInfo[playerid][pCash]);
	}
	return 1;
}
Thanks!
Reply


Messages In This Thread
*** This topic title is not descriptive. - by adithegman - 07.11.2012, 11:34
Re: Need HELP! - by Naruto_Emilio - 07.11.2012, 13:22
Re: Need HELP! - by adithegman - 07.11.2012, 13:38

Forum Jump:


Users browsing this thread: 1 Guest(s)