ID:143171
 
Code:
        Whisper(M as mob in world, msg as text)
set category = "Social"
set name = "Whisper"
src = usr
M<<"[usr.name] whisper to you: [msg]"


Problem description:
OK so the code i have now will give in pop up all mobs that are in world, right? Right, and i would like it to make so it give only the mob's that var player=1 .

And ofcours i dont know what arg should i use it.. :/
        Whisper(M as player in world, msg as text)
set category = "Social"
set name = "Whisper"
src = usr
M<<"[usr.name] whisper to you: [msg]"


ive tried that way but it didnt worked...any ideas?

Keep a list of connected clients, and then pick from that list:

var/tmp/list/clients = list()

client
New()
..()
clients += src
Del()
clients -= src
..()
verb/whisper(var/client/C in clients, var/msg as text)
C << msg
In response to Garthor
Another one Im fond of is [link].
In response to Zythyr
Of course, that's generally backwards, and specifically VERY backwards.
In response to Garthor
How would you get the options list to list the clients mob's names and still output to the client?, since generally you're not going to know who's client name goes with which pc that you see running around usually. I can get it close to working to where i can see the mob name or when i whisper to the client name it shows my mob as the source but not to where the message goes where it should if I try to whisper the person's mob name.

mike-
In response to Garthor
Thx it work just great, i didnt know that i can use list for it couse im on chapter 6 still :)
In response to Kichimichi
Same as what I posted, but instead you add client.mob to the list, and send the message to mob.client. Well, that second part is redundant, because a message to a mob only goes to its client anyway.