mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-14 08:34:16 +01:00
Makes the admin logout tracking system actually work
This commit is contained in:
@@ -1001,3 +1001,22 @@ var/gamma_ship_location = 1 // 0 = station , 1 = space
|
||||
qdel(frommob)
|
||||
|
||||
return 1
|
||||
|
||||
// Returns a list of the number of admins in various categories
|
||||
// result[1] is the number of staff that match the rank mask and are active
|
||||
// result[2] is the number of staff that do not match the rank mask
|
||||
// result[3] is the number of staff that match the rank mask and are inactive
|
||||
/proc/staff_countup(rank_mask = R_BAN)
|
||||
var/list/result = list(0, 0, 0)
|
||||
for(var/client/X in admins)
|
||||
if(rank_mask && !check_rights_for(X, rank_mask))
|
||||
result[2]++
|
||||
continue
|
||||
if(X.holder.fakekey)
|
||||
result[2]++
|
||||
continue
|
||||
if(X.is_afk())
|
||||
result[3]++
|
||||
continue
|
||||
result[1]++
|
||||
return result
|
||||
|
||||
Reference in New Issue
Block a user