Money system of serverside???! - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Money system of serverside???! (
/showthread.php?tid=179042)
Money system of serverside???! -
Typhome - 25.09.2010
I maked money system like PlayerInfo[playerid][pMoney].
But someone hacked money and he got 66,000. WTF?! Im not using GivePlayerMoney, etc. ONLY PlayerInfo[playerid][pMoney] !!!!!!!!!!!!!!!!!!!!
Re: Money system of serverside???! -
Retardedwolf - 25.09.2010
Server sided money is impossible to hack.
Unless a person went into your database and edited stuff.
Re: Money system of serverside???! -
Typhome - 25.09.2010
Quote:
Originally Posted by Retardedwolf
Server sided money is impossible to hack.
Unless a person went into your database and edited stuff.
|
What you mean database? Im not using mySQL.
in tutorial says it hackable moneysystem..
//
https://sampforum.blast.hk/showthread.php?tid=151100
Re: Money system of serverside???! -
Claude - 25.09.2010
It is only GetPlayerMoney, if you use PlayerInfo[playerid][pMoney] he won't be able to use it at all
Re: Money system of serverside???! -
Typhome - 25.09.2010
Quote:
Originally Posted by Claude
It is only GetPlayerMoney, if you use PlayerInfo[playerid][pMoney] he won't be able to use it at all
|
How did someone hacked $66,666?? Im not using GivePlayerMoney, etc.
IM USING ONLY PlayerInfo[playerid][pMoney]
Re: Money system of serverside???! -
Conroy - 25.09.2010
Best way to stop money is hacks is compare their money to external files (or a variable).
pawn Code:
stock GivePlayerMoneyEx(id, amount)
{
GivePlayerMoney(id, amount);
PlayerInfo[playerid][pMoney] += amount;
}
Use this function every time you change a player's cash. The only way someone could hack would be if they hack money and it saves to the variable (which is probably what you are doing). Simply run a timer to check the variable and the player's cash, if it's different then the player is hacking.
-Conroy