[DUV] SetPlayerToTeamColor
#1

toda a vez que eu uso o SetPlayerToTeamColor ou SetPlayerColor a pessoa fica como se fosse um checkpoint no mapa da cor que ela estб setada. Eu vi uma vez um server que ela nгo ficava com o checkpoint no mapa quando usavгo o setplayertoteamcolor alguйm sabe me dizer como eu faзo para usar o SetPlayerToTeamColor ou SetPlayerColor sem criar um sнmbolo de Checkpoint na pessoa? ficaria muito grato obrigado a todos.
a qui estб a minha public do setplayertoteamcolor

pawn Код:
public SetPlayerToTeamColor(playerid)
{
    if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)//Polнcia Militar
    {
       SetPlayerColor(playerid, COLOR_DBLUE);
    }
    else if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)//Polнcia Federal
    {
       SetPlayerColor(playerid, COLOR_DBLUE);
    }
    else if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)//Forзas Armadas
    {
       SetPlayerColor(playerid, COLOR_DBLUE);
    }
    else if (PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)//G.A.R.R.A
    {
       SetPlayerColor(playerid, COLOR_DBLUE);
    }
    else if (PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)//Front Yard Ballas
    {
       SetPlayerColor(playerid, TEAM_BALLAS_COLOR);
    }
    else if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)//Grove Street Families
    {
       SetPlayerColor(playerid, TEAM_GROVE_COLOR);
    }
    else if (PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)//Ministйrio
    {
       SetPlayerColor(playerid, COLOR_YELLOW);
    }
    else if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)//Hitman
    {
       SetPlayerColor(playerid, 0xFFA85400AA);
    }
    else if (PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9)//Repуrters
    {
       SetPlayerColor(playerid, COLOR_WHITE);
    }
    else if (PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)//Lowriders
    {
       SetPlayerColor(playerid, COLOR_LOWRIDER);
    }
    else if (PlayerInfo[playerid][pMember] == 11 || PlayerInfo[playerid][pLeader] == 11)//MOSSAD
    {
       SetPlayerColor(playerid, COLOR_MOSSAD);
    }
    else if (PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12)//Los Santos Vagos
    {
       SetPlayerColor(playerid, TEAM_VAGOS_COLOR);
    }
    else if (PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)//Asphalt King's
    {
       SetPlayerColor(playerid, TEAM_MOTOCA_COLOR);
    }
    else if (PlayerInfo[playerid][pMember] == 14 || PlayerInfo[playerid][pLeader] == 14)//Asfarc
    {
       SetPlayerColor(playerid, 0xF4005BF6);
    }
    else if (PlayerInfo[playerid][pMember] == 15 || PlayerInfo[playerid][pLeader] == 15)//Varrio Los Aztecas
    {
       SetPlayerColor(playerid, TEAM_AZTECAS_COLOR);
    }
    else if (PlayerInfo[playerid][pMember] == 16 || PlayerInfo[playerid][pLeader] == 16)//Mбfia Russa
    {
       SetPlayerColor(playerid, COLOR_BLACK);
    }
    else if (PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17)//Mбfia Yakuza
    {
       SetPlayerColor(playerid, 0xFFFF3E3EAA);
    }
    else if (PlayerInfo[playerid][pMember] == 18 || PlayerInfo[playerid][pLeader] == 18)//Drifters
    {
       SetPlayerColor(playerid, LARANJA1);
    }
    else if (PlayerInfo[playerid][pMember] == 19 || PlayerInfo[playerid][pLeader] == 19)//Comando Vermelho
    {
       SetPlayerColor(playerid, TEAM_COMANDO_COLOR);
    }
    else if (PlayerInfo[playerid][pMember] == 20 || PlayerInfo[playerid][pLeader] == 20)//PCC
    {
       SetPlayerColor(playerid, TEAM_PCC_COLOR);
    }
    else if (PlayerInfo[playerid][pMember] == 21 || PlayerInfo[playerid][pLeader] == 21)//Detran
    {
       SetPlayerColor(playerid, COLOR_DBLUE);
    }
    else if (PlayerInfo[playerid][pMember] == 22 || PlayerInfo[playerid][pLeader] == 22)//Al-Qaeda
    {
       SetPlayerColor(playerid, COLOR_ALQAEDA);
    }
    else if (PlayerInfo[playerid][pTeam] == 3)//Civis
    {
       SetPlayerColor(playerid, COLOR_WHITE);
    }

}
Reply
#2

