03.01.2012, 22:52
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.
Please help me
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;
