23.05.2010, 19:06
i have this on top of the mode:
when player leaves the server:
now, im using this, instead of the regular function:
this callback checks if someone is using money cheat every second:
now the problem is that i get kick in a second.. even if i don't use money cheat..
thanks for helpers
pawn Code:
new nmoney[MAX_PLAYERS];
pawn Code:
nmoney[playerid] = 0;
pawn Code:
stock AC_GivePlayerMoney(playerid, amount)
{
nmoney[playerid] += amount;
GivePlayerMoney(playerid, amount);
return 1;
}
pawn Code:
public Money_Cheat()
{
for(new i; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i)) if(GetPlayerMoney(i) != nmoney[i])
Kick(i);
}
thanks for helpers