[Include] OnPlayerMoneyStateChange & OnPlayerScoreStateChange - Detecting when players receive and lose money/score!
#10

Quote:
Originally Posted by Emmet_
View Post
People might wanna use the money/score functions in the callback, so instead of hooking the functions, maybe use a timer or perhaps OnPlayerUpdate? It'll also detect money like sprunk machines and stuff.

On the other hand, cool work.
Updated! Thanks for the suggestion. Functions can now be used inside the callbacks and it's harmless to the script!
Using OnPlayerUpdate for more accuracy. Watch the main post for more info.

Quote:
Originally Posted by Rajat_Pawar
View Post
You have a major f**-up in your code, you returned SetPlayerScore in one of the redefinitions of SetPlayerMoney Copy paste disadvantage LOL Nice include, simple, instead of redefinitions, PVar is a better choice, because most people would reset the money under the callback itself!
Omg that was a silly copy-paste mistake xD Thanks for pointing that out + Fixed!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)