if("Restore")
var/list/L = new
for(var/mob/M in world)
L += M.name
var/namepick = input("Who do you pick?")in L
for(var/mob/M in world)
if(M.name == namepick)
M << "<b>A bright light shines from above as you feel regenerated!"
M.powerlevel = M.mpowerlevel
M.energy = M.menergy
M.strength = M.mstrength
M.defence = M.mdefence
Ok this code is used to restore the players. it brings up a list of all mobs in world and you select one to heal, it also brings up the NPC's so i was wondering if some one could please help me make it so only players appear in the list
You should have a sub-type for players and NPC's/other mobs.