Posts: 112
Threads: 11
Joined: Mar 2013
Reputation:
0
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?
Posts: 1,206
Threads: 39
Joined: Feb 2014
Reputation:
0
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.
Posts: 1,206
Threads: 39
Joined: Feb 2014
Reputation:
0
Your anti-hack is flawed then or you're saving data from players that aren't logged in yet, which you shouldn't do.
Posts: 944
Threads: 128
Joined: Sep 2014
Reputation:
0
They can't unless you use GetPlayerMoney to save player's money.
Posts: 1,206
Threads: 39
Joined: Feb 2014
Reputation:
0
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,...).
Posts: 112
Threads: 11
Joined: Mar 2013
Reputation:
0
So, players Info are saving on login screen ( OnPlayerConnect ), if I change that to OnPlayerSpawn ( After Login/Register ) will solve my problem, right?
Posts: 1,206
Threads: 39
Joined: Feb 2014
Reputation:
0
Yes. You should still check if the given playerid is logged in or not before saving their data.