#include <sourcemod> #include <sdktools> public void OnPluginStart() { HookEvent("cs_win_panel_match", Event_End); } public Action OnLogAction(Handle source, Identity ident,int client,int target, const char[] message) { if( StrContains( message , "changed map to" ) != -1) { // On map change with sm_map command } } public void Event_End(Event event, const char[] name, bool dontBroadcast) { // On map end }