View Single Post
Hunter6272
Senior Member
Join Date: Jun 2015
Location: Don't know
Old 09-20-2018 , 12:28   Re: [CSGO] Is it possible to unload a plugin before mapchange?
Reply With Quote #10

Quote:
Originally Posted by Franc1sco View Post
Here you go

PHP Code:
#include <sourcemod>
#include <sdktools>

public void OnPluginStart()
{
    
HookEvent("cs_win_panel_match"Event_End);
}

public 
Action OnLogAction(Handle sourceIdentity ident,int client,int target, const char[] message)
{
    if( 
StrContainsmessage "changed map to" ) != -1)
    {
        
// On map change with sm_map command
    
}
}

public 
void Event_End(Event event, const char[] namebool dontBroadcast)
{
    
// On map end

This is not working on rtv (instant mapchange) and /rcon map (rcon map change through console or any other way)
__________________
Patience is the key to success.
Hunter6272 is offline