ID:142366
 
Code:
mob/verb
say(msg as text)
set hidden = 1
if(msg == bla)
world << "<b>[usr] has been muted for two minutes. He was repeating."
muted = 1
sleep(120)
if(usr.muted)
world << "<b>[usr] has been auto-unmuted."
muted = 0
if(!disabled)
if(!muted)
if(!chatdoing)
chatdoing = 1
if(GM) for(var/mob/M in world)
if(M.RoomName == usr.RoomName)
M << "<a href='?src=\ref[src];action=whisper'>pmbutto</a><b>{Admin}</b> <font color=[usr.namecolor]>[usr]: <font color=[usr.textcolor]>[msg]"
else for(var/mob/M in world)
if(M.RoomName == usr.RoomName)
M << "<a href='?src=\ref[src];action=whisper'>pmbutto</a><b>{[time2text(world.realtime,"hh:mm")]}</b> <font color=[usr.namecolor]>[usr]: <font color=[usr.textcolor]>[msg]"
bla = msg
sleep(8)
chatdoing = 0
else
alert("You're doing something right now.")
chatspam += 1
spam()
else
alert("You have been muted for what ever reason.")
else
alert("You have been disabled for what ever reason.")

mob/Topic(href, href_list)
switch(href_list["action"])
if("whisper")
var/text = input(usr,"What would you like to Whisper?") as text|null
if(!text)
return
else
src << "<b><font color=[usr.namecolor]>[usr] Whispers to you: <font color=[usr.textcolor]>[text]"

obj/pmbutto/icon = 'pmbutton.dmi'


Output:
pmbutto{Admin} Howey: khj

Problem description:
Where it says pmbutto on the output, it should be showing a PM Icon button thing...

Writing pmbutto isn't going to magically cause an icon to appear. You need to use the \icon text macro (look it up).
In response to Garthor
Garthor wrote:
Writing pmbutto isn't going to magically cause an icon to appear. You need to use the \icon text macro (look it up).

Where? I can't find it in the DM Reference.
In response to Howey
Howey wrote:
Garthor wrote:
Writing pmbutto isn't going to magically cause an icon to appear. You need to use the \icon text macro (look it up).

Where? I can't find it in the DM Reference.


http://www.byond.com/docs/ref/info.html#/icon
In response to A.T.H.K
Thanks a lot, I've figured it out. :)
In response to Howey
Howey wrote:
Where? I can't find it in the DM Reference.

Minor hint for next time:

Fantastic, is it not? On the web-version of the reference, you can also use your browser's search/find feature.

Howey programmed:
if(!disabled)
if(!muted)
if(!chatdoing)
While you're at it, also look up the && operator there. It's DM's logical AND operator, meaning you could compact the above to a more efficient, single if() statement:
if(!disabled && !muted && !chatdoing)