11.12.2009, 08:42
Does anyone know what is this callback, and when is it called?
Originally Posted by IRC
[0:07:33] <Kye> it doesn't do anything currently
[0:11:50] <Kye> it's meant to show money increases from the GTA SA scm [0:11:54] <Kye> like ammunation, casino |
Originally Posted by CrαcK
Quote:
|
Originally Posted by Joe Staff
Quote:
|
Originally Posted by MenaceX^
Quote:
|
new Money[MAX_PLAYERS];
forward OnPlayerMoneyChange(playerid, old, new);
public OnPlayerUpdate(playerid)
{
if(Money[playerid] != GetPlayerMoney(playerid))
{
OnPlayerMoneyChange(playerid, Money[playerid], GetPlayerMoney(playerid));
Money[playerid] = GetPlayerMoney(playerid);
}
return 1;
}
Originally Posted by Kurence
pawn Код:
|
Originally Posted by Backwardsman97
OnPlayerMoneyChange will show whenever a player gets money in SA:MP. I think this callback would tell you whenever GTA itself gives money from taxi cabs or casinos and what not.
|