12.11.2013, 13:51
pawn Код:
CMD:a(playerid, params[])
{
if(*/ admin variable here */)
{
new text[124], string[124], pname[MAX_PLAYER_NAME];
if(sscanf(params, "s[124]", text)) return SendClientMessage(playerid, -1, "/a [text]");
GetPlayerName(playerid, pname, MAX_PLAYER_NAME);
format(string, sizeof(string),"%s: %s", pname, text);
SendAdminMessage(-1, string);
}
else return SendClientMessage(playerid, -1, "You're not an admin")
return 1;
}
SendAdminMessage(color, const string[])
{
foreach(Player, i)
{
if(*/ admin variable here */)
{
SendClientMessage(i, color, string);
}
}
return 1;
}