21.12.2009, 09:52
pawn Код:
if(ServerInfo[AntiCheat] == true)
{
new string[128];
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(PlayerInfo[i][Cash] < pMoney(i))
{
new
cheaterid = i,
oldcash;
if(PlayerInfo[i][Level] > 2 && IsPlayerConnected(i))
{
while(pMoney(cheaterid) > oldcash)
{
SendClientMessage(i, SYSTEM_DENIAL, "Bot");
format(string, sizeof(string), "%s (ID:%d) has had an illegal money increase (%d$).", pName(cheaterid), cheaterid, pMoney(cheaterid) - PlayerInfo[cheaterid][Cash]);
SendClientMessage(i, SYSTEM_INFO, string);
oldcash = pMoney(cheaterid);
}
}
else
{
PlayerInfo[cheaterid][Banned] = true;
Kick(cheaterid);
}
continue;
}
}
}
pawn Код:
SendClientMessage(i, SYSTEM_DENIAL, "Bot");
format(string, sizeof(string), "%s (ID:%d) has had an illegal money increase (%d$).", pName(cheaterid), cheaterid, pMoney(cheaterid) - PlayerInfo[cheaterid][Cash]);
SendClientMessage(i, SYSTEM_INFO, string);
oldcash = pMoney(cheaterid);
pawn Код:
while(pMoney(cheaterid) > oldcash)
Why?