22.07.2012, 09:39
pawn Код:
public OnPlayerUpdate(playerid)
{
if(GetPlayerMoney(playerid) != yourMoneyVariable[playerid])
return OnPlayerMoneyChange(playerid, GetPlayerMoney(playerid), yourMoneyVariable[playerid]), 1;
return 1;
}
forward OnPlayerMoneyChange(playerid, newmoney, oldmoney);
public OnPlayerMoneyChange(playerid, newmoney, oldmoney)
{
// Do stuff
return 1;
}