|
BANNED
|
10-21-2014
, 23:12
Re: Show SMAC BAN to non admins
|
#25
|
Quote:
Originally Posted by allienaded
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.
|
|
|
|