28.08.2011, 02:28
Admin chat?
pawn Code:
CMD:adminchat(playerid,params[])
{
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,SRed,"Only admin can use this command.");
if(isnull(params)) return SendClientMessage(playerid,SYellow,"Usage: /a(adminchat) <text> ~To talk in admin chat.");
CostumFormat(params,"(([Admin]%s: %s))",SUName(playerid),params);
return AdminChat(params);
}
stock AdminChat(stringtext[])
{
foreach(Player,i)
{
if(IsPlayerAdmin(playerid)) SendClientMessage(i,SOrange,stringtext);
}
return 1;
}