set category = "Admin"
usr<<"<font face ='Palatino Linotype' color=Green>Your Admin Powers Are Locked."
switch(alert("Give levels to every player logged in?","","Yes","No"))
var/lvlin=input("How many")as null|num
for(var/mob/PC/M in world)
if(M.loggedin && M.client)
M << "[usr] gave you [lvlin] levels. Be patient while they add to your stats."
M.levelgains = 0
M.exp = M.tnl
lvlin -= 1
world<<"<b><font face ='Palatino Linotype' color=Green>[usr] has given everyone Levels!</b>"
Problem description:it gives levels to only 1 player.
it comes up like this
for the first player-
Mystic gave you 100 levels. Be patient while they add to your stats.
for other players -
Mystic gave you 0 levels. Be patient while they add to your stats.