Anti Money Hack
#1

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;
}
Reply
#2

You must use GivePlayerMoney(playerid, amount); inorder to add cash in the green-bar.
Reply
#3

Yes but with this stock i will prevent my server from money hackers.
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)