SA-MP Forums Archive
Dos colores en un jugador? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Español/Spanish (https://sampforum.blast.hk/forumdisplay.php?fid=29)
+---- Thread: Dos colores en un jugador? (/showthread.php?tid=527271)



Dos colores en un jugador? - Alvaro89 - 21.07.2014

Hola. Mi duda es si un jugador puede tener un color, por ejemplo blanco. Y q otro usuario lo vea de otro color, por ejemplo azul.

Y tambien como hacer para q solo los q sean policias vean de color naranja a un jugador q mato a alguien

Desde ya Gracias


Re: Dos colores en un jugador? - Onfroi - 21.07.2014

SetPlayerMarkerForPlayer


Re: Dos colores en un jugador? - Alvaro89 - 21.07.2014

Eso ya se. Pero como hago para q solo la policia puedan verlo


Re: Dos colores en un jugador? - turro911 - 21.07.2014

Usa un "if" junto con la variable que usas para definir a la policia.

Ej:
if(equipo[playerid] == 1)
{
SetPlayerMarkerForPlayer ...
return 1;
}


Re: Dos colores en un jugador? - Onfroi - 21.07.2014

pawn Код:
SetPlayerMarkerForPlayer(ID_POLICIA, ID_CRIMINAL, (GetPlayerColor(ID_CRIMINAL) & COLOR_NARANJA) );



Re: Dos colores en un jugador? - Alvaro89 - 21.07.2014

Asi?

PHP код:
forward MensajeAPolicias(colorstring[]);
public 
MensajeAPolicias(colorstring[])
{
   for(new 
0MAX_PLAYERSi++)
   {
       if(
IsPlayerConnected(i))
       {
           if(
PlayerInfo[i][pPolicia] == 1)
           {
             
SendClientMessage(icolorstring);
             
SetPlayerMarkerForPlayer (  buscados[i] , Naranja ) ;
           }
       }
   }