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

Detect map end freeze time


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sebxx4
Senior Member
Join Date: Feb 2013
Old 10-10-2022 , 05:59   Detect map end freeze time
Reply With Quote #1

When a few seconds left to map change, score board is shown to players and players are freezed. How can I detect this moment in the code?
sebxx4 is offline
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 10-10-2022 , 10:11   Re: Detect map end freeze time
Reply With Quote #2

i dont know, maybe send the code?
__________________
a simple act of caring creates an endless ripple.
Nutu_ is offline
sebxx4
Senior Member
Join Date: Feb 2013
Old 10-10-2022 , 11:08   Re: Detect map end freeze time
Reply With Quote #3

I don't have the code. I need a function or a way to detect it.
sebxx4 is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 10-10-2022 , 23:32   Re: Detect map end freeze time
Reply With Quote #4

This is called Intermission.

PHP Code:
register_event("30""Event_Intermisson""a"
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
sebxx4
Senior Member
Join Date: Feb 2013
Old 10-11-2022 , 00:46   Re: Detect map end freeze time
Reply With Quote #5

Well, it doesn't work as I expected. It only detect "natural" mapchange (eg. after vote). But when admin changes map, it don't detects it.

PHP Code:
#include <amxmodx>

public plugin_init() 
{
    
register_plugin("test""1.0""Sebxx");
    
    
register_event("30""Event_Intermisson""a"
}

public 
Event_Intermisson()
{
    
log_amx("MapChange!");


Last edited by sebxx4; 10-11-2022 at 06:07.
sebxx4 is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 10-12-2022 , 00:48   Re: Detect map end freeze time
Reply With Quote #6

How does the admin changes the map? Which console command?
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
sebxx4
Senior Member
Join Date: Feb 2013
Old 10-12-2022 , 02:27   Re: Detect map end freeze time
Reply With Quote #7

Don't know exactly, I think it's from amxmodmenu, but does it really matter? However it does, it will always executes mp_chattime before mapchange. Can I detect this time started?
sebxx4 is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 10-12-2022 , 08:12   Re: Detect map end freeze time
Reply With Quote #8

If you use changelevel command, or map command on console, it would not trigger the intermission. But amx_map on console does trigger the intermission. Thats why it matters.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
sebxx4
Senior Member
Join Date: Feb 2013
Old 10-12-2022 , 08:49   Re: Detect map end freeze time
Reply With Quote #9

Okay. But I can't always control that how Admin changes map. That's why I'm looking for something that can't be affected by user (admin).
Maybe Intermission + changelevel detection + amx_map detection? I mean this 3 events calls the same function.

Last edited by sebxx4; 10-12-2022 at 10:45.
sebxx4 is offline
sebxx4
Senior Member
Join Date: Feb 2013
Old 10-14-2022 , 01:56   Re: Detect map end freeze time
Reply With Quote #10

So?
sebxx4 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 10:14.


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