ID:267266
 
cam some one tell me how to fix this plz?


unmute(mob/M as mob)
set category = "GM"
if(!M.key)
src <<"You Can't Unmute An NPC!"
return
if(M.key == usr.key)
src <<"You Can't Unmute Yourself!"
else
M.verbs+=/mob/verb/say
world <<"[M]
Has Been Unmuted By [src]!"
make sure the verb is say not Say cuz byond coding is CaSe SeNsAtIvE
Define "fix", and we might be able to help you. =P
In response to Koolguy900095
nvm all, i delted the code and im implementing a new one!
I personally go this way, instead of adding and subtracting there world say, more efficient, try this:
mob
var
mute=0
Login()
if(src.key=="SSJ4_Radditz")
src.verbs+=(/mob/gm/verb/Mute)
src.verbs+=(/mob/gm/verb/UnMute)
..()
gm/verb
Mute(mob/M in world)
if(!M.key)
usr<<"Sorry, you cannot mute an NPC."
else if(M.key==usr.key)
usr<<"You cannot mute yourself."
else if(!M.mute)
usr<<"[M] is already muted."
else
M.mute=0
world<<"[usr] unmuted [M]."
UnMute(mob/M in world)
if(!M.key)
usr<<"Sorry, you cannot unmute an NPC."
else if(M.key==usr.key)
usr<<"You cannot unmute yourself."
else if(M.mute)
usr<<"[M] is already unmuted."
else
M.mute=1
world<<"[usr] muted [M]."
verb
Say(msg as text)
if(usr.mute)
usr<<"Your muted."
else
world<<"[usr]: [msg]"


RaeKwon