Chat Help
#2

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;
}
NOTE: Untested
Reply


Messages In This Thread
Chat Help - by KiiD - 17.09.2012, 08:39
Re: Chat Help - by clarencecuzz - 17.09.2012, 08:51
Re: Chat Help - by [ABK]Antonio - 17.09.2012, 08:52
Re: Chat Help - by KiiD - 17.09.2012, 09:08
Re: Chat Help - by [ABK]Antonio - 17.09.2012, 09:09
Re: Chat Help - by KiiD - 17.09.2012, 09:13
Re: Chat Help - by clarencecuzz - 17.09.2012, 09:15
Re: Chat Help - by [ABK]Antonio - 17.09.2012, 09:15
Re: Chat Help - by clarencecuzz - 17.09.2012, 09:20

Forum Jump:


Users browsing this thread: 3 Guest(s)