Newbie chat
#2

Quote:
Originally Posted by MartinJ1
Посмотреть сообщение
I'm wondering if anyone can bother creating a newbie chat for me
and give me the codes, just a simble /n (question) and it will be sent to the whole server in the chat...

i already have COLOR_NEWBIE so i only need someone to make the OnPlayerCommand.. THanks!
pawn Код:
COMMAND:yourcommand(playerid, params[])
{
    new tmpstring[164], name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, name, sizeof(name));
    if(sscanf(params, "s[128]", tmpstring))
    {
        SendClientMessage(ANGRY_COLOR, ERROR_RED, "ERROR: Usage /n [message]");
        return 1;
    }
    else
    {
        format(tmpstring, sizeof(tmpstring), "(NEWBIE) %s: %s ", name, tmpstring);
        SendClientMessageToAll(GetPlayerColor(playerid), tmpstring);
    }
    return 1;
}
I made this for you, try and if you have questions ask below.

-FalconX
Reply


Messages In This Thread
Newbie chat - by MartinJ1 - 16.04.2012, 15:00
Re: Newbie chat - by FalconX - 16.04.2012, 15:06
Re: Newbie chat - by MartinJ1 - 16.04.2012, 15:07
Re: Newbie chat - by FalconX - 16.04.2012, 15:09
Re: Newbie chat - by Faisal_khan - 16.04.2012, 15:12
Re: Newbie chat - by MartinJ1 - 16.04.2012, 15:17
Re: Newbie chat - by FalconX - 16.04.2012, 15:22
Re: Newbie chat - by emokidx - 16.04.2012, 15:24
Re: Newbie chat - by Faisal_khan - 16.04.2012, 15:28
Re: Newbie chat - by FalconX - 16.04.2012, 15:31

Forum Jump:


Users browsing this thread: 1 Guest(s)