Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnPlayerEnterCheckpoint(playerid)
- {
- if(gPlayerCheckpointStatus[playerid] == ROUTE) {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(IsABankCar(vehicleid)) {
- DisablePlayerCheckpoint(playerid);
- gPlayerCheckpointStatus[playerid] = RETURN;
- GameTextForPlayer(playerid, "~w~Delivery Complete", 5000, 1);
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Return to the depot to get your paycheck! (see checkpoint on radar).");
- SetPlayerCheckpoint(playerid,2520.6016,2447.6489,10.9427, 4);
- return 1;
- }
- else {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You need to be in a bank car!");
- return 1;
- }
- }
- else if(gPlayerCheckpointStatus[playerid] == LAROUTE) {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(IsABankCar(vehicleid)) {
- DisablePlayerCheckpoint(playerid);
- gPlayerCheckpointStatus[playerid] = RETURN;
- GameTextForPlayer(playerid, "~w~Delivery Complete", 5000, 1);
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Return to the depot to get your paycheck! (see checkpoint on radar).");
- SetPlayerCheckpoint(playerid,1433.0181,-962.2107,36.3097, 10);
- return 1;
- }
- else {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You need to be in a bank car!");
- return 1;
- }
- }
- else if(gPlayerCheckpointStatus[playerid] == RETURN) {
- if(GetPVarInt(playerid, "tpSTruckRunTimer") != 0)
- {
- new string[128];
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
- ABroadCast( COLOR_YELLOW, string, 2 );
- format(string, sizeof(string), "%s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
- Log("logs/hack.log", string);
- }
- new vehicleid = GetPlayerVehicleID(playerid);
- if(IsABankCar(vehicleid)) {
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
- DisablePlayerCheckpoint(playerid);
- new skin;
- skin = GetPVarInt(playerid, "OriginalSkin");
- PlayerInfo[playerid][pChar] = skin;
- PlayerInfo[playerid][pModel] = skin;
- SetPlayerSkin(playerid, skin);
- new BankCarID;
- BankCarID = GetPVarInt(playerid, "BankCarID");
- if(BankCarID != vehicleid) {
- SendClientMessageEx(playerid, COLOR_RED, "You did not receive payment because you completed the rotue in a different vehicle than you started in!");
- return 1;
- }
- new Float:health;
- new brinks, string[128];
- GetVehicleHealth(vehicleid, health);
- if(health >= 4000) {
- SendClientMessageEx(playerid, COLOR_YELLOW, "* You earned a bonus for returning the vehicle undamaged!");
- brinks += 5500;
- }
- else {
- brinks += floatround((health), floatround_ceil);
- }
- format(string, sizeof(string), "* You earned %d for completing the route!", brinks);
- SendClientMessageEx(playerid, COLOR_YELLOW, string);
- GivePlayerCash(playerid, brinks);
- brinks = 0;
- return 1;
- }
- else {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You need to be in a bank car!");
- return 1;
- }
- }
- if(gPlayerCheckpointStatus[playerid] == REPAIR) {
- DisablePlayerCheckpoint(playerid);
- gPlayerCheckpointStatus[playerid] = REPAIRBACK;
- GameTextForPlayer(playerid, "~w~Repair Complete", 5000, 1);
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Return to the repair shop to get your paycheck! (see checkpoint on radar).");
- SetPlayerCheckpoint(playerid,981.3501,2082.9370,10.8203, 4);
- return 1;
- }
- else if(gPlayerCheckpointStatus[playerid] == REPAIRBACK) {
- if(GetPVarInt(playerid, "tpSTruckRunTimer") != 0)
- {
- new string[128];
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
- ABroadCast( COLOR_YELLOW, string, 2 );
- format(string, sizeof(string), "%s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
- Log("logs/hack.log", string);
- }
- new vehicleid = GetPlayerVehicleID(playerid);
- if(IsARepair(vehicleid)) {
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
- DisablePlayerCheckpoint(playerid);
- new skin;
- skin = GetPVarInt(playerid, "OriginalSkin");
- PlayerInfo[playerid][pChar] = skin;
- PlayerInfo[playerid][pModel] = skin;
- SetPlayerSkin(playerid, skin);
- new Float:health;
- new repairpay, string[128];
- GetVehicleHealth(vehicleid, health);
- if(health >= 1000) {
- SendClientMessageEx(playerid, COLOR_YELLOW, "* You earned a bonus for returning the vehicle undamaged!");
- repairpay += 600;
- }
- else {
- repairpay += floatround((health*0.2), floatround_ceil);
- }
- repairpay += 200;
- format(string, sizeof(string), "* You earned %d for completing the route!", repairpay);
- SendClientMessageEx(playerid, COLOR_YELLOW, string);
- GivePlayerCash(playerid, repairpay);
- repairpay = 0;
- return 1;
- }
- else {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You need to be in a repair truck!");
- return 1;
- }
- }
- if(IsLoaded[playerid] || IsBooked[playerid])
- {
- switch(MissionData[playerid][player_misstype])
- {
- case MISSION_TYPE_A1:
- {
- if(GetPVarInt(playerid, "tpSTruckRunTimer") != 0)
- {
- new string[128];
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
- ABroadCast( COLOR_YELLOW, string, 2 );
- format(string, sizeof(string), "%s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
- Log("logs/hack.log", string);
- }
- if(GetVehicleModel(GetVehicleTrailer(GetPlayerVehicleID(playerid))) != 435) return SendClientMessage(playerid, COLOR_RED, "You do not have a trailer to unload.");
- IsLoaded[playerid]=0;
- DisablePlayerCheckpoint(playerid);
- GivePlayerCash(playerid, tpsa1work[MissionData[playerid][player_missnumber]][tps_pay]);
- new string[128];
- 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]);
- SendClientMessage(playerid, -1, string);
- SetVehicleToRespawn(GetVehicleTrailer(GetPlayerVehicleID(playerid)));
- }
- case MISSION_TYPE_A3:
- {
- if(GetPVarInt(playerid, "tpSTruckRunTimer") != 0)
- {
- new string[128];
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
- ABroadCast( COLOR_YELLOW, string, 2 );
- format(string, sizeof(string), "%s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
- Log("logs/hack.log", string);
- }
- if(GetVehicleModel(GetVehicleTrailer(GetPlayerVehicleID(playerid))) != 591) return SendClientMessage(playerid, COLOR_RED, "You do not have a trailer to unload.");
- IsLoaded[playerid]=0;
- DisablePlayerCheckpoint(playerid);
- GivePlayerCash(playerid, tpsa3work[MissionData[playerid][player_missnumber]][tps_pay]);
- new string[128];
- 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]);
- SendClientMessage(playerid, -1, string);
- SetVehicleToRespawn(GetVehicleTrailer(GetPlayerVehicleID(playerid)));
- }
- case MISSION_TYPE_FUEL:
- {
- if(GetPVarInt(playerid, "tpSTruckRunTimer") != 0)
- {
- new string[128];
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
- ABroadCast( COLOR_YELLOW, string, 2 );
- format(string, sizeof(string), "%s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
- Log("logs/hack.log", string);
- }
- if(GetVehicleModel(GetVehicleTrailer(GetPlayerVehicleID(playerid))) != 584) return SendClientMessage(playerid, COLOR_RED, "You do not have a trailer to unload.");
- IsLoaded[playerid]=0;
- DisablePlayerCheckpoint(playerid);
- GivePlayerCash(playerid, tpsfuelwork[MissionData[playerid][player_missnumber]][tps_pay]);
- new string[128];
- 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]);
- SendClientMessage(playerid, -1, string);
- SetVehicleToRespawn(GetVehicleTrailer(GetPlayerVehicleID(playerid)));
- }
- case MISSION_TYPE_DUMP:
- {
- if(GetPVarInt(playerid, "tpSTruckRunTimer") != 0)
- {
- new string[128];
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
- ABroadCast( COLOR_YELLOW, string, 2 );
- format(string, sizeof(string), "%s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
- Log("logs/hack.log", string);
- }
- if(GetVehicleModel(GetVehicleTrailer(GetPlayerVehicleID(playerid))) != 450) return SendClientMessage(playerid, COLOR_RED, "You do not have a trailer to unload.");
- IsLoaded[playerid]=0;
- DisablePlayerCheckpoint(playerid);
- GivePlayerCash(playerid, tpsdumperwork[MissionData[playerid][player_missnumber]][tps_pay]);
- new string[128];
- 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]);
- SendClientMessage(playerid, -1, string);
- SetVehicleToRespawn(GetVehicleTrailer(GetPlayerVehicleID(playerid)));
- }
- case MISSION_TYPE_SFA1:
- {
- if(GetPVarInt(playerid, "tpSTruckRunTimer") != 0)
- {
- new string[128];
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
- ABroadCast( COLOR_YELLOW, string, 2 );
- format(string, sizeof(string), "%s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
- Log("logs/hack.log", string);
- }
- if(GetVehicleModel(GetVehicleTrailer(GetPlayerVehicleID(playerid))) != 435) return SendClientMessage(playerid, COLOR_RED, "You do not have a trailer to unload.");
- IsLoaded[playerid]=0;
- DisablePlayerCheckpoint(playerid);
- GivePlayerCash(playerid, cdlsfa1work[MissionData[playerid][player_missnumber]][sfcdl_pay]);
- new string[128];
- 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]);
- SendClientMessage(playerid, -1, string);
- SetVehicleToRespawn(GetVehicleTrailer(GetPlayerVehicleID(playerid)));
- }
- case MISSION_TYPE_SFA3:
- {
- if(GetPVarInt(playerid, "tpSTruckRunTimer") != 0)
- {
- new string[128];
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
- ABroadCast( COLOR_YELLOW, string, 2 );
- format(string, sizeof(string), "%s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
- Log("logs/hack.log", string);
- }
- if(GetVehicleModel(GetVehicleTrailer(GetPlayerVehicleID(playerid))) != 591) return SendClientMessage(playerid, COLOR_RED, "You do not have a trailer to unload.");
- IsLoaded[playerid]=0;
- DisablePlayerCheckpoint(playerid);
- GivePlayerCash(playerid, cdlsfa3work[MissionData[playerid][player_missnumber]][sfcdl_pay]);
- new string[128];
- 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]);
- SendClientMessage(playerid, -1, string);
- SetVehicleToRespawn(GetVehicleTrailer(GetPlayerVehicleID(playerid)));
- }
- case MISSION_TYPE_SFFUEL:
- {
- if(GetPVarInt(playerid, "tpSTruckRunTimer") != 0)
- {
- new string[128];
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
- ABroadCast( COLOR_YELLOW, string, 2 );
- format(string, sizeof(string), "%s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
- Log("logs/hack.log", string);
- }
- if(GetVehicleModel(GetVehicleTrailer(GetPlayerVehicleID(playerid))) != 584) return SendClientMessage(playerid, COLOR_RED, "You do not have a trailer to unload.");
- IsLoaded[playerid]=0;
- DisablePlayerCheckpoint(playerid);
- GivePlayerCash(playerid, cdlsffuelwork[MissionData[playerid][player_missnumber]][sfcdl_pay]);
- new string[128];
- 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]);
- SendClientMessage(playerid, -1, string);
- SetVehicleToRespawn(GetVehicleTrailer(GetPlayerVehicleID(playerid)));
- }
- case MISSION_TYPE_SFDUMP:
- {
- if(GetPVarInt(playerid, "tpSTruckRunTimer") != 0)
- {
- new string[128];
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
- ABroadCast( COLOR_YELLOW, string, 2 );
- format(string, sizeof(string), "%s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
- Log("logs/hack.log", string);
- }
- if(GetVehicleModel(GetVehicleTrailer(GetPlayerVehicleID(playerid))) != 450) return SendClientMessage(playerid, COLOR_RED, "You do not have a trailer to unload.");
- IsLoaded[playerid]=0;
- DisablePlayerCheckpoint(playerid);
- GivePlayerCash(playerid, cdlsfdumpwork[MissionData[playerid][player_missnumber]][sfcdl_pay]);
- new string[128];
- 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]);
- SendClientMessage(playerid, -1, string);
- SetVehicleToRespawn(GetVehicleTrailer(GetPlayerVehicleID(playerid)));
- }
- case MISSION_TYPE_AIR:
- {
- if(GetPVarInt(playerid, "tpSTruckRunTimer") != 0)
- {
- new string[128];
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
- ABroadCast( COLOR_YELLOW, string, 2 );
- format(string, sizeof(string), "%s (ID %d) is possibly /trackcar exploiting.", GetPlayerNameEx(playerid), playerid);
- Log("logs/hack.log", string);
- }
- new vehicleid = GetPlayerVehicleID(playerid);
- if(!IsAPlane(vehicleid)) {
- IsBooked[playerid]=0;
- DisablePlayerCheckpoint(playerid);
- return Error(playerid, "You need to be in the same airplane you loaded the cargo into!");
- }
- else {
- IsBooked[playerid]=0;
- DisablePlayerCheckpoint(playerid);
- GivePlayerCash(playerid, airwork[MissionData[playerid][player_missnumber]][air_pay]);
- new string[128];
- IsDoingAirMission[playerid] = 0;
- 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]);
- SendClientMessage(playerid, -1, string);
- return 1;
- }
- }
- }
- }
- if(GetPVarInt(playerid,"IsInArena") >= 0)
- {
- new arenaid = GetPVarInt(playerid, "IsInArena");
- if(PaintBallArena[arenaid][pbGameType] == 4 || PaintBallArena[arenaid][pbGameType] == 5)
- {
- }
- return 1;
- }
- if(GetPVarInt(playerid,"TrackCar") != 0)
- {
- PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
- DisablePlayerCheckpoint(playerid);
- DeletePVar(playerid, "TrackCar");
- return 1;
- }
- if(GetPVarInt(playerid,"IsOnGPS") != 0)
- {
- PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0);
- DisablePlayerCheckpoint(playerid);
- SetPVarInt(playerid, "IsOnGPS", 0);
- SendClientMessageEx(playerid,COLOR_YELLOW,"You have reached your destination!");
- return 1;
- }
- for(new h = 0; h < MAX_POINTS; h++)
- {
- if(GetPVarInt(playerid, "CrateDeliver") == 1 && IsPlayerInRangeOfPoint(playerid, 6.0, 2166.3772,-1675.3829,15.0859))
- {
- new string[128];
- if(GetPVarInt(playerid, "tpDrugRunTimer") != 0)
- {
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly teleport drugrunning.", GetPlayerNameEx(playerid), playerid);
- ABroadCast( COLOR_YELLOW, string, 2 );
- format(string, sizeof(string), "%s (ID %d) is possibly teleport drugrunning.", GetPlayerNameEx(playerid), playerid);
- Log("logs/hack.log", string);
- }
- DisablePlayerCheckpoint(playerid);
- new level = PlayerInfo[playerid][pSmugSkill];
- if(level >= 0 && level <= 20)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE,"* You received $250 for delivering the Drug Crates.");
- GivePlayerCash(playerid, 250);
- }
- else if(level >= 21 && level <= 50)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE,"* You received $500 for delivering the Drug Crates.");
- GivePlayerCash(playerid, 500);
- }
- else if(level >= 51 && level <= 100)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE,"* You received $200 for delivering the Drug Crates.");
- GivePlayerCash(playerid, 200);
- }
- else if(level >= 101 && level <= 200)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE,"* You received $300 for delivering the Drug Crates.");
- GivePlayerCash(playerid, 300);
- }
- else if(level >= 201)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE,"* You received $400 for delivering the Drug Crates.");
- GivePlayerCash(playerid, 400);
- }
- DeletePVar(playerid, "CrateDeliver");
- PlayerInfo[playerid][pCrates] = 0;
- drugsys[DrugPotAmmount] += random(30);
- PlayerInfo[playerid][pSmugSkill]++;
- SaveDrugSystem();
- return 1;
- }
- else if(GetPVarInt(playerid, "CrateDeliver") == 2 && IsPlayerInRangeOfPoint(playerid, 6.0, 2354.2808,-1169.2959,28.0066))
- {
- new string[128];
- if(GetPVarInt(playerid, "tpDrugRunTimer") != 0)
- {
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly teleport drugrunning.", GetPlayerNameEx(playerid), playerid);
- ABroadCast( COLOR_YELLOW, string, 2 );
- format(string, sizeof(string), "%s (ID %d) is possibly teleport drugrunning.", GetPlayerNameEx(playerid), playerid);
- Log("logs/hack.log", string);
- }
- DisablePlayerCheckpoint(playerid);
- new level = PlayerInfo[playerid][pSmugSkill];
- if(level >= 0 && level <= 20)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE,"* You received $125 for delivering the Drug Crates.");
- GivePlayerCash(playerid, 125);
- }
- else if(level >= 21 && level <= 50)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE,"* You received $150 for delivering the Drug Crates.");
- GivePlayerCash(playerid, 150);
- }
- else if(level >= 51 && level <= 100)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE,"* You received $200 for delivering the Drug Crates.");
- GivePlayerCash(playerid, 200);
- }
- else if(level >= 101 && level <= 200)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE,"* You received $300 for delivering the Drug Crates.");
- GivePlayerCash(playerid, 300);
- }
- else if(level >= 201)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE,"* You received $400 for delivering the Drug Crates.");
- GivePlayerCash(playerid, 400);
- }
- DeletePVar(playerid, "CrateDeliver");
- PlayerInfo[playerid][pCrates] = 0;
- drugsys[DrugCrackAmmount] += random(30);
- PlayerInfo[playerid][pSmugSkill]++;
- SaveDrugSystem();
- return 1;
- }
- 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]))
- {
- if(GetPVarInt(playerid, "Packages") > 0)
- {
- new string[128];
- if(GetPVarInt(playerid, "tpMatRunTimer") != 0)
- {
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly teleport matrunning.", GetPlayerNameEx(playerid), playerid);
- ABroadCast( COLOR_YELLOW, string, 2 );
- format(string, sizeof(string), "%s (ID %d) is possibly teleport matrunning.", GetPlayerNameEx(playerid), playerid);
- Log("logs/hack.log", string);
- }
- new payout = (25)*(GetPVarInt(playerid, "Packages"));
- if(PlayerInfo[playerid][pDonateRank] == 1)
- {
- PlayerInfo[playerid][pMats] += 375;
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* The factory gave you 375 materials for your 15 materials packages.");
- SendClientMessageEx(playerid, COLOR_YELLOW,"Bronze VIP: You received 1.5x more materials than normal.");
- }
- else if(PlayerInfo[playerid][pDonateRank] == 2 || PlayerInfo[playerid][pDonateRank] == 3)
- {
- PlayerInfo[playerid][pMats] += 500;
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* The factory gave you 500 materials for your 20 materials packages.");
- SendClientMessageEx(playerid, COLOR_YELLOW,"Silver & Gold VIP: You received 2x more materials than normal.");
- }
- else if(PlayerInfo[playerid][pDonateRank] >= 4)
- {
- PlayerInfo[playerid][pMats] += 625;
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* The factory gave you 625 materials for your 25 materials packages.");
- SendClientMessageEx(playerid, COLOR_YELLOW,"Platinum VIP: You received 2.5x more materials than normal.");
- }
- else
- {
- PlayerInfo[playerid][pMats] += 250;
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* The factory gave you 250 materials for your 10 materials packages.");
- }
- DeletePVar(playerid, "Packages");
- DeletePVar(playerid, "MatDeliver");
- DisablePlayerCheckpoint(playerid);
- for(new p = 0; p < sizeof(FamilyInfo); p++)
- {
- if(strcmp(Points[h][Owner], FamilyInfo[p][FamilyName], true) == 0)
- {
- FamilyInfo[p][FamilyBank] = FamilyInfo[p][FamilyBank]+(payout/3);
- //SendClientMessageEx(playerid, COLOR_WHITE, " Family owner recieved 50 percent of the cost.");
- }
- }
- return 1;
- }
- }
- else if(GetPVarInt(playerid, "MatDeliver") == 333 && IsPlayerInRangeOfPoint(playerid, 6.0, -330.44, -467.54, 0.85))
- {
- if(GetPVarInt(playerid, "Packages") > 0)
- {
- new vehicle = GetPlayerVehicleID(playerid);
- if(IsABoat(vehicle))
- {
- if(PlayerInfo[playerid][pDonateRank] == 1)
- {
- PlayerInfo[playerid][pMats] += 675;
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* The factory gave you 675 materials for your 23 materials packages.");
- SendClientMessageEx(playerid, COLOR_YELLOW,"Bronze VIP: You received 1.5x more materials than normal.");
- }
- else if(PlayerInfo[playerid][pDonateRank] == 2 || PlayerInfo[playerid][pDonateRank] == 3)
- {
- PlayerInfo[playerid][pMats] += 900;
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* The factory gave you 900 materials for your 30 materials packages.");
- SendClientMessageEx(playerid, COLOR_YELLOW,"Silver & Gold VIP: You received 2x more materials than normal.");
- }
- else if(PlayerInfo[playerid][pDonateRank] >= 4)
- {
- PlayerInfo[playerid][pMats] += 625;
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* The factory gave you 1125 materials for your 38 materials packages.");
- SendClientMessageEx(playerid, COLOR_YELLOW,"Platinum VIP: You received 2.5x more materials than normal.");
- }
- else
- {
- PlayerInfo[playerid][pMats] += 450;
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* The factory gave you 450 materials for your 15 materials packages.");
- }
- DeletePVar(playerid, "Packages");
- DeletePVar(playerid, "MatDeliver");
- DisablePlayerCheckpoint(playerid);
- }
- else
- {
- GameTextForPlayer(playerid, "~r~You are not in a boat!", 3000, 1);
- return 1;
- }
- if(GetPVarInt(playerid, "tpMatRunTimer") != 0)
- {
- new string[128];
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly teleport matrunning.", GetPlayerNameEx(playerid), playerid);
- ABroadCast( COLOR_YELLOW, string, 2 );
- format(string, sizeof(string), "%s (ID %d) is possibly teleport matrunning.", GetPlayerNameEx(playerid), playerid);
- Log("logs/hack.log", string);
- }
- return 1;
- }
- }
- else if(GetPVarInt(playerid, "MatDeliver") == 444 && IsPlayerInRangeOfPoint(playerid, 6.0, -1872.879760, 1416.312500, 7.180089))
- {
- if(GetPVarInt(playerid, "Packages") > 0)
- {
- if(PlayerInfo[playerid][pDonateRank] == 1)
- {
- PlayerInfo[playerid][pMats] += 450;
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* The factory gave you 450 materials for your 18 materials packages.");
- SendClientMessageEx(playerid, COLOR_YELLOW,"Bronze VIP: You received 1.5x more materials than normal.");
- }
- else if(PlayerInfo[playerid][pDonateRank] == 2 || PlayerInfo[playerid][pDonateRank] == 3)
- {
- PlayerInfo[playerid][pMats] += 600;
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* The factory gave you 600 materials for your 24 materials packages.");
- SendClientMessageEx(playerid, COLOR_YELLOW,"Silver & Gold VIP: You received 2x more materials than normal.");
- }
- else if(PlayerInfo[playerid][pDonateRank] >= 4)
- {
- PlayerInfo[playerid][pMats] += 750;
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* The factory gave you 750 materials for your 30 materials packages.");
- SendClientMessageEx(playerid, COLOR_YELLOW,"Platinum VIP: You received 2.5x more materials than normal.");
- }
- else
- {
- PlayerInfo[playerid][pMats] += 300;
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* The factory gave you 300 materials for your 12 materials packages.");
- }
- DeletePVar(playerid, "Packages");
- DeletePVar(playerid, "MatDeliver");
- DisablePlayerCheckpoint(playerid);
- if(GetPVarInt(playerid, "tpMatRunTimer") != 0)
- {
- new string[128];
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly teleport matrunning.", GetPlayerNameEx(playerid), playerid);
- ABroadCast( COLOR_YELLOW, string, 2 );
- format(string, sizeof(string), "%s (ID %d) is possibly teleport matrunning.", GetPlayerNameEx(playerid), playerid);
- Log("logs/hack.log", string);
- }
- return 1;
- }
- }
- }
- if(GetPVarInt(playerid, "TruckDeliver") > 0 && gPlayerCheckpointStatus[playerid] != CHECKPOINT_RETURNTRUCK)
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
- {
- SendClientMessageEx(playerid, COLOR_WHITE, "You are not in a Truck!");
- return 1;
- }
- if(TruckUsed[playerid] != INVALID_VEHICLE_ID && vehicleid != TruckUsed[playerid])
- {
- SendClientMessageEx(playerid, COLOR_WHITE, "This is not your Truck with the goods you are suppose to deliver!");
- return 1;
- }
- if(!IsAtTruckDeliveryPoint(playerid))
- {// In the case the player finds a way to exploit the checkpoint to different location
- CancelTruckDelivery(playerid);
- SendClientMessageEx(playerid, COLOR_REALRED, "ERROR: Wrong checkpoint entered. Truck delivery canceled completely.");
- return 1;
- }
- if(GetPVarInt(playerid, "tpTruckRunTimer") != 0)
- {
- new string[128];
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly teleport truckrunning.", GetPlayerNameEx(playerid), playerid);
- ABroadCast( COLOR_YELLOW, string, 2 );
- format(string, sizeof(string), "%s (ID %d) is possibly teleport truckrunning.", GetPlayerNameEx(playerid), playerid);
- Log("logs/hack.log", string);
- }
- new truckdeliver = GetPVarInt(playerid, "TruckDeliver");
- TruckContents[vehicleid] = 0;
- if(truckdeliver >= 1 && truckdeliver <= 3)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You delivered the food & beverages, return the truck to the Los Angeles Docks to collect your pay.");
- }
- else if(truckdeliver >= 4 && truckdeliver <= 6)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You delivered the clothing, return the truck to the Los Angeles Docks to collect your pay.");
- }
- else if(truckdeliver == 7)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You delivered the materials, return the truck to the Los Angeles Docks to collect your pay.");
- }
- else if(truckdeliver >= 8 && truckdeliver <= 10)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You delivered the 24/7 items, return the truck to the Los Angeles Docks to collect your pay.");
- }
- else if(truckdeliver >= 11 && truckdeliver <= 15)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You delivered the weapons, return the truck to the Los Angeles Docks to collect your pay.");
- }
- else if(truckdeliver >= 16 && truckdeliver <= 20)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You delivered the drugs, return the truck to the Los Angeles Docks to collect your pay.");
- }
- else if(truckdeliver >= 21 && truckdeliver <= 25)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You delivered the illegal materials, return the truck to the Los Angeles Docks to collect your pay.");
- }
- else if(truckdeliver >= 26 && truckdeliver <= 30)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You delivered the illegal county run, return the truck to the Los Angeles Docks to collect your pay.");
- }
- DisablePlayerCheckpoint(playerid);
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_RETURNTRUCK;
- SetPlayerCheckpoint(playerid, 2439.6140,-2116.7917,13.5469, 5);
- GameTextForPlayer(playerid, "~w~Waypoint set ~r~Los Angeles Docks", 5000, 1);
- SendClientMessageEx(playerid, COLOR_WHITE, "HINT: Return to the Los Angeles Docks (see checkpoint on radar).");
- SetPVarInt(playerid, "tpTruckRunTimer", 30);
- SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_TPTRUCKRUNTIMER);
- return 1;
- }
- if(GetPVarInt(playerid, "VanDeliver") > 0 && gPlayerCheckpointStatus[playerid] != CHECKPOINT_RETURNVAN)
- {
- new string[128];
- new vehicleid = GetPlayerVehicleID(playerid);
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
- {
- SendClientMessageEx(playerid, COLOR_WHITE, "You are not in a Van!");
- return 1;
- }
- if(VanUsed[playerid] != INVALID_VEHICLE_ID && vehicleid != VanUsed[playerid])
- {
- SendClientMessageEx(playerid, COLOR_WHITE, "This is not your Van with the goods you are suppose to deliver!");
- return 1;
- }
- if(!IsAtVanDeliveryPoint(playerid))
- {// In the case the player finds a way to exploit the checkpoint to different location
- CancelVanDelivery(playerid);
- SendClientMessageEx(playerid, COLOR_REALRED, "ERROR: Wrong checkpoint entered. Van delivery canceled completely.");
- return 1;
- }
- if (GetPVarInt(playerid, "tpFedexTimer") != 0)
- {
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly teleport Fedex Running.", GetPlayerNameEx(playerid), playerid);
- ABroadCast( COLOR_YELLOW, string, 2 );
- format(string, sizeof(string), "%s (ID %d) is possibly teleport Fedex Running.", GetPlayerNameEx(playerid), playerid);
- Log("logs/hack.log", string);
- }
- new vandeliver = GetPVarInt(playerid, "VanDeliver");
- VanContents[vehicleid] = 0;
- if(vandeliver >= 1 && vandeliver <= 3)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You delivered the food & beverages, return the van to the San Fierro Yard to collect your pay.");
- }
- else if(vandeliver >= 4 && vandeliver <= 6)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You delivered the clothing, return the van to the San Fierro Yard to collect your pay.");
- }
- else if(vandeliver == 7)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You delivered the materials, return the van to the San Fierro Yard to collect your pay.");
- }
- else if(vandeliver >= 8 && vandeliver <= 10)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You delivered the 24/7 items, return the van to the San Fierro Yard to collect your pay.");
- }
- else if(vandeliver >= 11 && vandeliver <= 15)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You delivered the weapons, return the van to the San Fierro Yard to collect your pay.");
- }
- else if(vandeliver >= 16 && vandeliver <= 20)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You delivered the drugs, return the van to the San Fierro Yard to collect your pay.");
- }
- else if(vandeliver >= 21 && vandeliver <= 25)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You delivered the illegal materials, return the van to the San Fierro Yard to collect your pay.");
- }
- else if(vandeliver >= 26 && vandeliver <= 30)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You delivered the illegal county run, return the van to the San Fierro Yard to collect your pay.");
- }
- DisablePlayerCheckpoint(playerid);
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_RETURNVAN;
- SetPlayerCheckpoint(playerid, -2135.9277,-247.8900,36.2119, 5);
- GameTextForPlayer(playerid, "~w~Waypoint set ~r~San Fierro Yard", 5000, 1);
- SendClientMessageEx(playerid, COLOR_WHITE, "HINT: Return to the San Fierro Yard (see checkpoint on radar).");
- SetPVarInt(playerid, "tpFedexTimer", 30);
- SetTimerEx("OtherTimerEx", 1000, false, "ii", playerid, TYPE_TPFEDEXRUNTIMER);
- return 1;
- }
- // Pizza Delivery
- if(GetPVarInt(playerid, "Pizza") > 0 && IsPlayerInRangeOfPoint(playerid, 5.0, HouseInfo[GetPVarInt(playerid, "Pizza")][hExteriorX], HouseInfo[GetPVarInt(playerid, "Pizza")][hExteriorY], HouseInfo[GetPVarInt(playerid, "Pizza")][hExteriorZ]))
- {
- new string[128];
- if (GetPVarInt(playerid, "tpPizzaTimer") != 0)
- {
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly teleport pizzarunning.", GetPlayerNameEx(playerid), playerid);
- ABroadCast( COLOR_YELLOW, string, 2 );
- format(string, sizeof(string), "%s (ID %d) is possibly teleport pizzarunning.", GetPlayerNameEx(playerid), playerid);
- Log("logs/hack.log", string);
- }
- DestroyProgressBar(PizzaBar[playerid]);
- format(string, sizeof(string), "You have delivered the pizza to the destination! You have made $%d.", (GetPVarInt(playerid, "pizzaTimer") / 3));
- Tax -= (GetPVarInt(playerid, "pizzaTimer") / 3);
- SaveStuff();
- GivePlayerCash(playerid, floatround((GetPVarInt(playerid, "pizzaTimer") / 3), floatround_round));
- SendClientMessageEx(playerid, COLOR_WHITE, string);
- SetPVarInt(playerid, "Pizza", 0);
- DisablePlayerCheckpoint(playerid);
- }
- // Burger Delivery
- if(GetPVarInt(playerid, "Burger") > 0 && IsPlayerInRangeOfPoint(playerid, 5.0, HouseInfo[GetPVarInt(playerid, "Burger")][hExteriorX], HouseInfo[GetPVarInt(playerid, "Burger")][hExteriorY], HouseInfo[GetPVarInt(playerid, "Burger")][hExteriorZ]))
- {
- new string[128];
- if (GetPVarInt(playerid, "tpPizzaTimer") != 0)
- {
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly teleport burgerrunning.", GetPlayerNameEx(playerid), playerid);
- ABroadCast( COLOR_YELLOW, string, 2 );
- format(string, sizeof(string), "%s (ID %d) is possibly teleport burgerrunning.", GetPlayerNameEx(playerid), playerid);
- Log("logs/hack.log", string);
- }
- format(string, sizeof(string), "You have made the delivery to the destination! You have made $%d.", (GetPVarInt(playerid, "burgerTimer") * 10));
- Tax -= (GetPVarInt(playerid, "burgerTimer") * 10);
- SaveStuff();
- GivePlayerCash(playerid, floatround((GetPVarInt(playerid, "burgerTimer") * 10), floatround_round));
- SendClientMessageEx(playerid, COLOR_WHITE, string);
- SetPVarInt(playerid, "Burger", 0);
- DisablePlayerCheckpoint(playerid);
- }
- if(GetPVarInt(playerid, "Finding")>=1)
- {
- DeletePVar(playerid, "Finding");
- DisablePlayerCheckpoint(playerid);
- GameTextForPlayer(playerid, "~w~Reached destination", 5000, 1);
- }
- if(TaxiCallTime[playerid] > 0 && TaxiAccepted[playerid] < 999)
- {
- TaxiAccepted[playerid] = 999;
- GameTextForPlayer(playerid, "~w~Reached destination", 5000, 1);
- TaxiCallTime[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- }
- else if(EMSCallTime[playerid] > 0 && EMSAccepted[playerid] < 999)
- {
- if(GetPVarInt(EMSAccepted[playerid], "Injured") == 1)
- {
- SendEMSQueue(EMSAccepted[playerid],2);
- EMSAccepted[playerid] = 999;
- GameTextForPlayer(playerid, "~g~Reached destination", 5000, 1);
- 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))) {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* Don't forget to grab your ALS bag in the back of the Ambulance (/getals)");
- }
- EMSCallTime[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- }
- else
- {
- EMSAccepted[playerid] = 999;
- GameTextForPlayer(playerid, "~r~Patient has died", 5000, 1);
- EMSCallTime[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- }
- }
- else if(BusCallTime[playerid] > 0 && BusAccepted[playerid] < 999)
- {
- BusAccepted[playerid] = 999;
- GameTextForPlayer(playerid, "~w~Reached destination", 5000, 1);
- BusCallTime[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- }
- else if(MedicCallTime[playerid] > 0 && MedicAccepted[playerid] < 999)
- {
- MedicAccepted[playerid] = 999;
- GameTextForPlayer(playerid, "~w~Reached patient", 5000, 1);
- MedicCallTime[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- }
- /*else if(CP[playerid] == 1)
- {
- if(IsPlayerInAnyVehicle(playerid))
- {
- for(new d = 0 ; d < MAX_PLAYERVEHICLES; d++)
- {
- if(IsPlayerInVehicle(playerid, PlayerVehicleInfo[playerid][d][pvId]))
- {
- SendClientMessageEx(playerid, COLOR_GRAD2, "You cannot sell this car");
- DisablePlayerCheckpoint(playerid);
- CP[playerid] = 0;
- return 1;
- }
- }
- PlayerInfo[playerid][pJackSkill] ++;
- new mypoint = -1;
- for (new i=0; i<MAX_POINTS; i++)
- {
- if(strcmp(Points[i][Name], "Auto Export Company", true) == 0)
- {
- mypoint = i;
- }
- }
- if(PlayerInfo[playerid][pJackSkill] == 50)
- { SendClientMessageEx(playerid, COLOR_YELLOW, "* Your Car Jack Skill is now Level 2, you will earn more Money and quicker Reload Time."); }
- else if(PlayerInfo[playerid][pJackSkill] == 100)
- { SendClientMessageEx(playerid, COLOR_YELLOW, "* Your Car Jack Skill is now Level 3, you will earn more Money and quicker Reload Time."); }
- else if(PlayerInfo[playerid][pJackSkill] == 200)
- { SendClientMessageEx(playerid, COLOR_YELLOW, "* Your Car Jack Skill is now Level 4, you will earn more Money and quicker Reload Time."); }
- else if(PlayerInfo[playerid][pJackSkill] == 400)
- { SendClientMessageEx(playerid, COLOR_YELLOW, "* Your Car Jack Skill is now Level 5, you will earn more Money and quicker Reload Time."); }
- new level = PlayerInfo[playerid][pJackSkill];
- if(level >= 0 && level <= 50)
- {
- new rand = random(sizeof(SELLCAR1));
- new duh = GetPlayerVehicleID(playerid);
- format(string, sizeof(string), "You sold a car for $%d, your reload time is 20 minutes.", SELLCAR1[rand]);
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, string);
- GivePlayerCash(playerid, SELLCAR1[rand]);
- CP[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- PlayerInfo[playerid][pCarTime] = 1200;
- SetVehicleToRespawn(duh);
- for(new i = 0; i < sizeof(FamilyInfo); i++)
- {
- if(strcmp(Points[mypoint][Owner], FamilyInfo[i][FamilyName], true) == 0)
- {
- FamilyInfo[i][FamilyBank] = FamilyInfo[i][FamilyBank]+(SELLCAR1[rand]/2);
- }
- }
- }
- else if(level >= 51 && level <= 100)
- {
- new rand = random(sizeof(SELLCAR2));
- new duh = GetPlayerVehicleID(playerid);
- format(string, sizeof(string), "You sold a car for $%d, your reload time is 18 minutes.", SELLCAR2[rand]);
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, string);
- GivePlayerCash(playerid, SELLCAR2[rand]);
- PlayerInfo[playerid][pCarTime] = 1080;
- CP[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- SetVehicleToRespawn(duh);
- for(new i = 0; i < sizeof(FamilyInfo); i++)
- {
- if(strcmp(Points[mypoint][Owner], FamilyInfo[i][FamilyName], true) == 0)
- {
- FamilyInfo[i][FamilyBank] = FamilyInfo[i][FamilyBank]+(SELLCAR2[rand]/2);
- }
- }
- }
- else if(level >= 101 && level <= 200)
- {
- new rand = random(sizeof(SELLCAR3));
- new duh = GetPlayerVehicleID(playerid);
- format(string, sizeof(string), "You sold a car for $%d, your reload time is 16 minutes.", SELLCAR3[rand]);
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, string);
- GivePlayerCash(playerid, SELLCAR3[rand]);
- PlayerInfo[playerid][pCarTime] = 960;
- CP[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- SetVehicleToRespawn(duh);
- for(new i = 0; i < sizeof(FamilyInfo); i++)
- {
- if(strcmp(Points[mypoint][Owner], FamilyInfo[i][FamilyName], true) == 0)
- {
- FamilyInfo[i][FamilyBank] = FamilyInfo[i][FamilyBank]+(SELLCAR3[rand]/2);
- }
- }
- }
- else if(level >= 201 && level <= 400)
- {
- new rand = random(sizeof(SELLCAR4));
- new duh = GetPlayerVehicleID(playerid);
- format(string, sizeof(string), "You sold a car for $%d, your reload time is 14 minutes.", SELLCAR4[rand]);
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, string);
- GivePlayerCash(playerid, SELLCAR4[rand]);
- PlayerInfo[playerid][pCarTime] = 840;
- CP[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- SetVehicleToRespawn(duh);
- for(new i = 0; i < sizeof(FamilyInfo); i++)
- {
- if(strcmp(Points[mypoint][Owner], FamilyInfo[i][FamilyName], true) == 0)
- {
- FamilyInfo[i][FamilyBank] = FamilyInfo[i][FamilyBank]+(SELLCAR4[rand]/2);
- }
- }
- }
- else if(level >= 401)
- {
- new money = 6000;
- new duh = GetPlayerVehicleID(playerid);
- format(string, sizeof(string), "You sold a car for $%d, your reload time is 12 minutes.", money);
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, string);
- GivePlayerCash(playerid, money);
- PlayerInfo[playerid][pCarTime] = 720;
- CP[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- SetVehicleToRespawn(duh);
- for(new i = 0; i < sizeof(FamilyInfo); i++)
- {
- if(strcmp(Points[mypoint][Owner], FamilyInfo[i][FamilyName], true) == 0)
- {
- FamilyInfo[i][FamilyBank] = FamilyInfo[i][FamilyBank]+(money/2);
- }
- }
- }
- GameTextForPlayer(playerid, "~y~Sold the car", 2500, 1);
- CP[playerid] = 0;
- DisablePlayerCheckpoint(playerid);
- new duh = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(duh)==525&&IsTrailerAttachedToVehicle(duh))
- {
- SetVehicleToRespawn(GetVehicleTrailer(duh));
- }
- else
- {
- SetVehicleToRespawn(duh);
- }
- }
- else
- {
- GameTextForPlayer(playerid, "Not in a car", 5000, 1);
- }
- }*/
- else
- {
- switch (gPlayerCheckpointStatus[playerid])
- {
- case CHECKPOINT_HOME:
- {
- PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
- new i = hInviteHouse[playerid];
- DisablePlayerCheckpoint(playerid);
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
- Streamer_UpdateEx(playerid, HouseInfo[i][hInteriorX],HouseInfo[i][hInteriorY],HouseInfo[i][hInteriorZ]);
- SetPlayerInterior(playerid,HouseInfo[i][hHInteriorWorld]);
- if(HouseInfo[i][hCustomInterior] == 1)
- {
- TogglePlayerControllable(playerid, 0);
- GameTextForPlayer(playerid, "Objects loading...", 4000, 5);
- SetPVarInt(playerid, "LoadingObjects", 1);
- SetTimerEx("SafeLoadObjects", 4000, 0, "d", playerid);
- }
- SetPlayerPos(playerid,HouseInfo[i][hInteriorX],HouseInfo[i][hInteriorY],HouseInfo[i][hInteriorZ]);
- GameTextForPlayer(playerid, "~w~Welcome Home", 5000, 1);
- PlayerInfo[playerid][pInt] = HouseInfo[i][hHInteriorWorld];
- PlayerInfo[playerid][pLocal] = i+6000;
- PlayerInfo[playerid][pVW] = i+6000;
- SetPlayerVirtualWorld(playerid, i+6000);
- hInviteOffer[playerid] = 999;
- hInviteHouse[playerid] = INVALID_HOUSE_ID;
- }
- case CHECKPOINT_LOADTRUCK:
- {
- if(IsPlayerInRangeOfPoint(playerid, 6, 2439.6140,-2116.7917,13.5469))
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(IsATruckerCar(vehicleid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
- DisablePlayerCheckpoint(playerid);
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
- TogglePlayerControllable(playerid, 0);
- SetPVarInt(playerid, "IsFrozen", 1);
- 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");
- }
- else return SendClientMessageEx(playerid, COLOR_GREY, "You are not driving a Los Angeles Docks Truck!");
- }
- }
- case CHECKPOINT_TRUCKDELIVERY:
- {
- if(PlayerTruckJob[playerid][pTDActive] == 1)
- {
- SendClientMessageEx(playerid, COLOR_YELLOW, " * You have reached the delivery destination, type /unloadtrailer to unload your trailer!");
- PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
- }
- else return SendClientMessageEx(playerid, COLOR_GRAD2, " You are not on a truck delivery.");
- }
- case CHECKPOINT_LOADVAN:
- {
- if(IsPlayerInRangeOfPoint(playerid, 6, -2135.9277,-247.8900,36.2119))
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(IsAFedexCar(vehicleid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
- DisablePlayerCheckpoint(playerid);
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
- TogglePlayerControllable(playerid, 0);
- SetPVarInt(playerid, "IsFrozen", 1);
- 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");
- }
- else return SendClientMessageEx(playerid, COLOR_GREY, "You are not driving a San Fierro Fedex Van!");
- }
- }
- case CHECKPOINT_RETURNVAN:
- {
- new string[128];
- if(!IsPlayerInRangeOfPoint(playerid, 6, -2135.9277,-247.8900,36.2119))
- {// In the case the player finds a way to exploit the checkpoint to different location
- CancelVanDelivery(playerid);
- SendClientMessageEx(playerid, COLOR_REALRED, "ERROR: Wrong checkpoint entered. Van delivery canceled completely.");
- return 1;
- }
- if (GetPVarInt(playerid, "tpFedexTimer") != 0)
- {
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly teleport Fedex Running.", GetPlayerNameEx(playerid), playerid);
- ABroadCast( COLOR_YELLOW, string, 2 );
- format(string, sizeof(string), "%s (ID %d) is possibly teleport Fedex Running.", GetPlayerNameEx(playerid), playerid);
- Log("logs/hack.log", string);
- }
- new vehicleid = GetPlayerVehicleID(playerid);
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
- {
- SendClientMessageEx(playerid, COLOR_WHITE, "You are not in a Van!");
- return 1;
- }
- if(VanUsed[playerid] != INVALID_VEHICLE_ID && vehicleid != VanUsed[playerid])
- {
- SendClientMessageEx(playerid, COLOR_WHITE, "This is not the Van you used, return the Van you used in order to receive your pay!");
- return 1;
- }
- PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
- DisablePlayerCheckpoint(playerid);
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
- SetVehicleToRespawn(vehicleid);
- SaveStuff();
- new cashrand = random(15500);
- GivePlayerCash(playerid, cashrand);
- format(string, sizeof(string), "* You were paid $%d for delivering the goods and returning the van.", cashrand);
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, string);
- new vandeliver = GetPVarInt(playerid, "VanDeliver");
- if(vandeliver == 11)
- {
- new randomweapon = Random(1, 4);
- if(randomweapon == 1)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given a free Hunting Rifle as a bonus for taking the risk of transporting illegal weapons.");
- GivePlayerValidWeapon(playerid, 33, 30);
- }
- if(randomweapon == 2)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given a free 12 Gauge Shotgun as a bonus for taking the risk of transporting illegal weapons.");
- GivePlayerValidWeapon(playerid, 25, 20);
- }
- if(randomweapon == 3)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given a free 9mm as a bonus for taking the risk of transporting illegal weapons.");
- GivePlayerValidWeapon(playerid, 22, 45);
- }
- }
- else if(vandeliver == 16)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given pot & crack as a bonus for taking the risk of transporting illegal drugs.");
- PlayerInfo[playerid][pPot] += random(3);
- PlayerInfo[playerid][pCrack] += random(2);
- }
- else if(vandeliver == 21)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given materials as a bonus for taking the risk of transporting illegal materials.");
- PlayerInfo[playerid][pMats] += random(500);
- }
- else if(vandeliver == 26)
- {
- 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.");
- PlayerInfo[playerid][pMats] += random(1000);
- PlayerInfo[playerid][pPot] += random(7);
- PlayerInfo[playerid][pCrack] += random(5);
- GivePlayerValidWeapon(playerid, 22, 45);
- }
- VanUsed[playerid] = INVALID_VEHICLE_ID;
- DeletePVar(playerid, "VanDeliver");
- new mypoint = -1;
- for (new i=0; i<MAX_POINTS; i++)
- {
- if(strcmp(Points[i][Name], "San Fierro Yard", true) == 0)
- {
- mypoint = i;
- }
- }
- for(new i = 0; i < sizeof(FamilyInfo); i++)
- {
- if(strcmp(Points[mypoint][Owner], FamilyInfo[i][FamilyName], true) == 0)
- {
- Tax -= 200;
- SaveStuff();
- FamilyInfo[i][FamilyBank] = FamilyInfo[i][FamilyBank]+(200);
- }
- }
- }
- case CHECKPOINT_LOADMINING:
- {
- if(IsPlayerInRangeOfPoint(playerid, 6, -1871.4495,-1685.3408,22.1871))
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 455 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
- {
- PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
- DisablePlayerCheckpoint(playerid);
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
- TogglePlayerControllable(playerid, 0);
- SetPVarInt(playerid, "IsFrozen", 1);
- ShowPlayerDialog(playerid,7774,DIALOG_STYLE_LIST,"What do you want to pickup?","{00F70C}Money\n{FF0606}Raw Opium","Select","Cancel"); }
- else return SendClientMessageEx(playerid, COLOR_GREY, "You are not driving the proper vehicle for transporting.");
- }
- }
- case CHECKPOINT_RETURNMINING:
- {
- if(IsPlayerInRangeOfPoint(playerid, 6, -1871.4495,-1685.3408,22.1871))
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- if(GetVehicleModel(vehicleid) == 455 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER && MiningLoaded[vehicleid] == 1)
- {
- PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
- DisablePlayerCheckpoint(playerid);
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
- SendClientMessageEx(playerid, COLOR_GREY, "(INFO) Type /dropoffload to complete your mission.");
- }
- else return SendClientMessageEx(playerid, COLOR_GREY, "You are not driving the proper vehicle for transporting, or haven't picked up a load");
- }
- }
- case CHECKPOINT_RRCALL:
- {
- RRAccepted[playerid] = 999;
- PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
- DisablePlayerCheckpoint(playerid);
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
- SendClientMessageEx(playerid, COLOR_YELLOW, "You have arrived to your destination, please assist as much as possible!");
- }
- case CHECKPOINT_RETURNTRUCK:
- {
- if(!IsPlayerInRangeOfPoint(playerid, 6, 2439.6140,-2116.7917,13.5469))
- {// In the case the player finds a way to exploit the checkpoint to different location
- CancelTruckDelivery(playerid);
- SendClientMessageEx(playerid, COLOR_REALRED, "ERROR: Wrong checkpoint entered. Truck delivery canceled completely.");
- return 1;
- }
- if(GetPVarInt(playerid, "tpTruckRunTimer") != 0)
- {
- new string[128];
- format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly teleport truckrunning.", GetPlayerNameEx(playerid), playerid);
- ABroadCast( COLOR_YELLOW, string, 2 );
- format(string, sizeof(string), "%s (ID %d) is possibly teleport truckrunning.", GetPlayerNameEx(playerid), playerid);
- Log("logs/hack.log", string);
- }
- new vehicleid = GetPlayerVehicleID(playerid);
- if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER)
- {
- SendClientMessageEx(playerid, COLOR_WHITE, "You are not in a Truck!");
- return 1;
- }
- if(TruckUsed[playerid] != INVALID_VEHICLE_ID && vehicleid != TruckUsed[playerid])
- {
- SendClientMessageEx(playerid, COLOR_WHITE, "This is not the Truck you used, return the Truck you used in order to receive your pay!");
- return 1;
- }
- PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
- DisablePlayerCheckpoint(playerid);
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
- SetVehicleToRespawn(vehicleid);
- new string[128], payment;
- new level = PlayerInfo[playerid][pTruckSkill];
- if(level >= 0 && level <= 50) payment = 200;
- else if(level >= 51 && level <= 100) payment = 250;
- else if(level >= 101 && level <= 200) payment = 350;
- else if(level >= 201 && level <= 400) payment = 550;
- else if(level >= 401) payment = 700;
- Tax -= payment;
- SaveStuff();
- GivePlayerCash(playerid, payment);
- format(string, sizeof(string), "* You were paid $%d for delivering the goods and returning the truck.", payment);
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, string);
- new truckdeliver = GetPVarInt(playerid, "TruckDeliver");
- if(truckdeliver == 11)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given a free 9mm as a bonus for taking the risk of transporting illegal weapons.");
- GivePlayerValidWeapon(playerid, 22, 45);
- }
- else if(truckdeliver == 12)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given a free Shotgun as a bonus for taking the risk of transporting illegal weapons.");
- GivePlayerValidWeapon(playerid, 25, 20);
- }
- else if(truckdeliver == 13)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given a free hunting Rifle as a bonus for taking the risk of transporting illegal weapons.");
- GivePlayerValidWeapon(playerid, 33, 30);
- }
- else if(truckdeliver == 14)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given a free 9mm as a bonus for taking the risk of transporting illegal weapons.");
- GivePlayerValidWeapon(playerid, 22, 45);
- }
- else if(truckdeliver == 15)
- {
- new randomweapon = Random(1, 3);
- if(randomweapon == 1)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given a free Hunting Rifle as a bonus for taking the risk of transporting illegal weapons.");
- GivePlayerValidWeapon(playerid, 33, 30);
- }
- if(randomweapon == 2)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given a free 12 Gauge Shotgun as a bonus for taking the risk of transporting illegal weapons.");
- GivePlayerValidWeapon(playerid, 25, 20);
- }
- }
- else if(truckdeliver == 16)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given 1 pot & 1 crack as a bonus for taking the risk of transporting illegal drugs.");
- PlayerInfo[playerid][pPot] += 1;
- PlayerInfo[playerid][pCrack] += 1;
- }
- else if(truckdeliver == 17)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given 2 pot & 1 crack as a bonus for taking the risk of transporting illegal drugs.");
- PlayerInfo[playerid][pPot] += 2;
- PlayerInfo[playerid][pCrack] += 1;
- }
- else if(truckdeliver == 18)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given 3 pot & 1 crack as a bonus for taking the risk of transporting illegal drugs.");
- PlayerInfo[playerid][pPot] += 3;
- PlayerInfo[playerid][pCrack] += 1;
- }
- else if(truckdeliver == 19)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given 4 pot & 2 crack as a bonus for taking the risk of transporting illegal drugs.");
- PlayerInfo[playerid][pPot] += 4;
- PlayerInfo[playerid][pCrack] += 2;
- }
- else if(truckdeliver == 20)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given 5 pot & 2 crack as a bonus for taking the risk of transporting illegal drugs.");
- PlayerInfo[playerid][pPot] += 5;
- PlayerInfo[playerid][pCrack] += 2;
- }
- else if(truckdeliver == 21)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given 50 materials as a bonus for taking the risk of transporting illegal materials.");
- PlayerInfo[playerid][pMats] += 50;
- }
- else if(truckdeliver == 22)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given 75 materials as a bonus for taking the risk of transporting illegal materials.");
- PlayerInfo[playerid][pMats] += 75;
- }
- else if(truckdeliver == 23)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given 100 materials as a bonus for taking the risk of transporting illegal materials.");
- PlayerInfo[playerid][pMats] += 100;
- }
- else if(truckdeliver == 24)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given 150 materials as a bonus for taking the risk of transporting illegal materials.");
- PlayerInfo[playerid][pMats] += 150;
- }
- else if(truckdeliver == 25)
- {
- SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "* You were also given 200 materials as a bonus for taking the risk of transporting illegal materials.");
- PlayerInfo[playerid][pMats] += 200;
- }
- else if(truckdeliver == 26)
- {
- 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.");
- PlayerInfo[playerid][pMats] += 500;
- PlayerInfo[playerid][pPot] += 1;
- PlayerInfo[playerid][pCrack] += 1;
- GivePlayerValidWeapon(playerid, 33, 30);
- }
- else if(truckdeliver == 27)
- {
- 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.");
- PlayerInfo[playerid][pMats] += 750;
- PlayerInfo[playerid][pPot] += 4;
- PlayerInfo[playerid][pCrack] += 3;
- GivePlayerValidWeapon(playerid, 25, 20);
- }
- else if(truckdeliver == 28)
- {
- 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.");
- PlayerInfo[playerid][pMats] += 900;
- PlayerInfo[playerid][pPot] += 5;
- PlayerInfo[playerid][pCrack] += 4;
- GivePlayerValidWeapon(playerid, 22, 45);
- }
- else if(truckdeliver == 29)
- {
- 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.");
- PlayerInfo[playerid][pMats] += 950;
- PlayerInfo[playerid][pPot] += 6;
- PlayerInfo[playerid][pCrack] += 5;
- GivePlayerValidWeapon(playerid, 25, 20);
- }
- else if(truckdeliver == 30)
- {
- 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.");
- PlayerInfo[playerid][pMats] += 1000;
- PlayerInfo[playerid][pPot] += 7;
- PlayerInfo[playerid][pCrack] += 6;
- GivePlayerValidWeapon(playerid, 25, 20);
- }
- PlayerInfo[playerid][pTruckSkill]++;
- TruckUsed[playerid] = INVALID_VEHICLE_ID;
- DeletePVar(playerid, "TruckDeliver");
- new mypoint = -1;
- for (new i=0; i<MAX_POINTS; i++)
- {
- if(strcmp(Points[i][Name], "Los Angeles Docks", true) == 0)
- {
- mypoint = i;
- }
- }
- for(new i = 0; i < sizeof(FamilyInfo); i++)
- {
- if(strcmp(Points[mypoint][Owner], FamilyInfo[i][FamilyName], true) == 0)
- {
- Tax -= 200;
- SaveStuff();
- FamilyInfo[i][FamilyBank] = FamilyInfo[i][FamilyBank]+(200);
- }
- }
- }
- case LOAD_MATS1: // second check NW checkpoint
- {
- if(MatsRunning[playerid] == 1)
- {
- if(PlayerInfo[playerid][pJob] == 24 || PlayerInfo[playerid][pJob2] == 24)
- {
- new string[128];
- DisablePlayerCheckpoint(playerid);
- PlayerPlaySound(playerid, 5453, 0.0, 0.0, 0.0);
- format(string, sizeof(string), "* You have added %d materials to your current package, Proceed to the next location", random(5));
- SendClientMessageEx(playerid, COLOR_GREY, string);
- MatsRunning[playerid] = 2;
- GameTextForPlayer(playerid, "~g~Materials loaded~n~~r~2/5", 5000, 1);
- SetPlayerCheckpoint(playerid,902.3973,-1211.3816,16.9766,1.0);
- gPlayerCheckpointStatus[playerid] = LOAD_MATS2;
- }
- return 1;
- }
- return 1;
- }
- case LOAD_MATS2: // third check sends them to the bone yard
- {
- if(MatsRunning[playerid] == 2)
- {
- if(PlayerInfo[playerid][pJob] == 24 || PlayerInfo[playerid][pJob2] == 24)
- {
- new string[128];
- DisablePlayerCheckpoint(playerid);
- PlayerPlaySound(playerid, 5453, 0.0, 0.0, 0.0);
- format(string, sizeof(string), "* You have added %d materials to your current package, Proceed to the next location", random(10));
- SendClientMessageEx(playerid, COLOR_GREY, string);
- MatsRunning[playerid] = 3;
- GameTextForPlayer(playerid, "~g~Materials loaded~n~~r~3/5", 5000, 1);
- SetPlayerCheckpoint(playerid,-574.9922,-500.5186,25.5234,1.0);
- gPlayerCheckpointStatus[playerid] = LOAD_MATS3;
- }
- return 1;
- }
- return 1;
- }
- case LOAD_MATS3: // fourth check sends them to montgomery
- {
- if(MatsRunning[playerid] == 3)
- {
- if(PlayerInfo[playerid][pJob] == 24 || PlayerInfo[playerid][pJob2] == 24)
- {
- new string[128];
- DisablePlayerCheckpoint(playerid);
- PlayerPlaySound(playerid, 5453, 0.0, 0.0, 0.0);
- format(string, sizeof(string), "* You have added %d materials to your current package, Proceed to the next location", random(15));
- SendClientMessageEx(playerid, COLOR_GREY, string);
- MatsRunning[playerid] = 4;
- GameTextForPlayer(playerid, "~g~Materials loaded~n~~r~3/5", 5000, 1);
- SetPlayerCheckpoint(playerid,-57.5795,-225.2054,5.4297,1.0);
- gPlayerCheckpointStatus[playerid] = LOAD_MATS4;
- }
- return 1;
- }
- return 1;
- }
- case LOAD_MATS4: // fifth check sends them to the mats drop
- {
- if(MatsRunning[playerid] == 4)
- {
- if(PlayerInfo[playerid][pJob] == 24 || PlayerInfo[playerid][pJob2] == 24)
- {
- new string[128];
- DisablePlayerCheckpoint(playerid);
- PlayerPlaySound(playerid, 5453, 0.0, 0.0, 0.0);
- format(string, sizeof(string), "* You have added %d materials to your current package, Proceed to the next location", random(20));
- SendClientMessageEx(playerid, COLOR_GREY, string);
- MatsRunning[playerid] = 5;
- GameTextForPlayer(playerid, "~g~Materials loaded~n~~r~4/5", 5000, 1);
- SetPlayerCheckpoint(playerid,2166.4990,-2273.8196,13.3719,1.0);
- gPlayerCheckpointStatus[playerid] = LOAD_MATS5;
- }
- return 1;
- }
- return 1;
- }
- case LOAD_MATS5: // origin check sends them back to the warehouse
- {
- if(MatsRunning[playerid] == 5)
- {
- if(PlayerInfo[playerid][pJob] == 24 || PlayerInfo[playerid][pJob2] == 24)
- {
- DisablePlayerCheckpoint(playerid);
- PlayerPlaySound(playerid, 5453, 0.0, 0.0, 0.0);
- SendClientMessageEx(playerid, COLOR_WHITE, "* You have finished your materials package, Return to the Los Santos Docks to get paid.");
- MatsRunning[playerid] = 6;
- GameTextForPlayer(playerid, "~g~Materials loaded~n~~r~5/5", 5000, 1);
- SetPlayerCheckpoint(playerid,2224.0698,-2682.7217,13.5409,1.0);
- gPlayerCheckpointStatus[playerid] = LOAD_MATSRETURN;
- }
- return 1;
- }
- return 1;
- }
- case LOAD_MATSRETURN:
- {
- if(MatsRunning[playerid] == 6)
- {
- if(PlayerInfo[playerid][pJob] == 24)
- {
- new string[128], matrand;
- matrand = random(600);
- PlayerPlaySound(playerid, 5453, 0.0, 0.0, 0.0);
- 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);
- SendClientMessageEx(playerid, COLOR_GREY, string);
- GivePlayerCash(playerid, matrand);
- //PlayerInfo[playerid][pPayCheck] += matrand;
- MatsRunning[playerid] = 0;
- GameTextForPlayer(playerid, "~g~Package delivered", 5000, 1);
- DisablePlayerCheckpoint(playerid);
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
- matssys[MatsAmmount] += random(10000);
- SaveMatsSystem();
- }
- return 1;
- }
- return 1;
- }
- case CHECKPOINT_HITMAN:
- {
- PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
- DisablePlayerCheckpoint(playerid);
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
- SendClientMessageEx(playerid, COLOR_GRAD2, " Type /enter to enter the HQ.");
- }
- case CHECKPOINT_HITMAN2:
- {
- PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
- DisablePlayerCheckpoint(playerid);
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
- SendClientMessageEx(playerid, COLOR_GRAD2, " Type /enter to enter the HQ.");
- }
- case CHECKPOINT_HITMAN3:
- {
- PlayerPlaySound(playerid, 1058, 0.0, 0.0, 0.0);
- DisablePlayerCheckpoint(playerid);
- gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
- SendClientMessageEx(playerid, COLOR_GRAD2, " Type /order to get your weaponry.");
- }
- }
- }
- DisablePlayerCheckpoint(playerid);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement