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

Detect map end freeze time


Post New Thread Reply   
 
Thread Tools Display Modes
sebxx4
Senior Member
Join Date: Feb 2013
Old 10-19-2022 , 06:21   Re: Detect map end freeze time
Reply With Quote #21

Quote:
Originally Posted by sebxx4 View Post
Well, this solution with non-threaded queries in plugin_end() seems to be good
But I see a problem. client_disconnected() is executed before plugin_end(). And again, how to detect if client simply leave the game or if map is changing?
sebxx4 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-19-2022 , 23:02   Re: Detect map end freeze time
Reply With Quote #22

That's a good point. Maybe look at other plugins that save player data to SQL and see how they do it?
__________________
fysiks is offline
sebxx4
Senior Member
Join Date: Feb 2013
Old 10-20-2022 , 02:28   Re: Detect map end freeze time
Reply With Quote #23

Well, I dealt with it by just saving all data when player disconnects and moved my database to CS1.6 hosting so there is almost no latency. I noticed many of plugins deal with it in that way.

But this is the first thing I needed. I have a second plugin which gives medals to 3 best players at the end of the map. It uses intermissions and it works fine while map changes itself, but doesn't work when admin change map. So again, I need to detect mapchange...
sebxx4 is offline
DJEarthQuake
Veteran Member
Join Date: Jan 2014
Location: Astral planes
Old 10-20-2022 , 03:51   Re: Detect map end freeze time
Reply With Quote #24

Try forward client_command(id).
e.g.
__________________
DJEarthQuake is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-20-2022 , 22:22   Re: Detect map end freeze time
Reply With Quote #25

Quote:
Originally Posted by sebxx4 View Post
I have a second plugin which gives medals to 3 best players at the end of the map. It uses intermissions and it works fine while map changes itself, but doesn't work when admin change map. So again, I need to detect mapchange...
Well, intermission is really the only option. If that map gets changed in a way that doesn't trigger it I'm not really sure what you can do except modify the code that causes the map to change to call your code.

I would like to think that we would have seen some other responses to your thread if there were any better ways.
__________________
fysiks 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 05:17.


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