14.09.2012, 19:11
pawn Код:
CMD:a(playerid, params[])
{
if(GetPVarInt < Level) return ErrorMessage(playerid);
{
new message[91];
if(sscanf(params, "s[90]", message)) return SendClientMessage( playerid, white, "USAGE: /a [message]");
if(strlen(params)>90) return SendClientMessage(playerid, red, "Invalid length. The length must be between 1 and 90 characters.");
new string[128]=0;
foreach (Player, i)
{
if(PlayerInfo[i][pAdmin] != 0) { format(string,sizeof(string),"[Admin Chat] {FFFFFF}%s{FF0000}:{FFFFFF} %s", GetPName(playerid), message); SendClientMessage(i, red, string); }
}
}
return 1;
}