Raised This Month: $49 Target: $400
 12% 

Show bans


Post New Thread Reply   
 
Thread Tools Display Modes
diamond_jack
Junior Member
Join Date: Jul 2014
Old 10-16-2014 , 00:33   Re: Show SMAC BAN to non admins
Reply With Quote #11

I added "smac_admin_notices" "" on admin_overrides.cfg but didn't work on my server not sure if it's a bug, I was there when the guy connected on my server, and banned after 2mins, I didn't see any notices in chat that he was banned I only found out when I checked the log that he was banned for using aimbot.

Please add an option in smac.cfg to show in chat the banned player, would be nice if there is a sound.

Many thanks.

Quote:
Originally Posted by Ade View Post
why u want that this will allow them to test their hax with alternate accounts
If the player was banned or kicked he/she already know it has anti-cheat so he/she might come back again to try another acct. Anyways, fair players might want to play on the server if they knew that it has anti-cheat plugin.

Last edited by diamond_jack; 10-16-2014 at 00:38.
diamond_jack is offline
Ade
I love purple
Join Date: May 2010
Old 10-16-2014 , 02:52   Re: Show SMAC BAN to non admins
Reply With Quote #12

the message tho matters, if it's a multihack, and the time of detection, cus mb some kick/ban after multiple detections; and once they find the proper combo of undetected shit, the can come play with their main... if they get kicked blindly, they will have to just try a whole diff hack/multihack each time or go by trial and error; information is power why would u give it to hackers

for fair players, there's a message like 'smac is running on this srv' every time they join, u can enable/disable that and it will be enough
__________________
Ade is offline
diamond_jack
Junior Member
Join Date: Jul 2014
Old 10-18-2014 , 15:27   Re: Show SMAC BAN to non admins
Reply With Quote #13

it's fun thou when you see cheaters get banned (as a fair player), and besides you guys should not worry anymore about giving information since its free open source plugins, the information is already given to the public, any one can download it, these cheat developers knows how to google stuffs that's how they program cheats.

If you mentioned SMAC and other servers did this, cheaters will start to wonder what the hell is SMAC, they can just google it, smac+plugins+anti-cheat+free and like I said it's a free plugins anyone can download it and try their cheats their server, i bet someone can even edit the source and not to upload ban list to database since it's an open source.

Last edited by diamond_jack; 10-18-2014 at 15:30.
diamond_jack is offline
nomy
Senior Member
Join Date: Dec 2009
Location: United Kingdom
Old 10-18-2014 , 23:03   Re: Show SMAC BAN to non admins
Reply With Quote #14

Quote:
Originally Posted by Sdg View Post
Yes I know, but many others have fixed ip.

Maybe I just need to edit here?

smac.sp

