Kick au début du vote de carte
This commit is contained in:
parent
26e1d1dd8b
commit
ad205b7f58
1 changed files with 5 additions and 3 deletions
|
@ -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 d’automatiser \
|
https://github.com/Lunki51/cs-picker afin d’automatiser \
|
||||||
l’InfoLan 2021",
|
l’InfoLan 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();
|
||||||
|
|
Loading…
Reference in a new issue