Ansari request #define SSD_WARNING_TIMER

This commit is contained in:
Kyep
2019-04-29 20:16:28 -07:00
parent d61d8a3dc1
commit de29dbcc94
+3 -1
View File
@@ -9,6 +9,7 @@
#define MIN_CLIENT_VERSION 0 //Just an ambiguously low version for now, I don't want to suddenly stop people playing.
//I would just like the code ready should it ever need to be used.
#define SUGGESTED_CLIENT_VERSION 511 // only integers (e.g: 510, 511) useful here. Does not properly handle minor versions (e.g: 510.58, 511.848)
#define SSD_WARNING_TIMER 30 // cycles, not seconds, so 30=60s
/*
When somebody clicks a link in game, this Topic is called first.
@@ -780,8 +781,9 @@
return FALSE
if(ssd_warning_acknowledged)
return FALSE
if(M && M.player_logged < 30) // Give it ~60 seconds, just in case they drop SSD during combat.
if(M && M.player_logged < SSD_WARNING_TIMER)
return FALSE
to_chat(src, "Interacting with SSD players is against server rules unless you've ahelped first for permission. If you have, <a href='byond://?src=[UID()];ssdwarning=accepted'>confirm that</A> and proceed.")
return TRUE
#undef SSD_WARNING_TIMER