Can the milliseconds difference between timers affect something?
#1

So, My question is:

I have this anti cheat for moneyhack, jetpack, etc..
It checks every 30 seconds,

It works like this:

/giveplayermoney is now in a public called giveplayercash

public giveplayercash looks like this:

pawn Код:
forward GivePlayerCash(playerid, Amoney);
public GivePlayerCash(playerid, Amoney)
{
    realmoney[playerid] = realmoney[playerid] + Amoney;
    GivePlayerMoney(playerid, Amoney);
    return 1;
}
The public CheckMoney checks if realmoney[playerid] is equel to GetPlayerMoney

If it is, there is no problem.. but.
WHAT if it checks in the middle of the give player money?

so like this:

pawn Код:
forward GivePlayerCash(playerid, Amoney);
public GivePlayerCash(playerid, Amoney)
{
    money[playerid] = money[playerid] + Amoney;
       //PUBLIC CHECKMONEY STARTS CHECKING HERE BY BAD LUCK?
    GivePlayerMoney(playerid, Amoney);
    return 1;
}
Will that give false warnings/bans?
or is the time between
pawn Код:
money[playerid] = balbalba
and
pawn Код:
GivePlayerMoney
too small for this?
just curious
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)