28.09.2010, 07:55
When it's giving me the message, Old Money, New Money it's both the same ammount.. Hope anyone will be able to help me out
pawn Код:
public AntiMoneyHack()
{
new string[128];
for(new i=0; i<MAX_PLAYERS; i++)
{
if((GetPlayerMoney(i)-50000 >= gPlayer[i][money]) && IsPlayerConnected(i))
{
format(string,sizeof(string), "*NOTICE* %s(id: %d) is a suspect of moneyhacking. [Old Money: $%i] - [New Money: $%i]",gPlayer[i][gName],i,oldmoney[i],GetPlayerMoney(i));
for(new j = 0; j < MAX_PLAYERS; j++)
{
if(IsPlayerConnected(j) && gPlayer[j][admin] > 0) SM(j, rose, string);
}
}
oldmoney[i] = GetPlayerMoney(i);
}
return 1;
}