anti money hack[+rep]
#1

hi,

is this code good?
If i try to cheat money with a cheating tool it works, it deects it and resets it but the client message is also send if the money is not hacked.

to sum it up:

-it detects and resets cheated money (not given with the custom variable)
-It doesnt reset the money given with the custom variable (this is supposed to be so)
-BUT the "hacked money" message is always send when the money gets increased/decreased, no matter if its cheated or not.

pawn Код:
//this is in a foreach loop and a timer with 1 second intervall
        if(GetPlayerMoney(i) != pCash[i])
        {
            ResetPlayerMoney(i);
            GivePlayerMoney(i, pCash[i]);
            SendClientMessageToAll(0xFF0000FF,"Money Hacked!!");
        }

//i give money like this:
pCash[playerid]+=amount;
Please help me
Reply


Messages In This Thread
anti money hack[+rep] - by PawnoQ - 03.01.2012, 22:52
Re : anti money hack[+rep] - by Vukilore - 03.01.2012, 22:56
Re: anti money hack[+rep] - by PawnoQ - 03.01.2012, 23:05
Re : anti money hack[+rep] - by Vukilore - 03.01.2012, 23:08
Re: anti money hack[+rep] - by coole210 - 03.01.2012, 23:12
Re: anti money hack[+rep] - by PawnoQ - 03.01.2012, 23:19
Re: anti money hack[+rep] - by PawnoQ - 03.01.2012, 23:33
Re: anti money hack[+rep] - by Basssiiie - 03.01.2012, 23:36
Re: anti money hack[+rep] - by PawnoQ - 03.01.2012, 23:38
Re: anti money hack[+rep] - by Basssiiie - 03.01.2012, 23:39

Forum Jump:


Users browsing this thread: 1 Guest(s)