mirror of
https://github.com/Jackzmc/sourcemod-plugins.git
synced 2025-05-06 06:33:21 +00:00
Update times_tried column when banned attempts to connect
This commit is contained in:
parent
b62a044d44
commit
4532656378
2 changed files with 4 additions and 0 deletions
Binary file not shown.
|
@ -167,6 +167,10 @@ public void DB_OnConnectCheck(Database db, DBResultSet results, const char[] err
|
|||
KickClient(client, "You have been banned: %s", reason);
|
||||
else
|
||||
KickClient(client, "You have been banned from this server.");
|
||||
|
||||
char query[64];
|
||||
Format(query, sizeof(query), "UPDATE bans SET times_tried=times_tried+1 WHERE steamid = ?", steamid);
|
||||
db.Query(DB_OnBanQuery, query);
|
||||
}else{
|
||||
DeleteBan(steamid);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue