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);