OnPlayerGetMoney? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: OnPlayerGetMoney? (
/showthread.php?tid=537377)
OnPlayerGetMoney? -
DownDuckling - 15.09.2014
Is there a callback of somesort to check if a player picked up money or got money? I'm trying to save money on my server but I cannot find a way to check the money a player has and set it. Thanks
Re: OnPlayerGetMoney? -
biker122 - 15.09.2014
GetPlayerMoney(playerid);?
Re: OnPlayerGetMoney? -
DavidBilla - 15.09.2014
Well there's no callback for that. You should use GetPlayerMoney on OnPlayerDisconnect to get the amount and save it
Re: OnPlayerGetMoney? -
DownDuckling - 15.09.2014
Thanks man! That will help alot lol.
Re: OnPlayerGetMoney? -
DownDuckling - 23.01.2015
Sorry to bump but I am actually curious as how to give the player the money saved in the value :P
AW: Re: OnPlayerGetMoney? -
Saize - 23.01.2015
Quote:
Originally Posted by DownDuckling
Sorry to bump but I am actually curious as how to give the player the money saved in the value :P
|
Depends on which method of saving youґre using
Its Basicly like this:
PHP код:
OnPlayerSpawn(playerid)
{
GivePlayerMoney(playerid, YourMoneyVar[playerid])
return 1;
}