AntiCheat problem (money)
#2

I've also had a problem with this... but found a way to avoid errors.
Top of the script:
pawn Код:
forward MoneyGiving(playerid, status);
new givingmoney[MAX_PLAYERS];
OnPlayerConnect:
pawn Код:
givingmoney[playerid] = 0;
Put this in your timer before if(clientcash > servercash[playerid]):
pawn Код:
if(givingmoney[i]) return;
Function:
pawn Код:
public MoneyGiving(playerid, status)
{
    givingmoney[playerid] = status;
}
And finally insert these to your Money funcs:
pawn Код:
givingmoney[playerid] = 1;
SetTimerEx("MoneyGiving", 1500, 0, "i,i", playerid, 0);
З.Ы. русские захватят весь мир))
Reply


Messages In This Thread
AntiCheat problem (money) - by Fen1x - 19.02.2009, 10:38
Re: AntiCheat problem (money) - by CracK - 19.02.2009, 10:58
Re: AntiCheat problem (money) - by Fen1x - 19.02.2009, 15:34

Forum Jump:


Users browsing this thread: 1 Guest(s)