SA-MP Forums Archive
[HELP] Name colors - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [HELP] Name colors (/showthread.php?tid=91711)



[HELP] Name colors - guaid - 16.08.2009

Hello, i'm all gone i cant figure out how to change players color, for example
Код:
	if(IsPlayerConnected(playerid))
		{
			if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1)
			{
SetPlayerColor(i,COLOR_COLOR_LIGHTBLUE);
					return 1;
	if(IsPlayerConnected(playerid))
		{
			if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2)
			{
SetPlayerColor(i,COLOR_COLOR_BLUE);
					return 1;
}
{
	if(IsPlayerConnected(playerid))
		{
			if(PlayerInfo[playerid][pMember] == 3||PlayerInfo[playerid][pLeader] == 3)
			{
SetPlayerColor(i,COLOR_COLOR_RED);
					return 1;
}
{
Could that work?


Re: [HELP] Name colors - MenaceX^ - 16.08.2009

pawn Код:
SetPlayerColor(i,COLOR_COLOR_RED);
?



Re: [HELP] Name colors - guaid - 16.08.2009

Oh damn, its all wrong, could someone help me editting it? all i want is to change the color of a
if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLeader] == 1) //lightblue
if(PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLeader] == 2) // blue

if(PlayerInfo[playerid][pMember] == 3||PlayerInfo[playerid][pLeader] == 3) // red


Re: [HELP] Name colors - guaid - 16.08.2009

Any1 got a idea?


Re: [HELP] Name colors - MenaceX^ - 16.08.2009

Help you with what?..
Show the whole code, you can't expect to get help by showing parts from the code..


Re: [HELP] Name colors - guaid - 16.08.2009

Quote:
Originally Posted by MenaceX^
Help you with what?..
Show the whole code, you can't expect to get help by showing parts from the code..
thats simply what the whole color thing is i made it by hand,