#include <amxmodx> #include <orpheu> #include <orpheu_stocks> new g_pGameRules; public plugin_precache() { OrpheuRegisterHook( OrpheuGetFunction( "InstallGameRules" ), "On_InstallGameRules", OrpheuHookPost ); } public plugin_init() { OrpheuRegisterHookFromObject( g_pGameRules, "GoToIntermission", "CGameRules", "On_GoToIntermission" ); } public On_InstallGameRules() { g_pGameRules = OrpheuGetReturn(); } public OrpheuHookReturn: On_GoToIntermission() { /* Change level / set short task to change level here / change amx_nextmap */ }
#include <amxmodx> #include <reapi> public plugin_init() { RegisterHookChain( RG_CSGameRules_GoToIntermission, "On_GoToIntermission", true ); } public On_GoToIntermission() { /* Change level / set short task to change level here / change amx_nextmap */ }