ID:142053
 
Code:
    proc
checkmap(mob/m)
if(worldmap=="none")
world<<"[src]"
src<<"oic"
return
if(worldmap=="grassland")
if(src.team==1)
var/mob/location
location=locate(rand(2,10),rand(2,10),2)
if(location.density)
src<<"o"
checkmap()
else
src.loc=location
/////////////////////////////////////////////////////
client
Click(mob/M)
if(istype(M))
usr<<"you're clicking on [M]!"
if(usr.team==M.team)
var/location
var/teams
location=M.loc
teams=usr.team
M.client=usr.client
M.loc=location
M.team=teams

else

..()


Problem description:

The problem is that after switching clients, why won't I get the message "oic" from src?

Are you changing the worldmap variable?
You're not calling checkmap().
Oh, sorry guys, it wasn't a problem at all. It's just that it called checkmap() before I actually switched clients to get control of the mob who was receiving the test message.