Raised This Month: $404 Target: $400
 101% 

Hook map change before round end


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TheRedShoko
New Member
Join Date: Apr 2017
Location: Бур
Old 10-12-2018 , 14:26   Hook map change before round end
Reply With Quote #1

I've used the text messages #Terrorists_Win and #CTs_Win to hook terrorists/CTs win. This works fine but after debugging I found out that on map change or server restart (rcon restart) it's called round end with a winning team. How can I check if the round end has happened before map change? I've tried with plugin_end but seems like it's called after that and doesn't work for me.
TheRedShoko is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-13-2018 , 02:30   Re: Hook map change before round end
Reply With Quote #2

Maybe try hooking intermission (which is when the scoreboard comes up and stays up until the map changes which is usually mp_chattime)?
__________________

Last edited by fysiks; 10-13-2018 at 02:31.
fysiks is offline
TheRedShoko
New Member
Join Date: Apr 2017
Location: Бур
Old 10-13-2018 , 02:38   Re: Hook map change before round end
Reply With Quote #3

Intermission is not called when I restart the server using rcon or change the map by amx_map. I need to hook that cases too.
TheRedShoko is offline
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

Forum Jump


All times are GMT -4. The time now is 17:06.


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