There's a bounty for this right? i spent nearly two full days at this
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user