diff --git a/infolan.sp b/infolan.sp index 958298a..9e7b0ea 100644 --- a/infolan.sp +++ b/infolan.sp @@ -26,13 +26,13 @@ public Plugin myinfo = description = "Plugin communiquant avec le bot discord \ https://github.com/InfoLAN/cs-picker afin d’automatiser \ l’InfoLan 2021", - version = "1.6.0b", + version = "1.6.1b", url = "https://git.gnous.eu/Rick/infolanBot" }; public void OnPluginStart() { - HookEvent("player_activate", SetTeamPlayer); + HookEvent("player_connect_full", SetTeamPlayer); HookEvent("cs_win_panel_round", UpdateScoreBoard); HookEvent("cs_win_panel_match", FinCarte); @@ -118,8 +118,6 @@ public void SetTeamPlayer(Event event, const char[] name, bool dontBroadcast) KickClient(client, "Vous n’êtes pas autorisé à suivre / jouer \ sur ce serveur"); } - else - CS_RespawnPlayer(client); } } }