OnPlayerGetMoney?
#1

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

GetPlayerMoney(playerid);?
Reply
#3

Well there's no callback for that. You should use GetPlayerMoney on OnPlayerDisconnect to get the amount and save it
Reply
#4

Thanks man! That will help alot lol.
Reply
#5

Sorry to bump but I am actually curious as how to give the player the money saved in the value :P
Reply
#6

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(playeridYourMoneyVar[playerid])
   return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)