/obj/admins/proc/player_panel_new()//The new one if (!usr.client.holder) return var/dat = "Player Menu" dat += "" //add to this if wanting to add back in IP checking //add if you want to know their ip to the lists below var/list/mobs = get_sorted_mobs() var/i = 1 for(var/mob/M in mobs) if(M.ckey) var/color = "#e6e6e6" i++ if(i%2 == 0) color = "#f2f2f2" var/real = (M.real_name == M.original_name ? M.real_name : "[M.original_name] (as [M.real_name])") var/turf/T = get_turf(M) var/client_key = (M.key? M.key : "No key") dat += "" // Adds current name if(isobserver(M)) dat += "" else if(isalien(M)) dat += "" else if(islarva(M)) dat += "" else if(istajaran(M)) dat += "" else if(ishuman(M)) dat += "" else if(ismetroid(M)) dat += "" else if(ismonkey(M)) dat += "" else if(isAI(M)) dat += "" else if(ispAI(M)) dat += "" else if(isrobot(M)) dat += "" else if(isanimal(M)) dat += "" else if(iscorgi(M)) dat += "" else if(istype(M,/mob/new_player)) dat += "" else dat += "\black" if(M.mind && M.mind.assigned_role && istype(M, /mob/living/carbon/human)) // Adds a column to Player Panel that shows their current job. var/mob/living/carbon/human/H = M if (H.wear_id) var/obj/item/weapon/card/id/id if(istype(H.wear_id, /obj/item/device/pda)) var/obj/item/device/pda/PDA = H.wear_id if(!isnull(PDA.id)) // The PDA may contain no ID id = PDA.id // The ID is contained inside the PDA else id = H.wear_id // The ID was on the ID slot if(!id) // Happens when there's no ID in the PDA located on the wear_id slot dat += "" else if(isnull(id.assignment)) // Preventing runtime errors blocking the player panel if(istype(id, /obj/item/weapon/card/id/syndicate)) dat += "" else usr << "ERROR: Inform the coders that an [id.name] was checked for its assignment variable, and it was null." dat += "" else if(M.mind.assigned_role == id.assignment) // Polymorph dat += "" else dat += "" else dat += "" var/muting = "Mute unavailable - no client" if(M.client) muting = {"Mute: [(M.client.muted ? "Muted" : "Voiced")] | Complete mute: [(M.client.muted ? "Completely Muted" : "Voiced")] "} dat += {" "} switch(is_special_character(M)) if(0) dat += {""} if(1) dat += {""} if(2) dat += {""} dat += "
Name/Real NameTypeAssigned JobInfoOptionsTraitor?
IP:(IP: [M.lastKnownIP])
[M.name] \[[real]\]
[M.client ? M.client : "No client ([client_key])"] at ([T.x], [T.y], [T.z])
GhostAlienAlien larvaTajaran[M.job]MetroidMonkeyAIpAICyborgAnimalCorgiNew Player\red ERROR[M.mind.assigned_role] (No ID)AntagonistERROR[M.mind.assigned_role][M.mind.assigned_role] ([id.assignment])" else dat += "[M.mind.assigned_role] (No ID)No Assigned Role[player_has_info(M.ckey) ? "Info" : "N/A"] PM | PP | VV | SM | JMP
[muting]
Warn | Boot | Ban | Jobban
Traitor?Traitor?Traitor?
" usr << browse(dat, "window=players;size=905x600") //The old one /obj/admins/proc/player_panel_old() if (!usr.client.holder) return var/dat = "Player Menu" dat += "" //add to this if wanting to add back in IP checking //add if you want to know their ip to the lists below var/list/mobs = get_sorted_mobs() for(var/mob/M in mobs) if(!M.ckey) continue dat += "" if(isAI(M)) dat += "" else if(isrobot(M)) dat += "" else if(ishuman(M)) dat += "" else if(istype(M, /mob/living/silicon/pai)) dat += "" else if(istype(M, /mob/new_player)) dat += "" else if(isobserver(M)) dat += "" else if(ismonkey(M)) dat += "" else if(isalien(M)) dat += "" else dat += "" if(istype(M,/mob/living/carbon/human)) var/mob/living/carbon/human/H = M if(H.mind && H.mind.assigned_role) dat += "" else dat += "" dat += {" "} switch(is_special_character(M)) if(0) dat += {""} if(1) dat += {""} if(2) dat += {""} dat += "
NameReal NameAssigned JobKeyOptionsPMTraitor?
IP:(IP: [M.lastKnownIP])
[M.name]AICyborg[M.real_name]pAINew PlayerGhostMonkeyAlienUnknown[H.mind.assigned_role]NA[(M.client ? "[M.client]" : "No client")] X PMTraitor?Traitor?Traitor?
" usr << browse(dat, "window=players;size=640x480")