SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 12/08/2017, 02:29 PM   #1
Rohit12
Big Clucker
 
Join Date: Jul 2017
Posts: 79
Reputation: 1
Default Properties not being reset after disconnect!

Hey there

Im using this property FS > http://forum.sa-mp.com/showthread.php?t=31653 .

So it is mentioned to add ResetPlayerPropertyInfo(playerid); into something...i guess my gamemode.

But it is not working. When i quit and rejoins the property will remain as mine unless i /sellproperty it.

And if the owner of the property has quit and when i try to buy that prop it wont say anything just unknown cmd(/buyprop).

I want the player who owned the prop and if he quits the property must be free and another guy can buy it.

So I hope the solution is simple and most of you might know it, then please help me !

Thank you.
Rohit12 is offline   Reply With Quote
Old 12/08/2017, 11:21 PM   #2
Rohit12
Big Clucker
 
Join Date: Jul 2017
Posts: 79
Reputation: 1
Default Re: Properties not being reset after disconnect!

Help please!
Rohit12 is offline   Reply With Quote
Old 13/08/2017, 10:39 AM   #3
NewFreeroamStunt
Big Clucker
 
NewFreeroamStunt's Avatar
 
Join Date: May 2017
Location: Indonesia
Posts: 82
Reputation: 2
Default Re: Properties not being reset after disconnect!

u must also add the include,
hmm.. i think delete the property saving files for reset the property
__________________


45.32.107.45:7777

NewFreeroamStunt is offline   Reply With Quote
Old 13/08/2017, 11:01 AM   #4
Immortal99
Big Clucker
 
Immortal99's Avatar
 
Join Date: Mar 2016
Location: GetPlayerLocation
Posts: 129
Reputation: 5
Default Re: Properties not being reset after disconnect!

Under OnPlayerConnect/OnPlayerDisconnection function place:

PHP Code:
ResetPlayerPropertyInfo(playerid); 
If you putting in under OnPlayerConnect it will reset the property when the player connects but if you putting it under OnPlayerDisconnect it will reset the property when the player disconnects.
__________________
Free & Paid SA-MP Servers

My Works
Immortal99 is offline   Reply With Quote
Old 13/08/2017, 11:39 AM   #5
Rohit12
Big Clucker
 
Join Date: Jul 2017
Posts: 79
Reputation: 1
Default Re: Properties not being reset after disconnect!

Quote:
Originally Posted by Immortal99 View Post
Under OnPlayerConnect/OnPlayerDisconnection function place:

PHP Code:
ResetPlayerPropertyInfo(playerid); 
If you putting in under OnPlayerConnect it will reset the property when the player connects but if you putting it under OnPlayerDisconnect it will reset the property when the player disconnects.
I already did it, its in my game mode under OnPlayerDisconnect.
Rohit12 is offline   Reply With Quote
Old 13/08/2017, 01:14 PM   #6
Rohit12
Big Clucker
 
Join Date: Jul 2017
Posts: 79
Reputation: 1
Default Re: Properties not being reset after disconnect!

Quote:
Originally Posted by NewFreeroamStunt View Post
u must also add the include,
hmm.. i think delete the property saving files for reset the property
I think you are right, so please tell me what all i should delete !?
Rohit12 is offline   Reply With Quote
Old 14/08/2017, 04:01 AM   #7
Rohit12
Big Clucker
 
Join Date: Jul 2017
Posts: 79
Reputation: 1
Default Re: Properties not being reset after disconnect!

Help please!
Rohit12 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
Need help properties Lynet Scripting Help 1 25/12/2012 01:40 PM
I need help with properties Shannkz Scripting Help 1 22/09/2012 02:24 PM
Properties Ehab1911 Help Archive 6 16/06/2011 12:02 PM
properties luckie12 Help Archive 7 11/05/2009 04:02 PM


All times are GMT. The time now is 05:45 AM.


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