;'Moderate - Mute'

If GetUserID("mystix") <> #USERID
	SendMessageToAll("[Error] Script 735 triggered - User: "+GetUserName(#USERID),#MSG_CRITICAL)
	SendMessageToUser(#USERID,"If you see this message, type /where, and PM comrade with the map ID, the x and y location, and whatever skill, item, or NPC you just used.",#MSG_CRITICAL)
EndIf

TargetID=GetUserID(GetUserMessage(#USERID))

UserName=Lower(GetUserName(#USERID))

CanModerate = 0

If UserName="comrade"
	CanModerate = 1
ElseIf UserName="mystix"
	CanModerate = 1
EndIf

If CanModerate = 0
	SendMessageToAll("*"+GetUserName(#USERID)+" has the skill 'Moderate - Mute' which he is not supposed to have.",#MSG_CRITICAL)
	GoTo END
EndIf

If TargetID <> 0
	SendMessageToAll("*"+GetUserName(TargetID)+" muted: "+GetUserName(#USERID)+" muted him for 3 minutes.",#MSG_SERVER)
	SetUserMuteTime(TargetID,3)
	Timer(736,3*60000,#USERID,TargetID,0)
Else
	SendMessageToUser(#USERID,"Please say the name of the user you wish to mute.",#MSG_CRITICAL)
EndIf

Label END

Continue = 1