[Ajuda] Ajuda urgente
#1

Quando um agente dos correios ou um moto boy digita /trabalhar a cordenada estб indo para 0,0,0 ai depois que ele consege pegar essa cordenada que й impossivel pois й em baixo da terra comeзa dai o checpoint nas casas alguem sabe ajudar? o gm й de caminhao
Reply
#2

fica difнcil te ajuda se vocк nгo dizer qual GM vocк usa, mostra o link de onde vocк baixou ele para podermos ajudar vocк.
Reply
#3

o brasil truck life
Reply
#4

Substitua Por completo o PPC_MissionsPizza.inc que esta em pawn>includes

pawn Код:
// This function gets called whenever a courier player enters "/work"
Pizza_StartJob(playerid)
{
    // Setup local variables
    new HouseCounter, HousesInRange[200], DialogList[200];

    // First clear the house-list
    for (new i; i < 11; i++)
        APlayerData[playerid][CourierHouses][i] = 0;

    // Count how many owned houses are in range of the player
    for (new HouseID = 1; HouseID < MAX_HOUSES; HouseID++)
    {
        // Check if the house is owned
        if (AHouseData[HouseID][Owned] == true)
        {
            // Check if the house is in range of the player
            if (IsPlayerInRangeOfPoint(playerid, CourierJobRange, AHouseData[HouseID][HouseX], AHouseData[HouseID][HouseY], AHouseData[HouseID][HouseZ]))
            {
                // Check if there aren't 200 in-range houses have been found yet
                if (HouseCounter < 200)
                {
                    HousesInRange[HouseCounter] = HouseID; // Store the HouseID in the list of in-range houses
                    HouseCounter++; // Increase the number of owned houses in range of the player (range = 1000 meters)
                }
                else
                {
                    break; // Stop searching for more houses (200 is the maximum)
                }
            }
        }
    }

    // Abort the mission if there are less than 2 houses in range and inform the player
    if (HouseCounter < 2)
    {
        SendClientMessage(playerid, 0xFFFFFFFF, "{FF0000}Nгo а casa no local para entregar pizzas, tente algum outro ponto");
        return 0;
    }

    // Try to add the 3 lines to the dialog-list
    if (HouseCounter >= 2)
    {
        format(DialogList, sizeof(DialogList), "Entregou 2 pizzas\n"); // Add the line to the dialog
        APlayerData[playerid][CourierMaxStep] = 2; // Set the number of houses for the job to 2
    }
    if (HouseCounter >= 5)
    {
        format(DialogList, sizeof(DialogList), "%sEntregou 5 pizzas\n", DialogList); // Add the line to the dialog
        APlayerData[playerid][CourierMaxStep] = 5; // Set the number of houses for the job to 5
    }
    if (HouseCounter >= 10)
    {
        format(DialogList, sizeof(DialogList), "%sEntregou 10 pizzas\n", DialogList); // Add the line to the dialog
        APlayerData[playerid][CourierMaxStep] = 10; // Set the number of houses for the job to 10
    }

    // Choose a random house for the first house to visit
    APlayerData[playerid][CourierHouses][1] = HousesInRange[random(HouseCounter)];
    // Now choose as many houses randomly as allowed, starting from the second
    for (new i = 2; i <= APlayerData[playerid][CourierMaxStep]; i++)
    {
        // Copy a random HouseID from the prepared list on in-range houses to the job-list
        APlayerData[playerid][CourierHouses][i] = HousesInRange[random(HouseCounter)];

        // If the HouseID is the same as the previous HouseID (the player would visit the same house twice in a row)
        while (APlayerData[playerid][CourierHouses][i - 1] == APlayerData[playerid][CourierHouses][i])
            APlayerData[playerid][CourierHouses][i] = HousesInRange[random(HouseCounter)]; // Get a new random HouseID as long as the HouseID is the same as the previous one
    }

    // Let the player choose how many packages he wants to deliver
    ShowPlayerDialog(playerid, DialogCourierSelectQuant, DIALOG_STYLE_LIST, "Escolha quantas pizzas vocк deseja entregar", DialogList, TXT_DialogButtonSelect, TXT_DialogButtonCancel);

    return 1;
}

