28.01.2011, 23:11
(
Последний раз редактировалось JaTochNietDan; 29.01.2011 в 18:23.
Причина: Use edit.
)
pawn Код:
COMMAND:unmute(playerid, params[])
{
if(PlayerInfo[playerid][Admin] > 0)
{
new targetid, string[128];
if(sscanf(params, "u", targetid)) return SendUsage(playerid, "USAGE: /unmute [targetid]");
if(IsPlayerConnected(targetid))
{
format(string, 128, "**(ADMIN UNMUTE)** %s(%d) has been unmuted by Admin '%s(%d)'", PlayerName(targetid), targetid, PlayerName(playerid), playerid);
SendClientMessageToAll(COLOR_RED, string);
PlayerInfo[targetid][Muted] = 0;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "ERROR: That player is not connected.");
}
}
else SendErrorMessage(playerid);
return 1;
}