Anti Money Hack - 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: Anti Money Hack (
/showthread.php?tid=442702)
Anti Money Hack -
Blackazur - 08.06.2013
Hello, why this code working not the player get not the money at the green moneybar:
Код:
stock GivePlayerMoneyEx(playerid,money)
{
new str[64];
format(str,sizeof(str),"+$%i",money);
PlayerInfo[playerid][pCash] += money;
return 1;
}
Re: Anti Money Hack -
-CaRRoT - 08.06.2013
You must use GivePlayerMoney(playerid, amount); inorder to add cash in the green-bar.
AW: Anti Money Hack -
Blackazur - 08.06.2013
Yes but with this stock i will prevent my server from money hackers.
Re: Anti Money Hack -
-CaRRoT - 08.06.2013
Guess it should work - However , Just store each money transition into a var [pCash] - Increase/Decrease it with the var and GivePlayerMoney -By that - They won't be able to actually use the hacked money in buying things.
- And when they buy - Use the same-var too.