Permalink
Browse files

Fixed game not starting in some cases

  • Loading branch information...
raheem-cs committed Oct 9, 2018
1 parent 80d591b commit 2e101db6b2b4d96e83d59bc3a1ad95c981e375e3
Showing with 7 additions and 0 deletions.
  1. +7 −0 addons/amxmodx/scripting/ze_core.sma
@@ -107,6 +107,7 @@ public plugin_init()
RegisterHookChain(RG_CBasePlayer_Killed, "Fw_PlayerKilled_Post", 1)
RegisterHookChain(RG_RoundEnd, "Event_RoundEnd_Pre", 0)
RegisterHookChain(RG_CBasePlayer_ResetMaxSpeed, "Fw_RestMaxSpeed_Post", 1)
RegisterHookChain(RG_HandleMenu_ChooseTeam, "Fw_HandleMenu_ChooseTeam_Post", 1)

// Events
register_event("HLTV", "New_Round", "a", "1=0", "2=0")
@@ -680,6 +681,12 @@ public client_putinserver(id)
set_task(1.0, "Check_AllPlayersNumber", _, _, _, "b")
}

public Fw_HandleMenu_ChooseTeam_Post(id, MenuChooseTeam:iSlot)
{
// Add Delay and Check Conditions To start the Game (Delay needed)
set_task(1.0, "Check_AllPlayersNumber", _, _, _, "b")
}

public Check_AllPlayersNumber(TaskID)
{
if (g_bGameStarted)

0 comments on commit 2e101db

Please sign in to comment.