From e812acaba2c3a434872b4c333d4c0fa2b31cc70d Mon Sep 17 00:00:00 2001 From: rick Date: Thu, 20 May 2021 01:26:13 +0200 Subject: [PATCH] =?UTF-8?q?ServeurLibre=20uniquement=20=C3=A0=20la=20toute?= =?UTF-8?q?=20fin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test.sp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/test.sp b/test.sp index 7c1eee7..83eeff3 100644 --- a/test.sp +++ b/test.sp @@ -6,7 +6,7 @@ #define MY_SOCKET_IP "localhost" //#define MY_SOCKET_IP "127.0.0.1" -#define MY_SOCKET_PORT 3500 +#define MY_SOCKET_PORT 300 #define STEAMID_LENGTH 128 char teamCT[6][150]; @@ -28,7 +28,7 @@ public Plugin myinfo = public void OnPluginStart() { - HookEvent("cs_win_panel_match", ServeurLibre); + //HookEvent("cs_win_panel_match", ServeurLibre); HookEvent("player_activate", SetTeamPlayer); HookEvent("cs_win_panel_round", UpdateScoreBoard); @@ -124,11 +124,13 @@ public Action SetTeam(int args) public void OnMapEnd() { + // TODO kick tout le monde PrintToServer("======= FIN ======"); + ServeurLibre(); /* kick tout le monde */ } -public void ServeurLibre(Event event, const char[] name, bool dontBroadcast) +public void ServeurLibre() { // requete post pour match fini et serveur libre Handle socket = SocketCreate(SOCKET_TCP, OnSocketError);