17.09.2012, 08:51
pawn Код:
CMD:n(player, params[]) //You can replace n with anything you want, newbiechat etc.
{
new message[80];
if(sscanf(params, "s", message)) return SendClientMessage(playerid, WHITE, "SYNTAX: /(n) [message]");
if(strlen(message) > 80) return SendClientMessage(playerid, WHITE, "SYNTAX: /(n) [message]");
if(Player[playerid][AdminLevel] < 1)
{
format(string,sizeof(string),"[NEWBIE] %s says: %s",GetName(playerid), message);
}
else
{
format(string,sizeof(string),"[NEWBIE] {FF0000}%s {F2C200}says: %s",GetName(playerid),message);
}
SendClientMessageToAll(0xF2C200FF, string); //You can replace the colour with whatever you desire.
return 1;
}