sourcebans: make ban message always print to chat

This commit is contained in:
BotoX 2017-04-19 19:53:50 +02:00
parent ba5ec2a3e2
commit 233fbdfa8c

View File

@ -1116,16 +1116,16 @@ public VerifyInsert(Handle:owner, Handle:hndl, const String:error[], any:dataPac
{
if (Reason[0] == '\0')
{
ShowActivityEx(admin, Prefix, "%t", "Permabanned player", Name);
PrintToChat(admin, "%s %t", Prefix, "Permabanned player", Name);
} else {
ShowActivityEx(admin, Prefix, "%t", "Permabanned player reason", Name, Reason);
PrintToChat(admin, "%s %t", Prefix, "Permabanned player reason", Name, Reason);
}
} else {
if (Reason[0] == '\0')
{
ShowActivityEx(admin, Prefix, "%t", "Banned player", Name, time);
PrintToChat(admin, "%s %t", Prefix, "Banned player", Name, time);
} else {
ShowActivityEx(admin, Prefix, "%t", "Banned player reason", Name, time, Reason);
PrintToChat(admin, "%s %t", Prefix, "Banned player reason", Name, time, Reason);
}
}