Add AutoExecConfig native call to basevotes.sp (#534)

Basevotes convars are missing from sourcemod.cfg and there is no config file for this, so I added AutoExecConfig.
This commit is contained in:
Luki 2016-10-14 22:16:45 +02:00 committed by Kyle Sanderson
parent 371e9f2f93
commit e74b5807a9

View File

@ -111,6 +111,8 @@ public void OnPluginStart()
g_Cvar_Limits[1] = CreateConVar("sm_vote_kick", "0.60", "percent required for successful kick vote.", 0, true, 0.05, true, 1.0); g_Cvar_Limits[1] = CreateConVar("sm_vote_kick", "0.60", "percent required for successful kick vote.", 0, true, 0.05, true, 1.0);
g_Cvar_Limits[2] = CreateConVar("sm_vote_ban", "0.60", "percent required for successful ban vote.", 0, true, 0.05, true, 1.0); g_Cvar_Limits[2] = CreateConVar("sm_vote_ban", "0.60", "percent required for successful ban vote.", 0, true, 0.05, true, 1.0);
AutoExecConfig(true, "basevotes");
/* Account for late loading */ /* Account for late loading */
TopMenu topmenu; TopMenu topmenu;
if (LibraryExists("adminmenu") && ((topmenu = GetAdminTopMenu()) != null)) if (LibraryExists("adminmenu") && ((topmenu = GetAdminTopMenu()) != null))