AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Hook map change before round end (https://forums.alliedmods.net/showthread.php?t=311304)

TheRedShoko 10-12-2018 14:26

Hook map change before round end
 
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.

fysiks 10-13-2018 02:30

Re: Hook map change before round end
 
Maybe try hooking intermission (which is when the scoreboard comes up and stays up until the map changes which is usually mp_chattime)?

TheRedShoko 10-13-2018 02:38

Re: Hook map change before round end
 
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.


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

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