Changement event pour kick

This commit is contained in:
rick 2021-05-29 02:02:50 +02:00
parent b3cd6f9ee5
commit 48d371d080
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.2", version = "1.5.4",
url = "https://git.gnous.eu/Rick/infolanBot" url = "https://git.gnous.eu/Rick/infolanBot"
}; };
@ -32,7 +32,7 @@ public void OnPluginStart()
{ {
HookEvent("player_activate", SetTeamPlayer); HookEvent("player_activate", SetTeamPlayer);
HookEvent("cs_win_panel_round", UpdateScoreBoard); HookEvent("cs_win_panel_round", UpdateScoreBoard);
HookEvent("cs_match_end_restart", TestRestart); HookEvent("cs_pre_restart", TestRestart, EventHookMode_Pre);
RegServerCmd("!team", SetTeam); RegServerCmd("!team", SetTeam);
/* pour le debug /* pour le debug