// This function is called when the player has chosen how many packages he wants to deliver
Pizza_BeginJob(playerid)
{
    // Setup local variables
    new RouteText[128], Step, HouseID, Float:x, Float:y, Float:z;

    // Job has started
    APlayerData[playerid][JobStarted] = true;
    // Store the vehicleID (required to be able to check if the player left his vehicle)
    APlayerData[playerid][VehicleID] = GetPlayerVehicleID(playerid);
    // Set jobstep to 1 (going to the first house)
    Step = 1;
    APlayerData[playerid][JobStep] = Step;
    // Get the HouseID of the house where the mission starts (the first house in the list of in-range owned house)
    HouseID = APlayerData[playerid][CourierHouses][Step];
    // Set the TextDraw so the player can see it
    format(RouteText, 255, "~w~Entregar pizza ~b~%i/%i~w~ para: ~r~%s", Step, APlayerData[playerid][CourierMaxStep], AHouseData[HouseID][HouseName]);
    TextDrawSetString(APlayerData[playerid][MissionText], RouteText);
    // Grab the x, y, z positions for the first location
    x = AHouseData[HouseID][HouseX];
    y = AHouseData[HouseID][HouseY];
    z = AHouseData[HouseID][HouseZ];
    // Create a checkpoint where the player should deliver his package
    SetPlayerCheckpoint(playerid, x, y, z, 3);
    // Set the job-fail-time for the global vehicle-timer
    APlayerData[playerid][VehicleTimerTime] = Job_TimeToFailMission;
    // Send the player a message to inform him that the mission has started
    SendClientMessage(playerid, 0xFFFFFFFF, "{00FF00}Entregar pizzas nas casas dos jogadores.");

    return 1;
}



// This function is called when a courier enters a checkpoint
Pizza_OnPlayerEnterCheckpoint(playerid)
{
    // Setup local variables
    new RouteText[128], Step, HouseID, Float:x, Float:y, Float:z, Name[24], Msg[128], Payment;

    // Check if the player is outside his vehicle while entering a checkpoint
    if (GetPlayerVehicleSeat(playerid) == -1)
    {
        // Check if all the packages haven't been delivered
        if (APlayerData[playerid][CourierMaxStep] != APlayerData[playerid][JobStep])
        {
            // First disable the current checkpoint
            DisablePlayerCheckpoint(playerid);
            // Let the player know he delivered a package
            GameTextForPlayer(playerid, TXT_PackageDeliveredGameText, 5000, 4);
            SendClientMessage(playerid, 0xFFFFFFFF, TXT_PackageDeliveredMessage);
            // Set next JobStep (next house)
            APlayerData[playerid][JobStep]++;
            Step = APlayerData[playerid][JobStep];
            // Get the HouseID of the house where the mission starts (the first house in the list of in-range owned house)
            HouseID = APlayerData[playerid][CourierHouses][Step];
            // Set the TextDraw so the player can see it
            format(RouteText, 255, "~w~Entregar pizza ~b~%i/%i~w~ para: ~r~%s", Step, APlayerData[playerid][CourierMaxStep], AHouseData[HouseID][HouseName]);
            TextDrawSetString(APlayerData[playerid][MissionText], RouteText);
            // Grab the x, y, z positions for the first location
            x = AHouseData[HouseID][HouseX];
            y = AHouseData[HouseID][HouseY];
            z = AHouseData[HouseID][HouseZ];
            // Create a checkpoint where the player should deliver his package
            SetPlayerCheckpoint(playerid, x, y, z, 3);
        }
        else // All packages have been delivered, the player has to get paid now
        {
            // Get the player name
            GetPlayerName(playerid, Name, sizeof(Name));
            // Send a message to all players to inform them that this player completed a courier-job
            format(Msg, 128, TXT_PlayerCompletedCourierJob, Name, APlayerData[playerid][CourierMaxStep]);
            SendClientMessageToAll(0xFFFFFFFF, Msg);
            // Set a payment based on the number of packages
            Payment = APlayerData[playerid][CourierMaxStep] * PaymentPerPackage;
            // Pay the player money and give scorepoints, both based on the number of packages delivered
            RewardPlayer(playerid, Payment, APlayerData[playerid][CourierMaxStep]);
            // Send a message to let the player know he finished his mission and got paid
            format(Msg, 128, TXT_RewardJob, Payment);
            SendClientMessage(playerid, 0xFFFFFFFF, Msg);

            // Increase the stats for completing a courier job
            APlayerData[playerid][StatsCourierJobs]++;
            // End the current trucker job (clear mission-data)
            Courier_EndJob(playerid);
            // Also save the data (in case the server crashes, progress would be lost)
            PlayerFile_Save(playerid);
        }
    }
    else
        SendClientMessage(playerid, 0xFFFFFFFF, TXT_NeedOnFootToProceed);

    return 1;
}



