problema chekpoint
#1

hola gente !
les comento disculpen si jodo tanto con las ayudas, pero de a poco voy a prendiendo igual :3

tengo un bug! cada ves que voy a algun chekpoint ejemplo /gps y voy al chek q me dice donde esta mi auto.. o cuando hago el job de granjero y voy al chek..
cada ves que entro a algun chekpoint se bugea y dicen todos lo mismo "Has llegado al lugar del incendio, usa un extintor o la manguera del auto de bomberos para ceder el fuego."

Esta es la parte que dice eso....
Код:
//***sistema de fire***
      if(llegarf[playerid] == false)
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Has llegado al lugar del incendio, usa un extintor o la manguera del auto de bomberos para ceder el fuego.");
        llegarf[playerid] = true;
    }
y asi es como tengo el public que dice los chekpoint de los comandos, facciones etc.

Код:
public OnPlayerEnterCheckpoint(playerid)
{
    PlayerPlaySound(playerid, 1056, 0.0, 0.0, 0.0);
    new carid = GetPlayerVehicleID(playerid), string[128];
    if(GetPVarInt(playerid,"FindJob") == 1)
    {
        DeletePVar(playerid, "FindJob");
        DisablePlayerCheckpoint(playerid);
    }
    if(GetPVarInt(playerid,"FINDHQ") == 1)
    {
        DeletePVar(playerid, "FINDHQ");
        DisablePlayerCheckpoint(playerid);
        SendClientMessageEx(playerid, COLOR_GRAD2, "{A2DC35}[INFO]:{FFFFFF} Llegaste! Usa F para entrar.");
    }
    //***sistema de fire***
      if(llegarf[playerid] == false)
    {
        SendClientMessage(playerid, COLOR_LIGHTBLUE, "Has llegado al lugar del incendio, usa un extintor o la manguera del auto de bomberos para ceder el fuego.");
        llegarf[playerid] = true;
    }
    if(MechanicCallTime[playerid] > 0)
    {
        if(Team_Mecanicos(playerid))
        {
            MechanicCallTime[playerid] = 0;
            GameTextForPlayer(playerid, "~r~Llegaste!", 2500, 1);
            DisablePlayerCheckpoint(playerid);
        }
    }
    if(GetPVarInt(playerid, "Pizza") > 0 && IsPlayerInRangeOfPoint(playerid, 5.0, HouseInfo[GetPVarInt(playerid, "Pizza")][hExteriorX], HouseInfo[GetPVarInt(playerid, "Pizza")][hExteriorY], HouseInfo[GetPVarInt(playerid, "Pizza")][hExteriorZ]))
    {
        if (GetPVarInt(playerid, "tpPizzaTimer") != 0)
        {
            format(string, sizeof(string), "{FFFF00}ForceGamersRP:{FF0000} %s (ID %d) Posible hack teleport, LUGAR: JobPizzero.", GetPlayerNameEx(playerid), playerid);
              ABroadCast( COLOR_YELLOW, string, 2 );
            format(string, sizeof(string), "%s (ID %d)Posible hack teleport, LUGAR: JobPizzero.", GetPlayerNameEx(playerid), playerid);
            Log("logs/hack.log", string);
        }
        DestroyProgressBar(PizzaBar[playerid]);
        format(string, sizeof(string), "Has entregado la pizza en su destino! + $%d a tu paycheck.", (GetPVarInt(playerid, "pizzaTimer") * 50));
        SaveStuff();
          //Info[playerid][pPayCheck] += floatround((GetPVarInt(playerid, "pizzaTimer") * 50), floatround_round);
          GivePlayerCash(playerid, floatround((GetPVarInt(playerid, "pizzaTimer") * 50), floatround_round));
        SendClientMessageEx(playerid, COLOR_WHITE, string);
        SetPVarInt(playerid, "Pizza", 0);
        DisablePlayerCheckpoint(playerid);
    }
    for(new h = 0; h < MAX_POINTS; h++)
    {
        if(Points[h][Type] == 3 && GetPVarInt(playerid, "CrateDeliver") == 1 && IsPlayerInRangeOfPoint(playerid, 6.0, 2165.8655,-1675.2634,15.0859)) // POT
        {
            if(GetPVarInt(playerid, "tpDrugRunTimer") != 0)
               {
                   format(string, sizeof(string), "{FFFF00}ForceGamersRP:{FF0000} %s (ID %d) Posible hack teleport, LUGAR: Casa de Hierba.", GetPlayerNameEx(playerid), playerid);
                   ABroadCast( COLOR_YELLOW, string, 2 );
                   format(string, sizeof(string), "%s (ID %d) Posible hack teleport, LUGAR: Casa de Hierba.", GetPlayerNameEx(playerid), playerid);
                   Log("logs/hack.log", string);
            }
            DisablePlayerCheckpoint(playerid);
            new level = Info[playerid][pSmugSkill];
               if(level >= 0 && level <= 20)

            {
                SendClientMessageEx(playerid, COLOR_LIGHTBLUE,"* Sumaste $2000 a tu paycheck por traficar paquetes de droga.");
                GivePlayerCash(playerid, 2000);
            }
            else if(level >= 21 && level <= 50)
            {
                SendClientMessageEx(playerid, COLOR_LIGHTBLUE,"* Sumaste $2500 a tu paycheck por traficar paquetes de droga.");
                GivePlayerCash(playerid, 2500);
            }
            else if(level >= 51 && level <= 100)
            {
                SendClientMessageEx(playerid, COLOR_LIGHTBLUE,"* Sumaste $3500 a tu paycheck por traficar paquetes de droga.");
                GivePlayerCash(playerid, 3500);
            }
            else if(level >= 101 && level <= 200)
            {
                SendClientMessageEx(playerid, COLOR_LIGHTBLUE,"* Sumaste $5000 a tu paycheck por traficar paquetes de droga.");
                GivePlayerCash(playerid, 5000);
            }
            else if(level >= 201)
            {
                SendClientMessageEx(playerid, COLOR_LIGHTBLUE,"* Sumaste $6500 a tu paycheck por traficar paquetes de droga.");
                GivePlayerCash(playerid, 6500);
            }
            DeletePVar(playerid, "CrateDeliver");
            Info[playerid][pCrates] = 0;
            //Info[playerid][pSmugSkill]++; //CAMBIR
            if(Info[playerid][pDobleExp] == 0)
            {
                  Info[playerid][pSmugSkill]++;
            }
            else
            {
                Info[playerid][pSmugSkill] += 2;
                SendClientMessageEx(playerid, COLOR_YELLOW, "{A2DC35}JOB:{FFFFFF} Ganaste 2 puntos de habilidad por tener horas de doble experiencia.");
            }
            Points[h][Stock] += 10;
            format(string, sizeof(string), " HIERBA DISPONIBLE: %d/1000.", Points[h][Stock]);
            UpdateDynamic3DTextLabelText(Points[h][TextLabel], COLOR_YELLOW, string);
            return 1;
        }
        if(Points[h][Type] == 4 && GetPVarInt(playerid, "CrateDeliver") == 2 && IsPlayerInRangeOfPoint(playerid, 6.0, 2348.6213,-1168.0778,27.8631)) // CRACK
        {
            if(GetPVarInt(playerid, "tpDrugRunTimer") != 0)
               {
                   format(string, sizeof(string), "{FFFF00}ForceGamersRP:{FF0000} %s (ID %d) Posible hack teleport, LUGAR: Casa de Crack.", GetPlayerNameEx(playerid), playerid);
                   ABroadCast( COLOR_YELLOW, string, 2 );
                   format(string, sizeof(string), "%s (ID %d) Posible hack teleport, LUGAR: Casa de Crack.", GetPlayerNameEx(playerid), playerid);
                   Log("logs/hack.log", string);
            }
            DisablePlayerCheckpoint(playerid);
            new level = Info[playerid][pSmugSkill];
            if(level >= 0 && level <= 20)
            {
                SendClientMessageEx(playerid, COLOR_LIGHTBLUE,"* Sumaste $2000 a tu paycheck por traficar paquetes de droga.");
                GivePlayerCash(playerid, 2000);
            }
            else if(level >= 21 && level <= 50)
            {
                SendClientMessageEx(playerid, COLOR_LIGHTBLUE,"* Sumaste $2500 a tu paycheck por traficar paquetes de droga.");
                GivePlayerCash(playerid, 2500);
            }
            else if(level >= 51 && level <= 100)
            {
                SendClientMessageEx(playerid, COLOR_LIGHTBLUE,"* Sumaste $3500 a tu paycheck por traficar paquetes de droga.");
                GivePlayerCash(playerid, 3500);
            }
            else if(level >= 101 && level <= 200)
            {
                SendClientMessageEx(playerid, COLOR_LIGHTBLUE,"* Sumaste $5000 a tu paycheck por traficar paquetes de droga.");
                GivePlayerCash(playerid, 5000);
            }
            else if(level >= 201)
            {
                SendClientMessageEx(playerid, COLOR_LIGHTBLUE,"* Sumaste $6500 a tu paycheck por traficar paquetes de droga.");
                GivePlayerCash(playerid, 6500);
            }
            DeletePVar(playerid, "CrateDeliver");
            Info[playerid][pCrates] = 0;
            //Info[playerid][pSmugSkill]++; //CAMBIR
            if(Info[playerid][pDobleExp] == 0)
            {
                  Info[playerid][pSmugSkill]++;
            }
            else
            {
                Info[playerid][pSmugSkill] += 2;
                SendClientMessageEx(playerid, COLOR_YELLOW, "{A2DC35}JOB:{FFFFFF} Ganaste 2 puntos de habilidad por tener horas de doble experiencia.");
            }
            Points[h][Stock] += 10;
            format(string, sizeof(string), " CRACK DISPONIBLE: %d/1000.", Points[h][Stock]);
            UpdateDynamic3DTextLabelText(Points[h][TextLabel], COLOR_YELLOW, string);
            return 1;
        }
        else if(Points[h][Type] == 2 && GetPVarInt(playerid, "MatDeliver") == 555 && IsPlayerInRangeOfPoint(playerid, 6.0, 2317.739990,-2303.850830,13.545999)) // Punto de materiales
        {
            if(GetPVarInt(playerid, "Packages") > 0)
            {
                if(GetPVarInt(playerid, "tpMatRunTimer") != 0)
                {
                    format(string, sizeof(string), "{FFFF00}ForceGamersRP:{FF0000}: %s (ID %d) Posible hack teleport, LUGAR: Punto de mats.", GetPlayerNameEx(playerid), playerid);
                    ABroadCast( COLOR_YELLOW, string, 2 );
                    format(string, sizeof(string), "%s (ID %d) Posible hack teleport, LUGAR: Punto de mats.", GetPlayerNameEx(playerid), playerid);
                    Log("logs/hack.log", string);
                }
                new payout = (25)*(GetPVarInt(playerid, "Packages"));

                if(Info[playerid][pVIP] == 1)
                {
                    Info[playerid][pMats] += 375;
                    SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* La fabrica te da 375 materiales por tu paquete de 15 materiales.");
                    SendClientMessageEx(playerid, COLOR_YELLOW,"{FFFF00}[BRONCEVIP]:{FFFFFF} Recibes 1.5x mбs materiales de lo normal.");

                }
                else if(Info[playerid][pVIP] == 2 || Info[playerid][pVIP] == 3)
                {
                    Info[playerid][pMats] += 500;
                    SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* La fabrica te da 500 materiales por tu paquete de 20 materiales.");
                    SendClientMessageEx(playerid, COLOR_YELLOW,"{FFFF00}[SILVERGOLDVIP]:{FFFFFF} Recibes 2x mбs materiales de lo normal.");

                }
                else if(Info[playerid][pVIP] >= 4)
                {
                    Info[playerid][pMats] += 625;
                    SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* La fabrica te da 625 materiales por tu paquete de 25 materiales.");
                    SendClientMessageEx(playerid, COLOR_YELLOW,"{FFFF00}[PLATINUMVIP]:{FFFFFF} Recibes 2.5x mбs materiales de lo normal.");

                }
                else
                {
                    Info[playerid][pMats] += 250;
                    SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* La fabrica te diу 250 materiales por tus 10 paquetes.");
                }

                DeletePVar(playerid, "Packages");
                DeletePVar(playerid, "MatDeliver");
                DisablePlayerCheckpoint(playerid);
                for(new p = 0; p < sizeof(fINFO); p++)
                {
     if(strcmp(Points[h][Owner], fINFO[p][FamilyName], true) == 0)
                    {
                        fINFO[p][FamilyBank] = fINFO[p][FamilyBank]+(payout/3);
                    }
                }
                return 1;
            }
        }
        else if(GetPVarInt(playerid, "MatDeliver") == 333 && IsPlayerInRangeOfPoint(playerid, 6.0, 1083.0131,-1226.7869,15.8203))// 2do Punto de materiales
        {
            if(GetPVarInt(playerid, "Packages") > 0)
            {
                if(Info[playerid][pVIP] == 1)
                {
                    Info[playerid][pMats] += 675;
                    SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* La fabrica te da 675 materiales por tu paquete de 23 materiales.");
                    SendClientMessageEx(playerid, COLOR_YELLOW,"{FFFF00}[BRONCEVIP]:{FFFFFF} Recibes 1.5x mбs materiales de lo normal.");
                }
                else if(Info[playerid][pVIP] == 2 || Info[playerid][pVIP] == 3)
                {
                    Info[playerid][pMats] += 900;
                    SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* La fabrica te da 900 materiales por tu paquete de 30 materiales.");
                    SendClientMessageEx(playerid, COLOR_YELLOW,"{FFFF00}[SILVERGOLDVIP]:{FFFFFF} Recibes 2x mбs materiales de lo normal.");
                }
                else if(Info[playerid][pVIP] >= 4)
                {
                    Info[playerid][pMats] += 625;
                    SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* La fabrica te da 1125 materiales por tu paquete de 38 materiales.");
                    SendClientMessageEx(playerid, COLOR_YELLOW,"{FFFF00}[PLATINUMVIP]:{FFFFFF} Recibes 2.5x mбs materiales de lo normal.");
                }
                else
                {
                    Info[playerid][pMats] += 450;
                    SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* La fabrica te diу 450 materiales por tus 15 paquetes.");
                }
                DeletePVar(playerid, "Packages");
                DeletePVar(playerid, "MatDeliver");
                DisablePlayerCheckpoint(playerid);
            }
            if(GetPVarInt(playerid, "tpMatRunTimer") != 0)
            {
                   format(string, sizeof(string), "{FFFF00}ForceGamersRP:{FF0000}: %s (ID %d) Posible hack teleport, LUGAR: Punto de mats.", GetPlayerNameEx(playerid), playerid);
                   ABroadCast( COLOR_YELLOW, string, 2 );
                   format(string, sizeof(string), "%s (ID %d) Posible hack teleport, LUGAR: Punto de mats.", GetPlayerNameEx(playerid), playerid);
                   Log("logs/hack.log", string);
            }
        }
        else if(GetPVarInt(playerid, "MatDeliver") == 444 && IsPlayerInRangeOfPoint(playerid, 6.0, 2534.2683,-1063.3899,69.5655)) // 3er punto de materiales
        {
            if(GetPVarInt(playerid, "Packages") > 0)
            {
                if(Info[playerid][pVIP] == 1)
                {
                    Info[playerid][pMats] += 450;
                    SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* La fabrica te da 450 materiales por tu paquete de 18 materiales.");
                    SendClientMessageEx(playerid, COLOR_YELLOW,"{FFFF00}[BRONCEVIP]:{FFFFFF} Recibes 1.5x mбs materiales de lo normal.");

                }
                else if(Info[playerid][pVIP] == 2 || Info[playerid][pVIP] == 3)
                {
                    Info[playerid][pMats] += 600;
                    SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* La fabrica te da 600 materiales por tu paquete de 24 materiales.");
                    SendClientMessageEx(playerid, COLOR_YELLOW,"{FFFF00}[SILVERGOLDVIP]:{FFFFFF} Recibes 2x mбs materiales de lo normal.");

                }
                else if(Info[playerid][pVIP] >= 4)
                {
                    Info[playerid][pMats] += 750;
                    SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* La fabrica te da 750 materiales por tu paquete de 30 materiales.");
                    SendClientMessageEx(playerid, COLOR_YELLOW,"{FFFF00}[PLATINUMVIP]:{FFFFFF} Recibes 2.5x mбs materiales de lo normal.");

                }
                else
                {
                    Info[playerid][pMats] += 300;
                    SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "*La fabrica te diу 300 materiales por tus 12 paquetes.");
                }

                DeletePVar(playerid, "Packages");
                DeletePVar(playerid, "MatDeliver");
                DisablePlayerCheckpoint(playerid);
                if(GetPVarInt(playerid, "tpMatRunTimer") != 0)
                {
                    format(string, sizeof(string), "{FFFF00}ForceGamersRP:{FF0000} %s (ID %d) Posible hack teleport, LUGAR: Punto de mats.", GetPlayerNameEx(playerid), playerid);
                    ABroadCast( COLOR_YELLOW, string, 2 );
                    format(string, sizeof(string), "%s (ID %d) Posible hack teleport, LUGAR: Punto de mats.", GetPlayerNameEx(playerid), playerid);
                    Log("logs/hack.log", string);
                }
                return 1;
            }
        }
    }
    if(GetPVarInt(playerid,"TrackCar") != 0)
    {
        DisablePlayerCheckpoint(playerid);
        DeletePVar(playerid, "TrackCar");
        return 1;
    }
    if(TaxiCallTime[playerid] > 0 && TaxiAccepted[playerid] < 999)
    {
        TaxiAccepted[playerid] = 999;
        GameTextForPlayer(playerid, "~w~llegaste!", 5000, 1);
        TaxiCallTime[playerid] = 0;
        DisablePlayerCheckpoint(playerid);
    }
    if(GetPVarInt(playerid, "TruckDeliver") > 0 && gPlayerCheckpointStatus[playerid] != CHECKPOINT_RETURNTRUCK)
    {
        new vehicleid = GetPlayerVehicleID(playerid);
        if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
        {
            SendClientMessageEx(playerid, COLOR_WHITE, "{A2DC35}JOB:{FFFFFF} Este no es un camiуn!");
            return 1;
        }
        if(TruckUsed[playerid] != INVALID_VEHICLE_ID && vehicleid != TruckUsed[playerid])
        {
            SendClientMessageEx(playerid, COLOR_WHITE, "{A2DC35}JOB:{FFFFFF} Este no es tu camiуn con la mercancнa que debes entregar.");
            return 1;
        }

        if(!IsAtTruckDeliveryPoint(playerid))
         {//*****En estб condiciуn se usa para que los jugadores no puedan hacer uso de exploit en los checkpoints*****
            CancelTruckDelivery(playerid);
            SendClientMessageEx(playerid, COLOR_REALRED, "{FFFF00}[FG-RP]:{FFFFFF} Entraste a un checkpoint erronйo. No se completу la entrega.");
            return 1;
           }
        if(GetPVarInt(playerid, "tpTruckRunTimer") != 0)
        {
            format(string, sizeof(string), "{FFFF00}ForceGamersRP:{FF0000} %s (ID %d) Posible hack teleport LUGAR: JobCamioneros.", GetPlayerNameEx(playerid), playerid);
              ABroadCast( COLOR_YELLOW, string, 2 );
            format(string, sizeof(string), "%s (ID %d) Posible hack teleport LUGAR: JobCamioneros.", GetPlayerNameEx(playerid), playerid);
            Log("logs/hack.log", string);
        }
        new truckdeliver = GetPVarInt(playerid, "TruckDeliver");
        TruckContents[vehicleid] = 0;

        if(truckdeliver >= 1 && truckdeliver <= 3)
        {
            SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Has entregado la comida y bebidas, regresa para recolectar tu paga.");
        }
        else if(truckdeliver >= 4 && truckdeliver <= 6)
        {
            SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Has entregado la ropa y calzado, regresa para recolectar tu paga.");
        }
        else if(truckdeliver == 7)
        {
            SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Has entregado los materiales, regresa para recolectar tu paga.");
        }
        else if(truckdeliver >= 8 && truckdeliver <= 10)
        {
            SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Has entregado los objetos del 24/7, regresa para recolectar tu paga.");
        }
        else if(truckdeliver >= 11 && truckdeliver <= 15)
        {
            SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Has entregado las armas, regresa para recolectar tu paga.");
        }
        else if(truckdeliver >= 16 && truckdeliver <= 20)
        {
            SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Has entregado las drogas, regresa para recolectar tu paga.");
        }
        else if(truckdeliver >= 21 && truckdeliver <= 25)
        {
            SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Has entregado los materiales ilegales, regresa para recolectar tu paga.");
        }
        DisablePlayerCheckpoint(playerid);
        gPlayerCheckpointStatus[playerid] = CHECKPOINT_RETURNTRUCK;
        SetPlayerCheckpoint(playerid, 2225.7813,-2637.2319,13.4262, 5);
        GameTextForPlayer(playerid, "~w~Ref:~r~Ocean Docks", 5000, 1);
        SendClientMessageEx(playerid, COLOR_WHITE, "{FF8000}[INDICACION]:{FFFFFF} Regresa a Ocean Docks. (Mira el checkpoint en el radar).");

        SetPVarInt(playerid, "tpTruckRunTimer", 30);
        SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_TPTRUCKRUNTIMER);
        return 1;
    }
    else if(EMSCallTime[playerid] > 0 && EMSAccepted[playerid] < 999)
    {
        if(GetPVarInt(EMSAccepted[playerid], "Injured") == 1)
        {
            SendEMSQueue(EMSAccepted[playerid],2);
            EMSAccepted[playerid] = 999;
            GameTextForPlayer(playerid, "~w~Llegaste", 5000, 1);
            EMSCallTime[playerid] = 0;
            DisablePlayerCheckpoint(playerid);
        }
        else
        {
            EMSAccepted[playerid] = 999;
            GameTextForPlayer(playerid, "~r~Paciente ha muerto", 5000, 1);
            EMSCallTime[playerid] = 0;
            DisablePlayerCheckpoint(playerid);
        }
    }
    else if(Info[playerid][pJob] == 10  || Info[playerid][pJob2] == 10)
    {
        if(DrugFarming[playerid] == 1)
        {
            if(IsAHarvest(carid) && (GetPlayerState(playerid) == PLAYER_STATE_DRIVER))
            {
                if(Info[playerid][pCosecha] < 41)
                {
                    new cos = random(6);
                     DisablePlayerCheckpoint(playerid);
                    format(string, sizeof(string), "Has cosechado y has conseguido %i Kg de cosecha!", cos+1);
                    SendClientMessageEx(playerid, COLOR_WHITE, string);
                    Info[playerid][pCosecha] += cos+1;
                    new randomize = random(sizeof(gDrugFarmVar));
                      SetPlayerCheckpoint(playerid, gDrugFarmVar[randomize][0], gDrugFarmVar[randomize][1], gDrugFarmVar[randomize][2], 5.0);
                    return 1;
                }
                else
                {
                    DisablePlayerCheckpoint(playerid);
                    SendClientMessageEx(playerid, COLOR_YELLOW, "Tienes mбs de 40 Kg, no puedes llevar mбs.");
                    format(string, sizeof(string), "Tienes %d gramos de droga en tu mochila, puedes vender la cosecha a los 24/7. (/vendercosecha)", Info[playerid][pCosecha]);
                    SendClientMessageEx(playerid, COLOR_YELLOW, string);
                    DrugFarming[playerid] = 0;
                    SetVehicleToRespawn(GetPlayerVehicleID(playerid));
                    return 1;
                }
            }
            else
            {
                SendClientMessageEx(playerid, COLOR_YELLOW, "No estбs en el coche de cosechador.");
                DrugFarming[playerid] = 0;
                DisablePlayerCheckpoint(playerid);
                return 1;
            }
        }
    }
    else
    {
        switch (gPlayerCheckpointStatus[playerid])
        {
            case CHECKPOINT_LOADTRUCK:
            {
                if(IsPlayerInRangeOfPoint(playerid, 6, 2198.1377,-2660.1250,13.5469))
                {
                    new vehicleid = GetPlayerVehicleID(playerid);
                       if(IsATruckerCar(vehicleid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
                    {
                        DisablePlayerCheckpoint(playerid);
                        PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
                        gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
                        TogglePlayerControllable(playerid, 0);
                        SetPVarInt(playerid, "IsFrozen", 1);
                        SafeDialogEx(playerid,DIALOG_LOADTRUCK,DIALOG_STYLE_LIST,"їQue quieres transportar?","{00F70C}Mercancнa Legal {FFFFFF}(Ningъn riesgo)\n{FF0606}Mercancнa Ilegal {FFFFFF}(Riesgo de quedar encarcelado)","Ok","Cancelar");
                    }
                    else return SendClientMessageEx(playerid, COLOR_GREY, "No estбs en un camiуn para transportar.");
                }
            }
            case CHECKPOINT_RETURNTRUCK:
            {
                if(!IsPlayerInRangeOfPoint(playerid, 6, 2225.7813,-2637.2319,13.4262))
                {
                    CancelTruckDelivery(playerid);
                    SendClientMessageEx(playerid, COLOR_REALRED, "{FFFF00}[FG-RP]:{FFFFFF} Fuiste a un checkpoint erronйo, la entrega no se completo.");
                    return 1;
                }
                 if(GetPVarInt(playerid, "tpTruckRunTimer") != 0)
                {
                    format(string, sizeof(string), "{FFFF00}ForceGamersRP:{FF0000} %s (ID %d) Posible hack teleport.", GetPlayerNameEx(playerid), playerid);
                      ABroadCast( COLOR_YELLOW, string, 2 );
                    format(string, sizeof(string), "%s (ID %d) Posible hack teleport truckrunning.", GetPlayerNameEx(playerid), playerid);
                    Log("logs/hack.log", string);
                }
                   new vehicleid = GetPlayerVehicleID(playerid);
                if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
                {
                    SendClientMessageEx(playerid, COLOR_WHITE, "{FFFF00}[FG-RP]:{FFFFFF} No estбs en un camiуn!");
                    return 1;
                }
                if(TruckUsed[playerid] != INVALID_VEHICLE_ID && vehicleid != TruckUsed[playerid])
                {
                    SendClientMessageEx(playerid, COLOR_WHITE, "Este no es el carro que utilizas, devuelve el camiуn para recibir su pago!");
                    return 1;
                }

                PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
                DisablePlayerCheckpoint(playerid);
                gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;

                SetVehicleToRespawn(vehicleid);

                   new payment;
                new level = Info[playerid][pTruckSkill];
                if(level >= 0 && level <= 50) payment = 2000;
                else if(level >= 51 && level <= 100) payment = 3000;
                else if(level >= 101 && level <= 200) payment = 4500;
                else if(level >= 201 && level <= 400) payment = 6000;
                else if(level >= 401) payment = 7500;

                SaveStuff();
                GivePlayerCash(playerid, payment);
                format(string, sizeof(string), "* Sumaron $%d a tu paycheck por entregar mercancнas y devolver el camiуn.", payment);
                SendClientMessageEx(playerid, COLOR_LIGHTBLUE, string);

                new truckdeliver = GetPVarInt(playerid, "TruckDeliver");
                if(truckdeliver == 11)
                {

                    SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Se te diу un Bate de Bйisbol por entregar armas ilegales.");
                    GivePlayerValidWeapon(playerid, 5);
                }
                else if(truckdeliver == 12)
                {
                    SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Se te diу una Manopla por entregar armas ilegales.");
                    GivePlayerValidWeapon(playerid, 0);
                }
                else if(truckdeliver == 13)
                {
                    SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Se te diу una Katana por entregar armas ilegales.");
                    GivePlayerValidWeapon(playerid, 8);
                }
                else if(truckdeliver == 14)
                {
                    SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Se te diу una 9mm por entregar armas ilegales.");
                    GivePlayerValidWeapon(playerid, 22);
                }
                else if(truckdeliver == 15)
                {
                    SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Se te diу una Desert Eagle por entregar armas ilegales.");
                    GivePlayerValidWeapon(playerid, 24);
                }
                else if(truckdeliver == 16)
                {
                    SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Se te dio 3gr de droga por entregar mercancнa ilegal.");
                    Info[playerid][pCrack] += 5;
                }
                else if(truckdeliver == 17)
                {
                    SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Se te dio 5gr de droga por entregar mercancнa ilegal.");
                    Info[playerid][pCrack] += 5;
                }
                else if(truckdeliver == 18)
                {
                    SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Se te dio 8gr de hierba por entregar mercancнa ilegal.");
                    Info[playerid][pPot] += 8;
                }
                else if(truckdeliver == 19)
                {
                    SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Se te dio 10gr de hierba por entregar mercancнa ilegal.");
                    Info[playerid][pPot] += 10;
                }
                else if(truckdeliver == 20)
                {
                    SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Se te dio 15gr de droga por entregar mercancнa ilegal.");
                    Info[playerid][pCrack] += 15;
                }
                else if(truckdeliver == 21)
                {
                    SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Se te diу 25 Materiales por entregar mercancнa ilegal.");
                    Info[playerid][pMats] += 25;
                }
                else if(truckdeliver == 22)
                {
                    SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Se te diу 55 Materiales por entregar mercancнa ilegal.");
                    Info[playerid][pMats] += 50;
                }
                else if(truckdeliver == 23)
                {
                    SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Se te diу 100 Materiales por entregar mercancнa ilegal.");
                    Info[playerid][pMats] += 100;
                }
                else if(truckdeliver == 24)
                {
                    SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Se te diу 150 Materiales por entregar mercancнa ilegal.");
                    Info[playerid][pMats] += 150;
                }
                else if(truckdeliver == 25)
                {
                    SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Se te diу 200 Materiales por entregar mercancнa ilegal.");
                    Info[playerid][pMats] += 200;
                }
                if(Info[playerid][pDobleExp] == 0)
                {
                       Info[playerid][pTruckSkill]++;
                }
                else
                {
                    Info[playerid][pTruckSkill] += 2;
                    SendClientMessageEx(playerid, COLOR_YELLOW, "* {A2DC35}JOB:{FFFFFF} Ganaste 2 puntos de habilidad por tener horas de doble experiencia.");
                }
                TruckUsed[playerid] = INVALID_VEHICLE_ID;
                DeletePVar(playerid, "TruckDeliver");
            }
        }
    }
    DisablePlayerCheckpoint(playerid);
    return 1;
}
es muy largo ya lo se.. disculpen! es que nose por que se bugea y la mayoria dicen Has llegado al incendio.. en ves de decir el correspondiente.
Reply
#2

Agregame a skype "goncho281" que te ayudo
Reply
#3

Quote:
Originally Posted by Goncho28
Посмотреть сообщение
Agregame a skype "goncho281" que te ayudo
listoo!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)