OCD Fix.
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
#include <connect>
|
||||
|
||||
#undef REQUIRE_PLUGIN
|
||||
#include <AfkManager>
|
||||
#include <AFKManager>
|
||||
#include <GFLClanru>
|
||||
#include <entWatch>
|
||||
#define REQUIRE_PLUGIN
|
||||
@@ -11,7 +11,7 @@
|
||||
#pragma semicolon 1
|
||||
#pragma newdecls required
|
||||
|
||||
bool g_Plugin_AfkManager;
|
||||
bool g_Plugin_AFKManager;
|
||||
bool g_Plugin_GFLClanru;
|
||||
bool g_Plugin_entWatch;
|
||||
|
||||
@@ -38,12 +38,12 @@ public void OnPluginStart()
|
||||
|
||||
public void OnAllPluginsLoaded()
|
||||
{
|
||||
g_Plugin_AfkManager = LibraryExists("AfkManager");
|
||||
g_Plugin_AFKManager = LibraryExists("AFKManager");
|
||||
g_Plugin_GFLClanru = LibraryExists("GFLClanru");
|
||||
g_Plugin_entWatch = LibraryExists("entWatch");
|
||||
|
||||
LogMessage("ReservedSlots capabilities:\nAfkManager: %s\nGFLClanru: %s\nentWatch: %s",
|
||||
(g_Plugin_AfkManager ? "loaded" : "not loaded"),
|
||||
LogMessage("ReservedSlots capabilities:\nAFKManager: %s\nGFLClanru: %s\nentWatch: %s",
|
||||
(g_Plugin_AFKManager ? "loaded" : "not loaded"),
|
||||
(g_Plugin_GFLClanru ? "loaded" : "not loaded"),
|
||||
(g_Plugin_entWatch ? "loaded" : "not loaded"));
|
||||
}
|
||||
@@ -149,7 +149,7 @@ stock bool KickValidClient(const char[] sName, const char[] sSteam32ID, AdminId
|
||||
int ConnectionTime = RoundToNearest(GetClientTime(client));
|
||||
|
||||
int IdleTime;
|
||||
if(g_Plugin_AfkManager)
|
||||
if(g_Plugin_AFKManager)
|
||||
IdleTime = GetClientIdleTime(client);
|
||||
else // Fall back to highest connection time.
|
||||
IdleTime = ConnectionTime;
|
||||
|
||||
@@ -1 +1 @@
|
||||
../../../AfkManager/scripting/include/AfkManager.inc
|
||||
../../../AFKManager/scripting/include/AFKManager.inc
|
||||
Reference in New Issue
Block a user