[Help]2 colours in a ClientMessage?
#1

Hi, im wondering can you get two colours into a Clientmessage/ format
prob a newb question but meh

like this
pawn Код:
new test[MAX_PLAYERS];

public OnPlayerText(playerid, text[])
{
    if(test[playerid] == 1)
    {
    new string[128];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "%s[Test]: %s", name, text); //Players name to be a colour, and the text to be default white
    SendClientMessageToAll(dunno,string);
    return 0;
    }
    return 1;
}
Hope this made sense

Thanks
Reply


Messages In This Thread
[Help]2 colours in a ClientMessage? - by Dirty_bum - 03.11.2009, 07:27
Re: [Help]2 colours in a ClientMessage? - by CJ101 - 03.11.2009, 07:30
Re: [Help]2 colours in a ClientMessage? - by Blacklite - 03.11.2009, 07:33
Re: [Help]2 colours in a ClientMessage? - by Dirty_bum - 03.11.2009, 07:39
Re: [Help]2 colours in a ClientMessage? - by Mikep. - 03.11.2009, 08:38
Re: [Help]2 colours in a ClientMessage? - by Kurence - 03.11.2009, 08:43
Re: [Help]2 colours in a ClientMessage? - by Abernethy - 03.11.2009, 08:44
Re: [Help]2 colours in a ClientMessage? - by Dirty_bum - 03.11.2009, 18:34
Re: [Help]2 colours in a ClientMessage? - by MadeMan - 03.11.2009, 19:13

Forum Jump:


Users browsing this thread: 7 Guest(s)