mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-06 17:13:21 +00:00
things
This commit is contained in:
parent
074cf2fd3c
commit
aedbf9d77b
5 changed files with 177 additions and 32 deletions
|
@ -171,7 +171,7 @@ public void DB_OnConnectCheck(Database db, DBResultSet results, const char[] err
|
|||
} else {
|
||||
results.FetchString(0, reason, sizeof(reason), reasonResult);
|
||||
if(!expired) {
|
||||
LogMessage("%N is banned: %s", client, reason);
|
||||
LogAction(-1, client, "%N is banned from server: \"%s\"", client, reason);
|
||||
if(hKickType.IntValue > 0) {
|
||||
if(reasonResult == DBVal_Data)
|
||||
KickClient(client, "You have been banned:\n%s", reason);
|
||||
|
@ -187,7 +187,7 @@ public void DB_OnConnectCheck(Database db, DBResultSet results, const char[] err
|
|||
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 {
|
||||
LogMessage("%N was previously banned: %s", client, reason);
|
||||
LogAction(-1, client, "%N was previously banned from server: \"%s\"", client, reason);
|
||||
// User was previously banned
|
||||
PrintChatToAdmins("%N has a previously expired ban of reason \"%s\"", client, reason);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue