I am having problems with my who command, heres the code..
who()
set desc="Current players on Paintball Outpost"
set category = "Communication"
var/mob/M
usr << "Current players online:"
usr << "Player"
usr << "---------------------------"
for(M) // PCs and NPCs
if(M.client) // filter out PCs
if(src.arena==1)
if(src.team==1)
usr << "\blue[M.key](Elimination)"
else if(src.team==2)
usr << "\red[M.key](Elimination)"
else if(src.arena==2)
if(src.team==1)
usr << "\blue[M.key](CTF)"
else if(src.team==2)
usr << "\red[M.key](CTF)"
It only shows if ur playing ctf, the other ctf players(on your team) vise-versa. Thanx for any help : )
ID:150242
Nov 21 2001, 6:40 pm
|
|
Nov 22 2001, 7:16 am
|
|
anyone?
|
In response to Oblivian
|
|
Oblivian wrote:
anyone? Here: mob/verb/who() Lee |
In response to Mellifluous
|
|
I know that much, look at my code in the first post.
|
for(M) // PCs and NPCs
if(M.client) // filter out PCs if(src.arena==1) if(src.team==1) The problem you're having is that you're checking values against src, not M. You may find the code easier if you cut out a lot of the if statements: for(M) Just a reminder for the future: Please don't bump your posts. Lummox JR |