Money problem
#10

Quote:
Originally Posted by dundolina
Посмотреть сообщение
Where to add this in filterscript "CallRemoteFunction("GM_GivePlayerMoney", "ii", playerid, Money);"?
You need to add this everywhere in your filterscript where you can find GivePlayerMoney.
You can of course replace all those GivePlayerMoney-lines by the line posted above.
Then your filterscript uses the same anti-money hack system used by your gamemode.

Your gamemode seems to use some sort of server-sided money so players cannot hack their money.
Using GetPlayerMoney to save your money is absolutely out of the question and renders your entire server-based money system obsolete.
Players would just hack some money, exit the server to save it, relog and voila, they have all the money they need "legally" obtained because now their client-sided money is equal to the value stored in your pCash variable.

BTW, does your gamemode update the player's money every second or so?
Seems to me, according to your explanation, that your filterscript uses GivePlayerMoney (which is client-sided money) and your server doesn't update that frequently.

You could also add a timer that runs every second and updates the client's money with the value of pCash.
Even if they hack their money on their client, the hack will be rendered useless because your timer would reset the client-sided money to 0 first, then use GivePlayerMoney with the value of your pCash variable.
Their hacked money is gone within a second using this.
Reply


Messages In This Thread
Money problem - by dundolina - 26.11.2014, 20:02
Re: Money problem - by RedCounty - 26.11.2014, 20:04
Re: Money problem - by dundolina - 26.11.2014, 20:08
Re: Money problem - by dundolina - 26.11.2014, 20:27
Re: Money problem - by PowerPC603 - 26.11.2014, 20:49
Re: Money problem - by Wan - 26.11.2014, 21:25
Re: Money problem - by dundolina - 26.11.2014, 21:31
Re: Money problem - by Wan - 26.11.2014, 21:33
Re: Money problem - by dundolina - 26.11.2014, 21:36
Re: Money problem - by PowerPC603 - 27.11.2014, 04:39

Forum Jump:


Users browsing this thread: 5 Guest(s)