Thread: Show bans
View Single Post
Sdg
BANNED
Join Date: Mar 2014
Old 10-21-2014 , 23:12   Re: Show SMAC BAN to non admins
Reply With Quote #25

Quote:
Originally Posted by allienaded View Post
There's no problem with that but what tony posted is a cleaner solution and doesn't require editing the SMAC source (meaning you can update SMAC in the future without the need to re-apply any custom patches).

Ok, I see.

So.. for that i need use original smac.smx and create a new plugin with this?

and, it only bans the ip..

Quote:
public Action:OnBanClient(client, time, flags, 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(client, time, BANFLAG_IP, reason, kick_message);
PrintToChatAll("Banned %N. (%s)", client, reason);

return
Plugin_Stop;
}

return
Plugin_Continue;
}

Last edited by Sdg; 10-21-2014 at 23:44.
Sdg is offline