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

[CS:GO] Round End Bug


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GORDEX
New Member
Join Date: Feb 2021
Old 02-24-2021 , 08:31   [CS:GO] Round End Bug
Reply With Quote #1

I have a bug in my server.

Last edited by GORDEX; 02-25-2021 at 03:17.
GORDEX is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-24-2021 , 09:54   Re: [CS:GO] Remove message
Reply With Quote #2

?
Block whole event...
__________________
Do not Private Message @me

Last edited by Bacardi; 02-24-2021 at 13:16.
Bacardi is offline
Teamkiller324
Senior Member
Join Date: Feb 2014
Location: Earth
Old 02-24-2021 , 13:00   Re: [CS:GO] Remove message
Reply With Quote #3

Quote:
Originally Posted by Bacardi View Post
?
PHP Code:
public void OnPluginStart()
{
    
HookEvent("cs_win_panel_round"cs_win_panel_roundEventHookMode_Pre);
}

public 
Action cs_win_panel_round(Event event, const char[] namebool dontBroadcast)
{
    
    return 
Plugin_Handled;

if return Plugin_Handled doesn't work, use event.BroadcastDisabled = true (new way from SetEventBroadcastEvent(event, true)
__________________
Teamkiller324 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 02-24-2021 , 13:15   Re: [CS:GO] Remove message
Reply With Quote #4

That was actually better way to do it.
PHP Code:
public void OnPluginStart()
{
    
HookEvent("cs_win_panel_round"cs_win_panel_roundEventHookMode_Pre);
}

public 
Action cs_win_panel_round(Event event, const char[] namebool dontBroadcast)
{
    
event.BroadcastDisabled true;
    return 
Plugin_Continue;

__________________
Do not Private Message @me
Bacardi is offline
azalty
AlliedModders Donor
Join Date: Feb 2020
Location: France
Old 03-08-2021 , 10:11   Re: [CS:GO] Remove message
Reply With Quote #5

Quote:
Originally Posted by Bacardi View Post
That was actually better way to do it.
PHP Code:
public void OnPluginStart()
{
    
HookEvent("cs_win_panel_round"cs_win_panel_roundEventHookMode_Pre);
}

public 
Action cs_win_panel_round(Event event, const char[] namebool dontBroadcast)
{
    
event.BroadcastDisabled true;
    return 
Plugin_Continue;

Does this fix the bug where the map change doesn't trigger? Seems to happen only to one of my servers and I found no real explaination to it since it doesn't happen often (using mapchooser & rtv)
Sad cuz I wanted to keep the end panel, and I don't feel like writing a workaround, but I prefer fixing the actual bug.
__________________
GitHub | Discord: @azalty | Steam

Last edited by azalty; 03-08-2021 at 10:12.
azalty 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:03.


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