Posts: 7
Threads: 2
Joined: May 2008
Reputation:
0
Almost gave, but failed, instead of the color out of the color of the nickname, it leaves black, regardless of the color of the player!
What could it be?
Code:
public OnPlayerText (playerid, text [])
{
new string[128];
new name[24];
GetPlayerName(playerid,name,sizeof(name));
format(string,sizeof(string),"%s: %s",name,text);
SendClientMessageToAll(GetPlayerColor(playerid),st ring);
return 0;
}
Thank you!
Posts: 1,042
Threads: 32
Joined: Apr 2008
Reputation:
0
GetPlayerColor doesn't return any value if SetPlayerColor hasnt been used.
Look in mikefunc (my include) and use the ColorCorrect(playerid); function.
Posts: 7
Threads: 2
Joined: May 2008
Reputation:
0
Mikep I' love You =D
It worked perfectly, who wanted to look:
200.155.33.83:17777 24 Hours On!
Posts: 308
Threads: 17
Joined: Mar 2010
Reputation:
0
I am also trying to do this with prox detector. I want the whole string to be one color, depending on how far away the person is. I have the same code as above, however instead of the SendClientMessageToAll, it have ProxDetector. Any suggestions?