18.01.2018, 23:43
Quote:
That doesn't solve my problem nor did I want it to tie into my main chat format.
|
PHP код:
CMD:mute(playerid, params[])
{
if(eUser[playerid][e_USER_ADMIN_LEVEL] >= 1)
{
new string[128], id, reason[128];
if(sscanf(params, "uS[128]", id, reason)) return SendClientMessage(playerid, COLOR_ERROR, "USAGE: /mute [playerid] [reason]");
if(mute[id] == 0)
{
muted[id] = 1;
format(string, sizeof(string), "SERVER: %s has been muted by an admin (Reason: %s)", pName(id), reason);
SendClientMessageToAll(-1, string);
}
else return SendClientMessage(playerid,COLOR_ERROR,"The specified player is already muted.");
}
else return SendClientMessage(playerid, -1, "You are not a administrator!");
return 1;
}