From ad205b7f58b7dc6dad913799e29a56234d29de70 Mon Sep 17 00:00:00 2001 From: rick Date: Sat, 29 May 2021 01:44:47 +0200 Subject: [PATCH] =?UTF-8?q?Kick=20au=20d=C3=A9but=20du=20vote=20de=20carte?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- infolan.sp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/infolan.sp b/infolan.sp index 71e06a8..7ef0e3b 100644 --- a/infolan.sp +++ b/infolan.sp @@ -24,7 +24,7 @@ public Plugin myinfo = description = "Bot communiquant avec le bot discord \ https://github.com/Lunki51/cs-picker afin d’automatiser \ l’InfoLan 2021", - version = "1.5.1", + version = "1.5.2", url = "https://git.gnous.eu/Rick/infolanBot" }; @@ -133,15 +133,17 @@ public Action SetTeam(int args) /* envoie information plugin */ -public void OnMapEnd() +public void OnMapVoteStarted() { // TODO kick tout le monde PrintToServer("======= FIN ======"); for (int i = 0; i < nbAllId; i++) { PrintToServer("On kick %d.", allId[i]); - if (IsClientInGame(allId[i])) + if (IsClientInGame(allId[i])) { + PrintToServer("NUUUUUUUL"); KickClient(allId[i], "Le match est fini."); + } allId[i] = 0; } ServeurLibre();