mirror of
https://github.com/Sithranduil/LimitBanDuration.git
synced 2025-07-24 02:28:00 +02:00
Use sourcebanspp include instead of sourcebans
This commit is contained in:
@@ -13,10 +13,10 @@
|
|||||||
#include <sourcemod>
|
#include <sourcemod>
|
||||||
#include <sm_limit_ban_duration>
|
#include <sm_limit_ban_duration>
|
||||||
#undef REQUIRE_PLUGIN
|
#undef REQUIRE_PLUGIN
|
||||||
#tryinclude <sourcebans>
|
#tryinclude <sourcebanspp>
|
||||||
|
|
||||||
#if !defined _sourcebans_included
|
#if !defined _sourcebanspp_included
|
||||||
native SBBanPlayer(client, target, time, String:reason[]);
|
native SBPP_BanPlayer(client, target, time, String:reason[]);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define PLUGIN_VERSION "1.0.2"
|
#define PLUGIN_VERSION "1.0.2"
|
||||||
@@ -331,7 +331,7 @@ Bool_IssueBan(client, index, const String:buffer[])
|
|||||||
_iLength += BreakString(buffer[_iLength], _sBuffer, sizeof(_sBuffer));
|
_iLength += BreakString(buffer[_iLength], _sBuffer, sizeof(_sBuffer));
|
||||||
strcopy(_sBuffer, sizeof(_sBuffer), buffer[_iLength]);
|
strcopy(_sBuffer, sizeof(_sBuffer), buffer[_iLength]);
|
||||||
if(g_bSourceBans)
|
if(g_bSourceBans)
|
||||||
SourceBans_BanPlayer(client, _iTarget, g_iDurationLength[index], _sBuffer);
|
SBPP_BanPlayer(client, _iTarget, g_iDurationLength[index], _sBuffer);
|
||||||
else
|
else
|
||||||
BanClient(_iTarget, g_iDurationLength[index], BANFLAG_AUTO, _sBuffer);
|
BanClient(_iTarget, g_iDurationLength[index], BANFLAG_AUTO, _sBuffer);
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user