mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-06 09:43:21 +00:00
Minor ban message tweaks
This commit is contained in:
parent
ff10667846
commit
77d37ef0ad
2 changed files with 8 additions and 9 deletions
Binary file not shown.
|
@ -169,18 +169,17 @@ public void DB_OnConnectCheck(Database db, DBResultSet results, const char[] err
|
|||
if(!expired) {
|
||||
if(hKickType.IntValue > 0) {
|
||||
if(reasonResult == DBVal_Data)
|
||||
KickClient(client, "You have been banned: %s", reason);
|
||||
KickClient(client, "You have been banned:\n%s", reason);
|
||||
else
|
||||
KickClient(client, "You have been banned from this server.");
|
||||
} else {
|
||||
PrintChatToAdmins("%N was banned from this server for: \"%s\"", client, reason);
|
||||
return;
|
||||
}
|
||||
static char query[128];
|
||||
g_db.Format(query, sizeof(query), "UPDATE bans SET times_tried=times_tried+1 WHERE steamid = '%s'", steamid);
|
||||
g_db.Query(DB_OnBanQuery, query);
|
||||
} else {
|
||||
PrintChatToAdmins("%N has a previously expired ban of reason \"%s\"", client, reason);
|
||||
PrintChatToAdmins("%N was banned from this server for: \"%s\"", client, reason);
|
||||
}
|
||||
} else {
|
||||
PrintChatToAdmins("%N was previously banned for \"%s\"", client, reason);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue