diff --git a/event_notification/scripting/event_notifier.sp b/event_notification/scripting/event_notifier.sp index fc591ade..13337ec6 100644 --- a/event_notification/scripting/event_notifier.sp +++ b/event_notification/scripting/event_notifier.sp @@ -19,7 +19,10 @@ public Plugin myinfo = public void OnPluginStart() { - Database.Connect(SQL_OnDatabaseConnect, "Event_notifier"); + if (!g_hDatabase) + { + Database.Connect(SQL_OnDatabaseConnect, "Event_notifier"); + } RegConsoleCmd("sm_event", Command_Event_notifier, "Display infos about the next event"); RegConsoleCmd("sm_events", Command_Event_notifier, "Display infos about the next event"); }