SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 02/09/2017, 05:36 PM   #1
Bussyman
Big Clucker
 
Join Date: Apr 2017
Posts: 161
Reputation: 0
Default OnPlayerConnect

Hi,

Do i need reset player money to zero? ResetPlayerMoney?
Bussyman is offline   Reply With Quote
Old 02/09/2017, 06:19 PM   #2
Dayrion
High-roller
 
Dayrion's Avatar
 
Join Date: Jan 2016
Location: France
Posts: 1,781
Reputation: 230
Default Re: OnPlayerConnect

You should reset player's variable on this callback or you can do it under OnPlayerDisconnect.
Dayrion is offline   Reply With Quote
Old 02/09/2017, 08:21 PM   #3
Meller
Banned
 
Join Date: Dec 2016
Posts: 645
Reputation: 132
Default Re: OnPlayerConnect

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.
Meller is offline   Reply With Quote
Old 03/09/2017, 03:46 AM   #4
Bussyman
Big Clucker
 
Join Date: Apr 2017
Posts: 161
Reputation: 0
Default Re: OnPlayerConnect

so same is for player score?
Bussyman is offline   Reply With Quote
Old 03/09/2017, 08:40 AM   #5
Meller
Banned
 
Join Date: Dec 2016
Posts: 645
Reputation: 132
Default Re: OnPlayerConnect

Yes. .
Meller is offline   Reply With Quote
Old 03/09/2017, 01:49 PM   #6
Paulice
Gangsta
 
Join Date: Jul 2017
Posts: 471
Reputation: 44
Default Re: OnPlayerConnect

You need to reset money then restore it on spawn, $100 is deducted when you have a certain amount.
Paulice is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
OnPlayerConnect[BUG] Akcent_Voltaj Scripting Help 12 08/07/2014 11:36 AM
OnPlayerConnect Kingunit Help Archive 4 12/08/2011 01:46 PM
Need Help OnPlayerConnect lyrics Help Archive 4 09/08/2011 01:16 PM
OnPlayerConnect. iGetty Help Archive 5 20/07/2011 11:06 PM
Help OnPlayerConnect FireCat Help Archive 7 24/09/2010 05:34 PM


All times are GMT. The time now is 01:35 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.