[Ajuda] PPC_Trucking
#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


Messages In This Thread
PPC_Trucking - by Julinhu - 02.07.2014, 18:47
Re: PPC_Trucking - by Julinhu - 03.07.2014, 02:10
Re: PPC_Trucking - by focaximubh - 03.07.2014, 02:18
Re: PPC_Trucking - by Julinhu - 03.07.2014, 02:30
Re: PPC_Trucking - by Julinhu - 03.07.2014, 15:17
Re: PPC_Trucking - by Julinhu - 05.07.2014, 22:02

Forum Jump:


Users browsing this thread: 2 Guest(s)