ID:166666
 
when a Staff member logs into the game it plays there theme song(i made them :D)ive tryed everything i can think of but...thanks in advance
I think this goes in Code Problems.
this is most definitely in the wrong place.

mob/Login(){if(src.staff)world<<sound(themesong.wav)}

Or something <_<

Put it in the right place and you'll get a much better explanation.
In response to Jay1
Argh use the DM tags please that code looks ugly without it

<DM>CODE HERE</DM>
In response to A.T.H.K
var/list/stafflist=list("cow","monkey","fish","dog","camel")
// A list with keys in it. Keys spelled CORRECTLY, thank you.
mob/Login()
..() // Parent proc = Do the default action
if(src.key in stafflist) // If the player's key is found in the stafflist
src<<sound('hello.ogg')
// Your login code

thanks but how do i make it so that each staff member has there own theme music?
In response to Defenderx2480
_> He just showed you how to do it.

All you need to do from there is check that key it is.
mob/Login()
.=..()
switch(ckey)
if("joe")src<<'joe.ogg' //play joe's theme song
if("jane")src<<'jane.ogg' //play jane's theme song
else src<<'player.ogg' //play the default themesong (for players)
...