18.04.2009, 11:24
pawn Код:
if(!strcmp(cmd,"/mute",true))
{
cmd=strtok(cmdtext,idx);
if(!strlen(cmd)) return SendClientMessage(playerid,color,"USAGE: /mute [playerid/name]");
id=ReturnUser(cmd);
if(!IsPlayerConnected(id)) return SendClientMessage(palyerid,color,"Invalid player ID.");
AccountInfo[id][mute]=1;
format(string,sizeof(string)," You muted %s.",namevariebleofid");
SendClientMessage(playerid,color,string);
format(string,sizeof(string)," %s muted you.",namevariebleofplayerid");
SendClientMessage(playerid,color,string);
return 1;
}