SA-MP Forums Archive
need help. make the text white - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: need help. make the text white (/showthread.php?tid=335365)



need help. make the text white (helping +rep) - RipLagger - 18.04.2012

Код:
//==============================================================================
// 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


Re: need help. make the text white - aRoach - 18.04.2012

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


Re: need help. make the text white - RipLagger - 18.04.2012

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.


Re: need help. make the text white - ]Rafaellos[ - 18.04.2012

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;
    }



Re: need help. make the text white - RipLagger - 18.04.2012

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