Envoie json à la fin du match

This commit is contained in:
rick 2021-05-29 03:27:38 +02:00
parent 9c2d59eeda
commit 7badf38737
Signed by: Rick
GPG key ID: 2B593F087240EE99

View file

@ -32,6 +32,7 @@ public void OnPluginStart()
{
HookEvent("player_activate", SetTeamPlayer);
HookEvent("cs_win_panel_round", UpdateScoreBoard);
HookEvent("cs_win_panel_match", FinCarte);
//HookEvent("cs_match_end_restart", TestRestart, EventHookMode_Pre);
RegServerCmd("!team", SetTeam);
@ -43,6 +44,11 @@ public void OnPluginStart()
PrintToServer("Hello world!");
}
public void FinCarte(Event event, const char[] name, bool dontBroadcast)
{
ServeurLibre();
}
public void TestRestart(Event event, const char[] name, bool dontBroadcast)
{
// TODO kick tout le monde