mob/var/color
mob/var/blue
mob/var/red
if("Blue")
src.arena = 2
src.team = 1
icon = 'ctfblue.dmi'
src.loc = locate(/area/blue)
<B>src.color = blue</B>
Above is one of the teams when a player logs on.
who()
set desc="Current players on Paintball Outpost"
set category = "Communication"
for(var/mob/M in world)
if(M.client)
usr << "<B>Current players online:</B>"
usr << "Player - Team"
usr << "------------------------------"
usr <<"<font color=[M.color]>[M]</FONT>"
And here is the who command, I am having problems getting the color to show up. The name shows up, but not their team color. Sorry about this but I have spent about an hour and cannot figure it out.
Take out the bold tags. They don't belong in this assignment.