Advertisement
Guest User

Untitled

a guest
Jan 8th, 2015
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 68.04 KB | None | 0 0
  1.  
  2. public OnPlayerEnterCheckpoint(playerid)
  3. {
  4.     if(gPlayerCheckpointStatus[playerid] == ROUTE) {
  5.         new vehicleid = GetPlayerVehicleID(playerid);
  6.         if(IsABankCar(vehicleid)) {
  7.         DisablePlayerCheckpoint(playerid);
  8.         gPlayerCheckpointStatus[playerid] = RETURN;
  9.         GameTextForPlayer(playerid, "~w~Delivery Complete", 5000, 1);
  10.         SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Return to the depot to get your paycheck! (see checkpoint on radar).");
  11.         SetPlayerCheckpoint(playerid,2520.6016,2447.6489,10.9427, 4);
  12.         return 1;
  13.         }
  14.         else {
  15.         SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You need to be in a bank car!");
  16.         return 1;
  17.         }
  18.     }
  19.     else if(gPlayerCheckpointStatus[playerid] == LAROUTE) {
  20.         new vehicleid = GetPlayerVehicleID(playerid);
  21.         if(IsABankCar(vehicleid)) {
  22.         DisablePlayerCheckpoint(playerid);
  23.         gPlayerCheckpointStatus[playerid] = RETURN;
  24.         GameTextForPlayer(playerid, "~w~Delivery Complete", 5000, 1);
  25.         SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Return to the depot to get your paycheck! (see checkpoint on radar).");
  26.         SetPlayerCheckpoint(playerid,1433.0181,-962.2107,36.3097, 10);
  27.         return 1;
  28.         }
  29.         else {
  30.         SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You need to be in a bank car!");
  31.         return 1;
  32.         }
  33.     }
  34.     else if(gPlayerCheckpointStatus[playerid] == RETURN) {
  35.         if(GetPVarInt(playerid, "tpSTruckRunTimer") != 0)
  36.         {
  37.             new string[128];
  38.             format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
  39.             ABroadCast( COLOR_YELLOW, string, 2 );
  40.             format(string, sizeof(string), "%s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
  41.             Log("logs/hack.log", string);
  42.         }
  43.         new vehicleid = GetPlayerVehicleID(playerid);
  44.         if(IsABankCar(vehicleid)) {
  45.         gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
  46.         DisablePlayerCheckpoint(playerid);
  47.         new skin;
  48.         skin = GetPVarInt(playerid, "OriginalSkin");
  49.         PlayerInfo[playerid][pChar] = skin;
  50.         PlayerInfo[playerid][pModel] = skin;
  51.         SetPlayerSkin(playerid, skin);
  52.         new BankCarID;
  53.         BankCarID = GetPVarInt(playerid, "BankCarID");
  54.         if(BankCarID != vehicleid) {
  55.             SendClientMessageEx(playerid, COLOR_RED, "You did not receive payment because you completed the rotue in a different vehicle than you started in!");
  56.             return 1;
  57.         }
  58.         new Float:health;
  59.         new brinks, string[128];
  60.         GetVehicleHealth(vehicleid, health);
  61.         if(health >= 4000) {
  62.             SendClientMessageEx(playerid, COLOR_YELLOW, "* You earned a bonus for returning the vehicle undamaged!");
  63.             brinks += 5500;
  64.         }
  65.         else {
  66.             brinks += floatround((health), floatround_ceil);
  67.         }
  68.         format(string, sizeof(string), "* You earned %d for completing the route!", brinks);
  69.         SendClientMessageEx(playerid, COLOR_YELLOW, string);
  70.         GivePlayerCash(playerid, brinks);
  71.         brinks = 0;
  72.         return 1;
  73.         }
  74.         else {
  75.         SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You need to be in a bank car!");
  76.         return 1;
  77.         }
  78.     }
  79.    
  80.     if(gPlayerCheckpointStatus[playerid] == REPAIR) {
  81.         DisablePlayerCheckpoint(playerid);
  82.         gPlayerCheckpointStatus[playerid] = REPAIRBACK;
  83.         GameTextForPlayer(playerid, "~w~Repair Complete", 5000, 1);
  84.         SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Return to the repair shop to get your paycheck! (see checkpoint on radar).");
  85.         SetPlayerCheckpoint(playerid,981.3501,2082.9370,10.8203, 4);
  86.         return 1;
  87.     }
  88.     else if(gPlayerCheckpointStatus[playerid] == REPAIRBACK) {
  89.         if(GetPVarInt(playerid, "tpSTruckRunTimer") != 0)
  90.         {
  91.             new string[128];
  92.             format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
  93.             ABroadCast( COLOR_YELLOW, string, 2 );
  94.             format(string, sizeof(string), "%s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
  95.             Log("logs/hack.log", string);
  96.         }
  97.         new vehicleid = GetPlayerVehicleID(playerid);
  98.         if(IsARepair(vehicleid)) {
  99.         gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
  100.         DisablePlayerCheckpoint(playerid);
  101.         new skin;
  102.         skin = GetPVarInt(playerid, "OriginalSkin");
  103.         PlayerInfo[playerid][pChar] = skin;
  104.         PlayerInfo[playerid][pModel] = skin;
  105.         SetPlayerSkin(playerid, skin);
  106.         new Float:health;
  107.         new repairpay, string[128];
  108.         GetVehicleHealth(vehicleid, health);
  109.         if(health >= 1000) {
  110.             SendClientMessageEx(playerid, COLOR_YELLOW, "* You earned a bonus for returning the vehicle undamaged!");
  111.             repairpay += 600;
  112.         }
  113.         else {
  114.             repairpay += floatround((health*0.2), floatround_ceil);
  115.         }
  116.         repairpay += 200;
  117.         format(string, sizeof(string), "* You earned %d for completing the route!", repairpay);
  118.         SendClientMessageEx(playerid, COLOR_YELLOW, string);
  119.         GivePlayerCash(playerid, repairpay);
  120.         repairpay = 0;
  121.         return 1;
  122.         }
  123.         else {
  124.         SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You need to be in a repair truck!");
  125.         return 1;
  126.         }
  127.     }
  128.  
  129.     if(IsLoaded[playerid] || IsBooked[playerid])
  130.     {
  131.         switch(MissionData[playerid][player_misstype])
  132.         {
  133.             case MISSION_TYPE_A1:
  134.             {
  135.                 if(GetPVarInt(playerid, "tpSTruckRunTimer") != 0)
  136.                 {
  137.                     new string[128];
  138.                     format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
  139.                     ABroadCast( COLOR_YELLOW, string, 2 );
  140.                     format(string, sizeof(string), "%s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
  141.                     Log("logs/hack.log", string);
  142.                 }
  143.                 if(GetVehicleModel(GetVehicleTrailer(GetPlayerVehicleID(playerid))) != 435) return SendClientMessage(playerid, COLOR_RED, "You do not have a trailer to unload.");
  144.                 IsLoaded[playerid]=0;
  145.                 DisablePlayerCheckpoint(playerid);
  146.                 GivePlayerCash(playerid, tpsa1work[MissionData[playerid][player_missnumber]][tps_pay]);
  147.                 new string[128];
  148.                 format(string, 128, "You have delivered a load of %s to %s and earned $%d", tpsa1work[MissionData[playerid][player_missnumber]][tps_cargo], tpsa1work[MissionData[playerid][player_missnumber]][tps_dest],tpsa1work[MissionData[playerid][player_missnumber]][tps_pay]);
  149.                 SendClientMessage(playerid, -1, string);
  150.                
  151.                 SetVehicleToRespawn(GetVehicleTrailer(GetPlayerVehicleID(playerid)));
  152.             }
  153.             case MISSION_TYPE_A3:
  154.             {
  155.                 if(GetPVarInt(playerid, "tpSTruckRunTimer") != 0)
  156.                 {
  157.                     new string[128];
  158.                     format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
  159.                     ABroadCast( COLOR_YELLOW, string, 2 );
  160.                     format(string, sizeof(string), "%s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
  161.                     Log("logs/hack.log", string);
  162.                 }
  163.                 if(GetVehicleModel(GetVehicleTrailer(GetPlayerVehicleID(playerid))) != 591) return SendClientMessage(playerid, COLOR_RED, "You do not have a trailer to unload.");
  164.                 IsLoaded[playerid]=0;
  165.                 DisablePlayerCheckpoint(playerid);
  166.                 GivePlayerCash(playerid, tpsa3work[MissionData[playerid][player_missnumber]][tps_pay]);
  167.                 new string[128];
  168.                 format(string, 128, "You have delivered a load of %s to %s and earned $%d", tpsa3work[MissionData[playerid][player_missnumber]][tps_cargo], tpsa3work[MissionData[playerid][player_missnumber]][tps_dest],tpsa3work[MissionData[playerid][player_missnumber]][tps_pay]);
  169.                 SendClientMessage(playerid, -1, string);
  170.                
  171.                 SetVehicleToRespawn(GetVehicleTrailer(GetPlayerVehicleID(playerid)));
  172.             }
  173.             case MISSION_TYPE_FUEL:
  174.             {
  175.                 if(GetPVarInt(playerid, "tpSTruckRunTimer") != 0)
  176.                 {
  177.                     new string[128];
  178.                     format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
  179.                     ABroadCast( COLOR_YELLOW, string, 2 );
  180.                     format(string, sizeof(string), "%s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
  181.                     Log("logs/hack.log", string);
  182.                 }
  183.                 if(GetVehicleModel(GetVehicleTrailer(GetPlayerVehicleID(playerid))) != 584) return SendClientMessage(playerid, COLOR_RED, "You do not have a trailer to unload.");
  184.                 IsLoaded[playerid]=0;
  185.                 DisablePlayerCheckpoint(playerid);
  186.                 GivePlayerCash(playerid, tpsfuelwork[MissionData[playerid][player_missnumber]][tps_pay]);
  187.                 new string[128];
  188.                 format(string, 128, "You have delivered a load of %s to %s and earned $%d", tpsfuelwork[MissionData[playerid][player_missnumber]][tps_cargo], tpsfuelwork[MissionData[playerid][player_missnumber]][tps_dest],tpsfuelwork[MissionData[playerid][player_missnumber]][tps_pay]);
  189.                 SendClientMessage(playerid, -1, string);
  190.                
  191.                 SetVehicleToRespawn(GetVehicleTrailer(GetPlayerVehicleID(playerid)));
  192.             }
  193.             case MISSION_TYPE_DUMP:
  194.             {
  195.                 if(GetPVarInt(playerid, "tpSTruckRunTimer") != 0)
  196.                 {
  197.                     new string[128];
  198.                     format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
  199.                     ABroadCast( COLOR_YELLOW, string, 2 );
  200.                     format(string, sizeof(string), "%s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
  201.                     Log("logs/hack.log", string);
  202.                 }
  203.                 if(GetVehicleModel(GetVehicleTrailer(GetPlayerVehicleID(playerid))) != 450) return SendClientMessage(playerid, COLOR_RED, "You do not have a trailer to unload.");
  204.                 IsLoaded[playerid]=0;
  205.                 DisablePlayerCheckpoint(playerid);
  206.                 GivePlayerCash(playerid, tpsdumperwork[MissionData[playerid][player_missnumber]][tps_pay]);
  207.                 new string[128];
  208.                 format(string, 128, "You have delivered a load of %s to %s and earned $%d", tpsdumperwork[MissionData[playerid][player_missnumber]][tps_cargo], tpsdumperwork[MissionData[playerid][player_missnumber]][tps_dest],tpsdumperwork[MissionData[playerid][player_missnumber]][tps_pay]);
  209.                 SendClientMessage(playerid, -1, string);
  210.                
  211.                 SetVehicleToRespawn(GetVehicleTrailer(GetPlayerVehicleID(playerid)));
  212.             }
  213.             case MISSION_TYPE_SFA1:
  214.             {
  215.                 if(GetPVarInt(playerid, "tpSTruckRunTimer") != 0)
  216.                 {
  217.                     new string[128];
  218.                     format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
  219.                     ABroadCast( COLOR_YELLOW, string, 2 );
  220.                     format(string, sizeof(string), "%s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
  221.                     Log("logs/hack.log", string);
  222.                 }
  223.                 if(GetVehicleModel(GetVehicleTrailer(GetPlayerVehicleID(playerid))) != 435) return SendClientMessage(playerid, COLOR_RED, "You do not have a trailer to unload.");
  224.                 IsLoaded[playerid]=0;
  225.                 DisablePlayerCheckpoint(playerid);
  226.                 GivePlayerCash(playerid, cdlsfa1work[MissionData[playerid][player_missnumber]][sfcdl_pay]);
  227.                 new string[128];
  228.                 format(string, 128, "You have delivered a load of %s to %s and earned $%d", cdlsfa1work[MissionData[playerid][player_missnumber]][sfcdl_cargo], cdlsfa1work[MissionData[playerid][player_missnumber]][sfcdl_dest],cdlsfa1work[MissionData[playerid][player_missnumber]][sfcdl_pay]);
  229.                 SendClientMessage(playerid, -1, string);
  230.                
  231.                 SetVehicleToRespawn(GetVehicleTrailer(GetPlayerVehicleID(playerid)));
  232.             }
  233.             case MISSION_TYPE_SFA3:
  234.             {
  235.                 if(GetPVarInt(playerid, "tpSTruckRunTimer") != 0)
  236.                 {
  237.                     new string[128];
  238.                     format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
  239.                     ABroadCast( COLOR_YELLOW, string, 2 );
  240.                     format(string, sizeof(string), "%s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
  241.                     Log("logs/hack.log", string);
  242.                 }
  243.                 if(GetVehicleModel(GetVehicleTrailer(GetPlayerVehicleID(playerid))) != 591) return SendClientMessage(playerid, COLOR_RED, "You do not have a trailer to unload.");
  244.                 IsLoaded[playerid]=0;
  245.                 DisablePlayerCheckpoint(playerid);
  246.                 GivePlayerCash(playerid, cdlsfa3work[MissionData[playerid][player_missnumber]][sfcdl_pay]);
  247.                 new string[128];
  248.                 format(string, 128, "You have delivered a load of %s to %s and earned $%d", cdlsfa3work[MissionData[playerid][player_missnumber]][sfcdl_cargo], cdlsfa3work[MissionData[playerid][player_missnumber]][sfcdl_dest],cdlsfa3work[MissionData[playerid][player_missnumber]][sfcdl_pay]);
  249.                 SendClientMessage(playerid, -1, string);
  250.                
  251.                 SetVehicleToRespawn(GetVehicleTrailer(GetPlayerVehicleID(playerid)));
  252.             }
  253.             case MISSION_TYPE_SFFUEL:
  254.             {
  255.                 if(GetPVarInt(playerid, "tpSTruckRunTimer") != 0)
  256.                 {
  257.                     new string[128];
  258.                     format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
  259.                     ABroadCast( COLOR_YELLOW, string, 2 );
  260.                     format(string, sizeof(string), "%s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
  261.                     Log("logs/hack.log", string);
  262.                 }
  263.                 if(GetVehicleModel(GetVehicleTrailer(GetPlayerVehicleID(playerid))) != 584) return SendClientMessage(playerid, COLOR_RED, "You do not have a trailer to unload.");
  264.                 IsLoaded[playerid]=0;
  265.                 DisablePlayerCheckpoint(playerid);
  266.                 GivePlayerCash(playerid, cdlsffuelwork[MissionData[playerid][player_missnumber]][sfcdl_pay]);
  267.                 new string[128];
  268.                 format(string, 128, "You have delivered a load of %s to %s and earned $%d", cdlsffuelwork[MissionData[playerid][player_missnumber]][sfcdl_cargo], cdlsffuelwork[MissionData[playerid][player_missnumber]][sfcdl_dest],cdlsffuelwork[MissionData[playerid][player_missnumber]][sfcdl_pay]);
  269.                 SendClientMessage(playerid, -1, string);
  270.                
  271.                 SetVehicleToRespawn(GetVehicleTrailer(GetPlayerVehicleID(playerid)));
  272.             }
  273.             case MISSION_TYPE_SFDUMP:
  274.             {
  275.                 if(GetPVarInt(playerid, "tpSTruckRunTimer") != 0)
  276.                 {
  277.                     new string[128];
  278.                     format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
  279.                     ABroadCast( COLOR_YELLOW, string, 2 );
  280.                     format(string, sizeof(string), "%s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
  281.                     Log("logs/hack.log", string);
  282.                 }
  283.                 if(GetVehicleModel(GetVehicleTrailer(GetPlayerVehicleID(playerid))) != 450) return SendClientMessage(playerid, COLOR_RED, "You do not have a trailer to unload.");
  284.                 IsLoaded[playerid]=0;
  285.                 DisablePlayerCheckpoint(playerid);
  286.                 GivePlayerCash(playerid, cdlsfdumpwork[MissionData[playerid][player_missnumber]][sfcdl_pay]);
  287.                 new string[128];
  288.                 format(string, 128, "You have delivered a load of %s to %s and earned $%d", cdlsfdumpwork[MissionData[playerid][player_missnumber]][sfcdl_cargo], cdlsfdumpwork[MissionData[playerid][player_missnumber]][sfcdl_dest],cdlsfdumpwork[MissionData[playerid][player_missnumber]][sfcdl_pay]);
  289.                 SendClientMessage(playerid, -1, string);
  290.                
  291.                 SetVehicleToRespawn(GetVehicleTrailer(GetPlayerVehicleID(playerid)));
  292.             }          
  293.             case MISSION_TYPE_AIR:
  294.             {
  295.                 if(GetPVarInt(playerid, "tpSTruckRunTimer") != 0)
  296.                 {
  297.                     new string[128];
  298.                     format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
  299.                     ABroadCast( COLOR_YELLOW, string, 2 );
  300.                     format(string, sizeof(string), "%s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
  301.                     Log("logs/hack.log", string);
  302.                 }
  303.                 new vehicleid = GetPlayerVehicleID(playerid);
  304.                 if(!IsAPlane(vehicleid)) {
  305.                     IsBooked[playerid]=0;
  306.                     DisablePlayerCheckpoint(playerid);
  307.                     return Error(playerid, "You need to be in the same airplane you loaded the cargo into!");
  308.                 }
  309.                 else {
  310.                     IsBooked[playerid]=0;
  311.                     DisablePlayerCheckpoint(playerid);
  312.                     GivePlayerCash(playerid, airwork[MissionData[playerid][player_missnumber]][air_pay]);
  313.                     new string[128];
  314.                     IsDoingAirMission[playerid] = 0;
  315.                     format(string, 128, "You have flew a plane of %s to %s and earned $%d", airwork[MissionData[playerid][player_missnumber]][air_cargo], airwork[MissionData[playerid][player_missnumber]][air_dest],airwork[MissionData[playerid][player_missnumber]][air_pay]);
  316.                     SendClientMessage(playerid, -1, string);
  317.                     return 1;
  318.                 }
  319.             }
  320.         }
  321.     }
  322.     if(GetPVarInt(playerid,"IsInArena") >= 0)
  323.     {
  324.         new arenaid = GetPVarInt(playerid, "IsInArena");
  325.         if(PaintBallArena[arenaid][pbGameType] == 4 || PaintBallArena[arenaid][pbGameType] == 5)
  326.         {
  327.         }
  328.         return 1;
  329.     }
  330.     if(GetPVarInt(playerid,"TrackCar") != 0)
  331.     {
  332.         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
  333.         DisablePlayerCheckpoint(playerid);
  334.         DeletePVar(playerid, "TrackCar");
  335.         return 1;
  336.     }
  337.     if(GetPVarInt(playerid,"IsOnGPS") != 0)
  338.     {
  339.         PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
  340.         DisablePlayerCheckpoint(playerid);
  341.         SetPVarInt(playerid, "IsOnGPS", 0);
  342.         SendClientMessageEx(playerid,COLOR_YELLOW,"You have reached your destination!");
  343.         return 1;
  344.     }
  345.     for(new h = 0; h < MAX_POINTS; h++)
  346.     {
  347.         if(GetPVarInt(playerid, "CrateDeliver") == 1 && IsPlayerInRangeOfPoint(playerid, 6.0, 2166.3772,-1675.3829,15.0859))
  348.         {
  349.             new string[128];
  350.             if(GetPVarInt(playerid, "tpDrugRunTimer") != 0)
  351.             {
  352.                 format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly teleport drugrunning.", GetPlayerNameEx(playerid), playerid);
  353.                 ABroadCast( COLOR_YELLOW, string, 2 );
  354.                 format(string, sizeof(string), "%s (ID %d) is possibly teleport drugrunning.", GetPlayerNameEx(playerid), playerid);
  355.                 Log("logs/hack.log", string);
  356.             }
  357.             DisablePlayerCheckpoint(playerid);
  358.             new level = PlayerInfo[playerid][pSmugSkill];
  359.             if(level >= 0 && level <= 20)
  360.             {
  361.                 SendClientMessageEx(playerid, COLOR_LIGHTBLUE,"* You received $250 for delivering the Drug Crates.");
  362.                 GivePlayerCash(playerid, 250);
  363.             }
  364.             else if(level >= 21 && level <= 50)
  365.             {
  366.                 SendClientMessageEx(playerid, COLOR_LIGHTBLUE,"* You received $500 for delivering the Drug Crates.");
  367.                 GivePlayerCash(playerid, 500);
  368.             }
  369.             else if(level >= 51 && level <= 100)
  370.             {
  371.                 SendClientMessageEx(playerid, COLOR_LIGHTBLUE,"* You received $200 for delivering the Drug Crates.");
  372.                 GivePlayerCash(playerid, 200);
  373.             }
  374.             else if(level >= 101 && level <= 200)
  375.             {
  376.                 SendClientMessageEx(playerid, COLOR_LIGHTBLUE,"* You received $300 for delivering the Drug Crates.");
  377.                 GivePlayerCash(playerid, 300);
  378.             }
  379.             else if(level >= 201)
  380.             {
  381.                 SendClientMessageEx(playerid, COLOR_LIGHTBLUE,"* You received $400 for delivering the Drug Crates.");
  382.                 GivePlayerCash(playerid, 400);
  383.             }
  384.             DeletePVar(playerid, "CrateDeliver");
  385.             PlayerInfo[playerid][pCrates] = 0;
  386.             drugsys[DrugPotAmmount] += random(30);
  387.             PlayerInfo[playerid][pSmugSkill]++;
  388.             SaveDrugSystem();
  389.             return 1;
  390.         }
  391.         else if(GetPVarInt(playerid, "CrateDeliver") == 2 && IsPlayerInRangeOfPoint(playerid, 6.0, 2354.2808,-1169.2959,28.0066))
  392.         {
  393.             new string[128];
  394.             if(GetPVarInt(playerid, "tpDrugRunTimer") != 0)
  395.             {
  396.                 format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly teleport drugrunning.", GetPlayerNameEx(playerid), playerid);
  397.                 ABroadCast( COLOR_YELLOW, string, 2 );
  398.                 format(string, sizeof(string), "%s (ID %d) is possibly teleport drugrunning.", GetPlayerNameEx(playerid), playerid);
  399.                 Log("logs/hack.log", string);
  400.             }
  401.             DisablePlayerCheckpoint(playerid);
  402.             new level = PlayerInfo[playerid][pSmugSkill];
  403.             if(level >= 0 && level <= 20)
  404.             {
  405.                 SendClientMessageEx(playerid, COLOR_LIGHTBLUE,"* You received $125 for delivering the Drug Crates.");
  406.                 GivePlayerCash(playerid, 125);
  407.             }
  408.             else if(level >= 21 && level <= 50)
  409.             {
  410.                 SendClientMessageEx(playerid, COLOR_LIGHTBLUE,"* You received $150 for delivering the Drug Crates.");
  411.                 GivePlayerCash(playerid, 150);
  412.             }
  413.             else if(level >= 51 && level <= 100)
  414.             {
  415.                 SendClientMessageEx(playerid, COLOR_LIGHTBLUE,"* You received $200 for delivering the Drug Crates.");
  416.                 GivePlayerCash(playerid, 200);
  417.             }
  418.             else if(level >= 101 && level <= 200)
  419.             {
  420.                 SendClientMessageEx(playerid, COLOR_LIGHTBLUE,"* You received $300 for delivering the Drug Crates.");
  421.                 GivePlayerCash(playerid, 300);
  422.             }
  423.             else if(level >= 201)
  424.             {
  425.                 SendClientMessageEx(playerid, COLOR_LIGHTBLUE,"* You received $400 for delivering the Drug Crates.");
  426.                 GivePlayerCash(playerid, 400);
  427.             }
  428.             DeletePVar(playerid, "CrateDeliver");
  429.             PlayerInfo[playerid][pCrates] = 0;
  430.             drugsys[DrugCrackAmmount] += random(30);
  431.             PlayerInfo[playerid][pSmugSkill]++;
  432.             SaveDrugSystem();
  433.             return 1;
  434.         }
  435.         else if(Points[h][Type] == 2 && GetPVarInt(playerid, "MatDeliver") == Points[h][MatPoint] && IsPlayerInRangeOfPoint(playerid, 6.0, Points[h][Pointx], Points[h][Pointy], Points[h][Pointz]))
  436.         {
  437.             if(GetPVarInt(playerid, "Packages") > 0)
  438.             {
  439.                 new string[128];
  440.                 if(GetPVarInt(playerid, "tpMatRunTimer") != 0)
  441.                 {
  442.                     format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly teleport matrunning.", GetPlayerNameEx(playerid), playerid);
  443.                     ABroadCast( COLOR_YELLOW, string, 2 );
  444.                     format(string, sizeof(string), "%s (ID %d) is possibly teleport matrunning.", GetPlayerNameEx(playerid), playerid);
  445.                     Log("logs/hack.log", string);
  446.                 }
  447.                 new payout = (25)*(GetPVarInt(playerid, "Packages"));
  448.  
  449.                 if(PlayerInfo[playerid][pDonateRank] == 1)
  450.                 {
  451.                     PlayerInfo[playerid][pMats] += 375;
  452.                     SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* The factory gave you 375 materials for your 15 materials packages.");
  453.                     SendClientMessageEx(playerid, COLOR_YELLOW,"Bronze VIP: You received 1.5x more materials than normal.");
  454.  
  455.                 }
  456.                 else if(PlayerInfo[playerid][pDonateRank] == 2 || PlayerInfo[playerid][pDonateRank] == 3)
  457.                 {
  458.                     PlayerInfo[playerid][pMats] += 500;
  459.                     SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* The factory gave you 500 materials for your 20 materials packages.");
  460.                     SendClientMessageEx(playerid, COLOR_YELLOW,"Silver & Gold VIP: You received 2x more materials than normal.");
  461.  
  462.                 }
  463.                 else if(PlayerInfo[playerid][pDonateRank] >= 4)
  464.                 {
  465.                     PlayerInfo[playerid][pMats] += 625;
  466.                     SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* The factory gave you 625 materials for your 25 materials packages.");
  467.                     SendClientMessageEx(playerid, COLOR_YELLOW,"Platinum VIP: You received 2.5x more materials than normal.");
  468.  
  469.                 }
  470.                 else
  471.                 {
  472.                     PlayerInfo[playerid][pMats] += 250;
  473.                     SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* The factory gave you 250 materials for your 10 materials packages.");
  474.                 }
  475.  
  476.                 DeletePVar(playerid, "Packages");
  477.                 DeletePVar(playerid, "MatDeliver");
  478.                 DisablePlayerCheckpoint(playerid);
  479.                 for(new p = 0; p < sizeof(FamilyInfo); p++)
  480.                 {
  481.                     if(strcmp(Points[h][Owner], FamilyInfo[p][FamilyName], true) == 0)
  482.                     {
  483.                         FamilyInfo[p][FamilyBank] = FamilyInfo[p][FamilyBank]+(payout/3);
  484.                         //SendClientMessageEx(playerid, COLOR_WHITE, " Family owner recieved 50 percent of the cost.");
  485.                     }
  486.                 }
  487.                 return 1;
  488.             }
  489.         }
  490.         else if(GetPVarInt(playerid, "MatDeliver") == 333 && IsPlayerInRangeOfPoint(playerid, 6.0, -330.44, -467.54, 0.85))
  491.         {
  492.             if(GetPVarInt(playerid, "Packages") > 0)
  493.             {
  494.                 new vehicle = GetPlayerVehicleID(playerid);
  495.                 if(IsABoat(vehicle))
  496.                 {
  497.                     if(PlayerInfo[playerid][pDonateRank] == 1)
  498.                     {
  499.                         PlayerInfo[playerid][pMats] += 675;
  500.                         SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* The factory gave you 675 materials for your 23 materials packages.");
  501.                         SendClientMessageEx(playerid, COLOR_YELLOW,"Bronze VIP: You received 1.5x more materials than normal.");
  502.                     }
  503.                     else if(PlayerInfo[playerid][pDonateRank] == 2 || PlayerInfo[playerid][pDonateRank] == 3)
  504.                     {
  505.                         PlayerInfo[playerid][pMats] += 900;
  506.                         SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* The factory gave you 900 materials for your 30 materials packages.");
  507.                         SendClientMessageEx(playerid, COLOR_YELLOW,"Silver & Gold VIP: You received 2x more materials than normal.");
  508.  
  509.                     }
  510.                     else if(PlayerInfo[playerid][pDonateRank] >= 4)
  511.                     {
  512.                         PlayerInfo[playerid][pMats] += 625;
  513.                         SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* The factory gave you 1125 materials for your 38 materials packages.");
  514.                         SendClientMessageEx(playerid, COLOR_YELLOW,"Platinum VIP: You received 2.5x more materials than normal.");
  515.  
  516.                     }
  517.                     else
  518.                     {
  519.                         PlayerInfo[playerid][pMats] += 450;
  520.                         SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* The factory gave you 450 materials for your 15 materials packages.");
  521.                     }
  522.  
  523.                     DeletePVar(playerid, "Packages");
  524.                     DeletePVar(playerid, "MatDeliver");
  525.                     DisablePlayerCheckpoint(playerid);
  526.                 }
  527.                 else
  528.                 {
  529.                     GameTextForPlayer(playerid, "~r~You are not in a boat!", 3000, 1);
  530.                     return 1;
  531.                 }
  532.                 if(GetPVarInt(playerid, "tpMatRunTimer") != 0)
  533.                 {
  534.                     new string[128];
  535.                     format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly teleport matrunning.", GetPlayerNameEx(playerid), playerid);
  536.                     ABroadCast( COLOR_YELLOW, string, 2 );
  537.                     format(string, sizeof(string), "%s (ID %d) is possibly teleport matrunning.", GetPlayerNameEx(playerid), playerid);
  538.                     Log("logs/hack.log", string);
  539.                 }
  540.                 return 1;
  541.             }
  542.         }
  543.         else if(GetPVarInt(playerid, "MatDeliver") == 444 && IsPlayerInRangeOfPoint(playerid, 6.0, -1872.879760, 1416.312500, 7.180089))
  544.         {
  545.             if(GetPVarInt(playerid, "Packages") > 0)
  546.             {
  547.                 if(PlayerInfo[playerid][pDonateRank] == 1)
  548.                 {
  549.                     PlayerInfo[playerid][pMats] += 450;
  550.                     SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* The factory gave you 450 materials for your 18 materials packages.");
  551.                     SendClientMessageEx(playerid, COLOR_YELLOW,"Bronze VIP: You received 1.5x more materials than normal.");
  552.  
  553.                 }
  554.                 else if(PlayerInfo[playerid][pDonateRank] == 2 || PlayerInfo[playerid][pDonateRank] == 3)
  555.                 {
  556.                     PlayerInfo[playerid][pMats] += 600;
  557.                     SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* The factory gave you 600 materials for your 24 materials packages.");
  558.                     SendClientMessageEx(playerid, COLOR_YELLOW,"Silver & Gold VIP: You received 2x more materials than normal.");
  559.  
  560.                 }
  561.                 else if(PlayerInfo[playerid][pDonateRank] >= 4)
  562.                 {
  563.                     PlayerInfo[playerid][pMats] += 750;
  564.                     SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* The factory gave you 750 materials for your 30 materials packages.");
  565.                     SendClientMessageEx(playerid, COLOR_YELLOW,"Platinum VIP: You received 2.5x more materials than normal.");
  566.  
  567.                 }
  568.                 else
  569.                 {
  570.                     PlayerInfo[playerid][pMats] += 300;
  571.                     SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* The factory gave you 300 materials for your 12 materials packages.");
  572.                 }
  573.  
  574.                 DeletePVar(playerid, "Packages");
  575.                 DeletePVar(playerid, "MatDeliver");
  576.                 DisablePlayerCheckpoint(playerid);
  577.                 if(GetPVarInt(playerid, "tpMatRunTimer") != 0)
  578.                 {
  579.                     new string[128];
  580.                     format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly teleport matrunning.", GetPlayerNameEx(playerid), playerid);
  581.                     ABroadCast( COLOR_YELLOW, string, 2 );
  582.                     format(string, sizeof(string), "%s (ID %d) is possibly teleport matrunning.", GetPlayerNameEx(playerid), playerid);
  583.                     Log("logs/hack.log", string);
  584.                 }
  585.                 return 1;
  586.             }
  587.         }
  588.     }
  589.     if(GetPVarInt(playerid, "TruckDeliver") > 0 && gPlayerCheckpointStatus[playerid] != CHECKPOINT_RETURNTRUCK)
  590.     {
  591.         new vehicleid = GetPlayerVehicleID(playerid);
  592.         if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
  593.         {
  594.             SendClientMessageEx(playerid, COLOR_WHITE, "You are not in a Truck!");
  595.             return 1;
  596.         }
  597.         if(TruckUsed[playerid] != INVALID_VEHICLE_ID && vehicleid != TruckUsed[playerid])
  598.         {
  599.             SendClientMessageEx(playerid, COLOR_WHITE, "This is not your Truck with the goods you are suppose to deliver!");
  600.             return 1;
  601.         }
  602.  
  603.         if(!IsAtTruckDeliveryPoint(playerid))
  604.         {// In the case the player finds a way to exploit the checkpoint to different location
  605.             CancelTruckDelivery(playerid);
  606.             SendClientMessageEx(playerid, COLOR_REALRED, "ERROR: Wrong checkpoint entered. Truck delivery canceled completely.");
  607.             return 1;
  608.         }
  609.  
  610.         if(GetPVarInt(playerid, "tpTruckRunTimer") != 0)
  611.         {
  612.             new string[128];
  613.             format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly teleport truckrunning.", GetPlayerNameEx(playerid), playerid);
  614.             ABroadCast( COLOR_YELLOW, string, 2 );
  615.             format(string, sizeof(string), "%s (ID %d) is possibly teleport truckrunning.", GetPlayerNameEx(playerid), playerid);
  616.             Log("logs/hack.log", string);
  617.         }
  618.         new truckdeliver = GetPVarInt(playerid, "TruckDeliver");
  619.         TruckContents[vehicleid] = 0;
  620.  
  621.         if(truckdeliver >= 1 && truckdeliver <= 3)
  622.         {
  623.             SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You delivered the food & beverages, return the truck to the Los Angeles Docks to collect your pay.");
  624.         }
  625.         else if(truckdeliver >= 4 && truckdeliver <= 6)
  626.         {
  627.             SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You delivered the clothing, return the truck to the Los Angeles Docks to collect your pay.");
  628.         }
  629.         else if(truckdeliver == 7)
  630.         {
  631.             SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You delivered the materials, return the truck to the Los Angeles Docks to collect your pay.");
  632.         }
  633.         else if(truckdeliver >= 8 && truckdeliver <= 10)
  634.         {
  635.             SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You delivered the 24/7 items, return the truck to the Los Angeles Docks to collect your pay.");
  636.         }
  637.         else if(truckdeliver >= 11 && truckdeliver <= 15)
  638.         {
  639.             SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You delivered the weapons, return the truck to the Los Angeles Docks to collect your pay.");
  640.         }
  641.         else if(truckdeliver >= 16 && truckdeliver <= 20)
  642.         {
  643.             SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You delivered the drugs, return the truck to the Los Angeles Docks to collect your pay.");
  644.         }
  645.         else if(truckdeliver >= 21 && truckdeliver <= 25)
  646.         {
  647.             SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You delivered the illegal materials, return the truck to the Los Angeles Docks to collect your pay.");
  648.         }
  649.         else if(truckdeliver >= 26 && truckdeliver <= 30)
  650.         {
  651.             SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You delivered the illegal county run, return the truck to the Los Angeles Docks to collect your pay.");
  652.         }
  653.         DisablePlayerCheckpoint(playerid);
  654.  
  655.         gPlayerCheckpointStatus[playerid] = CHECKPOINT_RETURNTRUCK;
  656.         SetPlayerCheckpoint(playerid, 2439.6140,-2116.7917,13.5469, 5);
  657.         GameTextForPlayer(playerid, "~w~Waypoint set ~r~Los Angeles Docks", 5000, 1);
  658.         SendClientMessageEx(playerid, COLOR_WHITE, "HINT: Return to the Los Angeles Docks (see checkpoint on radar).");
  659.  
  660.         SetPVarInt(playerid, "tpTruckRunTimer", 30);
  661.         SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_TPTRUCKRUNTIMER);
  662.         return 1;
  663.     }
  664.     if(GetPVarInt(playerid, "VanDeliver") > 0 && gPlayerCheckpointStatus[playerid] != CHECKPOINT_RETURNVAN)
  665.     {
  666.         new string[128];
  667.         new vehicleid = GetPlayerVehicleID(playerid);
  668.         if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
  669.         {
  670.             SendClientMessageEx(playerid, COLOR_WHITE, "You are not in a Van!");
  671.             return 1;
  672.         }
  673.         if(VanUsed[playerid] != INVALID_VEHICLE_ID && vehicleid != VanUsed[playerid])
  674.         {
  675.             SendClientMessageEx(playerid, COLOR_WHITE, "This is not your Van with the goods you are suppose to deliver!");
  676.             return 1;
  677.         }
  678.  
  679.         if(!IsAtVanDeliveryPoint(playerid))
  680.         {// In the case the player finds a way to exploit the checkpoint to different location
  681.             CancelVanDelivery(playerid);
  682.             SendClientMessageEx(playerid, COLOR_REALRED, "ERROR: Wrong checkpoint entered. Van delivery canceled completely.");
  683.             return 1;
  684.         }
  685.  
  686.         if (GetPVarInt(playerid, "tpFedexTimer") != 0)
  687.         {
  688.             format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly teleport Fedex Running.", GetPlayerNameEx(playerid), playerid);
  689.             ABroadCast( COLOR_YELLOW, string, 2 );
  690.             format(string, sizeof(string), "%s (ID %d) is possibly teleport Fedex Running.", GetPlayerNameEx(playerid), playerid);
  691.             Log("logs/hack.log", string);
  692.         }
  693.         new vandeliver = GetPVarInt(playerid, "VanDeliver");
  694.         VanContents[vehicleid] = 0;
  695.  
  696.         if(vandeliver >= 1 && vandeliver <= 3)
  697.         {
  698.             SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You delivered the food & beverages, return the van to the San Fierro Yard to collect your pay.");
  699.         }
  700.         else if(vandeliver >= 4 && vandeliver <= 6)
  701.         {
  702.             SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You delivered the clothing, return the van to the San Fierro Yard to collect your pay.");
  703.         }
  704.         else if(vandeliver == 7)
  705.         {
  706.             SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You delivered the materials, return the van to the San Fierro Yard to collect your pay.");
  707.         }
  708.         else if(vandeliver >= 8 && vandeliver <= 10)
  709.         {
  710.             SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You delivered the 24/7 items, return the van to the San Fierro Yard to collect your pay.");
  711.         }
  712.         else if(vandeliver >= 11 && vandeliver <= 15)
  713.         {
  714.             SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You delivered the weapons, return the van to the San Fierro Yard to collect your pay.");
  715.         }
  716.         else if(vandeliver >= 16 && vandeliver <= 20)
  717.         {
  718.             SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You delivered the drugs, return the van to the San Fierro Yard to collect your pay.");
  719.         }
  720.         else if(vandeliver >= 21 && vandeliver <= 25)
  721.         {
  722.             SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You delivered the illegal materials, return the van to the San Fierro Yard to collect your pay.");
  723.         }
  724.         else if(vandeliver >= 26 && vandeliver <= 30)
  725.         {
  726.             SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You delivered the illegal county run, return the van to the San Fierro Yard to collect your pay.");
  727.         }
  728.         DisablePlayerCheckpoint(playerid);
  729.  
  730.         gPlayerCheckpointStatus[playerid] = CHECKPOINT_RETURNVAN;
  731.         SetPlayerCheckpoint(playerid, -2135.9277,-247.8900,36.2119, 5);
  732.         GameTextForPlayer(playerid, "~w~Waypoint set ~r~San Fierro Yard", 5000, 1);
  733.         SendClientMessageEx(playerid, COLOR_WHITE, "HINT: Return to the San Fierro Yard (see checkpoint on radar).");
  734.  
  735.         SetPVarInt(playerid, "tpFedexTimer", 30);
  736.         SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_TPFEDEXRUNTIMER);
  737.         return 1;
  738.     }
  739.     // Pizza Delivery
  740.     if(GetPVarInt(playerid, "Pizza") > 0 && IsPlayerInRangeOfPoint(playerid, 5.0, HouseInfo[GetPVarInt(playerid, "Pizza")][hExteriorX], HouseInfo[GetPVarInt(playerid, "Pizza")][hExteriorY], HouseInfo[GetPVarInt(playerid, "Pizza")][hExteriorZ]))
  741.     {
  742.         new string[128];
  743.         if (GetPVarInt(playerid, "tpPizzaTimer") != 0)
  744.         {
  745.             format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly teleport pizzarunning.", GetPlayerNameEx(playerid), playerid);
  746.             ABroadCast( COLOR_YELLOW, string, 2 );
  747.             format(string, sizeof(string), "%s (ID %d) is possibly teleport pizzarunning.", GetPlayerNameEx(playerid), playerid);
  748.             Log("logs/hack.log", string);
  749.         }
  750.         DestroyProgressBar(PizzaBar[playerid]);
  751.         format(string, sizeof(string), "You have delivered the pizza to the destination! You have made $%d.", (GetPVarInt(playerid, "pizzaTimer") / 3));
  752.         Tax -= (GetPVarInt(playerid, "pizzaTimer") / 3);
  753.         SaveStuff();
  754.         GivePlayerCash(playerid, floatround((GetPVarInt(playerid, "pizzaTimer") / 3), floatround_round));
  755.         SendClientMessageEx(playerid, COLOR_WHITE, string);
  756.         SetPVarInt(playerid, "Pizza", 0);
  757.         DisablePlayerCheckpoint(playerid);
  758.  
  759.     }
  760.     // Burger Delivery
  761.     if(GetPVarInt(playerid, "Burger") > 0 && IsPlayerInRangeOfPoint(playerid, 5.0, HouseInfo[GetPVarInt(playerid, "Burger")][hExteriorX], HouseInfo[GetPVarInt(playerid, "Burger")][hExteriorY], HouseInfo[GetPVarInt(playerid, "Burger")][hExteriorZ]))
  762.     {
  763.         new string[128];
  764.         if (GetPVarInt(playerid, "tpPizzaTimer") != 0)
  765.         {
  766.             format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly teleport burgerrunning.", GetPlayerNameEx(playerid), playerid);
  767.             ABroadCast( COLOR_YELLOW, string, 2 );
  768.             format(string, sizeof(string), "%s (ID %d) is possibly teleport burgerrunning.", GetPlayerNameEx(playerid), playerid);
  769.             Log("logs/hack.log", string);
  770.         }
  771.         format(string, sizeof(string), "You have made the delivery to the destination! You have made $%d.", (GetPVarInt(playerid, "burgerTimer") * 10));
  772.         Tax -= (GetPVarInt(playerid, "burgerTimer") * 10);
  773.         SaveStuff();
  774.         GivePlayerCash(playerid, floatround((GetPVarInt(playerid, "burgerTimer") * 10), floatround_round));
  775.         SendClientMessageEx(playerid, COLOR_WHITE, string);
  776.         SetPVarInt(playerid, "Burger", 0);
  777.         DisablePlayerCheckpoint(playerid);
  778.  
  779.     }
  780.     if(GetPVarInt(playerid, "Finding")>=1)
  781.     {
  782.         DeletePVar(playerid, "Finding");
  783.         DisablePlayerCheckpoint(playerid);
  784.         GameTextForPlayer(playerid, "~w~Reached destination", 5000, 1);
  785.     }
  786.     if(TaxiCallTime[playerid] > 0 && TaxiAccepted[playerid] < 999)
  787.     {
  788.         TaxiAccepted[playerid] = 999;
  789.         GameTextForPlayer(playerid, "~w~Reached destination", 5000, 1);
  790.         TaxiCallTime[playerid] = 0;
  791.         DisablePlayerCheckpoint(playerid);
  792.     }
  793.     else if(EMSCallTime[playerid] > 0 && EMSAccepted[playerid] < 999)
  794.     {
  795.         if(GetPVarInt(EMSAccepted[playerid], "Injured") == 1)
  796.         {
  797.             SendEMSQueue(EMSAccepted[playerid],2);
  798.             EMSAccepted[playerid] = 999;
  799.             GameTextForPlayer(playerid, "~g~Reached destination", 5000, 1);
  800.             if(PlayerInfo[playerid][pMember]==4||PlayerInfo[playerid][pLeader]==4 || (PlayerInfo[playerid][pMember] == 12 && PlayerInfo[playerid][pDivision] == 3) || (PlayerInfo[playerid][pMember] == 11 && (PlayerInfo[playerid][pDivision] == 7 || PlayerInfo[playerid][pDivision] == 3))) {
  801.             SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Don't forget to grab your ALS bag in the back of the Ambulance (/getals)");
  802.             }
  803.             EMSCallTime[playerid] = 0;
  804.             DisablePlayerCheckpoint(playerid);
  805.         }
  806.         else
  807.         {
  808.             EMSAccepted[playerid] = 999;
  809.             GameTextForPlayer(playerid, "~r~Patient has died", 5000, 1);
  810.             EMSCallTime[playerid] = 0;
  811.             DisablePlayerCheckpoint(playerid);
  812.         }
  813.     }
  814.     else if(BusCallTime[playerid] > 0 && BusAccepted[playerid] < 999)
  815.     {
  816.         BusAccepted[playerid] = 999;
  817.         GameTextForPlayer(playerid, "~w~Reached destination", 5000, 1);
  818.         BusCallTime[playerid] = 0;
  819.         DisablePlayerCheckpoint(playerid);
  820.     }
  821.     else if(MedicCallTime[playerid] > 0 && MedicAccepted[playerid] < 999)
  822.     {
  823.         MedicAccepted[playerid] = 999;
  824.         GameTextForPlayer(playerid, "~w~Reached patient", 5000, 1);
  825.         MedicCallTime[playerid] = 0;
  826.         DisablePlayerCheckpoint(playerid);
  827.     }
  828.     /*else if(CP[playerid] == 1)
  829.     {
  830.         if(IsPlayerInAnyVehicle(playerid))
  831.         {
  832.             for(new d = 0 ; d < MAX_PLAYERVEHICLES; d++)
  833.             {
  834.                 if(IsPlayerInVehicle(playerid, PlayerVehicleInfo[playerid][d][pvId]))
  835.                 {
  836.                     SendClientMessageEx(playerid, COLOR_GRAD2, "You cannot sell this car");
  837.                     DisablePlayerCheckpoint(playerid);
  838.                     CP[playerid] = 0;
  839.                     return 1;
  840.                 }
  841.             }
  842.             PlayerInfo[playerid][pJackSkill] ++;
  843.             new mypoint = -1;
  844.             for (new i=0; i<MAX_POINTS; i++)
  845.             {
  846.                 if(strcmp(Points[i][Name], "Auto Export Company", true) == 0)
  847.                 {
  848.                     mypoint = i;
  849.                 }
  850.             }
  851.             if(PlayerInfo[playerid][pJackSkill] == 50)
  852.             { SendClientMessageEx(playerid, COLOR_YELLOW, "* Your Car Jack Skill is now Level 2, you will earn more Money and quicker Reload Time."); }
  853.             else if(PlayerInfo[playerid][pJackSkill] == 100)
  854.             { SendClientMessageEx(playerid, COLOR_YELLOW, "* Your Car Jack Skill is now Level 3, you will earn more Money and quicker Reload Time."); }
  855.             else if(PlayerInfo[playerid][pJackSkill] == 200)
  856.             { SendClientMessageEx(playerid, COLOR_YELLOW, "* Your Car Jack Skill is now Level 4, you will earn more Money and quicker Reload Time."); }
  857.             else if(PlayerInfo[playerid][pJackSkill] == 400)
  858.             { SendClientMessageEx(playerid, COLOR_YELLOW, "* Your Car Jack Skill is now Level 5, you will earn more Money and quicker Reload Time."); }
  859.             new level = PlayerInfo[playerid][pJackSkill];
  860.             if(level >= 0 && level <= 50)
  861.             {
  862.                 new rand = random(sizeof(SELLCAR1));
  863.                 new duh = GetPlayerVehicleID(playerid);
  864.                 format(string, sizeof(string), "You sold a car for $%d, your reload time is 20 minutes.", SELLCAR1[rand]);
  865.                 SendClientMessageEx(playerid, COLOR_LIGHTBLUE, string);
  866.                 GivePlayerCash(playerid, SELLCAR1[rand]);
  867.                 CP[playerid] = 0;
  868.                 DisablePlayerCheckpoint(playerid);
  869.                 PlayerInfo[playerid][pCarTime] = 1200;
  870.                 SetVehicleToRespawn(duh);
  871.                 for(new i = 0; i < sizeof(FamilyInfo); i++)
  872.                 {
  873.                     if(strcmp(Points[mypoint][Owner], FamilyInfo[i][FamilyName], true) == 0)
  874.                     {
  875.                         FamilyInfo[i][FamilyBank] = FamilyInfo[i][FamilyBank]+(SELLCAR1[rand]/2);
  876.                     }
  877.                 }
  878.             }
  879.             else if(level >= 51 && level <= 100)
  880.             {
  881.                 new rand = random(sizeof(SELLCAR2));
  882.                 new duh = GetPlayerVehicleID(playerid);
  883.                 format(string, sizeof(string), "You sold a car for $%d, your reload time is 18 minutes.", SELLCAR2[rand]);
  884.                 SendClientMessageEx(playerid, COLOR_LIGHTBLUE, string);
  885.                 GivePlayerCash(playerid, SELLCAR2[rand]);
  886.                 PlayerInfo[playerid][pCarTime] = 1080;
  887.                 CP[playerid] = 0;
  888.                 DisablePlayerCheckpoint(playerid);
  889.                 SetVehicleToRespawn(duh);
  890.                 for(new i = 0; i < sizeof(FamilyInfo); i++)
  891.                 {
  892.                     if(strcmp(Points[mypoint][Owner], FamilyInfo[i][FamilyName], true) == 0)
  893.                     {
  894.                         FamilyInfo[i][FamilyBank] = FamilyInfo[i][FamilyBank]+(SELLCAR2[rand]/2);
  895.                     }
  896.                 }
  897.             }
  898.             else if(level >= 101 && level <= 200)
  899.             {
  900.                 new rand = random(sizeof(SELLCAR3));
  901.                 new duh = GetPlayerVehicleID(playerid);
  902.                 format(string, sizeof(string), "You sold a car for $%d, your reload time is 16 minutes.", SELLCAR3[rand]);
  903.                 SendClientMessageEx(playerid, COLOR_LIGHTBLUE, string);
  904.                 GivePlayerCash(playerid, SELLCAR3[rand]);
  905.                 PlayerInfo[playerid][pCarTime] = 960;
  906.                 CP[playerid] = 0;
  907.                 DisablePlayerCheckpoint(playerid);
  908.                 SetVehicleToRespawn(duh);
  909.                 for(new i = 0; i < sizeof(FamilyInfo); i++)
  910.                 {
  911.                     if(strcmp(Points[mypoint][Owner], FamilyInfo[i][FamilyName], true) == 0)
  912.                     {
  913.                         FamilyInfo[i][FamilyBank] = FamilyInfo[i][FamilyBank]+(SELLCAR3[rand]/2);
  914.                     }
  915.                 }
  916.             }
  917.             else if(level >= 201 && level <= 400)
  918.             {
  919.                 new rand = random(sizeof(SELLCAR4));
  920.                 new duh = GetPlayerVehicleID(playerid);
  921.                 format(string, sizeof(string), "You sold a car for $%d, your reload time is 14 minutes.", SELLCAR4[rand]);
  922.                 SendClientMessageEx(playerid, COLOR_LIGHTBLUE, string);
  923.                 GivePlayerCash(playerid, SELLCAR4[rand]);
  924.                 PlayerInfo[playerid][pCarTime] = 840;
  925.                 CP[playerid] = 0;
  926.                 DisablePlayerCheckpoint(playerid);
  927.                 SetVehicleToRespawn(duh);
  928.                 for(new i = 0; i < sizeof(FamilyInfo); i++)
  929.                 {
  930.                     if(strcmp(Points[mypoint][Owner], FamilyInfo[i][FamilyName], true) == 0)
  931.                     {
  932.                         FamilyInfo[i][FamilyBank] = FamilyInfo[i][FamilyBank]+(SELLCAR4[rand]/2);
  933.                     }
  934.                 }
  935.             }
  936.             else if(level >= 401)
  937.             {
  938.                 new money = 6000;
  939.                 new duh = GetPlayerVehicleID(playerid);
  940.                 format(string, sizeof(string), "You sold a car for $%d, your reload time is 12 minutes.", money);
  941.                 SendClientMessageEx(playerid, COLOR_LIGHTBLUE, string);
  942.                 GivePlayerCash(playerid, money);
  943.                 PlayerInfo[playerid][pCarTime] = 720;
  944.                 CP[playerid] = 0;
  945.                 DisablePlayerCheckpoint(playerid);
  946.                 SetVehicleToRespawn(duh);
  947.                 for(new i = 0; i < sizeof(FamilyInfo); i++)
  948.                 {
  949.                     if(strcmp(Points[mypoint][Owner], FamilyInfo[i][FamilyName], true) == 0)
  950.                     {
  951.                         FamilyInfo[i][FamilyBank] = FamilyInfo[i][FamilyBank]+(money/2);
  952.                     }
  953.                  }
  954.             }
  955.             GameTextForPlayer(playerid, "~y~Sold the car", 2500, 1);
  956.             CP[playerid] = 0;
  957.             DisablePlayerCheckpoint(playerid);
  958.             new duh = GetPlayerVehicleID(playerid);
  959.             if(GetVehicleModel(duh)==525&&IsTrailerAttachedToVehicle(duh))
  960.             {
  961.                 SetVehicleToRespawn(GetVehicleTrailer(duh));
  962.             }
  963.             else
  964.             {
  965.                 SetVehicleToRespawn(duh);
  966.             }
  967.         }
  968.         else
  969.         {
  970.             GameTextForPlayer(playerid, "Not in a car", 5000, 1);
  971.         }
  972.     }*/
  973.     else
  974.     {
  975.         switch (gPlayerCheckpointStatus[playerid])
  976.         {
  977.             case CHECKPOINT_HOME:
  978.             {
  979.                 PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
  980.                 new i = hInviteHouse[playerid];
  981.                 DisablePlayerCheckpoint(playerid);
  982.                 gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
  983.                 Streamer_UpdateEx(playerid, HouseInfo[i][hInteriorX],HouseInfo[i][hInteriorY],HouseInfo[i][hInteriorZ]);
  984.                 SetPlayerInterior(playerid,HouseInfo[i][hHInteriorWorld]);
  985.                 if(HouseInfo[i][hCustomInterior] == 1)
  986.                 {
  987.                     TogglePlayerControllable(playerid, 0);
  988.                     GameTextForPlayer(playerid, "Objects loading...", 4000, 5);
  989.                     SetPVarInt(playerid, "LoadingObjects", 1);
  990.                     SetTimerEx("SafeLoadObjects", 4000, 0, "d", playerid);
  991.                 }
  992.                 SetPlayerPos(playerid,HouseInfo[i][hInteriorX],HouseInfo[i][hInteriorY],HouseInfo[i][hInteriorZ]);
  993.                 GameTextForPlayer(playerid, "~w~Welcome Home", 5000, 1);
  994.                 PlayerInfo[playerid][pInt] = HouseInfo[i][hHInteriorWorld];
  995.                 PlayerInfo[playerid][pLocal] = i+6000;
  996.                 PlayerInfo[playerid][pVW] = i+6000;
  997.                 SetPlayerVirtualWorld(playerid, i+6000);
  998.                 hInviteOffer[playerid] = 999;
  999.                 hInviteHouse[playerid] = INVALID_HOUSE_ID;
  1000.             }
  1001.             case CHECKPOINT_LOADTRUCK:
  1002.             {
  1003.                 if(IsPlayerInRangeOfPoint(playerid, 6, 2439.6140,-2116.7917,13.5469))
  1004.                 {
  1005.                     new vehicleid = GetPlayerVehicleID(playerid);
  1006.                     if(IsATruckerCar(vehicleid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
  1007.                     {
  1008.                         PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
  1009.                         DisablePlayerCheckpoint(playerid);
  1010.                         gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
  1011.                         TogglePlayerControllable(playerid, 0);
  1012.                         SetPVarInt(playerid, "IsFrozen", 1);
  1013.                         ShowPlayerDialog(playerid,DIALOG_LOADTRUCK,DIALOG_STYLE_LIST,"What do you want to transport?","{00F70C}Legal goods {FFFFFF}(no risk but also no bonuses)\n{FF0606}Illegal goods {FFFFFF}(risk of getting caught but a bonus)","Select","Cancel");
  1014.                     }
  1015.                     else return SendClientMessageEx(playerid, COLOR_GREY, "You are not driving a Los Angeles Docks Truck!");
  1016.                 }
  1017.             }
  1018.             case CHECKPOINT_TRUCKDELIVERY:
  1019.             {
  1020.                 if(PlayerTruckJob[playerid][pTDActive] == 1)
  1021.                 {
  1022.                     SendClientMessageEx(playerid, COLOR_YELLOW, " * You have reached the delivery destination, type /unloadtrailer to unload your trailer!");
  1023.                     PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
  1024.                     gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
  1025.                 }
  1026.                 else return SendClientMessageEx(playerid, COLOR_GRAD2, "  You are not on a truck delivery.");
  1027.             }
  1028.             case CHECKPOINT_LOADVAN:
  1029.             {
  1030.                 if(IsPlayerInRangeOfPoint(playerid, 6, -2135.9277,-247.8900,36.2119))
  1031.                 {
  1032.                     new vehicleid = GetPlayerVehicleID(playerid);
  1033.                     if(IsAFedexCar(vehicleid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
  1034.                     {
  1035.                         PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
  1036.                         DisablePlayerCheckpoint(playerid);
  1037.                         gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
  1038.                         TogglePlayerControllable(playerid, 0);
  1039.                         SetPVarInt(playerid, "IsFrozen", 1);
  1040.                         ShowPlayerDialog(playerid,DIALOG_LOADVAN,DIALOG_STYLE_LIST,"What do you want to deliver?","{00F70C}Legal goods {FFFFFF}(no risk but also no bonuses)\n{FF0606}Illegal goods {FFFFFF}(risk of getting caught but a bonus)","Select","Cancel");
  1041.                     }
  1042.                     else return SendClientMessageEx(playerid, COLOR_GREY, "You are not driving a San Fierro Fedex Van!");
  1043.                 }
  1044.             }
  1045.             case CHECKPOINT_RETURNVAN:
  1046.             {
  1047.                 new string[128];
  1048.                 if(!IsPlayerInRangeOfPoint(playerid, 6, -2135.9277,-247.8900,36.2119))
  1049.                 {// In the case the player finds a way to exploit the checkpoint to different location
  1050.                     CancelVanDelivery(playerid);
  1051.                     SendClientMessageEx(playerid, COLOR_REALRED, "ERROR: Wrong checkpoint entered. Van delivery canceled completely.");
  1052.                     return 1;
  1053.                 }
  1054.                 if (GetPVarInt(playerid, "tpFedexTimer") != 0)
  1055.                 {
  1056.                     format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly teleport Fedex Running.", GetPlayerNameEx(playerid), playerid);
  1057.                     ABroadCast( COLOR_YELLOW, string, 2 );
  1058.                     format(string, sizeof(string), "%s (ID %d) is possibly teleport Fedex Running.", GetPlayerNameEx(playerid), playerid);
  1059.                     Log("logs/hack.log", string);
  1060.                 }
  1061.                 new vehicleid = GetPlayerVehicleID(playerid);
  1062.                 if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
  1063.                 {
  1064.                     SendClientMessageEx(playerid, COLOR_WHITE, "You are not in a Van!");
  1065.                     return 1;
  1066.                 }
  1067.                 if(VanUsed[playerid] != INVALID_VEHICLE_ID && vehicleid != VanUsed[playerid])
  1068.                 {
  1069.                     SendClientMessageEx(playerid, COLOR_WHITE, "This is not the Van you used, return the Van you used in order to receive your pay!");
  1070.                     return 1;
  1071.                 }
  1072.  
  1073.                 PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
  1074.                 DisablePlayerCheckpoint(playerid);
  1075.                 gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
  1076.  
  1077.                 SetVehicleToRespawn(vehicleid);
  1078.                
  1079.                 SaveStuff();
  1080.                 new cashrand = random(15500);
  1081.                 GivePlayerCash(playerid, cashrand);
  1082.                 format(string, sizeof(string), "* You were paid $%d for delivering the goods and returning the van.", cashrand);
  1083.                 SendClientMessageEx(playerid, COLOR_LIGHTBLUE, string);
  1084.  
  1085.                 new vandeliver = GetPVarInt(playerid, "VanDeliver");
  1086.                 if(vandeliver == 11)
  1087.                 {
  1088.                     new randomweapon = Random(1, 4);
  1089.                     if(randomweapon == 1)
  1090.                     {
  1091.                         SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given a free Hunting Rifle as a bonus for taking the risk of transporting illegal weapons.");
  1092.                         GivePlayerValidWeapon(playerid, 33, 30);
  1093.                     }
  1094.                     if(randomweapon == 2)
  1095.                     {
  1096.                         SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given a free 12 Gauge Shotgun as a bonus for taking the risk of transporting illegal weapons.");
  1097.                         GivePlayerValidWeapon(playerid, 25, 20);
  1098.                     }
  1099.                     if(randomweapon == 3)
  1100.                     {
  1101.                         SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given a free 9mm as a bonus for taking the risk of transporting illegal weapons.");
  1102.                         GivePlayerValidWeapon(playerid, 22, 45);
  1103.                     }
  1104.                 }
  1105.                 else if(vandeliver == 16)
  1106.                 {
  1107.                     SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given pot & crack as a bonus for taking the risk of transporting illegal drugs.");
  1108.                     PlayerInfo[playerid][pPot] += random(3);
  1109.                     PlayerInfo[playerid][pCrack] += random(2);
  1110.                 }
  1111.                 else if(vandeliver == 21)
  1112.                 {
  1113.                     SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given materials as a bonus for taking the risk of transporting illegal materials.");
  1114.                     PlayerInfo[playerid][pMats] += random(500);
  1115.                 }
  1116.                 else if(vandeliver == 26)
  1117.                 {
  1118.                     SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given some materials, some pot & some crack, and a 9mm as a bonus for taking the risk of transporting illegal county run.");
  1119.                     PlayerInfo[playerid][pMats] += random(1000);
  1120.                     PlayerInfo[playerid][pPot] += random(7);
  1121.                     PlayerInfo[playerid][pCrack] += random(5);
  1122.                     GivePlayerValidWeapon(playerid, 22, 45);
  1123.                 }
  1124.                
  1125.                 VanUsed[playerid] = INVALID_VEHICLE_ID;
  1126.                 DeletePVar(playerid, "VanDeliver");
  1127.  
  1128.                 new mypoint = -1;
  1129.                 for (new i=0; i<MAX_POINTS; i++)
  1130.                 {
  1131.                     if(strcmp(Points[i][Name], "San Fierro Yard", true) == 0)
  1132.                     {
  1133.                         mypoint = i;
  1134.                     }
  1135.                 }
  1136.                 for(new i = 0; i < sizeof(FamilyInfo); i++)
  1137.                 {
  1138.                     if(strcmp(Points[mypoint][Owner], FamilyInfo[i][FamilyName], true) == 0)
  1139.                     {
  1140.                         Tax -= 200;
  1141.                         SaveStuff();
  1142.                         FamilyInfo[i][FamilyBank] = FamilyInfo[i][FamilyBank]+(200);
  1143.                     }
  1144.                 }
  1145.             }
  1146.             case CHECKPOINT_LOADMINING:
  1147.             {
  1148.                 if(IsPlayerInRangeOfPoint(playerid, 6, -1871.4495,-1685.3408,22.1871))
  1149.                 {
  1150.                     new vehicleid = GetPlayerVehicleID(playerid);
  1151.                     if(GetVehicleModel(vehicleid) == 455 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
  1152.                     {
  1153.                         PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
  1154.                         DisablePlayerCheckpoint(playerid);
  1155.                         gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
  1156.                         TogglePlayerControllable(playerid, 0);
  1157.                         SetPVarInt(playerid, "IsFrozen", 1);
  1158.                         ShowPlayerDialog(playerid,7774,DIALOG_STYLE_LIST,"What do you want to pickup?","{00F70C}Money\n{FF0606}Raw Opium","Select","Cancel");                   }
  1159.                     else return SendClientMessageEx(playerid, COLOR_GREY, "You are not driving the proper vehicle for transporting.");
  1160.                 }
  1161.             }
  1162.             case CHECKPOINT_RETURNMINING:
  1163.             {
  1164.                 if(IsPlayerInRangeOfPoint(playerid, 6, -1871.4495,-1685.3408,22.1871))
  1165.                 {
  1166.                     new vehicleid = GetPlayerVehicleID(playerid);
  1167.                     if(GetVehicleModel(vehicleid) == 455 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER && MiningLoaded[vehicleid] == 1)
  1168.                     {
  1169.                         PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
  1170.                         DisablePlayerCheckpoint(playerid);
  1171.                         gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;       
  1172.                         SendClientMessageEx(playerid, COLOR_GREY, "(INFO) Type /dropoffload to complete your mission.");                       
  1173.                     }
  1174.                     else return SendClientMessageEx(playerid, COLOR_GREY, "You are not driving the proper vehicle for transporting, or haven't picked up a load");
  1175.                 }
  1176.             }
  1177.             case CHECKPOINT_RRCALL:
  1178.             {
  1179.                 RRAccepted[playerid] = 999;
  1180.                 PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
  1181.                 DisablePlayerCheckpoint(playerid);
  1182.                 gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
  1183.                 SendClientMessageEx(playerid, COLOR_YELLOW, "You have arrived to your destination, please assist as much as possible!");
  1184.             }
  1185.             case CHECKPOINT_RETURNTRUCK:
  1186.             {
  1187.                 if(!IsPlayerInRangeOfPoint(playerid, 6, 2439.6140,-2116.7917,13.5469))
  1188.                 {// In the case the player finds a way to exploit the checkpoint to different location
  1189.                     CancelTruckDelivery(playerid);
  1190.                     SendClientMessageEx(playerid, COLOR_REALRED, "ERROR: Wrong checkpoint entered. Truck delivery canceled completely.");
  1191.                     return 1;
  1192.                 }
  1193.                 if(GetPVarInt(playerid, "tpTruckRunTimer") != 0)
  1194.                 {
  1195.                     new string[128];
  1196.                     format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly teleport truckrunning.", GetPlayerNameEx(playerid), playerid);
  1197.                     ABroadCast( COLOR_YELLOW, string, 2 );
  1198.                     format(string, sizeof(string), "%s (ID %d) is possibly teleport truckrunning.", GetPlayerNameEx(playerid), playerid);
  1199.                     Log("logs/hack.log", string);
  1200.                 }
  1201.                 new vehicleid = GetPlayerVehicleID(playerid);
  1202.                 if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
  1203.                 {
  1204.                     SendClientMessageEx(playerid, COLOR_WHITE, "You are not in a Truck!");
  1205.                     return 1;
  1206.                 }
  1207.                 if(TruckUsed[playerid] != INVALID_VEHICLE_ID && vehicleid != TruckUsed[playerid])
  1208.                 {
  1209.                     SendClientMessageEx(playerid, COLOR_WHITE, "This is not the Truck you used, return the Truck you used in order to receive your pay!");
  1210.                     return 1;
  1211.                 }
  1212.  
  1213.                 PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
  1214.                 DisablePlayerCheckpoint(playerid);
  1215.                 gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
  1216.  
  1217.                 SetVehicleToRespawn(vehicleid);
  1218.  
  1219.                 new string[128], payment;
  1220.                 new level = PlayerInfo[playerid][pTruckSkill];
  1221.                 if(level >= 0 && level <= 50) payment = 200;
  1222.                 else if(level >= 51 && level <= 100) payment = 250;
  1223.                 else if(level >= 101 && level <= 200) payment = 350;
  1224.                 else if(level >= 201 && level <= 400) payment = 550;
  1225.                 else if(level >= 401) payment = 700;
  1226.  
  1227.                 Tax -= payment;
  1228.                 SaveStuff();
  1229.                 GivePlayerCash(playerid, payment);
  1230.                 format(string, sizeof(string), "* You were paid $%d for delivering the goods and returning the truck.", payment);
  1231.                 SendClientMessageEx(playerid, COLOR_LIGHTBLUE, string);
  1232.  
  1233.                 new truckdeliver = GetPVarInt(playerid, "TruckDeliver");
  1234.                 if(truckdeliver == 11)
  1235.                 {
  1236.                     SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given a free 9mm as a bonus for taking the risk of transporting illegal weapons.");
  1237.                     GivePlayerValidWeapon(playerid, 22, 45);
  1238.                 }
  1239.                 else if(truckdeliver == 12)
  1240.                 {
  1241.                     SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given a free Shotgun as a bonus for taking the risk of transporting illegal weapons.");
  1242.                     GivePlayerValidWeapon(playerid, 25, 20);
  1243.                 }
  1244.                 else if(truckdeliver == 13)
  1245.                 {
  1246.                     SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given a free hunting Rifle as a bonus for taking the risk of transporting illegal weapons.");
  1247.                     GivePlayerValidWeapon(playerid, 33, 30);
  1248.                 }
  1249.                 else if(truckdeliver == 14)
  1250.                 {
  1251.                     SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given a free 9mm as a bonus for taking the risk of transporting illegal weapons.");
  1252.                     GivePlayerValidWeapon(playerid, 22, 45);
  1253.                 }
  1254.                 else if(truckdeliver == 15)
  1255.                 {
  1256.                     new randomweapon = Random(1, 3);
  1257.                     if(randomweapon == 1)
  1258.                     {
  1259.                         SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given a free Hunting Rifle as a bonus for taking the risk of transporting illegal weapons.");
  1260.                         GivePlayerValidWeapon(playerid, 33, 30);
  1261.                     }
  1262.                     if(randomweapon == 2)
  1263.                     {
  1264.                         SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given a free 12 Gauge Shotgun as a bonus for taking the risk of transporting illegal weapons.");
  1265.                         GivePlayerValidWeapon(playerid, 25, 20);
  1266.                     }
  1267.                 }
  1268.                 else if(truckdeliver == 16)
  1269.                 {
  1270.                     SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given 1 pot & 1 crack as a bonus for taking the risk of transporting illegal drugs.");
  1271.                     PlayerInfo[playerid][pPot] += 1;
  1272.                     PlayerInfo[playerid][pCrack] += 1;
  1273.                 }
  1274.                 else if(truckdeliver == 17)
  1275.                 {
  1276.                     SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given 2 pot & 1 crack as a bonus for taking the risk of transporting illegal drugs.");
  1277.                     PlayerInfo[playerid][pPot] += 2;
  1278.                     PlayerInfo[playerid][pCrack] += 1;
  1279.                 }
  1280.                 else if(truckdeliver == 18)
  1281.                 {
  1282.                     SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given 3 pot & 1 crack as a bonus for taking the risk of transporting illegal drugs.");
  1283.                     PlayerInfo[playerid][pPot] += 3;
  1284.                     PlayerInfo[playerid][pCrack] += 1;
  1285.                 }
  1286.                 else if(truckdeliver == 19)
  1287.                 {
  1288.                     SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given 4 pot & 2 crack as a bonus for taking the risk of transporting illegal drugs.");
  1289.                     PlayerInfo[playerid][pPot] += 4;
  1290.                     PlayerInfo[playerid][pCrack] += 2;
  1291.                 }
  1292.                 else if(truckdeliver == 20)
  1293.                 {
  1294.                     SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given 5 pot & 2 crack as a bonus for taking the risk of transporting illegal drugs.");
  1295.                     PlayerInfo[playerid][pPot] += 5;
  1296.                     PlayerInfo[playerid][pCrack] += 2;
  1297.                 }
  1298.                 else if(truckdeliver == 21)
  1299.                 {
  1300.                     SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given 50 materials as a bonus for taking the risk of transporting illegal materials.");
  1301.                     PlayerInfo[playerid][pMats] += 50;
  1302.                 }
  1303.                 else if(truckdeliver == 22)
  1304.                 {
  1305.                     SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given 75 materials as a bonus for taking the risk of transporting illegal materials.");
  1306.                     PlayerInfo[playerid][pMats] += 75;
  1307.                 }
  1308.                 else if(truckdeliver == 23)
  1309.                 {
  1310.                     SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given 100 materials as a bonus for taking the risk of transporting illegal materials.");
  1311.                     PlayerInfo[playerid][pMats] += 100;
  1312.                 }
  1313.                 else if(truckdeliver == 24)
  1314.                 {
  1315.                     SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given 150 materials as a bonus for taking the risk of transporting illegal materials.");
  1316.                     PlayerInfo[playerid][pMats] += 150;
  1317.                 }
  1318.                 else if(truckdeliver == 25)
  1319.                 {
  1320.                     SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given 200 materials as a bonus for taking the risk of transporting illegal materials.");
  1321.                     PlayerInfo[playerid][pMats] += 200;
  1322.                 }
  1323.                 else if(truckdeliver == 26)
  1324.                 {
  1325.                     SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given 500 materials, 1 pot & 1 crack, and a hunting rifle as a bonus for taking the risk of transporting illegal county run.");
  1326.                     PlayerInfo[playerid][pMats] += 500;
  1327.                     PlayerInfo[playerid][pPot] += 1;
  1328.                     PlayerInfo[playerid][pCrack] += 1;
  1329.                     GivePlayerValidWeapon(playerid, 33, 30);
  1330.                 }
  1331.                 else if(truckdeliver == 27)
  1332.                 {
  1333.                     SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given 750 materials, 4 pot & 3 crack, and a shotgun as a bonus for taking the risk of transporting illegal county run.");
  1334.                     PlayerInfo[playerid][pMats] += 750;
  1335.                     PlayerInfo[playerid][pPot] += 4;
  1336.                     PlayerInfo[playerid][pCrack] += 3;
  1337.                     GivePlayerValidWeapon(playerid, 25, 20);
  1338.                 }
  1339.                 else if(truckdeliver == 28)
  1340.                 {
  1341.                     SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given 900 materials, 5 pot & 4 crack, and a 9mm as a bonus for taking the risk of transporting illegal county run.");
  1342.                     PlayerInfo[playerid][pMats] += 900;
  1343.                     PlayerInfo[playerid][pPot] += 5;
  1344.                     PlayerInfo[playerid][pCrack] += 4;
  1345.                     GivePlayerValidWeapon(playerid, 22, 45);
  1346.                 }
  1347.                 else if(truckdeliver == 29)
  1348.                 {
  1349.                     SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given 950 materials, 6 pot & 5 crack, and a shotgun as a bonus for taking the risk of transporting illegal county run.");
  1350.                     PlayerInfo[playerid][pMats] += 950;
  1351.                     PlayerInfo[playerid][pPot] += 6;
  1352.                     PlayerInfo[playerid][pCrack] += 5;
  1353.                     GivePlayerValidWeapon(playerid, 25, 20);
  1354.                 }
  1355.                 else if(truckdeliver == 30)
  1356.                 {
  1357.                     SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given 1000 materials, 7 pot & 6 crack, and a shotgun as a bonus for taking the risk of transporting illegal county run.");
  1358.                     PlayerInfo[playerid][pMats] += 1000;
  1359.                     PlayerInfo[playerid][pPot] += 7;
  1360.                     PlayerInfo[playerid][pCrack] += 6;
  1361.                     GivePlayerValidWeapon(playerid, 25, 20);
  1362.                 }
  1363.                
  1364.                 PlayerInfo[playerid][pTruckSkill]++;
  1365.                 TruckUsed[playerid] = INVALID_VEHICLE_ID;
  1366.                 DeletePVar(playerid, "TruckDeliver");
  1367.  
  1368.                 new mypoint = -1;
  1369.                 for (new i=0; i<MAX_POINTS; i++)
  1370.                 {
  1371.                     if(strcmp(Points[i][Name], "Los Angeles Docks", true) == 0)
  1372.                     {
  1373.                         mypoint = i;
  1374.                     }
  1375.                 }
  1376.                 for(new i = 0; i < sizeof(FamilyInfo); i++)
  1377.                 {
  1378.                     if(strcmp(Points[mypoint][Owner], FamilyInfo[i][FamilyName], true) == 0)
  1379.                     {
  1380.                         Tax -= 200;
  1381.                         SaveStuff();
  1382.                         FamilyInfo[i][FamilyBank] = FamilyInfo[i][FamilyBank]+(200);
  1383.                     }
  1384.                 }
  1385.             }
  1386.             case LOAD_MATS1: // second check NW checkpoint
  1387.             {
  1388.                 if(MatsRunning[playerid] == 1)
  1389.                 {
  1390.                     if(PlayerInfo[playerid][pJob] == 24 || PlayerInfo[playerid][pJob2] == 24)
  1391.                     {
  1392.                         new string[128];
  1393.                         DisablePlayerCheckpoint(playerid);
  1394.                         PlayerPlaySound(playerid, 5453, 0.0, 0.0, 0.0);
  1395.                         format(string, sizeof(string), "* You have added %d materials to your current package, Proceed to the next location", random(5));
  1396.                         SendClientMessageEx(playerid, COLOR_GREY, string);
  1397.                         MatsRunning[playerid] = 2;
  1398.                         GameTextForPlayer(playerid, "~g~Materials loaded~n~~r~2/5", 5000, 1);
  1399.                         SetPlayerCheckpoint(playerid,902.3973,-1211.3816,16.9766,1.0);
  1400.                         gPlayerCheckpointStatus[playerid] = LOAD_MATS2;
  1401.                     }
  1402.                     return 1;
  1403.                 }
  1404.                 return 1;
  1405.             }
  1406.             case LOAD_MATS2: // third check sends them to the bone yard
  1407.             {
  1408.                 if(MatsRunning[playerid] == 2)
  1409.                 {
  1410.                     if(PlayerInfo[playerid][pJob] == 24 || PlayerInfo[playerid][pJob2] == 24)
  1411.                     {
  1412.                         new string[128];
  1413.                         DisablePlayerCheckpoint(playerid);
  1414.                         PlayerPlaySound(playerid, 5453, 0.0, 0.0, 0.0);
  1415.                         format(string, sizeof(string), "* You have added %d materials to your current package, Proceed to the next location", random(10));
  1416.                         SendClientMessageEx(playerid, COLOR_GREY, string);
  1417.                         MatsRunning[playerid] = 3;
  1418.                         GameTextForPlayer(playerid, "~g~Materials loaded~n~~r~3/5", 5000, 1);
  1419.                         SetPlayerCheckpoint(playerid,-574.9922,-500.5186,25.5234,1.0);
  1420.                         gPlayerCheckpointStatus[playerid] = LOAD_MATS3;
  1421.                     }
  1422.                     return 1;
  1423.                 }
  1424.                 return 1;
  1425.             }
  1426.             case LOAD_MATS3: // fourth check sends them to montgomery
  1427.             {
  1428.                 if(MatsRunning[playerid] == 3)
  1429.                 {
  1430.                     if(PlayerInfo[playerid][pJob] == 24 || PlayerInfo[playerid][pJob2] == 24)
  1431.                     {
  1432.                         new string[128];
  1433.                         DisablePlayerCheckpoint(playerid);
  1434.                         PlayerPlaySound(playerid, 5453, 0.0, 0.0, 0.0);
  1435.                         format(string, sizeof(string), "* You have added %d materials to your current package, Proceed to the next location", random(15));
  1436.                         SendClientMessageEx(playerid, COLOR_GREY, string);
  1437.                         MatsRunning[playerid] = 4;
  1438.                         GameTextForPlayer(playerid, "~g~Materials loaded~n~~r~3/5", 5000, 1);
  1439.                         SetPlayerCheckpoint(playerid,-57.5795,-225.2054,5.4297,1.0);
  1440.                         gPlayerCheckpointStatus[playerid] = LOAD_MATS4;
  1441.                     }
  1442.                     return 1;
  1443.                 }
  1444.                 return 1;
  1445.             }
  1446.             case LOAD_MATS4: // fifth check sends them to the mats drop
  1447.             {
  1448.                 if(MatsRunning[playerid] == 4)
  1449.                 {
  1450.                     if(PlayerInfo[playerid][pJob] == 24 || PlayerInfo[playerid][pJob2] == 24)
  1451.                     {
  1452.                         new string[128];
  1453.                         DisablePlayerCheckpoint(playerid);
  1454.                         PlayerPlaySound(playerid, 5453, 0.0, 0.0, 0.0);
  1455.                         format(string, sizeof(string), "* You have added %d materials to your current package, Proceed to the next location", random(20));
  1456.                         SendClientMessageEx(playerid, COLOR_GREY, string);
  1457.                         MatsRunning[playerid] = 5;
  1458.                         GameTextForPlayer(playerid, "~g~Materials loaded~n~~r~4/5", 5000, 1);
  1459.                         SetPlayerCheckpoint(playerid,2166.4990,-2273.8196,13.3719,1.0);
  1460.                         gPlayerCheckpointStatus[playerid] = LOAD_MATS5;
  1461.                     }
  1462.                     return 1;
  1463.                 }
  1464.                 return 1;
  1465.             }
  1466.             case LOAD_MATS5: // origin check sends them back to the warehouse
  1467.             {
  1468.                 if(MatsRunning[playerid] == 5)
  1469.                 {
  1470.                     if(PlayerInfo[playerid][pJob] == 24 || PlayerInfo[playerid][pJob2] == 24)
  1471.                     {
  1472.                         DisablePlayerCheckpoint(playerid);
  1473.                         PlayerPlaySound(playerid, 5453, 0.0, 0.0, 0.0);
  1474.                         SendClientMessageEx(playerid, COLOR_WHITE, "* You have finished your materials package, Return to the Los Santos Docks to get paid.");
  1475.                         MatsRunning[playerid] = 6;
  1476.                         GameTextForPlayer(playerid, "~g~Materials loaded~n~~r~5/5", 5000, 1);
  1477.                         SetPlayerCheckpoint(playerid,2224.0698,-2682.7217,13.5409,1.0);
  1478.                         gPlayerCheckpointStatus[playerid] = LOAD_MATSRETURN;
  1479.                     }
  1480.                     return 1;
  1481.                 }
  1482.                 return 1;
  1483.             }
  1484.             case LOAD_MATSRETURN:
  1485.             {
  1486.                 if(MatsRunning[playerid] == 6)
  1487.                 {
  1488.                     if(PlayerInfo[playerid][pJob] == 24)
  1489.                     {
  1490.                         new string[128], matrand;
  1491.                         matrand = random(600);
  1492.                         PlayerPlaySound(playerid, 5453, 0.0, 0.0, 0.0);
  1493.                         format(string, sizeof(string), "* You have been paid $%d, for your work. You've also added materials for the others to purchase at the bank.", matrand);
  1494.                         SendClientMessageEx(playerid, COLOR_GREY, string);
  1495.                         GivePlayerCash(playerid, matrand);
  1496.                         //PlayerInfo[playerid][pPayCheck] += matrand;
  1497.                         MatsRunning[playerid] = 0;
  1498.                         GameTextForPlayer(playerid, "~g~Package delivered", 5000, 1);
  1499.                         DisablePlayerCheckpoint(playerid);
  1500.                         gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
  1501.                         matssys[MatsAmmount] += random(10000);
  1502.                         SaveMatsSystem();
  1503.                     }
  1504.                     return 1;
  1505.                 }
  1506.                 return 1;
  1507.             }
  1508.             case CHECKPOINT_HITMAN:
  1509.             {
  1510.                 PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
  1511.                 DisablePlayerCheckpoint(playerid);
  1512.                 gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
  1513.                 SendClientMessageEx(playerid, COLOR_GRAD2, "  Type /enter to enter the HQ.");
  1514.             }
  1515.             case CHECKPOINT_HITMAN2:
  1516.             {
  1517.                 PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
  1518.                 DisablePlayerCheckpoint(playerid);
  1519.                 gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
  1520.                 SendClientMessageEx(playerid, COLOR_GRAD2, "  Type /enter to enter the HQ.");
  1521.             }
  1522.             case CHECKPOINT_HITMAN3:
  1523.             {
  1524.                 PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
  1525.                 DisablePlayerCheckpoint(playerid);
  1526.                 gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
  1527.                 SendClientMessageEx(playerid, COLOR_GRAD2, "  Type /order to get your weaponry.");
  1528.             }
  1529.         }
  1530.     }
  1531.     DisablePlayerCheckpoint(playerid);
  1532.     return 1;
  1533. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement