Kick au début du vote de carte

This commit is contained in:
rick 2021-05-29 01:44:47 +02:00
parent 26e1d1dd8b
commit ad205b7f58
Signed by: Rick
GPG key ID: 2B593F087240EE99

View file

@ -24,7 +24,7 @@ public Plugin myinfo =
description = "Bot communiquant avec le bot discord \ description = "Bot communiquant avec le bot discord \
https://github.com/Lunki51/cs-picker afin dautomatiser \ https://github.com/Lunki51/cs-picker afin dautomatiser \
lInfoLan 2021", lInfoLan 2021",
version = "1.5.1", version = "1.5.2",
url = "https://git.gnous.eu/Rick/infolanBot" url = "https://git.gnous.eu/Rick/infolanBot"
}; };
@ -133,15 +133,17 @@ public Action SetTeam(int args)
/* envoie information plugin */ /* envoie information plugin */
public void OnMapEnd() public void OnMapVoteStarted()
{ {
// TODO kick tout le monde // TODO kick tout le monde
PrintToServer("======= FIN ======"); PrintToServer("======= FIN ======");
for (int i = 0; i < nbAllId; i++) for (int i = 0; i < nbAllId; i++)
{ {
PrintToServer("On kick %d.", allId[i]); PrintToServer("On kick %d.", allId[i]);
if (IsClientInGame(allId[i])) if (IsClientInGame(allId[i])) {
PrintToServer("NUUUUUUUL");
KickClient(allId[i], "Le match est fini."); KickClient(allId[i], "Le match est fini.");
}
allId[i] = 0; allId[i] = 0;
} }
ServeurLibre(); ServeurLibre();