SA-MP Forums Archive
[ajuda] color do player - 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: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [ajuda] color do player (/showthread.php?tid=348682)



[ajuda] color do player - goku114 - 06.06.2012

pawn Код:
if(gTeam[playerid] == Aztecas) // Se Ele For Aztecas Ele Setarб Pro Local Abaixo :
{
    SetPlayerColor(playerid, CorAztecas); // Setarб a Cor Dele Para AZUL Que й a Cor definida no Topo !
    SetPlayerPos(playerid, 2232.2813,-1158.4985,29.7969); // Setarб Ele Para Estб Posiзгo
    SetPlayerInterior(playerid, 0); // Setarб o Interior Dele.
}
    if(gTeam[playerid] == Grove) // Se Ele For Grove Ele Setarб Pro Local Abaixo :
{
    SetPlayerColor(playerid, CorGrove); // Setarб a Cor dele Para VERDE Que й a Cor definida no Topo.
    SetPlayerPos(playerid, 2531.0586,-1666.2322,15.1678); //Setarб Ele Para Estб Posiзгo
    SetPlayerInterior(playerid, 0);// Setarб o Interior Dele.
}  
    {
    SetPlayerColor(playerid, CorCops); // Setarб a Cor dele Para VERDE Que й a Cor definida no Topo.
    SetPlayerPos(playerid, 1580.8141,-1634.1254,13.5621); //Setarб Ele Para Estб Posiзгo
    SetPlayerInterior(playerid, 0);// Setarб o Interior Dele.
}
o negocio e que a cor с ta funcionando

fica a ultimA cor ex: eu fui noos cops dai vo la troco de team e fica preto no grove que e verd


Re: [ajuda] color do player - Schocc - 06.06.2012

esta em qual Callback? me adicione no msn que te ajudo sem problemas leandroneni@live.com


Re: [ajuda] color do player - dPlaYer_ - 06.06.2012

pawn Код:
if(gTeam[playerid] == Aztecas) // Se Ele For Aztecas Ele Setarб Pro Local Abaixo :
{
    SetPlayerColor(playerid, CorAztecas); // Setarб a Cor Dele Para AZUL Que й a Cor definida no Topo !
    SetPlayerPos(playerid, 2232.2813,-1158.4985,29.7969); // Setarб Ele Para Estб Posiзгo
    SetPlayerInterior(playerid, 0); // Setarб o Interior Dele.
}
if(gTeam[playerid] == Grove) // Se Ele For Grove Ele Setarб Pro Local Abaixo :
{
    SetPlayerColor(playerid, CorGrove); // Setarб a Cor dele Para VERDE Que й a Cor definida no Topo.
    SetPlayerPos(playerid, 2531.0586,-1666.2322,15.1678); //Setarб Ele Para Estб Posiзгo
    SetPlayerInterior(playerid, 0);// Setarб o Interior Dele.
}
if(gTeam[playerid] == Cops)
{
    SetPlayerColor(playerid, CorCops); // Setarб a Cor dele Para VERDE Que й a Cor definida no Topo.
    SetPlayerPos(playerid, 1580.8141,-1634.1254,13.5621); //Setarб Ele Para Estб Posiзгo
    SetPlayerInterior(playerid, 0);// Setarб o Interior Dele.
}
Adicione onde seleciona as gangs..