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

Show bans


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
allienaded
AlliedModders Donor
Join Date: Feb 2013
Old 10-21-2014 , 16:01   Re: Show SMAC BAN to non admins
Reply With Quote #17

Quote:
Originally Posted by nomy View Post
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);

But wouldn't this affect every plugin along with manual banning using the sm_ban command?
allienaded 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 06:25.


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