Chat code
mob/verb
View_Chat(msg as text)
set category = "Chat"
if(usr.muted == 1)
return
if(usr.online == 0)
return
if(usr.talking == 1)
usr << "<font size=1>You must wait until you can talk again."
spam += 1
usr.Auto_Mute()
return
else
usr.talking = 1
view(usr) << output("<font size=1><b><font color=#6699CC>[usr]: <font color=white>[msg]","Social")
sleep(20)
usr.talking = 0
Auto-Mute Code
mob/proc
Auto_Mute()
if(src.spam > 2)
world << "<b><font size=1><font color=aqua>Spam Information: [src] has been muted due to spam."
src.muted = 1
sleep(300)
src.muted = 0
world << "<b><font size=1><font color=aqua>Spam Information: [src] has been unmuted."
Problem description:
It wont mute them, or even say they are muted. Actualy, the full proc wont work.
Read the code above i edited it.(i m in a hurry i have to leave)