Help with Team Colors
#1

Hello again
I have searched around on the forums and the web, but I found nothing to make me smart...
So I hope you can help me with this.

I want different colors for classes, example: Cops = Blue, Ballas = Purple and so on...

I have fugured out how to make colors in the Skin Selection, here is the script:

Код:
	  case 33:
	  {
			GameTextForPlayer(playerid,"~n~~n~~n~~w~Police Officers",15000,3);
			{
		         SetPlayerInterior(playerid, 0);
				SetPlayerPos(playerid, 1539.8015,-1675.2411,13.5494);
				SetPlayerFacingAngle(playerid, 88.0997);
				SetPlayerCameraPos(playerid, 1535.0481,-1675.4333,13.3828);
				SetPlayerCameraLookAt(playerid, 1539.8015,-1675.2411,13.5494);
				SetPlayerColor(playerid, 0x0000BBAA);
				SetPlayerTeam(playerid, 1);
				ApplyAnimation(playerid,"PLAYIDLES","TIME",4.1,1,1,1,1,1);
			 }
	  }
So basicly, I want colors for every team in my script.

Thanks!
Reply
#2

pawn Код:
//OnPlayerSpawn

if(/*TEAM VARIABLE*/ == /*Team*/)
{
  SetPlayerColor(playerid, COLOR);
}
Reply
#3

Quote:
Originally Posted by [HiC
TheKiller ]
pawn Код:
//OnPlayerSpawn

if(/*TEAM VARIABLE*/ == /*Team*/)
{
  SetPlayerColor(playerid, COLOR);
}
Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)