[ Help ] Money Hack -
Showzs - 03.11.2016
Hello Guys, I have a bug/problem on my GameMode with Money Hacks.
What Happen? When you log with S o b e i t, on login screen you can press F12 and get money.
Anyone know how can I solve this?
Re: [ Help ] Money Hack -
AndySedeyn - 03.11.2016
It doesn't matter. Players shouldn't be able to do anything with that money without logging in first. In addition to that, you set the player's money after they logged in, so it gets overwritten anyway.
If you really don't want it, you could allow your detection to also check players that aren't logged in yet. If you don't know how to do that, then you'll have to post your code.
Re: [ Help ] Money Hack -
Showzs - 03.11.2016
They can, look at that:
Re: [ Help ] Money Hack -
AndySedeyn - 03.11.2016
Your anti-hack is flawed then or you're saving data from players that aren't logged in yet, which you shouldn't do.
Re: [ Help ] Money Hack -
GoldenLion - 03.11.2016
They can't unless you use GetPlayerMoney to save player's money.
Re: [ Help ] Money Hack -
Showzs - 03.11.2016
Код:
#define GivePlayerCash(%0,%1) SetPVarInt(%0,"Money",GetPlayerCash(%0)+%1),GivePlayerMoney(%0,%1)
#define ResetPlayerCash(%0) SetPVarInt(%0,"Money",0),ResetPlayerMoney(%0)
#define GetPlayerCash(%0) GetPVarInt(%0,"Money")
I save player Info on ( OnPlayerConnect ).
Re: [ Help ] Money Hack -
AndySedeyn - 03.11.2016
You just solved your problem.
You should only save player's data when they're logged in and even then there's data you can't save (i.e.: the player must be spawned to save their position,...).
Re: [ Help ] Money Hack -
Showzs - 03.11.2016
So, players Info are saving on login screen ( OnPlayerConnect ), if I change that to OnPlayerSpawn ( After Login/Register ) will solve my problem, right?
Re: [ Help ] Money Hack -
AndySedeyn - 03.11.2016
Yes. You should still check if the given playerid is logged in or not before saving their data.
Re: [ Help ] Money Hack -
Showzs - 03.11.2016
I understand, Thanks for your time !