Thread: Show bans
View Single Post
allienaded
AlliedModders Donor
Join Date: Feb 2013
Old 10-21-2014 , 16:01   Re: Show SMAC BAN to non admins
Reply With Quote #21

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