[AJUDA]Player Marker
#1

Boas,eu fiz isto:

Код:
public OnPlayerSpawn(playerid)
{
    SetPlayerColor(playerid, WHITE);

	if(Player[playerid][Authenticated] == 1)
	{
        if(Player[playerid][Group] == 1)
		{
			if(Player[playerid][CopDuty] == 1)
  			{
    			     SetPlayerColor(playerid, WHITE);
  			}
   			else
    		       {
          		     SetPlayerColor(playerid, BLUE);
                        }
		}

	        if(Player[playerid][Group] == 4)
		{
			SetPlayerColor(playerid, RED);
		}
	
		if(Player[playerid][Group] == 6)
		{
			SetPlayerColor(playerid, PURPLE);
		}
		
		if(Player[playerid][Group] == 8)
		{
			SetPlayerColor(playerid, GREEN);
		}
		
                if(Player[playerid][Group] == 12)
		{
			SetPlayerColor(playerid, YELLOW);
		}
		
		if(Player[playerid][Group] == 7)
		{
			SetPlayerColor(playerid, AQUAGREEN);
		}
	}
Mas quando alguem morre a cor reseta para branco.Ainda nao consegui descobrir porque...Alguem pode dar uma dica?
Reply


Messages In This Thread
[AJUDA]Player Marker - by =WoR=Bruno - 20.02.2011, 12:59
Re: [AJUDA]Player Marker - by MaGnata_ - 20.02.2011, 13:04
Re: [AJUDA]Player Marker - by rjjj - 20.02.2011, 13:39
Re: [AJUDA]Player Marker - by =WoR=Bruno - 20.02.2011, 14:26

Forum Jump:


Users browsing this thread: 2 Guest(s)