Vo postar o meu:

pawn Код:
if(PlayerInfo[playerid][pMembro] == 7 || PlayerInfo[playerid][pLider] == 7)//Prefeito
        {
            if(sincronizando[playerid] == 1)
            {
            return 1;
            }
            SetPlayerColor(playerid, COLOR_PREF);
            SetPlayerInterior(playerid, 0);
            SetPlayerPos(playerid, 1126.4756,-2037.0060,69.8836);
            PlayerInfo[playerid][pInt] = 0;
            PlayerInfo[playerid][pLocal] = 241;
            GivePlayerWeapon(playerid, 24, 100);
            SetPlayerHealth(playerid, 100);
            return 1;
        }
        if (PlayerInfo[playerid][pMembro] == 2 || PlayerInfo[playerid][pLider] == 2)//ROTAM
        {
            if(sincronizando[playerid] == 1)
            {
            return 1;
            }
            SetPlayerColor(playerid, COLOR_ROTAM);
            SetPlayerInterior(playerid, 0);
            SetPlayerPos(playerid, 286.3543,-1513.8691,24.9289);
            PlayerInfo[playerid][pInt] = 0;
            return 1;
        }
        if (PlayerInfo[playerid][pMembro] == 1 || PlayerInfo[playerid][pLider] == 1)//Police
        {
            if(sincronizando[playerid] == 1)
            {
            return 1;
            }
            SetPlayerColor(playerid, COP_COLOR);
            SetPlayerInterior(playerid, 0);
            SetPlayerPos(playerid, 1529.4567,-1671.7179,6.2188);
            PlayerInfo[playerid][pInt] = 0;
            return 1;
        }
        if (PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)//Exйrcito spawn
        {
            if(sincronizando[playerid] == 1)
            {
            return 1;
            }
            SetPlayerColor(playerid, TEAM_GREEN_COLOR);
            SetPlayerInterior(playerid, 0);
            SetPlayerPos(playerid, -1346.9358,492.0078,11.2027);
            PlayerInfo[playerid][pInt] = 0;
            SetPlayerArmour(playerid, 100);
            return 1;
        }
        if (PlayerInfo[playerid][pMembro] == 4 || PlayerInfo[playerid][pLider] == 4)//-------------------MEDICO NACIMENTO
        {
            if(sincronizando[playerid] == 1)
            {
            return 1;
            }
            SetPlayerColor(playerid, COLOR_MEDICOS);
            SetPlayerInterior(playerid, 0);
            SetPlayerPos(playerid, 1176.9653,-1323.2101,14.0474);
            PlayerInfo[playerid][pInt] = 0;
            return 1;
        }
        if (PlayerInfo[playerid][pMembro] == 5 || PlayerInfo[playerid][pLider] == 5)//Aztecas
        {
            if(sincronizando[playerid] == 1)
            {
            return 1;
            }
            SetPlayerColor(playerid, COLOR_AZTEC);
            SetPlayerInterior(playerid, 0);
            SetPlayerPos(playerid, 1882.8721,-2008.8912,13.5469);
            SetPlayerFacingAngle(playerid,181.4693);
            PlayerInfo[playerid][pInt] = 0;
            GivePlayerWeapon(playerid, 24, 200);
            GivePlayerWeapon(playerid, 29, 200);
            SetPlayerHealth(playerid, 100);
            return 1;
        }
        if (PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)//AsFARC COLOR
        {
            if(sincronizando[playerid] == 1)
            {
            return 1;
            }
            SetPlayerColor(playerid, COLOR_FARC);
            SetPlayerInterior(playerid, 0);
            SetPlayerPos(playerid, -2184.4624,-248.2072,40.7195);
            PlayerInfo[playerid][pInt] = 0;
            return 1;
        }
        if (PlayerInfo[playerid][pMembro] == 8 || PlayerInfo[playerid][pLider] == 8) //Hitman spawn
        {
            if(sincronizando[playerid] == 1)
            {
            return 1;
            }
            SetPlayerColor(playerid, COLOR_ASSASSINOS);
            SetPlayerPos(playerid, 1105.8563,-300.0567,74.5391);
            SetPlayerFacingAngle(playerid,176.2614);
            SetPlayerInterior(playerid,0);
            PlayerInfo[playerid][pInt] = 0;
            return 1;
        }
        if (PlayerInfo[playerid][pMembro] == 9 || PlayerInfo[playerid][pLider] == 9) //noticias spawn
        {
            if(sincronizando[playerid] == 1)
            {
            return 1;
            }
            SetPlayerColor(playerid, COLOR_REPO);
            SetPlayerPos(playerid, 735.3049,-1350.8284,13.5000);
            SetPlayerInterior(playerid,0);
            PlayerInfo[playerid][pInt] = 0;
            GivePlayerWeapon(playerid, 43, 200);
            return 1;
        }
        if (PlayerInfo[playerid][pMembro] == 10 || PlayerInfo[playerid][pLider] == 10) //Taxi Cab Company spawn
        {
            if(sincronizando[playerid] == 1)
            {
            return 1;
            }
            SetPlayerColor(playerid, COLOR_TAXI);
            SetPlayerPos(playerid, 1807.3533,-1883.5565,13.5813);
            SetPlayerInterior(playerid,0);
            PlayerInfo[playerid][pInt] = 0;
            return 1;
        }
        if (PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15) //Groove
        {
            if(sincronizando[playerid] == 1)
            {
            return 1;
            }
            SetPlayerToTeamColor(playerid);
            SetPlayerPos(playerid, 2516.1411,-1675.4065,13.9113);
            SetPlayerInterior(playerid,0);
            PlayerInfo[playerid][pInt] = 0;
            GivePlayerWeapon(playerid, 24, 200);
            GivePlayerWeapon(playerid, 29, 200);
            SetPlayerHealth(playerid, 100);
            return 1;
        }
        if (PlayerInfo[playerid][pMembro] == 16 || PlayerInfo[playerid][pLider] == 16) //AlQaeda
        {
            if(sincronizando[playerid] == 1)
            {
            return 1;
            }
            SetPlayerColor(playerid, COLOR_ALCAIDA);
            SetPlayerPos(playerid, 414.5280,2531.5229,19.1648);
            SetPlayerInterior(playerid,0);
            PlayerInfo[playerid][pInt] = 0;
            return 1;
        }
        if (PlayerInfo[playerid][pMembro] == 22 || PlayerInfo[playerid][pLider] == 22) //Mбfia La Hermandad Spawn
        {
            if(sincronizando[playerid] == 1)
            {
            return 1;
            }
            SetPlayerColor(playerid, 0x00E7C6F6);
            SetPlayerPos(playerid, 1293.5420,-831.9730,83.1406);
            SetPlayerInterior(playerid,0);
            PlayerInfo[playerid][pInt] = 0;
            GivePlayerWeapon(playerid, 4, 1);
            GivePlayerWeapon(playerid, 34, 100);
            return 1;
        }
        if (PlayerInfo[playerid][pMembro] == 17 || PlayerInfo[playerid][pLider] == 17) //Policia Civil
        {
            if(sincronizando[playerid] == 1)
            {
            return 1;
            }
            SetPlayerColor(playerid, COP_COLOR3);
            SetPlayerPos(playerid, 616.6209,-606.0665,17.2330);
            SetPlayerInterior(playerid,0);
            PlayerInfo[playerid][pInt] = 0;
            return 1;
        }
        if (PlayerInfo[playerid][pMembro] == 14 || PlayerInfo[playerid][pLider] == 14) //Onibus
        {
            if(sincronizando[playerid] == 1)
            {
            return 1;
            }
            SetPlayerColor(playerid, COLOR_ONIBUS);
            SetPlayerPos(playerid, 1878.5270,-2269.1165,13.7451);
            SetPlayerInterior(playerid,0);
            PlayerInfo[playerid][pInt] = 0;
            return 1;
        }
        if (PlayerInfo[playerid][pMembro] == 13 || PlayerInfo[playerid][pLider] == 13) //Policia Rodoviaria
        {
            if(sincronizando[playerid] == 1)
            {
            return 1;
            }
            SetPlayerColor(playerid, 0x0080FFAA);
            SetPlayerPos(playerid, 1634.1642,-6.0483,36.6674);
            SetPlayerInterior(playerid,0);
            PlayerInfo[playerid][pInt] = 0;
            return 1;
        }
        if (PlayerInfo[playerid][pMembro] == 18 || PlayerInfo[playerid][pLider] == 18) //Ballas
        {
            if(sincronizando[playerid] == 1)
            {
            return 1;
            }
            SetPlayerColor(playerid, TEAM_BALLAS_COLOR);
            SetPlayerPos(playerid, 2257.4644,-1433.0898,24.0341);
            SetPlayerInterior(playerid,0);
            PlayerInfo[playerid][pInt] = 0;
            GivePlayerWeapon(playerid, 24, 200);
            GivePlayerWeapon(playerid, 29, 200);
            SetPlayerHealth(playerid, 100);
            return 1;
        }
        if (PlayerInfo[playerid][pMembro] == 19 || PlayerInfo[playerid][pLider] == 19) //vagos
        {
            if(sincronizando[playerid] == 1)
            {
            return 1;
            }
            SetPlayerColor(playerid, COLOR_YELLOW);
            SetPlayerPos(playerid, 2353.9185,-1172.3860,32.6805);
            SetPlayerInterior(playerid,0);
            PlayerInfo[playerid][pInt] = 0;
            GivePlayerWeapon(playerid, 24, 200);
            GivePlayerWeapon(playerid, 29, 200);
            SetPlayerHealth(playerid, 100);
            return 1;
        }
        if (PlayerInfo[playerid][pMembro] == 20 || PlayerInfo[playerid][pLider] == 20) //Mafia Yakusa
        {
            if(sincronizando[playerid] == 1)
            {
            return 1;
            }
            SetPlayerColor(playerid, COLOR_DBLUE);
            SetPlayerPos(playerid, 689.5845,-1275.8300,13.5593);
            SetPlayerFacingAngle(playerid, 90.0);
            SetPlayerInterior(playerid,0);
            PlayerInfo[playerid][pInt] = 0;
            GivePlayerWeapon(playerid, 4, 1);
            GivePlayerWeapon(playerid, 34, 100);
            return 1;
        }
        if (PlayerInfo[playerid][pMembro] == 21 || PlayerInfo[playerid][pLider] == 21) //Os Cobras
        {
            if(sincronizando[playerid] == 1)
            {
            return 1;
            }
            SetPlayerColor(playerid, COLOR_RED);
            SetPlayerPos(playerid, 696.0814,-456.2344,16.3359);
            SetPlayerInterior(playerid,0);
            PlayerInfo[playerid][pInt] = 0;
            GivePlayerWeapon(playerid, 25, 100);
            GivePlayerWeapon(playerid, 24, 200);
            GivePlayerWeapon(playerid, 29, 200);
            return 1;
        }
        if (PlayerInfo[playerid][pMembro] == 23 || PlayerInfo[playerid][pLider] == 23)//GMOB
        {
            if(sincronizando[playerid] == 1)
            {
            return 1;
            }
            SetPlayerColor(playerid, 0xF6000000);
            SetPlayerInterior(playerid, 0);
            SetPlayerPos(playerid, 976.33575439453,-1255.7209472656,16.950273513794);
            PlayerInfo[playerid][pInt] = 0;
            GivePlayerWeapon(playerid, 24, 200);
            GivePlayerWeapon(playerid, 29, 200);
            SetPlayerHealth(playerid, 100);
            return 1;
        }
        if (PlayerInfo[playerid][pMembro] == 24 || PlayerInfo[playerid][pLider] == 24)//Drifters
        {
            if(sincronizando[playerid] == 1)
            {
            return 1;
            }
            SetPlayerColor(playerid, 0xA774E2F6);
            SetPlayerInterior(playerid, 0);
            SetPlayerPos(playerid, -77.2467,-1136.4801,1.0781);
            PlayerInfo[playerid][pInt] = 0;
            GivePlayerWeapon(playerid, 25, 100);
            GivePlayerWeapon(playerid, 24, 200);
            GivePlayerWeapon(playerid, 29, 200);
            return 1;
        }
        if (PlayerInfo[playerid][pEmprego] == 7)//Mecanico
        {
            if(sincronizando[playerid] == 1)
            {
            return 1;
            }
            SetPlayerColor(playerid, COLOR_WHITE);
            SetPlayerInterior(playerid, 0);
            SetPlayerSkin(playerid, 50);
            SetPlayerPos(playerid, 2506.3018,-1464.1077,24.0314);
            PlayerInfo[playerid][pInt] = 0;
            GivePlayerWeapon(playerid, 15, 999);
            GivePlayerWeapon(playerid, 42, 999);
            return 1;
        }
        if (PlayerInfo[playerid][pMembro] == 25 || PlayerInfo[playerid][pLider] == 25)//FAB spawn
        {
            if(sincronizando[playerid] == 1)
            {
            return 1;
            }
            SetPlayerColor(playerid, TEAM_GREEN_COLOR);
            SetPlayerInterior(playerid, 0);
            SetPlayerPos(playerid, -1536.7938,-443.9305,6.0124);
            PlayerInfo[playerid][pInt] = 0;
            SetPlayerArmour(playerid, 100);
            return 1;
        }
        if (PlayerInfo[playerid][pMembro] == 26 || PlayerInfo[playerid][pLider] == 26)//FBI spawn
        {
            if(sincronizando[playerid] == 1)
            {
            return 1;
            }
            SetPlayerColor(playerid, COLOR_FBI);
            SetPlayerInterior(playerid, 0);
            SetPlayerPos(playerid, -1622.2231,676.4059,-4.9063);
            PlayerInfo[playerid][pInt] = 0;
            SetPlayerArmour(playerid, 100);
            return 1;
        }
  if (PlayerInfo[playerid][pMembro] == 27 || PlayerInfo[playerid][pLider] == 27)//PCC spawn
        {
            if(sincronizando[playerid] == 1)
            {
            return 1;
            }
            SetPlayerColor(playerid, COLOR_PCC);
            SetPlayerInterior(playerid, 0);
            SetPlayerPos(playerid, 2521.68,-960.28,82.33);
            PlayerInfo[playerid][pInt] = 0;
            SetPlayerArmour(playerid, 100);
            return 1;
        }
Sу editar com suas orgs e suas cores!
Reply
#3

Nгo isso й seu spawn,isso que eu postei й a public do meu setplayertoteamcolor, Quando eu uso o setplayertoteamcolor em alguma org ela fica com o simbolo de um checkpoint encima dela que atrapalha meu GPS... eu preciso saber como faзo para que o setplayertoteamcolor nгo bug a pessoa ou melhor nгo sete um sнmbolo de checkpoint nela.
Reply
#4

eu posso estar errado pois eu nao mecho com rpg mas nгo ta faltando um return?
Reply
#5

cade o return?
Reply
#6

public OnGameModeInit()
pawn Код:
ShowPlayerMarkers(0);
Reply
#7

Nгo tem return nessa public, muito obrigado tiago funcionou perfeitamente.
Reply
#8

Quote:
Originally Posted by Strong_ADM
Посмотреть сообщение
Nгo tem return nessa public, muito obrigado tiago funcionou perfeitamente.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)