Code:
// native SMAC_Ban(client, const String:reason[], any:...);
public Native_Ban(Handle:plugin, numParams)
{
    decl String:sVersion[16], String:sReason[256];
    new client = GetNativeCell(1);
    new duration = GetConVarInt(g_hCvarBanDuration);
    
    GetPluginInfo(plugin, PlInfo_Version, sVersion, sizeof(sVersion));
    FormatNativeString(0, 2, 3, sizeof(sReason), _, sReason);
    Format(sReason, sizeof(sReason), "SMAC %s: %s", sVersion, sReason);
    
    if (SOURCEBANS_AVAILABLE())
    {
        SBBanPlayer(0, client, duration, sReason);
    }
    else
    {
        decl String:sKickMsg[256];
        FormatEx(sKickMsg, sizeof(sKickMsg), "%T", "SMAC_Banned", client);
        BanClient(client, duration, BANFLAG_AUTO, sReason, sKickMsg, "SMAC");
    }
    
    KickClient(client, sReason);
}
PHP Code:
// native SMAC_Ban(client, const String:reason[], any:...);
public Native_Ban(Handle:pluginnumParams)
{
    
decl String:sVersion[16], String:sReason[256];
    new 
client GetNativeCell(1);
    new 
duration GetConVarInt(g_hCvarBanDuration);
    
    
GetPluginInfo(pluginPlInfo_VersionsVersionsizeof(sVersion));
    
FormatNativeString(023sizeof(sReason), _sReason);
    
Format(sReasonsizeof(sReason), "SMAC %s: %s"sVersionsReason);
    
    if (
SOURCEBANS_AVAILABLE())
    {
        
SBBanPlayer(0clientdurationsReason);
        
ServerCommand("sm_banip #%d %s \"%s\""GetClientUserId(client), durationsReason);
    }
    else
    {
        
decl String:sKickMsg[256];
        
FormatEx(sKickMsgsizeof(sKickMsg), "%T""SMAC_Banned"client);
        
BanClient(clientdurationBANFLAG_AUTOsReasonsKickMsg"SMAC");
        
ServerCommand("sm_banip #%d %s \"%s\""GetClientUserId(client), durationsReason);
    }
    
    
KickClient(clientsReason);

Try this.
nomy is offline
Sdg
BANNED
Join Date: Mar 2014
Old 10-20-2014 , 13:06   Re: Show SMAC BAN to non admins
Reply With Quote #15

With
Code:
"smac_admin_notices" ""
The overrides does not work, it shows that the player left the game, but does not show that it has been banned..


Last edited by Sdg; 10-20-2014 at 13:07.
Sdg is offline
Sdg
BANNED
Join Date: Mar 2014
Old 10-20-2014 , 13:17   Re: Show SMAC BAN to non admins
Reply With Quote #16

Quote:
Originally Posted by nomy View Post
PHP Code:
// native SMAC_Ban(client, const String:reason[], any:...);
public Native_Ban(Handle:pluginnumParams)
{
    
decl String:sVersion[16], String:sReason[256];
    new 
client GetNativeCell(1);
    new 
duration GetConVarInt(g_hCvarBanDuration);
    
    
GetPluginInfo(pluginPlInfo_VersionsVersionsizeof(sVersion));
    
FormatNativeString(023sizeof(sReason), _sReason);
    
Format(sReasonsizeof(sReason), "SMAC %s: %s"sVersionsReason);
    
    if (
SOURCEBANS_AVAILABLE())
    {
        
SBBanPlayer(0clientdurationsReason);
        
ServerCommand("sm_banip #%d %s \"%s\""GetClientUserId(client), durationsReason);
    }
    else
    {
        
decl String:sKickMsg[256];
        
FormatEx(sKickMsgsizeof(sKickMsg), "%T""SMAC_Banned"client);
        
BanClient(clientdurationBANFLAG_AUTOsReasonsKickMsg"SMAC");
        
ServerCommand("sm_banip #%d %s \"%s\""GetClientUserId(client), durationsReason);
    }
    
    
KickClient(clientsReason);

Try this.
This works excellent, thank you very much Nomy!

Last edited by Sdg; 10-20-2014 at 13:41.
Sdg is offline
Sdg
BANNED
Join Date: Mar 2014
Old 10-20-2014 , 19:44   Re: Show SMAC BAN to non admins
Reply With Quote #17

Quote:
Originally Posted by nomy View Post
PHP Code:
// native SMAC_Ban(client, const String:reason[], any:...);
public Native_Ban(Handle:pluginnumParams)
{
    
decl String:sVersion[16], String:sReason[256];
    new 
client GetNativeCell(1);
    new 
duration GetConVarInt(g_hCvarBanDuration);
    
    
GetPluginInfo(pluginPlInfo_VersionsVersionsizeof(sVersion));
    
FormatNativeString(023sizeof(sReason), _sReason);
    
Format(sReasonsizeof(sReason), "SMAC %s: %s"sVersionsReason);
    
    if (
SOURCEBANS_AVAILABLE())
    {
        
SBBanPlayer(0clientdurationsReason);
        
ServerCommand("sm_banip #%d %s \"%s\""GetClientUserId(client), durationsReason);
    }
    else
    {
        
decl String:sKickMsg[256];
        
FormatEx(sKickMsgsizeof(sKickMsg), "%T""SMAC_Banned"client);
        
BanClient(clientdurationBANFLAG_AUTOsReasonsKickMsg"SMAC");
        
ServerCommand("sm_banip #%d %s \"%s\""GetClientUserId(client), durationsReason);
    }
    
    
KickClient(clientsReason);

If I add a PrintChatToAll Here? Smac show any ban?

Last edited by Sdg; 10-20-2014 at 19:44.
Sdg is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 10-21-2014 , 02:36   Re: Show SMAC BAN to non admins
Reply With Quote #18

Don't forget about OnBanClient, which can do all of these things without having to modify SMAC directly.
__________________
GoD-Tony is offline
Sdg
BANNED
Join Date: Mar 2014
Old 10-21-2014 , 11:06   Re: Show SMAC BAN to non admins
Reply With Quote #19

I adds PrintToChatAll, but not the player's name appears, as would be the solution?



PHP Code:
// native SMAC_Ban(client, const String:reason[], any:...);
public Native_Ban(Handle:pluginnumParams)
{
    
decl String:sVersion[16], String:sReason[256];
    new 
client GetNativeCell(1);
    new 
duration GetConVarInt(g_hCvarBanDuration);
    
    
GetPluginInfo(pluginPlInfo_VersionsVersionsizeof(sVersion));
    
FormatNativeString(023sizeof(sReason), _sReason);
    
Format(sReasonsizeof(sReason), "SMAC %s: %s"sVersionsReason);
    
    if (
SOURCEBANS_AVAILABLE())
    {
        
SBBanPlayer(0clientdurationsReason);
        
ServerCommand("sm_banip #%d %s \"%s\""GetClientUserId(client), durationsReason);
        
PrintToChatAll("\x04[SMAC] \x01Player \x03%d \x01has been banned for a cheating infraction."clientduration);
    }
    else
    {
        
decl String:sKickMsg[256];
        
FormatEx(sKickMsgsizeof(sKickMsg), "%T""SMAC_Banned"client);
        
BanClient(clientdurationBANFLAG_AUTOsReasonsKickMsg"SMAC");
        
ServerCommand("sm_banip #%d %s \"%s\""GetClientUserId(client), durationsReason);
        
PrintToChatAll("\x04[SMAC] \x01Player \x03%d \x01has been banned for a cheating infraction."clientduration);
    }
    
    
KickClient(clientsReason);


Last edited by Sdg; 10-21-2014 at 13:58.
Sdg is offline
nomy
Senior Member
Join Date: Dec 2009
Location: United Kingdom
Old 10-21-2014 , 14:26   Re: Show SMAC BAN to non admins
Reply With Quote #20

Lets try Tony's suggestion.

Use original unmodified smac and use this instead:

PHP Code:
#pragma semicolon 1

#include <sourcemod>

public Action:OnBanClient(clienttimeflags, const String:reason[], const String:kick_message[], const String:command[], any:admin)
{
    
ServerCommand("sm_banip #%d %s \"%s\""GetClientUserId(client), timereason);
    
PrintToChatAll("\x04[SMAC] \x01Player \x03%N \x01has been banned for a cheating infraction."client);

nomy is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:50.


Powered by vBulletin®
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Theme made by Freecode