Quick & Dirty Panic Bunker Port

Should work! Should.
This commit is contained in:
Arokha Sieyes
2017-04-10 22:38:58 -04:00
parent d5a4987a19
commit b3d652fa50
5 changed files with 27 additions and 1 deletions
+8
View File
@@ -266,6 +266,14 @@
var/DBQuery/query_accesslog = dbcon.NewQuery("INSERT INTO `erro_connection_log`(`id`,`datetime`,`serverip`,`ckey`,`ip`,`computerid`) VALUES(null,Now(),'[serverip]','[sql_ckey]','[sql_ip]','[sql_computerid]');")
query_accesslog.Execute()
//Panic bunker code
if (isnum(player_age) && player_age == 0) //first connection
if (config.panic_bunker && !holder && !deadmin_holder)
log_access("Failed Login: [key] - New account attempting to connect during panic bunker")
message_admins("<span class='adminnotice'>Failed Login: [key] - New account attempting to connect during panic bunker</span>")
to_chat(src, "Sorry but the server is currently not accepting connections from never before seen players.")
qdel(src)
return 0
#undef TOPIC_SPAM_DELAY
#undef UPLOAD_LIMIT