SA-MP Forums Archive
How To Change Color On Cmd /highlight - 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: How To Change Color On Cmd /highlight (/showthread.php?tid=387551)



How To Change Color On Cmd /highlight - [IND]Crazy - 25.10.2012

I have a problem in replacing colors in cmds / highlights

In Script moneypimp cmds / highlight just change the color to red and yellow player but I want to replace it with a light blue and green.

please give suggestions of what I should do
Код HTML:
//==============================================================================
//-------------------------------------------------
// HighLight
//-------------------------------------------------
//==============================================================================
public HighLight(playerid)
{
	if(!IsPlayerConnected(playerid))
	return 1;
	if(AccInfo[playerid][blipS] == 0)
	{
		SetPlayerColor(playerid, 0xFF0000AA);
		AccInfo[playerid][blipS] = 1;
	}
	else
	{
		SetPlayerColor(playerid, 0xFFFF00AA);
		AccInfo[playerid][blipS] = 0;
	}
	return 0;
}



Re: How To Change Color On Cmd /highlight - Faisal_khan - 25.10.2012

I don't get what you are trying to say. Please explain a bit more or use ****** translate to translate your native language to English.


Re: How To Change Color On Cmd /highlight - [IND]Crazy - 25.10.2012

Done I Fix the thread


Re: How To Change Color On Cmd /highlight - [HK]Ryder[AN] - 25.10.2012

change that code to
pawn Код:
//==============================================================================
//-------------------------------------------------
// HighLight
//-------------------------------------------------
//==============================================================================
public HighLight(playerid)
{
    if(!IsPlayerConnected(playerid))
    return 1;
    if(AccInfo[playerid][blipS] == 0)
    {
        SetPlayerColor(playerid, 0x008AFFFF);
        AccInfo[playerid][blipS] = 1;
    }
    else
    {
        SetPlayerColor(playerid, 0x00FF00FF);
        AccInfo[playerid][blipS] = 0;
    }
    return 0;
}



Re: How To Change Color On Cmd /highlight - [IND]Crazy - 25.10.2012

Only on Pwn or with .amx ?


Re: How To Change Color On Cmd /highlight - [IND]Crazy - 25.10.2012

Still Change to Red And Yellow .

how to change to color Red and LightGreen


Re: How To Change Color On Cmd /highlight - [HK]Ryder[AN] - 25.10.2012

Change your code with mine and press F5 in Pawno


Re: How To Change Color On Cmd /highlight - Faisal_khan - 25.10.2012

@Ryder Earlier I said you to explain what you modified in the code.

@Crazy
pawn Код:
SetPlayerColor(playerid, 0x00FF00FF);
here just change this value 0x00FF00FF to the value of the color you want.


Re: How To Change Color On Cmd /highlight - [HK]Ryder[AN] - 25.10.2012

@Faisal where did you say that?
You can see in my code i modified the colors.


Re: How To Change Color On Cmd /highlight - Faisal_khan - 25.10.2012

Quote:
Originally Posted by [HK]Ryder[AN]
Посмотреть сообщение
@Faisal where did you say that?
You can see in my code i modified the colors.
mlol you forgot.