OnScriptCash
#1

Does anyone know what is this callback, and when is it called?
Reply
#2

Quote:
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
Reply
#3

Quote:
Originally Posted by CrαcK
Quote:
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
Can't wait for that to work properly, would make anti-hack just that much closer to perfection.
Reply
#4

Quote:
Originally Posted by Joe Staff
Quote:
Originally Posted by CrαcK
Quote:
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
Can't wait for that to work properly, would make anti-hack just that much closer to perfection.
****** made in YUP a callback called OnPlayerMoneyChange.
Reply
#5

Quote:
Originally Posted by MenaceX^
Quote:
Originally Posted by Joe Staff
Quote:
Originally Posted by CrαcK
Quote:
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
Can't wait for that to work properly, would make anti-hack just that much closer to perfection.
****** made in YUP a callback called OnPlayerMoneyChange.
Built in the same method as my current money change detection does. Atleast, I'm assuming.
Reply
#6

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.
Reply
#7

Where is this callback documented/listed? I have only ever heard of it being rumoured. I've checked a_samp.inc and it's not in there?
Reply
#8

Actually it was in 0.2.5
Reply
#9

pawn Код:
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;
}
Or something like that??
Reply
#10

Quote:
Originally Posted by Kurence
pawn Код:
/* code */
Or something like that??
You've missed the point.

Quote:
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)