Raised This Month: $51 Target: $400
 12% 

[Solved][Dota 2] Sell abandoned player items


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CyberStars
Senior Member
Join Date: May 2013
Old 04-16-2014 , 08:41   [Solved][Dota 2] Sell abandoned player items
Reply With Quote #1

When a player disconnects in Dota 2 dedicated server, more than 5 min., his teammates cannot sell his items or his items are not sold, his gold is not split between teammates.

Is there a way to enable it?

Last edited by CyberStars; 04-17-2014 at 09:19. Reason: Solved
CyberStars is offline
psychonic

BAFFLED
Join Date: May 2008
Old 04-16-2014 , 09:24   Re: [Dota 2] Sell abandoned player items
Reply With Quote #2

I haven't tried it, but I'm guessing that this can be accomplished by setting the m_iConnectionState value on the PlayerResource object for that player to DOTA_CONNECTION_STATE_ABANDONED (4).
psychonic is offline
CyberStars
Senior Member
Join Date: May 2013
Old 04-16-2014 , 10:44   Re: [Dota 2] Sell abandoned player items
Reply With Quote #3

Quote:
Originally Posted by psychonic View Post
I haven't tried it, but I'm guessing that this can be accomplished by setting the m_iConnectionState value on the PlayerResource object for that player to DOTA_CONNECTION_STATE_ABANDONED (4).
I thought exactly the same ))). But I didn't know how to set Connection State to abandoned (i.e. 4).
Now I know.

Thank you again )))
I'll try.
CyberStars is offline
CyberStars
Senior Member
Join Date: May 2013
Old 04-17-2014 , 09:18   Re: [Dota 2] Sell abandoned player items
Reply With Quote #4

Quote:
Originally Posted by psychonic View Post
I haven't tried it, but I'm guessing that this can be accomplished by setting the m_iConnectionState value on the PlayerResource object for that player to DOTA_CONNECTION_STATE_ABANDONED (4).
Works
CyberStars is offline
stringbaba
Junior Member
Join Date: Jul 2013
Location: Tashkent
Old 03-23-2016 , 16:27   Re: [Dota 2] Sell abandoned player items
Reply With Quote #5

Quote:
Originally Posted by CyberStars View Post
I thought exactly the same ))). But I didn't know how to set Connection State to abandoned (i.e. 4).
Now I know.

Thank you again )))
I'll try.
And how? Can you explain?
Like this?:

Code:
SetEntPropEnt(resource, Prop_Send, "m_iConnectionState", 4, iPlayerID )
stringbaba is offline
ojoseph
New Member
Join Date: Mar 2016
Old 03-24-2016 , 09:18   Re: [Solved][Dota 2] Sell abandoned player items
Reply With Quote #6

it can be done by changing m_iConnectionState value to DOTA_CONNECTION_STATE_ABANDONED (4)
ojoseph is offline
stringbaba
Junior Member
Join Date: Jul 2013
Location: Tashkent
Old 03-25-2016 , 16:16   Re: [Solved][Dota 2] Sell abandoned player items
Reply With Quote #7

how? can you write this in code?
stringbaba is offline
Reply



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

Forum Jump


All times are GMT -4. The time now is 08:04.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode