From 95fc36f957e3d777e31b4b28aeaf99736094d475 Mon Sep 17 00:00:00 2001 From: Riwan Mattei Date: Mon, 15 Apr 2019 23:42:54 +0200 Subject: [PATCH] Use sourcebanspp include instead of sourcebans --- scripting/sm_limit_ban_duration.sp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripting/sm_limit_ban_duration.sp b/scripting/sm_limit_ban_duration.sp index ac068a8..cfbd890 100644 --- a/scripting/sm_limit_ban_duration.sp +++ b/scripting/sm_limit_ban_duration.sp @@ -13,10 +13,10 @@ #include #include #undef REQUIRE_PLUGIN -#tryinclude +#tryinclude -#if !defined _sourcebans_included - native SBBanPlayer(client, target, time, String:reason[]); +#if !defined _sourcebanspp_included + native SBPP_BanPlayer(client, target, time, String:reason[]); #endif #define PLUGIN_VERSION "1.0.2" @@ -331,7 +331,7 @@ Bool_IssueBan(client, index, const String:buffer[]) _iLength += BreakString(buffer[_iLength], _sBuffer, sizeof(_sBuffer)); strcopy(_sBuffer, sizeof(_sBuffer), buffer[_iLength]); if(g_bSourceBans) - SourceBans_BanPlayer(client, _iTarget, g_iDurationLength[index], _sBuffer); + SBPP_BanPlayer(client, _iTarget, g_iDurationLength[index], _sBuffer); else BanClient(_iTarget, g_iDurationLength[index], BANFLAG_AUTO, _sBuffer); return true;