Money system of serverside???!
#1

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] !!!!!!!!!!!!!!!!!!!!
Reply
#2

Server sided money is impossible to hack.

Unless a person went into your database and edited stuff.
Reply
#3

Quote:
Originally Posted by Retardedwolf
View Post
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
Reply
#4

It is only GetPlayerMoney, if you use PlayerInfo[playerid][pMoney] he won't be able to use it at all
Reply
#5

Quote:
Originally Posted by Claude
View Post
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]
Reply
#6

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
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)