OnPlayerConnect - 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: OnPlayerConnect (
/showthread.php?tid=640433)
OnPlayerConnect -
Bussyman - 02.09.2017
Hi,
Do i need reset player money to zero? ResetPlayerMoney?
Re: OnPlayerConnect -
Dayrion - 02.09.2017
You should reset player's variable on this callback or you can do it under OnPlayerDisconnect.
Re: OnPlayerConnect -
Meller - 02.09.2017
No you don't, whenever a client connects to a server, the SAMP background is setting their cash to $10,000, but this is never seen, but then when you get a connection to the server, the samp background sets it to $0.
Note that, $10.000 is nowhere detectable, not even is loggings.
Re: OnPlayerConnect -
Bussyman - 03.09.2017
so same is for player score?
Re: OnPlayerConnect -
Meller - 03.09.2017
Yes. .
Re: OnPlayerConnect -
Paulice - 03.09.2017
You need to reset money then restore it on spawn, $100 is deducted when you have a certain amount.