#include <sscanf2>
dcmd_mute(playerid, params[])
{
new targetid,reason[30];
if(sscanf(params, "us[30]", targetid,reason)) return SendClientMessage(playerid, red, "ERROR MESSAGE HERE");
//here is scanfs if targetid is either a playerid/name and reason is a string.
plugins sscanf