27.01.2012, 11:28
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:
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:
Will that give false warnings/bans?
or is the time between
and
too small for this?
just curious
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;
}
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;
}
or is the time between
pawn Код:
money[playerid] = balbalba
pawn Код:
GivePlayerMoney
just curious