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

Show bans


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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 13:27.


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