[ Help ] Money Hack
#1

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?
Reply
#2

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.
Reply
#3

They can, look at that:
Reply
#4

Your anti-hack is flawed then or you're saving data from players that aren't logged in yet, which you shouldn't do.
Reply
#5

They can't unless you use GetPlayerMoney to save player's money.
Reply
#6

Код:
#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 ).
Reply
#7

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,...).
Reply
#8

So, players Info are saving on login screen ( OnPlayerConnect ), if I change that to OnPlayerSpawn ( After Login/Register ) will solve my problem, right?
Reply
#9

Yes. You should still check if the given playerid is logged in or not before saving their data.
Reply
#10

I understand, Thanks for your time !
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)