Thread: Show bans
View Single Post
GoD-Tony
Veteran Member
Join Date: Jul 2005
Old 10-21-2014 , 17:04   Re: Show SMAC BAN to non admins
Reply With Quote #22

Quote:
Originally Posted by allienaded View Post
But wouldn't this affect every plugin along with manual banning using the sm_ban command?
Yes. Here is what I was thinking:
PHP Code:
public Action:OnBanClient(clienttimeflags, const String:reason[], const String:kick_message[], const String:command[], any:admin)
{
    if (
StrEqual(command"SMAC") && flags != BANFLAG_IP)
    {
        
// IP ban and print to chat.
        
BanClient(clienttimeBANFLAG_IPreasonkick_message);
        
PrintToChatAll("Banned %N. (%s)"clientreason);
        
        return 
Plugin_Stop;
    }
    
    return 
Plugin_Continue;

__________________

Last edited by GoD-Tony; 10-21-2014 at 17:07.
GoD-Tony is offline