diff --git a/infolan.sp b/infolan.sp index 299d6ed..f549012 100644 --- a/infolan.sp +++ b/infolan.sp @@ -32,6 +32,7 @@ public void OnPluginStart() { HookEvent("player_activate", SetTeamPlayer); HookEvent("cs_win_panel_round", UpdateScoreBoard); + HookEvent("cs_win_panel_match", FinCarte); //HookEvent("cs_match_end_restart", TestRestart, EventHookMode_Pre); RegServerCmd("!team", SetTeam); @@ -43,6 +44,11 @@ public void OnPluginStart() PrintToServer("Hello world!"); } +public void FinCarte(Event event, const char[] name, bool dontBroadcast) +{ + ServeurLibre(); +} + public void TestRestart(Event event, const char[] name, bool dontBroadcast) { // TODO kick tout le monde