// This function is used to stop any Courier-mission that has been started
Pizza_EndJob(playerid)
{
    if (APlayerData[playerid][JobStarted] == true)
    {
        // Clear all data about the job from the player, so he can start a new one
        APlayerData[playerid][JobStarted] = false;
        APlayerData[playerid][JobStep] = 0;
        APlayerData[playerid][VehicleTimerTime] = 0;
        APlayerData[playerid][VehicleID] = 0;
        APlayerData[playerid][CourierMaxStep] = 0;

        // Clear the list of houses-in-range
        for (new i; i < 11; i++)
            APlayerData[playerid][CourierHouses][i] = 0;

        // Delete the checkpoint
        DisablePlayerCheckpoint(playerid);
        // Reset the missiontext
        TextDrawSetString(APlayerData[playerid][MissionText], Pizza_NoJobText);
    }

    return 1;
}
Reply
#5

Nгo funcionou continua indo la na pos 0 0 0
Reply
#6

pelo oque eu entendi, й a coordenada que estб errada, tente muda-lу.
Reply
#7

Eu tenho esse gm totalmente desbugado nao lembro onde eu mexi pra resolver esse bug

mude o comando /trabalhar por esse

pawn Код:
// Starts a job
COMMAND:trabalhar(playerid, params[])
{
// Send the command to all admins so they can see it
SendAdminText(playerid, "/trabalhar", params);

// Check if the player has logged in
if (APlayerData[playerid][LoggedIn] == true)
{
// First check if the player already has a job
if (APlayerData[playerid][JobStarted] == false)
{
// Check the player's class
switch (APlayerData[playerid][PlayerClass])
{
case ClassTruckDriver:
{
// Get the id of the convoy (if the player is in a convoy)
new Convoy = APlayerData[playerid][ConvoyID];

// Check if the player is part of a convoy AND is not the leader
if ((APlayerData[playerid][InConvoy] == true) && (AConvoys[Convoy][Members][0] != playerid))
{
// Let the player know he's not the leader of his convoy and cannot start a job
SendClientMessage(playerid, 0xFF0000FF, "Voce nao e o Lider do Comboio, Voce nao pode Iniciar um Trabalho");
// Exit the function
return 1;
}

// A convoy-leader proceeds here, and also a normal player (no convoy-member)

// Check if the player is the driver of a vehicle
if (GetPlayerVehicleSeat(playerid) == 0)
{
// Check if the player is inside a valid trucking vehicle
switch (GetVehicleModel(GetPlayerVehicleID(playerid)))
{
case VehicleFlatbed, VehicleDFT30, VehicleCementTruck: // Flatbed, DFT-30, CementTruck
if (APlayerData[playerid][TruckerLicense] == 1) // Check if the player has acquired a truckers license
ShowPlayerDialog(playerid, DialogTruckerJobMethod, DIALOG_STYLE_LIST, "Selecionar Metodo:", "Selecionar Entrega\r\nAuto Selecionar", "Selecionar", "Cancelar");
else
Trucker_StartRandomJob(playerid); // Start a random job

case VehicleLineRunner, VehicleTanker, VehicleRoadTrain: // Player is driving a truck which needs a trailer
if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))) // Check if there is a trailer attached
if (APlayerData[playerid][TruckerLicense] == 1) // Check if the player has acquired a truckers license
ShowPlayerDialog(playerid, DialogTruckerJobMethod, DIALOG_STYLE_LIST, "Selecionar Metodo:", "Selecionar Entrega\r\nAuto Selecionar", "Selecionar", "Cancelar");
else
Trucker_StartRandomJob(playerid); // Start a random job
else
SendClientMessage(playerid, 0xFF0000FF, "Voce Precisa de um Trailer para Iniciar");

default: SendClientMessage(playerid, 0xFF0000FF, "Voce tem que Estar em Um Caminhao");
}
}
else
SendClientMessage(playerid, 0xFF0000FF, "Voce tem que Estar em Um Caminhao para Iniciar um Trabalho");
}
case ClassBusDriver:
{
// Check if the player is the driver of a vehicle
if (GetPlayerVehicleSeat(playerid) == 0)
if (GetVehicleModel(GetPlayerVehicleID(playerid)) == VehicleTaxi) // Check if the player is inside a valid busdriver vehicle
if (APlayerData[playerid][BusLicense] == 1) // Check if the player has acquired a busdriver license
ShowPlayerDialog(playerid, DialogBusJobMethod, DIALOG_STYLE_LIST, "Selecionar Metodo:", "Selecionar Linha\r\nAuto Selecionar", "Selecionar", "Cancelar");
else
BusDriver_StartJob(playerid, random(sizeof(ABusRoutes))); // Start a random job
else
SendClientMessage(playerid, 0xFF0000FF, "Voce tem que Estar em Um Taxi");
else
SendClientMessage(playerid, 0xFF0000FF, "Voce tem que Estar em Um taxi para Iniciar um Trabalho");
}
case ClassPilot:
{
// Check if the player is the driver of a vehicle
if (GetPlayerVehicleSeat(playerid) == 0)
{
// Check if the player is inside a valid piloting vehicle
switch (GetVehicleModel(GetPlayerVehicleID(playerid)))
{
case VehicleShamal, VehicleAt400, VehicleMaverick, VehicleCargobob: // Plane (Shamal), Plane (Nevada), helicopter (Maverick)
Pilot_StartRandomJob(playerid); // Start a random piloting job
default: SendClientMessage(playerid, 0xFF0000FF, "Voce tem que Estar em Um Aviao");
}
}
else
SendClientMessage(playerid, 0xFF0000FF, "Voce tem que Estar em Um Aviao Para iniciar um Trabalho");
}
case ClassMafia:
{
// Check if the player is the driver of a vehicle
if (GetPlayerVehicleSeat(playerid) == 0)
{
// Check if the player is inside a valid piloting vehicle
switch (GetVehicleModel(GetPlayerVehicleID(playerid)))
{
case VehicleSandKing, VehicleMoonbeam: // Sangking, Moonbeam
Mafia_StartRandomJob(playerid); // Start a random mafia job
default: SendClientMessage(playerid, 0xFF0000FF, "Voce tem que Estar em Um Veiculo da Mafia");
}
}
else
SendClientMessage(playerid, 0xFF0000FF, "Voce tem que Estar em Um Veiculo da Mafia para Iniciar um Trabalho");
}
case ClassCourier:
{
// Check if the player is the driver of a vehicle
if (GetPlayerVehicleSeat(playerid) == 0)
{
// Check if the player is inside a valid courier vehicle
switch (GetVehicleModel(GetPlayerVehicleID(playerid)))
{
case VehicleBurrito, VehicleFaggio, VehicleBenson: // Van (Burrito), bike (Faggio)
Courier_StartJob(playerid); // Start a random courier job
default: SendClientMessage(playerid, 0xFF0000FF, "Voce tem que Estar em Um Veiculo do Sedex");
}
}
else
SendClientMessage(playerid, 0xFF0000FF, "Voce tem que Estar em Um Veiculo do Sedex para Iniciar um Trabalho");
}
case ClassLixeiro:
{
// Check if the player is the driver of a vehicle
if (GetPlayerVehicleSeat(playerid) == 0)
{
// Check if the player is inside a valid courier vehicle
switch (GetVehicleModel(GetPlayerVehicleID(playerid)))
{
case VehicleTrashmaster, VehicleDuneride, VehicleSweeper: // Van (Burrito), bike (Faggio)
Lixeiro_StartJob(playerid); // Start a random courier job
default: SendClientMessage(playerid, 0xFF0000FF, "Voce tem que Estar em Um Veiculo do Lixeiro");
}
}
else
SendClientMessage(playerid, 0xFF0000FF, "Voce tem que Estar em Um Veiculo do Lixeiro para Iniciar um Trabalho");
}
case ClassPizza:
{
// Check if the player is the driver of a vehicle
if (GetPlayerVehicleSeat(playerid) == 0)
{
// Check if the player is inside a valid courier vehicle
switch (GetVehicleModel(GetPlayerVehicleID(playerid)))
{
case VehiclePizzaboy: // Van (Burrito), bike (Faggio)
Pizza_StartJob(playerid); // Start a random courier job
default: SendClientMessage(playerid, 0xFF0000FF, "Voce tem que Estar em Um Veiculo do Entregador de Pizza");
}
}
else
SendClientMessage(playerid, 0xFF0000FF, "Voce tem que Estar em Um Veiculo doEntregador de Pizza para Iniciar um Trabalho");
}
case ClassRoadWorker:
{
// Check if the player is the driver of a vehicle
if (GetPlayerVehicleSeat(playerid) == 0)
{
// Check if the player is inside a valid courier vehicle
switch (GetVehicleModel(GetPlayerVehicleID(playerid)))
{
case VehicleUtilityVan, VehicleTowTruck: // Utility Van, Towtruck
Roadworker_StartRandomJob(playerid); // Start a random roadworker job
default: SendClientMessage(playerid, 0xFF0000FF, "You need to be the driver of a roadworker vehicle to start a job");
}
}
else
SendClientMessage(playerid, 0xFF0000FF, "Voce tem que Estar em Um Veiculo do DNIT");
}
default: SendClientMessage(playerid, 0xFF0000FF, "Sua Classe nao faz todos os Trabalhos");
}
}
else // Send a message to let the player know he already has a job
SendClientMessage(playerid, 0xFF0000FF, "Voce ja esta Realizando um Trabalho");
}
else
return 0;

