ID:171521
 
first....
mob
proc
Death(mob/M)
if(M.hp<=0)
world<<"<font color=blue>[M.key] has been killed by [usr.key]"
usr.kills += 1
M.deaths +=1
if(alien ==1)
M.loc=locate(22,22,3)
else if(soldier ==1)
M.loc=locate(41,41,5)
when the alien dies...it is still teleported to the marunes base...do i just put if(soldier)?
second...
mob/var/Ctype=0
mob/var/Btype=0

mob
verb
Team_Chat(T as text)
for(var/mob/M in world)
if(M.Ctype==1)
M<<"<font color=green>[src.key] team says: [T]"
else if(M.Btype==1)
M<<"<font color=purple>[src.key] team says: [T]"
alien talks in green and i can hear even if i'm soldier..thank you and again no smart remarks please..
Are you sure you made alien = 1 for aliens?
In response to Artekia
Every1 keeps asking so here....look for yourself same thing for the soldier just soldier=1 and alien=0
mob
Alien
icon='alien.dmi'
icon_state=""
density=1
Click()
if(usr.click==1)
return
else
team = rgb(255,0,0)
world <<"<font color=purple>[usr.key] has joined the fight as a Alien"
usr.alien=1
usr.soldier=0
usr.Btype=1
usr.Ctype=0
gonna go to bed now so please solve this prob ^^ night.
Please don't make new posts asking the same question as your previous post. Also dont use usr in procs instead use src or something else..It causes problems.
In response to CodingSkillz2
I think your problem is you dont know what Ctype and Btype are..Here you set Btype to 1. In your Teamsay Btype is talking in purple but you said aliens are supposed to be green.
Try not using usr in procs.
In response to Dession
No aliens are supposed to talk in purple but end up talking in green.And if i'm a soldier i can hear what the alien team says.And i'll fix the usr-src thing.