mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-30 12:03:11 +00:00
My first commit, yay!
Removing: -Erro code of r4861. Xsi gave me permission p-please don't kill me. Proc added: -Added a proc that checks the rank of the admin and compares it to a var given. If the check fails, returns a 0 and a "You need more acces" message. If not, returns an 1. admin_rank_check(var/rank, var/requested) Admin option changes: -You need to be at least a trialmin to change a var in VV. -You need to be at least a trialmin to change the vars on the tator panel -You need to be at least a trialmin to allow votes or start a custom one. (All admins can cancel votes) -All mob transformations (of playerpanel and VV) and special options (like godmode), now requires trialmin status or higher. -All admins can use aghost now. -All admins can right click - VV if they are a ghosting. git-svn-id: http://tgstation13.googlecode.com/svn/trunk@4889 316c924e-a436-60f5-8080-3fe189b3f50e
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
|
||||
var/method = 0 //0 means strict type detection while 1 means this type and all subtypes (IE: /obj/item with this set to 1 will set it to ALL itms)
|
||||
|
||||
if(!admin_rank_check(src.holder.level, 3)) return
|
||||
|
||||
if(A && A.type)
|
||||
if(typesof(A.type))
|
||||
switch(input("Strict object type detection?") as null|anything in list("Strictly this type","This type and subtypes", "Cancel"))
|
||||
|
||||
@@ -269,6 +269,7 @@ var/list/forbidden_varedit_object_types = list(
|
||||
if(!src.holder)
|
||||
src << "Only administrators may use this command."
|
||||
return
|
||||
if(!admin_rank_check(src.holder.level, 3)) return
|
||||
|
||||
for(var/p in forbidden_varedit_object_types)
|
||||
if( istype(O,p) )
|
||||
|
||||
Reference in New Issue
Block a user