need help. make the text white
#1

Код:
//==============================================================================
// Gang Tag
//==============================================================================
 	if(text[0] && AccInfo[playerid][gang] >=1)
	{
	    new gangid = AccInfo[playerid][gang];
		new string[128];
		new PlayerName[MAX_PLAYER_NAME];
		GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
 		format(string, sizeof(string), "[%s] %s (%d): %s", GangInfo[gangid][GANG_NAME], PlayerName, playerid, text[0]);
                SendClientMessageToAll(GetPlayerColor(playerid), string);
 		return 0;
	}
how to make the text white? when in game like this:

I'll Give +Rep
Reply
#2

Change:
pawn Код:
SendClientMessageToAll(GetPlayerColor(playerid), string);
To:
pawn Код:
SendClientMessageToAll(-1, string);
In this 'function', the first parameter is the color..
Reply
#3

Quote:
Originally Posted by aRoach
Посмотреть сообщение
Change:
pawn Код:
SendClientMessageToAll(GetPlayerColor(playerid), string);
To:
pawn Код:
SendClientMessageToAll(-1, string);
In this 'function', the first parameter is the color..
not work , the text color and the nickname color is same (sorry for my bad english i'am indonesian) i want the text only are changed to white not with the nickname.
Reply
#4

pawn Код:
//==============================================================================
// Gang Tag
//==============================================================================
    if(text[0] && AccInfo[playerid][gang] >=1)
    {
        new gangid = AccInfo[playerid][gang];
        new string[128];
        new PlayerName[MAX_PLAYER_NAME];
        GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
        format(string, sizeof(string), "[%s] %s (%d): {FFFFFF}%s", GangInfo[gangid][GANG_NAME], PlayerName, playerid, text[0]);
                SendClientMessageToAll(GetPlayerColor(playerid), string);
        return 0;
    }
Reply
#5

Quote:
Originally Posted by ]Rafaellos[
Посмотреть сообщение
pawn Код:
//==============================================================================
// Gang Tag
//==============================================================================
    if(text[0] && AccInfo[playerid][gang] >=1)
    {
        new gangid = AccInfo[playerid][gang];
        new string[128];
        new PlayerName[MAX_PLAYER_NAME];
        GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
        format(string, sizeof(string), "[%s] %s (%d): {FFFFFF}%s", GangInfo[gangid][GANG_NAME], PlayerName, playerid, text[0]);
                SendClientMessageToAll(GetPlayerColor(playerid), string);
        return 0;
    }
wow thanks man its work. +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)