ID:172416
 
It seems that in the login proc, only one person logging in can have a different icon. If there is a way to get multiple ones please tell me!!
you could give them a menu from which to pick there icon
or you could randomly give them one anyways heres some code

----- MENU ------
mob
Login()
usr << "welcome to bla bla bla"
var/icon_me = input("who do you want to be ?") in list("male1","male2","female1","female2")
usr.icon = '[icon_me].dmi'
usr.icon_state = "walk"

-------------------
that system uses a new icon for each icon (... need to find a better way of saying that) and then sets the icon and icon_state up

----- random ------
mob
Login()
var/icon_me = rand(1,4) // think that give the output 1 or 2 or 3 or 4
if(icon_me == 1)
usr.icon = 'male1.dmi'
usr.icon_state = "walk"
else if(icon_me == 2)
usr.icon = 'male2.dmi'
usr.icon_state = "walk"
else if(icon_me == 3)
usr.icon = 'female1.dmi'
usr.icon_state = "walk"
else if(icon_me == 4)
usr.icon = 'female2.dmi'
usr.icon_state = "walk"
else
world << "umm yer help [usr] his icon thinge beep'd up"

----------------------
this system make a random var from 1 to 4 and uses it
to pick the icon and icon state

please note that both of the systems are un tested and off the top of my head.
In response to Madpeter
Please don't use usr in Login(). src works perfectly fine there and is much safer.
In response to Jon88
Well those systems would work fine if i wanted anyone to use any icons.
but
im using it for Admins only
so... scratch that idea?
In response to Tabu34
Tabu34 wrote:
Well those systems would work fine if i wanted anyone to use any icons.
but
im using it for Admins only
so... scratch that idea?

Why? Just check to see if you want to let whoever is logging in choose their own icon.
In response to Jon88
I got it to work. i just had to add return somewhere.