From d3ad0928693f19e373dee0ea09f377656e3cacc8 Mon Sep 17 00:00:00 2001 From: Timothy Teakettle <59849408+timothyteakettle@users.noreply.github.com> Date: Tue, 8 Dec 2020 22:23:58 +0000 Subject: [PATCH] new proc --- .../modules/mob/dead/new_player/new_player.dm | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/code/modules/mob/dead/new_player/new_player.dm b/code/modules/mob/dead/new_player/new_player.dm index 91123c0c7f..a9be76494b 100644 --- a/code/modules/mob/dead/new_player/new_player.dm +++ b/code/modules/mob/dead/new_player/new_player.dm @@ -78,6 +78,26 @@ popup.set_content(output) popup.open(FALSE) +/proc/age_gate(/mob/dead/new_player/plr) + var/list/dat = list("
" + + plr << browse(dat,"window=playerpoll;size=500x250") + /mob/dead/new_player/proc/age_verify() if(CONFIG_GET(flag/age_verification) && !check_rights_for(client, R_ADMIN) && !(client.ckey in GLOB.bunker_passthrough)) //make sure they are verified if(!client.set_db_player_flags()) @@ -86,7 +106,7 @@ else var/dbflags = client.prefs.db_flags if(dbflags & DB_FLAG_AGE_CONFIRMATION_INCOMPLETE) //they have not completed age gate - var/age_verification = askuser(src, "Are you 18+", "Age Gate", "I am 18+", "I am not 18+", null, TRUE, null) + var/age_verification = age_gate(src) if(age_verification != 1) client.add_system_note("Automated-Age-Gate", "Failed automatic age gate process") qdel(client) //kick the user