23.02.2010, 09:58
Dont use onplayerupdate, use a timer. 
EDIT: Sorry didnt read above but you should use this instead onplayerupdate because it gets called like 20-30 times per second. (500 - 750 times per second if you have 25 players)

pawn Код:
//OnPlayerSpawn
SetTimer("Check", 1000, true);
//Somewhere in script
forward Check(playerid);
public Check(playerid)
{
//Max Money
if(GetPlayerMoney(playerid) == 999999999)
{
new pName[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "[AntiCheat]: %s has been kicked for MAX MONEY.", pName);
SendClientMessageToAll(orange, string);
Kick(playerid);
print(string);
}
//Health Hacks
new Float:health;
GetPlayerHealth(playerid,health);
if(health > 101)
{
if(level[playerid] == 0)
{
new pName[MAX_PLAYER_NAME], string[128];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "[AntiCheat]: %s has been kicked for Health Hacks.", pName);
SendClientMessageToAll(orange, string);
Kick(playerid);
print(string);
}
}
return 1;
}

