mob
proc
NameCheck(var/mob/M)
if(M.key in Admins)
if(!findtext(M.name,"(Admin)",1,7))
M.name = "(Admin)[M.name]"
if(M.key in MGMs && !(M.key in Creators))
if(!findtext(M.name,"(MGM)",1,5))
M.name = "(MGM)[M.name]"
else if(M.key in MGMs && M.key in Creators)
if(!findtext(M.name,"(Creator)",1,9))
M.name = "(Creator)[M.name]"
Problem description:
I put that in Stat() and ever since, all of the Admins in my game have been complaining that sometimes their name get's changed to:
(Admin)(Admin)(Admin)(Admin)(Admin)(Admin)(Admin)(Admin)(Admi n)(Admin)(Admin)(Admin)(Admin)(Admin)(Admin)(Admin)(Admin)(A dmin)(Admin)(Admin)(Admin)(Admin)(Admin)(Admin)(Admin)(Admin )(Admin)(Admin)(Admin)(Admin)(Admin)(Admin)(Admin)(Admin)(Admi n)(Admin)(Admin)(Admin)(Admin)(Admin)(Admin)(Admin)(Admin)(A dmin)(Admin)(Admin)[their name]