revert to 1 day ago

This commit is contained in:
shavitush 2016-06-18 12:20:31 +03:00
parent 20ec40512b
commit 974d6c8b85
3 changed files with 13 additions and 22 deletions

View File

@ -157,6 +157,9 @@ public void OnPluginStart()
SetFailState("This plugin was meant to be used in CS:S and CS:GO *only*.");
}
// database connections
SQL_DBConnect();
// hooks
HookEvent("player_jump", Player_Jump);
HookEvent("player_death", Player_Death);
@ -269,12 +272,6 @@ public void CategoryHandler(Handle topmenu, TopMenuAction action, TopMenuObject
}
}
public void OnConfigsExecuted()
{
// database connections
SQL_DBConnect();
}
public void OnMapStart()
{
// cvar forcing

View File

@ -95,6 +95,13 @@ public APLRes AskPluginLoad2(Handle myself, bool late, char[] error, int err_max
return APLRes_Success;
}
public void OnAllPluginsLoaded()
{
// database connections
Shavit_GetDB(gH_SQL);
SetSQLInfo();
}
public void OnPluginStart()
{
// debug because I was making this all by myself and no one wanted to help me *sniff*
@ -225,16 +232,6 @@ public void OnLibraryRemoved(const char[] name)
}
}
public void OnAllPluginsLoaded()
{
Shavit_GetDB(gH_SQL);
}
public void OnConfigsExecuted()
{
SetSQLInfo();
}
public void OnMapStart()
{
GetCurrentMap(gS_Map, 128);

View File

@ -136,7 +136,9 @@ public APLRes AskPluginLoad2(Handle myself, bool late, char[] error, int err_max
public void OnAllPluginsLoaded()
{
// connection to database
Shavit_GetDB(gH_SQL);
SetSQLInfo();
if(gB_Late)
{
@ -164,7 +166,7 @@ public void OnPluginStart()
gCV_TeleportToStart = CreateConVar("shavit_zones_teleporttostart", "1", "Teleport players to the start zone on timer restart?\n0 - Disabled\n1 - Enabled", 0, true, 0.5, true, 5.0);
AutoExecConfig();
// draw
// start drawing mapzones here
CreateTimer(gCV_Interval.FloatValue, Timer_DrawEverything, INVALID_HANDLE, TIMER_REPEAT);
@ -326,11 +328,6 @@ public void SetupColors()
gI_Colors[Zone_NoVelLimit] = {247, 3, 255, 50};
}
public void OnConfigsExecuted()
{
SetSQLInfo();
}
public void OnMapStart()
{
GetCurrentMap(gS_Map, 128);