There's a bounty for this right? i spent nearly two full days at this

This commit is contained in:
SandPoot
2021-10-05 18:10:32 -03:00
parent 59f33198f1
commit 5aa12b4716
270 changed files with 770 additions and 779 deletions
+3 -3
View File
@@ -208,7 +208,7 @@
if(admin_ckey)
. = admin_ckey
else
admin_key = input("New admin's key","Admin key") as text|null
admin_key = tgui_input_text(usr, "New admin's key","Admin key")
. = ckey(admin_key)
if(!.)
return FALSE
@@ -305,9 +305,9 @@
for(R in GLOB.admin_ranks)
if((R.rights & usr.client.holder.rank.can_edit_rights) == R.rights)
rank_names[R.name] = R
var/new_rank = input("Please select a rank", "New rank") as null|anything in rank_names
var/new_rank = tgui_input_list(usr, "Please select a rank", "New rank", rank_names)
if(new_rank == "*New Rank*")
new_rank = input("Please input a new rank", "New custom rank") as text|null
new_rank = tgui_input_text(usr, "Please input a new rank", "New custom rank")
if(!new_rank)
return
R = rank_names[new_rank]