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

Quote:
Originally Posted by Sdg View Post
Tony, Any way to get ban ip and id here?
Untested...
Code:
public Action:OnBanClient(client, time, flags, const String:reason[], const String:kick_message[], const String:command[], any:admin)
{
	if (StrEqual(command, "SMAC"))
	{
		// Ban IP and ID.
		BanClient(client, time, BANFLAG_AUTHID|BANFLAG_NOKICK, reason, kick_message);
		BanClient(client, time, BANFLAG_IP, reason, kick_message);
		
		PrintToChatAll("Banned %N. (%s)", client, reason);
		
		return Plugin_Stop;
	}

	return Plugin_Continue;
}
__________________

Last edited by GoD-Tony; 10-22-2014 at 13:50.
GoD-Tony is offline