13.10.2011, 17:52
pawn Код:
public ServerMoneyCB()
{
CallLoop(ServerSidep,MAX_PLAYERS)
{
if(IsPlayerConnected(ServerSidep))
{
if(GetPlayerMoney(ServerSidep) != ServerSideCash[ServerSidep])
{
new H4xc4sh=GetPlayerMoney(ServerSidep);
H4xc4sh=H4xc4sh-ServerSideCash[ServerSidep];
===>>> if(H4xc4sh > CALLBACK_AMOUNT) OnPlayerHaveExtraCash(ServerSidep,H4xc4sh);
}
GivePlayerMoney(ServerSidep,-GetPlayerMoney(ServerSidep));
GivePlayerMoney(ServerSidep,ServerSideCash[ServerSidep]);
}
}
return 1;
}