Quote:
Originally Posted by allienaded
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(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;
}
__________________