09.06.2013, 11:24
Code i used:
new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "{CCCCCC}>>JOIN: {99FF33}%s {CCCCCC}has Joined the server", pname);
SendClientMessageToAll(-1, string);
What is wrong:
it send the message, but it looks like this,
and it must look like this,
i used SendClientMessage(playerid, -1, "{CCCCCC}>>JOIN: {99FF33}[UF]ic3_cr3am {CCCCCC}has Joined the server"); Just to show u what it must look like
The Players name must be in green, colour code, {99FF33} and the other part of the message, in grey, colour code, {CCCCCC}
new pname[MAX_PLAYER_NAME], string[22 + MAX_PLAYER_NAME];
GetPlayerName(playerid, pname, sizeof(pname));
format(string, sizeof(string), "{CCCCCC}>>JOIN: {99FF33}%s {CCCCCC}has Joined the server", pname);
SendClientMessageToAll(-1, string);
What is wrong:
it send the message, but it looks like this,

and it must look like this,

The Players name must be in green, colour code, {99FF33} and the other part of the message, in grey, colour code, {CCCCCC}