*** This topic title is not descriptive. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: *** This topic title is not descriptive. (
/showthread.php?tid=390646)
*** This topic title is not descriptive. -
adithegman - 07.11.2012
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!
Re: Need HELP! -
Naruto_Emilio - 07.11.2012
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
Re: Need HELP! -
adithegman - 07.11.2012
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......