SendClientMessageToAll Multiple Colors
#9

Quote:
Originally Posted by LocMax
Посмотреть сообщение
NOTE, it has to be like this:
pawn Код:
public OnPlayerConnect(playerid)
{
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,""YELLOW"%s "GREY"has joined the "RED"server.",pName);
SendClientMessageToAll(COLOR_GREEN,string);
return 1;
}
I find that the ugliest way ever.

Putting it like

pawn Код:
format(string,sizeof string,"{808080} %s {FFFF00} has joined the {FF0000} server.",pName);
SendClientMessageToAll(COLOR_GREEN,string);
Neat and tidy!
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)