Need help with chat
#9

Quote:
Originally Posted by virspector
Only normal chat that can do like this:

iAmPoliCE: Hello!

If u use SendClientMessage thing, it's IMPOSSIBLE to make part of it White and another part of it other color except if they are in different line.

So, nothing that you can do. What you can do is let all the colors the same in 1 line...
Put your mind to it, nothings impossible.

A little thing I made a little while ago:

pawn Код:
public SendCustomMessage(playerid,color,string[],string2[])
{
    new pNames[MAX_PLAYER_NAME],color2;
    GetPlayerName(playerid,pNames,sizeof(pNames));
    color2 = GetPlayerColor(playerid);
    SetPlayerColor(playerid,color);
    SetPlayerName(playerid,string);
    SendPlayerMessageToAll(playerid,string2);
    SetPlayerName(playerid,pNames);
    SetPlayerColor(playerid,color2);
}
The color you put in is the color of What you want the name to come up as, Then the First String part is where you put the players name, then the second part is whatever Like the text string use make from the format.

Reply


Messages In This Thread
Need help with chat - by sexybeast - 23.11.2009, 08:15
Re: Need help with chat - by sexybeast - 24.11.2009, 01:19
Re: Need help with chat - by Guso - 24.11.2009, 01:44
Re: Need help with chat - by mamorunl - 24.11.2009, 07:50
Re: Need help with chat - by sexybeast - 24.11.2009, 09:23
Re: Need help with chat - by virspector - 24.11.2009, 11:34
Re: Need help with chat - by sexybeast - 24.11.2009, 11:44
Re: Need help with chat - by mamorunl - 24.11.2009, 14:44
Re: Need help with chat - by miokie - 24.11.2009, 15:23
Re: Need help with chat - by sexybeast - 24.11.2009, 23:14

Forum Jump:


Users browsing this thread: 1 Guest(s)