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

Show bans


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sdg
BANNED
Join Date: Mar 2014
Old 10-02-2014 , 21:07   Show bans
Reply With Quote #1

Hello People!

How should I put the code correctly so that when the smac running a ban, is also displayed on the server to the players (not admins) ?

ej:

smac_eyetest.sp

Code:
    if (GetClientAuthString(client, sAuthID, sizeof(sAuthID), false) && !StrEqual(sAuthID, "BOT") && SMAC_CheatDetected(client, Detection_Eyeangles, info) == Plugin_Continue)
    {
        SMAC_PrintAdminNotice("%t", "SMAC_EyetestDetected", client);
        
        if (GetConVarBool(g_hCvarBan))
        {
            SMAC_LogAction(client, "was banned for cheating with their eye angles. Eye Angles: %.0f %.0f %.0f", angles[0], angles[1], angles[2]);
            SMAC_Ban(client, "Eye Test Violation");
        }
        else
        {
            SMAC_LogAction(client, "is suspected of cheating with their eye angles. Eye Angles: %.0f %.0f %.0f", angles[0], angles[1], angles[2]);
        }
    }

Last edited by Sdg; 04-21-2015 at 16:01.
Sdg is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 10-03-2014 , 02:05   Re: Show SMAC BAN to non admins
Reply With Quote #2

Quote:
Originally Posted by SMAC Wiki
smac_admin_notices - Decides which players will receive admin notices from SMAC. The default is Admin_Generic (b flag).

For more information on admin overrides, check here.
See the example of "sm_chat" and replace it with "smac_admin_notices". This will print admin notices to all players in the server.
__________________

Last edited by GoD-Tony; 10-03-2014 at 02:06.
GoD-Tony is offline
Sdg
BANNED
Join Date: Mar 2014
Old 10-03-2014 , 09:40   Re: Show SMAC BAN to non admins
Reply With Quote #3

Quote:
Originally Posted by GoD-Tony View Post
See the example of "sm_chat" and replace it with "smac_admin_notices". This will print admin notices to all players in the server.
Ok, I see .. but;

Code:
Unknown command "smac_admin_notices"
I'm using the version 0.8.6.0

Maybe that command works in any previous version?
Sdg is offline
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 10-03-2014 , 09:53   Re: Show SMAC BAN to non admins
Reply With Quote #4

Quote:
Originally Posted by Sdg View Post
Ok, I see .. but;

Code:
Unknown command "smac_admin_notices"
I'm using the version 0.8.6.0

Maybe that command works in any previous version?
It's not a command, check the wiki link in the post above. You have to edit admin_overrides.cfg.
__________________
GoD-Tony is offline
Sdg
BANNED
Join Date: Mar 2014
Old 10-03-2014 , 09:56   Re: Show SMAC BAN to non admins
Reply With Quote #5

Quote:
Originally Posted by GoD-Tony View Post
It's not a command, check the wiki link in the post above. You have to edit admin_overrides.cfg.
OK, i put ;

Code:
"smac_admin_notices" ""
I'll try it, thanks GoD-Tony

Last edited by Sdg; 10-03-2014 at 09:59.
Sdg is offline
Ade
I love purple
Join Date: May 2010
Old 10-03-2014 , 02:54   Re: Show SMAC BAN to non admins
Reply With Quote #6

why u want that this will allow them to test their hax with alternate accounts
__________________
Ade is offline
diamond_jack
Junior Member
Join Date: Jul 2014
Old 10-16-2014 , 00:33   Re: Show SMAC BAN to non admins
Reply With Quote #7

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
Sdg
BANNED
Join Date: Mar 2014
Old 10-03-2014 , 09:59   Re: Show SMAC BAN to non admins
Reply With Quote #8

One more question please, the smac only bans the steam id, that way I can get the id and ban the user ip?
Sdg is offline
Sdg
BANNED
Join Date: Mar 2014
Old 10-07-2014 , 18:15   Re: Show SMAC BAN to non admins
Reply With Quote #9

Someone could tell me how to make the smac ban the user id and ip?
Sdg is offline
allienaded
AlliedModders Donor
Join Date: Feb 2013
Old 10-08-2014 , 20:09   Re: Show SMAC BAN to non admins
Reply With Quote #10

Quote:
Originally Posted by Sdg View Post
Someone could tell me how to make the smac ban the user id and ip?
Not possible without editing the SMAC code and recompiling from source. Why would you even want to do this IP bans are very easy to circumvent (most people just have to restart their router to get a new IP) and IP bans have the potential to affect someone else who just happened to be assigned the same IP that someone got banned (has happened to me).
allienaded is offline
Reply



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 17:07.


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