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