25.11.2011, 19:16
This is the line that causes the money to go back:
Anything wrong with it?
Anything wrong with it?
PHP код:
public UpdateMoney()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(gPlayerLogged[i])
{
if(GetPlayerCash(i) != GetPlayerMoney(i))
{
new hack = GetPlayerMoney(i) - GetPlayerCash(i);
if(hack >= 5000)
{
new string[128];
format(string, sizeof(string), "[WARNING:] %s (ID:%d) tried to spawn $%d - This could be a money cheat.",GetPlayerNameEx(i),i, hack);
HackLog(string);
}
ResetMoneyBar(i);//Resets the money in the original moneybar, Do not remove!
UpdateMoneyBar(i,PlayerInfo[i][pCash]);//Sets the money in the moneybar to the serverside cash, Do not remove!
}
}
}
}
return 1;
}