diff --git a/RaceTimer/scripting/unloze_racetimer_redux.sp b/RaceTimer/scripting/unloze_racetimer_redux.sp index 5e19d31e..f47ce1e3 100644 --- a/RaceTimer/scripting/unloze_racetimer_redux.sp +++ b/RaceTimer/scripting/unloze_racetimer_redux.sp @@ -153,6 +153,19 @@ public void OnMapStart() { if (!g_dDatabase) Database.Connect(SQL_OnDatabaseConnect, "racetimercss"); + else + { + static Handle hHostName; + if((hHostName = FindConVar("hostname")) == INVALID_HANDLE) + return; + char line[g_dLength]; + GetConVarString(hHostName, line, sizeof(line)); + if (StrContains(line, "EVENT", false) > -1) + g_bEventBool = true; + g_bDisplaySpecial = unloze_gBSpecialMapDisplay(); + GetCurrentMap(g_cMapname, sizeof(g_cMapname)); + startTimer(); + } } //----------------------------------------------------------------------------------------------------