*** 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
#2

Your script seems bad.
check out those tutorials

http://forum.sa-mp.com/showthread.ph...er+Sided+Money

https://sampforum.blast.hk/showthread.php?tid=292898
Reply
#3

I always knew that there is another way (with timers) but before it was working (my script up) and that's why i am trying to save that script. But WHY it worked before, and now......
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)