Thread: Show bans
View Single Post
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