Getting a players name?
#1

Hey, When I use this code to add the players ID to the chat next to their name. No matter what the players color is, it always appears white. How would I make it get the players name color and use it instead of white for all players?

pawn Код:
public OnPlayerText(playerid, text[])
{
    new Name[MAX_PLAYER_NAME], string[128];
    GetPlayerName(playerid, Name,sizeof(Name));
    format(string,sizeof(string),"%s(%i): %s",Name,playerid,text);
    SendClientMessageToAll(-1 ,string);
    return 0;
}
Reply


Messages In This Thread
Getting a players name? - by Th3UnKnOwN - 03.01.2015, 00:58
Re: Getting a players name? - by Sledgehammer - 03.01.2015, 01:06
Re: Getting a players name? - by UploaD - 03.01.2015, 01:07
Re: Getting a players name? - by Th3UnKnOwN - 03.01.2015, 01:22
Re: Getting a players name? - by SickAttack - 03.01.2015, 03:11
Re: Getting a players name? - by ATGOggy - 03.01.2015, 05:30
Re: Getting a players name? - by Th3UnKnOwN - 03.01.2015, 20:33

Forum Jump:


Users browsing this thread: 1 Guest(s)