// Let the server know that this was a valid command
return 1;
}
Reply
#8

Nгo funcionou botei ai o comando de /trabalhar e o bagulho na include de pizza ..
Reply
#9

Quote:
Originally Posted by Luucass
Посмотреть сообщение
Eu tenho esse gm totalmente desbugado nao lembro onde eu mexi pra resolver esse bug

mude o comando /trabalhar por esse

pawn Код:
// Starts a job
COMMAND:trabalhar(playerid, params[])
{
// Send the command to all admins so they can see it
SendAdminText(playerid, "/trabalhar", params);

// Check if the player has logged in
if (APlayerData[playerid][LoggedIn] == true)
{
// First check if the player already has a job
if (APlayerData[playerid][JobStarted] == false)
{
// Check the player's class
switch (APlayerData[playerid][PlayerClass])
{
case ClassTruckDriver:
{
// Get the id of the convoy (if the player is in a convoy)
new Convoy = APlayerData[playerid][ConvoyID];

// Check if the player is part of a convoy AND is not the leader
if ((APlayerData[playerid][InConvoy] == true) && (AConvoys[Convoy][Members][0] != playerid))
{
// Let the player know he's not the leader of his convoy and cannot start a job
SendClientMessage(playerid, 0xFF0000FF, "Voce nao e o Lider do Comboio, Voce nao pode Iniciar um Trabalho");
// Exit the function
return 1;
}

// A convoy-leader proceeds here, and also a normal player (no convoy-member)

// Check if the player is the driver of a vehicle
if (GetPlayerVehicleSeat(playerid) == 0)
{
// Check if the player is inside a valid trucking vehicle
switch (GetVehicleModel(GetPlayerVehicleID(playerid)))
{
case VehicleFlatbed, VehicleDFT30, VehicleCementTruck: // Flatbed, DFT-30, CementTruck
if (APlayerData[playerid][TruckerLicense] == 1) // Check if the player has acquired a truckers license
ShowPlayerDialog(playerid, DialogTruckerJobMethod, DIALOG_STYLE_LIST, "Selecionar Metodo:", "Selecionar Entrega\r\nAuto Selecionar", "Selecionar", "Cancelar");
else
Trucker_StartRandomJob(playerid); // Start a random job

case VehicleLineRunner, VehicleTanker, VehicleRoadTrain: // Player is driving a truck which needs a trailer
if(IsTrailerAttachedToVehicle(GetPlayerVehicleID(playerid))) // Check if there is a trailer attached
if (APlayerData[playerid][TruckerLicense] == 1) // Check if the player has acquired a truckers license
ShowPlayerDialog(playerid, DialogTruckerJobMethod, DIALOG_STYLE_LIST, "Selecionar Metodo:", "Selecionar Entrega\r\nAuto Selecionar", "Selecionar", "Cancelar");
else
Trucker_StartRandomJob(playerid); // Start a random job
else
SendClientMessage(playerid, 0xFF0000FF, "Voce Precisa de um Trailer para Iniciar");

default: SendClientMessage(playerid, 0xFF0000FF, "Voce tem que Estar em Um Caminhao");
}
}
else
SendClientMessage(playerid, 0xFF0000FF, "Voce tem que Estar em Um Caminhao para Iniciar um Trabalho");
}
case ClassBusDriver:
{
// Check if the player is the driver of a vehicle
if (GetPlayerVehicleSeat(playerid) == 0)
if (GetVehicleModel(GetPlayerVehicleID(playerid)) == VehicleTaxi) // Check if the player is inside a valid busdriver vehicle
if (APlayerData[playerid][BusLicense] == 1) // Check if the player has acquired a busdriver license
ShowPlayerDialog(playerid, DialogBusJobMethod, DIALOG_STYLE_LIST, "Selecionar Metodo:", "Selecionar Linha\r\nAuto Selecionar", "Selecionar", "Cancelar");
else
BusDriver_StartJob(playerid, random(sizeof(ABusRoutes))); // Start a random job
else
SendClientMessage(playerid, 0xFF0000FF, "Voce tem que Estar em Um Taxi");
else
SendClientMessage(playerid, 0xFF0000FF, "Voce tem que Estar em Um taxi para Iniciar um Trabalho");
}
case ClassPilot:
{
// Check if the player is the driver of a vehicle
if (GetPlayerVehicleSeat(playerid) == 0)
{
// Check if the player is inside a valid piloting vehicle
switch (GetVehicleModel(GetPlayerVehicleID(playerid)))
{
case VehicleShamal, VehicleAt400, VehicleMaverick, VehicleCargobob: // Plane (Shamal), Plane (Nevada), helicopter (Maverick)
Pilot_StartRandomJob(playerid); // Start a random piloting job
default: SendClientMessage(playerid, 0xFF0000FF, "Voce tem que Estar em Um Aviao");
}
}
else
SendClientMessage(playerid, 0xFF0000FF, "Voce tem que Estar em Um Aviao Para iniciar um Trabalho");
}
case ClassMafia:
{
// Check if the player is the driver of a vehicle
if (GetPlayerVehicleSeat(playerid) == 0)
{
// Check if the player is inside a valid piloting vehicle
switch (GetVehicleModel(GetPlayerVehicleID(playerid)))
{
case VehicleSandKing, VehicleMoonbeam: // Sangking, Moonbeam
Mafia_StartRandomJob(playerid); // Start a random mafia job
default: SendClientMessage(playerid, 0xFF0000FF, "Voce tem que Estar em Um Veiculo da Mafia");
}
}
else
SendClientMessage(playerid, 0xFF0000FF, "Voce tem que Estar em Um Veiculo da Mafia para Iniciar um Trabalho");
}
case ClassCourier:
{
// Check if the player is the driver of a vehicle
if (GetPlayerVehicleSeat(playerid) == 0)
{
// Check if the player is inside a valid courier vehicle
switch (GetVehicleModel(GetPlayerVehicleID(playerid)))
{
case VehicleBurrito, VehicleFaggio, VehicleBenson: // Van (Burrito), bike (Faggio)
Courier_StartJob(playerid); // Start a random courier job
default: SendClientMessage(playerid, 0xFF0000FF, "Voce tem que Estar em Um Veiculo do Sedex");
}
}
else
SendClientMessage(playerid, 0xFF0000FF, "Voce tem que Estar em Um Veiculo do Sedex para Iniciar um Trabalho");
}
case ClassLixeiro:
{
// Check if the player is the driver of a vehicle
if (GetPlayerVehicleSeat(playerid) == 0)
{
// Check if the player is inside a valid courier vehicle
switch (GetVehicleModel(GetPlayerVehicleID(playerid)))
{
case VehicleTrashmaster, VehicleDuneride, VehicleSweeper: // Van (Burrito), bike (Faggio)
Lixeiro_StartJob(playerid); // Start a random courier job
default: SendClientMessage(playerid, 0xFF0000FF, "Voce tem que Estar em Um Veiculo do Lixeiro");
}
}
else
SendClientMessage(playerid, 0xFF0000FF, "Voce tem que Estar em Um Veiculo do Lixeiro para Iniciar um Trabalho");
}
case ClassPizza:
{
// Check if the player is the driver of a vehicle
if (GetPlayerVehicleSeat(playerid) == 0)
{
// Check if the player is inside a valid courier vehicle
switch (GetVehicleModel(GetPlayerVehicleID(playerid)))
{
case VehiclePizzaboy: // Van (Burrito), bike (Faggio)
Pizza_StartJob(playerid); // Start a random courier job
default: SendClientMessage(playerid, 0xFF0000FF, "Voce tem que Estar em Um Veiculo do Entregador de Pizza");
}
}
else
SendClientMessage(playerid, 0xFF0000FF, "Voce tem que Estar em Um Veiculo doEntregador de Pizza para Iniciar um Trabalho");
}
case ClassRoadWorker:
{
// Check if the player is the driver of a vehicle
if (GetPlayerVehicleSeat(playerid) == 0)
{
// Check if the player is inside a valid courier vehicle
switch (GetVehicleModel(GetPlayerVehicleID(playerid)))
{
case VehicleUtilityVan, VehicleTowTruck: // Utility Van, Towtruck
Roadworker_StartRandomJob(playerid); // Start a random roadworker job
default: SendClientMessage(playerid, 0xFF0000FF, "You need to be the driver of a roadworker vehicle to start a job");
}
}
else
SendClientMessage(playerid, 0xFF0000FF, "Voce tem que Estar em Um Veiculo do DNIT");
}
default: SendClientMessage(playerid, 0xFF0000FF, "Sua Classe nao faz todos os Trabalhos");
}
}
else // Send a message to let the player know he already has a job
SendClientMessage(playerid, 0xFF0000FF, "Voce ja esta Realizando um Trabalho");
}
else
return 0;

// Let the server know that this was a valid command
return 1;
}
lol que Scripter foda ein, kkkk buga e nгo sabe desbugar
Reply
#10

Alguem? =/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)