proc/automute()//Automutes the player, if spamming say or afk and such.
usr.spam+=1
spawn(4)
usr.spam-=1
if(usr.spam<=-1)
usr.spam=0
if(usr.spam>=2)
world<<output("[usr.GetTime()]<font color=blue>Server: <font color=grey>[usr.name] has been automuted.","[s]")
usr.muteid=usr.name
Mute+=usr.key
spawn(600)
if(usr.key in Mute)
Mute-=usr.key
world<<output("[usr.GetTime()]<font color=blue>Server: <font color=grey>[usr.muteid] has been un-automuted.","[s]")
usr.spam=0
return
else
return
mob/var/spam//Goes with the proc, so it ended up in here.
mob/var/muteid
Problem description:
When they log out, it will not take off their key from the list when their time is up! I know what the problem is... But, I don't know how to make it where the player logs and it will take their key off. Obviousily the proc doesn't work, what are ways I could connect this only with that player, so it knows who's key needs to be taking off?
Remove the users key from the Mute list at Logout() or client/Del()