[Ajuda] PPC_Trucking
#1

Galera eu criei uma nova profissгo no meu GM (PPC_Trucking) porйm ela nгo marca os players com essa profissгo no mapa.

Todas as outras profissхes os player ficam marcados no mapa com suas cores (cada profissгo uma cor) e na nova nгo marca, ja procurei por ShowPlayerMarkers, e em todo o GM e includes a unica coisa relacionado a isso й:
pawn Код:
ShowPlayerMarkers(1); // Mostrar os jogadores no mapa inteiro (e no radar)
Sim eu ja testei com outros players, nem pra mim nem pra ngm apareceu. Ajudem-me?
Reply
#2

~~~~UP~~~~

Alguem me ajuda aqui?
Reply
#3

que tal SetPlayerColor? logo apуs o spawn do mesmo na seleзгo se nгo me engano em OnPlayerRequestClass vocк deve adicionar quais skins estгo designadas para o tal cargo logo abaixo APlayerData[playerid][Profissao] = Teste; abaixo disso deve colocar SetPlayerColor...
Reply
#4

pawn Код:
// Set the missiontext based on the chosen class
    switch (APlayerData[playerid][PlayerClass])
    {
        case ClassTruckDriver: // Truck-driver class
        {
            format(missiontext, sizeof(missiontext), Trucker_NoJobText); // Preset the missiontext
            SetPlayerColor(playerid, ColorClassTruckDriver); // Set the playercolor (chatcolor for the player and color on the map)
            if (TruckGetsWeapons == true)
            {
                // Give up to 13 weapons to the player
                for (new i; i < 13; i++)
                    GivePlayerWeapon(playerid, ATruckWeapons[i], TruckWeaponsAmmo);
            }
        }
        case ClassBusDriver: // Bus-driver class
        {
            format(missiontext, sizeof(missiontext), BusDriver_NoJobText); // Preset the missiontext
            SetPlayerColor(playerid, ColorClassBusDriver); // Set the playercolor (chatcolor for the player and color on the map)
        }
        case ClassPilot: // Pilot class
        {
            format(missiontext, sizeof(missiontext), Pilot_NoJobText); // Preset the missiontext
            SetPlayerColor(playerid, ColorClassPilot); // Set the playercolor (chatcolor for the player and color on the map)
        }
        case ClassPolice: // Police class
        {
            format(missiontext, sizeof(missiontext), Police_NoJobText); // Preset the missiontext
            SetPlayerColor(playerid, ColorClassPolice); // Set the playercolor (chatcolor for the player and color on the map)
            // Start the PlayerCheckTimer to scan for wanted players (be sure the timer has been destroyed first)
            KillTimer(APlayerData[playerid][PlayerCheckTimer]);
            APlayerData[playerid][PlayerCheckTimer] = SetTimerEx("Police_CheckWantedPlayers", 1000, true, "i", playerid);
            // Check if the police player can get weapons
            if (PoliceGetsWeapons == true)
            {
                // Give up to 12 weapons to the player
                for (new i; i < 12; i++)
                    GivePlayerWeapon(playerid, APoliceWeapons[i], PoliceWeaponsAmmo);
            }
        }
        case ClassMafia: // Mafia class
        {
            format(missiontext, sizeof(missiontext), Mafia_NoJobText); // Preset the missiontext
            SetPlayerColor(playerid, ColorClassMafia); // Set the playercolor (chatcolor for the player and color on the map)
            // Start the PlayerCheckTimer to scan for players that carry mafia-loads (be sure the timer has been destroyed first)
            KillTimer(APlayerData[playerid][PlayerCheckTimer]);
            APlayerData[playerid][PlayerCheckTimer] = SetTimerEx("Mafia_CheckMafiaLoads", 1000, true, "i", playerid);
            if (MafiaGetsWeapons == true)
            {
                // Give up to 14 weapons to the player
                for (new i; i < 14; i++)
                    GivePlayerWeapon(playerid, AMafiaWeapons[i], MafiaWeaponsAmmo);
            }
        }
        case ClassCourier: // Courier class
        {
            format(missiontext, sizeof(missiontext), Courier_NoJobText); // Preset the missiontext
            SetPlayerColor(playerid, ColorClassCourier); // Set the playercolor (chatcolor for the player and color on the map)
        }
        case ClassAssistance: // Assistance class
        {
            format(missiontext, sizeof(missiontext), Assistance_NoJobText); // Preset the missiontext
            SetPlayerColor(playerid, ColorClassAssistance); // Set the playercolor (chatcolor for the player and color on the map)
            // Start the PlayerCheckTimer to scan for players who need assistance (be sure the timer has been destroyed first)
            KillTimer(APlayerData[playerid][PlayerCheckTimer]);
            APlayerData[playerid][PlayerCheckTimer] = SetTimerEx("Assistance_CheckPlayers", 1000, true, "i", playerid);
        }
        case ClassRoadWorker: // Roadworker class
        {
            format(missiontext, sizeof(missiontext), RoadWorker_NoJobText); // Preset the missiontext
            SetPlayerColor(playerid, ColorClassRoadWorker); // Set the playercolor (chatcolor for the player and color on the map)
        }
        case ClassMedic: // Medic class
        {
            format(missiontext, sizeof(missiontext), Medic_NoJobText); // Preset the missiontext
            SetPlayerColor(playerid, ColorClassMedic); // Set the playercolor (chatcolor for the player and color on the map)
            KillTimer(APlayerData[playerid][PlayerCheckTimer]);
            APlayerData[playerid][PlayerCheckTimer] = SetTimerEx("Medic_CheckPlayers", 1000, true, "i", playerid);
        }
        case ClassDelegado: // Medic class
        {
            format(missiontext, sizeof(missiontext), Delegado_NoJobText); // Preset the missiontext
            SetPlayerColor(playerid, ColorClassDelegado); // Set the playercolor (chatcolor for the player and color on the map)
        }
//MINHA PROFISSГO

        case ClassJornal: // Courier class
        {
            format(missiontext, sizeof(missiontext), Jornal_NoJobText); // Preset the missiontext
            SetPlayerColor(playerid, ColorClassJornal); // Set the playercolor (chatcolor for the player and color on the map)
        }
    }
Sу achei isso relacionado ao que vc disse, e ja tem a minha classe mesmo assim nгo aparece
Reply
#5

UP denovo, alguem aki pra me ajudar?
Reply
#6

Galera preciso da Ajuda de vcs

Help-ME
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)