// Bank robbery start
enum rsInfo
{
BeingRobbed, // 0 = Not, 1 = Bank
RobAmount, // Starts at $0
RobComplete, // Rob Completed
RobberID1, // ID of Robber 1 (Required)
RobberID2, // ID of Robber 2 (Required)
RobberID3, // ID of Robber 3 (Required)
RobberID4, // ID of Robber 4 ()
RobberID5, // ID of Robber 5 ()
DaCuop,// thoi gian cho khi Da cuop
Setup, // Has someone began setting up the robbery? 1 = Yes
};
enum cmnr
{
ccmnr,
}
new wtf[cmnr];
new RobStatus[rsInfo];
new laytien;
new Text3Dlayertextid1;
new Text3Dlayertextid2;
new quabombc4;
new khoasat;
new khoasat1;
new bankvault;
new ketsat1;
new ketsat2;
new ketsat3;
new ketsat4;
new ketsat5;
new ketsat6;
new ketsat7;
new ketsat8;
new ketsat9;
new ketsat10;
new ketsatroi1;
new ketsatroi2;
new ketsatroi3;
new ketsatroi4;
new ketsatroi5;
new ketsatroi6;
new ketsatroi7;
new ketsatroi8;
new ketsatroi9;
new ketsatroi10;
new tienroi1;
new tienroi2;
new tienroi3;
new tienroi4;
new tienroi5;
new tienroi6;
new tienroi7;
new tienroi8;
new tienroi9;
new tienroi10;
new tienroi11;
new tienroi12;
new tienroi13;
new tienroi14;
new failed_attempts;
new PlantedC4OnVault[MAX_PLAYERS];
// Bank robbery end
new SASDGate1;
new SASDGate2;
new SASDGate3;
new NGGate1;
new NGCellStatus;
new LSPDGateStatus;
new LSPDGate2Status;
new SFPDGate1Status;
new SFPDGate2Status;
new SFPDGate3Status;
new SFPDGate4Status;
new FBIGate1Status;
new FBIGate2Status;
new SASDGate1Status;
new SASDGate2Status;
new SASDGate3Status;
new CustomProject1906;
new CustomProject1906Password[24];
new MatsHolding[MAX_PLAYERS];
new MatDeliver[MAX_PLAYERS];
new MatDeliver2[MAX_PLAYERS];
new NewbieTimer[MAX_PLAYERS];
new OutTimer[MAX_PLAYERS];
new HelperTimer[MAX_PLAYERS];
new HlKickTimer[MAX_PLAYERS];
new JustReported[MAX_PLAYERS];
new UsedWeed[MAX_PLAYERS];
new UsedCrack[MAX_PLAYERS];
new Backup[MAX_PLAYERS];
new VIPM = 1;
new CreatedCars[100] = INVALID_VEHICLE_ID;
new Tax= 0;
new TaxValue = 0;
new nonewbie = 0;
new Jackpot, TicketsSold, NextDrawing, LottoNumbers[MAX_PLAYERS][5], SpecLotto, LottoPrize[64];
new Float:Positions[15][3];
new InRing = 0;
new RoundStarted = 0;
new BoxDelay = 0;
new Boxer1 = INVALID_PLAYER_ID;
new Boxer2 = INVALID_PLAYER_ID;
new TBoxer = INVALID_PLAYER_ID;
new PlayerBoxing[MAX_PLAYERS];
new Medics = 0;
new Coastguard = 0;
new MedicCall = INVALID_PLAYER_ID;
new MedicCallTime[MAX_PLAYERS];
new MedicAccepted[MAX_PLAYERS];
new Mechanics = 0;
new Lawyers = 0;
new Advisors = 0;
new shutdown = 0;
new timeshift = 0;
new MechanicCall = INVALID_PLAYER_ID;
new TowCall = INVALID_PLAYER_ID;
new HelpingNewbie[MAX_PLAYERS];
new MechanicCallTime[MAX_PLAYERS];
new TowCallTime[MAX_PLAYERS];
new TaxiDrivers = 0;
new TaxiCallTime[MAX_PLAYERS];
new TaxiAccepted[MAX_PLAYERS];
new EMSCallTime[MAX_PLAYERS];
new EMSAccepted[MAX_PLAYERS];
new BusDrivers = 0;
new BusCall = INVALID_PLAYER_ID;
new BusCallTime[MAX_PLAYERS];
new BusAccepted[MAX_PLAYERS];
new Text3D:Camera3D[MAX_PLAYERS];
new TransportDuty[MAX_PLAYERS];
new TransportValue[MAX_PLAYERS];
new TransportMoney[MAX_PLAYERS];
new TransportTime[MAX_PLAYERS];
new TransportCost[MAX_PLAYERS];
new TransportDriver[MAX_PLAYERS];
new JobDuty[MAX_PLAYERS];
new RegistrationStep[MAX_PLAYERS];
new playerSeconds[MAX_PLAYERS];
new playerTabbed[MAX_PLAYERS];
new playerAFK[MAX_PLAYERS];
new playerLastTyped[MAX_PLAYERS];
new UsedFind[MAX_PLAYERS];
new Spectating[MAX_PLAYERS];
new DivorceOffer[MAX_PLAYERS];
new MarriageCeremoney[MAX_PLAYERS];
new ProposeOffer[MAX_PLAYERS];
new ProposedTo[MAX_PLAYERS];
new GotProposedBy[MAX_PLAYERS];
new MarryWitness[MAX_PLAYERS];
new MarryWitnessOffer[MAX_PLAYERS];
new TicketOffer[MAX_PLAYERS];
new TicketMoney[MAX_PLAYERS];
new PlayerStoned[MAX_PLAYERS];
new FishCount[MAX_PLAYERS];
new ActiveChatbox[MAX_PLAYERS];
new TutStep[MAX_PLAYERS];
new PlayerDrunk[MAX_PLAYERS];
new PlayerDrunkTime[MAX_PLAYERS];
new FindTimePoints[MAX_PLAYERS];
new FindingPlayer[MAX_PLAYERS];
new FindTime[MAX_PLAYERS];
new CalledCops[MAX_PLAYERS];
new CopsCallTime[MAX_PLAYERS];
new CalledMedics[MAX_PLAYERS];
new MedicsCallTime[MAX_PLAYERS];
new BoxWaitTime[MAX_PLAYERS];
new BoxOffer[MAX_PLAYERS];
new GotHit[MAX_PLAYERS];
new GoChase[MAX_PLAYERS];
new GetChased[MAX_PLAYERS];
new OrderReady[MAX_PLAYERS];
new ConnectedToPC[MAX_PLAYERS];
new PlayerTied[MAX_PLAYERS];
new PlayerCuffed[MAX_PLAYERS];
new PlayerCuffedTime[MAX_PLAYERS];
new LiveOffer[MAX_PLAYERS];
new TalkingLive[MAX_PLAYERS];
new broadcasting = 0;
new cameraangle = 0;
new Text3D:camera;
new viewers = 0;
new WatchingTV[MAX_PLAYERS];
new SelectFChar[MAX_PLAYERS];
new SelectFCharID[MAX_PLAYERS];
new SelectFCharPlace[MAX_PLAYERS];
new ChosenSkin[MAX_PLAYERS];
new GettingJob[MAX_PLAYERS];
new GettingJob2[MAX_PLAYERS];
new GuardOffer[MAX_PLAYERS];
new GuardPrice[MAX_PLAYERS];
new KemOffer[MAX_PLAYERS];
new KemPrice[MAX_PLAYERS];
new DefendOffer[MAX_PLAYERS];
new DefendPrice[MAX_PLAYERS];
new ApprovedLawyer[MAX_PLAYERS];
new CallLawyer[MAX_PLAYERS];
new WantLawyer[MAX_PLAYERS];
new AppealOffer[MAX_PLAYERS];
new AppealOfferAccepted[MAX_PLAYERS];
new CurrentMoney[MAX_PLAYERS];
new CP[MAX_PLAYERS];
new Condom[MAX_PLAYERS];
new SexOffer[MAX_PLAYERS];
new SexPrice[MAX_PLAYERS];
new RepairOffer[MAX_PLAYERS];
new RepairPrice[MAX_PLAYERS];
new RefillOffer[MAX_PLAYERS];
new RefillPrice[MAX_PLAYERS];
new RepairCar[MAX_PLAYERS];
new GunOffer[MAX_PLAYERS];
new GunStorageID[MAX_PLAYERS];
new GunId[MAX_PLAYERS];
new GunMats[MAX_PLAYERS];
new CraftOffer[MAX_PLAYERS];
new CraftId[MAX_PLAYERS];
new CraftMats[MAX_PLAYERS];
new CraftName[MAX_PLAYERS][50];
new HitOffer[MAX_PLAYERS];
new HitToGet[MAX_PLAYERS];
new hInviteOffer[MAX_PLAYERS];
new hInviteHouse[MAX_PLAYERS];
new hInviteSlot[MAX_PLAYERS];
new InviteOffer[MAX_PLAYERS];
new InviteFaction[MAX_PLAYERS];
new InviteFamily[MAX_PLAYERS];
new MatsOffer[MAX_PLAYERS];
new MatsStorageID[MAX_PLAYERS];
new MatsPrice[MAX_PLAYERS];
new MatsAmount[MAX_PLAYERS];
new PotOffer[MAX_PLAYERS];
new PotStorageID[MAX_PLAYERS];
new PotPrice[MAX_PLAYERS];
new PotGram[MAX_PLAYERS];
new CrackOffer[MAX_PLAYERS];
new CrackStorageID[MAX_PLAYERS];
new CrackPrice[MAX_PLAYERS];
new CrackGram[MAX_PLAYERS];
new FireworkOffer[MAX_PLAYERS];
new FireworkPrice[MAX_PLAYERS];
new FireworkCount[MAX_PLAYERS];
new DrinkOffer[MAX_PLAYERS];
new VehicleOffer[MAX_PLAYERS];
new VehicleId[MAX_PLAYERS];
new VehiclePrice[MAX_PLAYERS];
new HouseOffer[MAX_PLAYERS];
new House[MAX_PLAYERS];
new HousePrice[MAX_PLAYERS];
new JailPrice[MAX_PLAYERS];
new OnDuty[MAX_PLAYERS];
new gPlayerCheckpointStatus[MAX_PLAYERS];
new gPlayerLogged[MAX_PLAYERS char];
new gPlayerLogTries[MAX_PLAYERS];
new gLastCar[MAX_PLAYERS];
new gOoc[MAX_PLAYERS];
new gNews[MAX_PLAYERS];
new gNewbie[MAX_PLAYERS];
new gHelp[MAX_PLAYERS];
new gFam[MAX_PLAYERS];
new BigEar[MAX_PLAYERS];
new BigEarFamily[MAX_PLAYERS];
new BigEarFaction[MAX_PLAYERS];
new BigEarPlayer[MAX_PLAYERS];
new Spectate[MAX_PLAYERS];
new GettingSpectated[MAX_PLAYERS];
new CellTime[MAX_PLAYERS];
new StartTime[MAX_PLAYERS];
new HireCar[MAX_PLAYERS];
new HidePM[MAX_PLAYERS];
new PhoneOnline[MAX_PLAYERS];
new advisorchat[MAX_PLAYERS];
new FirstSpawn[MAX_PLAYERS];
new JetPack[MAX_PLAYERS];
new Fixr[MAX_PLAYERS];
new VehicleSpawned[MAX_PLAYERS];
new ShotPlayer[MAX_PLAYERS][MAX_PLAYERS];
new LastShot[MAX_PLAYERS];
new unbanip[MAX_PLAYERS][16];
new TruckerVehicles[19];
new PizzaVehicles[8];
new CreamVehicles[5];
new SASDVehicles[6];
new EPVehicles[4];
new WPVehicles[11];
new TierraVehicles[16];
new TierraARVehicles[20];
new TierraESVehicles[6];
new GovVehicles[13];
new NooseVehicles[17];
new ShaftVehicles[17];
new CheckPointGates[4];
new CheckPointGateStatus[4];
// Bank robbery
Robbing,
CashLoaded,
CashLoading,
ROffered,
ROfferer,
pBando,
pDau,
pCMND,
pCMND2
// Bank robbery end
};
forward hetthoigianrobbank(playerid);
public hetthoigianrobbank(playerid)
{
if(PlayerInfo[playerid][Robbing] == 1)
{
new string[128];
format(string, sizeof(string), "Vu cuop ngan hang da duoc ket thuc vi qua thoi gian robbank >10 phut.");
foreach(new i: Player) {
SendClientMessageEx(i, COLOR_YELLOW, string);
}
if(RobStatus[RobberID1] == playerid)
{
RobStatus[RobberID1] = 200;
if(RobStatus[RobberID1] > 199 && RobStatus[RobberID2] > 199 && RobStatus[RobberID3] > 199 && RobStatus[RobberID4] > 199 && RobStatus[RobberID5] > 199)
{
RobStatus[BeingRobbed] = 0;
RobStatus[Setup] = 0;
FinishRobbery();
}
}
if(RobStatus[RobberID2] == playerid)
{
RobStatus[RobberID2] = 200;
if(RobStatus[RobberID1] > 199 && RobStatus[RobberID2] > 199 && RobStatus[RobberID3] > 199 && RobStatus[RobberID4] > 199 && RobStatus[RobberID5] > 199)
{
RobStatus[BeingRobbed] = 0;
RobStatus[Setup] = 0;
FinishRobbery();
}
}
if(RobStatus[RobberID3] == playerid)
{
RobStatus[RobberID3] = 200;
if(RobStatus[RobberID1] > 199 && RobStatus[RobberID2] > 199 && RobStatus[RobberID3] > 199 && RobStatus[RobberID4] > 199 && RobStatus[RobberID5] > 199)
{
RobStatus[BeingRobbed] = 0;
RobStatus[Setup] = 0;
FinishRobbery();
}
}
if(RobStatus[RobberID4] == playerid)
{
RobStatus[RobberID4] = 200;
if(RobStatus[RobberID1] > 199 && RobStatus[RobberID2] > 199 && RobStatus[RobberID3] > 199 && RobStatus[RobberID4] > 199 && RobStatus[RobberID5] > 199)
{
RobStatus[BeingRobbed] = 0;
RobStatus[Setup] = 0;
FinishRobbery();
}
}
if(RobStatus[RobberID5] == playerid)
{
RobStatus[RobberID5] = 200;
if(RobStatus[RobberID1] > 199 && RobStatus[RobberID2] > 199 && RobStatus[RobberID3] > 199 && RobStatus[RobberID4] > 199 && RobStatus[RobberID5] > 199)
{
RobStatus[BeingRobbed] = 0;
RobStatus[Setup] = 0;
FinishRobbery();
}
}
RemovePlayerAttachedObject(playerid, 3 );
SendClientMessageToAllEx(COLOR_ORANGE, string);
FinishRobbery();
PlayerInfo[playerid][CashLoaded] = 0;
PlayerInfo[playerid][Robbing] = 0;
DisablePlayerCheckpoint(playerid);
//dat o day
RobStatus[Setup] = 0;
RobStatus[BeingRobbed] = 0;
DeletePVar(playerid, "nhantien");
gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
}
}
public OnPlayerDisconnect(playerid, reason)
if(PlayerInfo[playerid][Robbing] == 1)
{
if(RobStatus[Setup] == 1 && RobStatus[BeingRobbed] == 0 && RobStatus[RobberID1] == playerid)
{
RobStatus[Setup] = 0;
SendClientMessage(RobStatus[RobberID1], COLOR_YELLOW, "** Chi huy vu cuop da thoat',Vu cuop ket thuc");
SendClientMessage(RobStatus[RobberID2], COLOR_YELLOW, "** Chi huy vu cuop da thoat',Vu cuop ket thuc");
SendClientMessage(RobStatus[RobberID3], COLOR_YELLOW, "** Chi huy vu cuop da thoat',Vu cuop ket thuc");
SendClientMessage(RobStatus[RobberID4], COLOR_YELLOW, "** Chi huy vu cuop da thoat',Vu cuop ket thuc");
SendClientMessage(RobStatus[RobberID5], COLOR_YELLOW, "** Chi huy vu cuop da thoat',Vu cuop ket thuc");
RobStatus[RobberID1] = 255;
RobStatus[RobberID2] = 255;
RobStatus[RobberID3] = 255;
RobStatus[RobberID4] = 255;
RobStatus[RobberID5] = 255;
}
if(RobStatus[RobberID1] == playerid)
{
RobStatus[RobberID1] = 200;
if(RobStatus[RobberID1] > 199 && RobStatus[RobberID2] > 199 && RobStatus[RobberID3] > 199 && RobStatus[RobberID4] > 199 && RobStatus[RobberID5] > 199)
{
RobStatus[BeingRobbed] = 0;
RobStatus[Setup] = 0;
SendClientMessageToAll(COLOR_LIGHTBLUE, "** Vu cuop ngan hang da that bai **");
FinishRobbery();
}
}
if(RobStatus[RobberID2] == playerid)
{
RobStatus[RobberID2] = 200;
if(RobStatus[RobberID1] > 199 && RobStatus[RobberID2] > 199 && RobStatus[RobberID3] > 199 && RobStatus[RobberID4] > 199 && RobStatus[RobberID5] > 199)
{
RobStatus[BeingRobbed] = 0;
RobStatus[Setup] = 0;
SendClientMessageToAll(COLOR_ORANGE, "** Vu cuop ngan hang da that bai **");
FinishRobbery();
}
}
if(RobStatus[RobberID3] == playerid)
{
RobStatus[RobberID3] = 200;
if(RobStatus[RobberID1] > 199 && RobStatus[RobberID2] > 199 && RobStatus[RobberID3] > 199 && RobStatus[RobberID4] > 199 && RobStatus[RobberID5] > 199)
{
RobStatus[BeingRobbed] = 0;
RobStatus[Setup] = 0;
SendClientMessageToAll(COLOR_ORANGE, "** Vu cuop ngan hang da that bai **");
FinishRobbery();
}
}
if(RobStatus[RobberID4] == playerid)
{
RobStatus[RobberID4] = 200;
if(RobStatus[RobberID1] > 199 && RobStatus[RobberID2] > 199 && RobStatus[RobberID3] > 199 && RobStatus[RobberID4] > 199 && RobStatus[RobberID5] > 199)
{
RobStatus[BeingRobbed] = 0;
RobStatus[Setup] = 0;
SendClientMessageToAll(COLOR_ORANGE, "** Vu cuop ngan hang da that bai **");
FinishRobbery();
}
}
if(RobStatus[RobberID5] == playerid)
{
RobStatus[RobberID5] = 200;
if(RobStatus[RobberID1] > 199 && RobStatus[RobberID2] > 199 && RobStatus[RobberID3] > 199 && RobStatus[RobberID4] > 199 && RobStatus[RobberID5] > 199)
{
RobStatus[BeingRobbed] = 0;
RobStatus[Setup] = 0;
SendClientMessageToAll(COLOR_ORANGE, "** Vu cuop ngan hang da that bai **");
FinishRobbery();
}
}
new string[128];
format(string,sizeof(string),"** Ban da chet va khong the nhan duoc so tien nГ*y $%d cua ban",PlayerInfo[playerid][CashLoaded]);
SendClientMessage(playerid, COLOR_YELLOW, string);
PlayerInfo[playerid][CashLoaded] = 0;
PlayerInfo[playerid][Robbing] = 0;
DisablePlayerCheckpoint(playerid);
}
public OnPlayerEnterCheckpoint(playerid)
{
// Bank robbery
new veh = GetPlayerVehicleID(playerid);
if(GetPVarInt(playerid,"nhantien") != 0)
{
if(PlayerInfo[playerid][Robbing] == 1)
{
if(RobStatus[RobberID1] == playerid)
{
RobStatus[RobberID1] = 200;
if(RobStatus[RobberID1] > 199 && RobStatus[RobberID2] > 199 && RobStatus[RobberID3] > 199 && RobStatus[RobberID4] > 199 && RobStatus[RobberID5] > 199)
{
RobStatus[BeingRobbed] = 0;
RobStatus[Setup] = 0;
FinishRobbery();
}
}
if(RobStatus[RobberID2] == playerid)
{
RobStatus[RobberID2] = 200;
if(RobStatus[RobberID1] > 199 && RobStatus[RobberID2] > 199 && RobStatus[RobberID3] > 199 && RobStatus[RobberID4] > 199 && RobStatus[RobberID5] > 199)
{
RobStatus[BeingRobbed] = 0;
RobStatus[Setup] = 0;
FinishRobbery();
}
}
if(RobStatus[RobberID3] == playerid)
{
RobStatus[RobberID3] = 200;
if(RobStatus[RobberID1] > 199 && RobStatus[RobberID2] > 199 && RobStatus[RobberID3] > 199 && RobStatus[RobberID4] > 199 && RobStatus[RobberID5] > 199)
{
RobStatus[BeingRobbed] = 0;
RobStatus[Setup] = 0;
FinishRobbery();
}
}
if(RobStatus[RobberID4] == playerid)
{
RobStatus[RobberID4] = 200;
if(RobStatus[RobberID1] > 199 && RobStatus[RobberID2] > 199 && RobStatus[RobberID3] > 199 && RobStatus[RobberID4] > 199 && RobStatus[RobberID5] > 199)
{
RobStatus[BeingRobbed] = 0;
RobStatus[Setup] = 0;
FinishRobbery();
}
}
if(RobStatus[RobberID5] == playerid)
{
RobStatus[RobberID5] = 200;
if(RobStatus[RobberID1] > 199 && RobStatus[RobberID2] > 199 && RobStatus[RobberID3] > 199 && RobStatus[RobberID4] > 199 && RobStatus[RobberID5] > 199)
{
RobStatus[BeingRobbed] = 0;
RobStatus[Setup] = 0;
FinishRobbery();
}
}
new stringa[128];
format(stringa,sizeof(stringa),"Ban da den diem an toan vГ* tui' tien` cua ban la` $%d.",PlayerInfo[playerid][CashLoaded]);
RemovePlayerAttachedObject(playerid, 3 );
new string[128];
format(string, sizeof(string), "** Vu cuop ngan hang da thanh cong, canh sat da khong the ngan can bon cuop, ngan hang ton that kha nhieu **");
SendClientMessageToAllEx(COLOR_ORANGE, string);
FinishRobbery();
SendClientMessageEx(playerid, COLOR_LIGHTBLUE, "Vu cuop da thanh cong, ban da tron thoat khoi canh sat");
PlayerInfo[playerid][pCash] += PlayerInfo[playerid][CashLoaded];
PlayerInfo[playerid][CashLoaded] = 0;
PlayerInfo[playerid][Robbing] = 0;
DisablePlayerCheckpoint(playerid);
//o day
RobStatus[Setup] = 0;
RobStatus[BeingRobbed] = 0;
DeletePVar(playerid, "nhantien");
gPlayerCheckpointStatus[playerid] = CHECKPOINT_NONE;
}
}
// Bank robery end
if(IsLoaded[playerid] || IsBooked[playerid])
{
switch(MissionData[playerid][player_misstype])
{
case MISSION_TYPE_A1:
{
if(GetVehicleModel(GetVehicleTrailer(GetPlayerVehi cleID(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);
}
case MISSION_TYPE_A3:
{
if(GetVehicleModel(GetVehicleTrailer(GetPlayerVehi cleID(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);
}
case MISSION_TYPE_FUEL:
{
if(GetVehicleModel(GetVehicleTrailer(GetPlayerVehi cleID(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);
}
case MISSION_TYPE_DUMP:
{
if(GetVehicleModel(GetVehicleTrailer(GetPlayerVehi cleID(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);
}
case MISSION_TYPE_AIR:
{
IsBooked[playerid]=0;
DisablePlayerCheckpoint(playerid);
GivePlayerCash(playerid, airwork[MissionData[playerid][player_missnumber]][air_pay]);
new string[128];
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);
}
}
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
// Bank robbery
else if((newkeys & KEY_FIRE) && PlantedC4OnVault[playerid] == 1)
{
new vid = GetPlayerVehicleID(playerid);
if(GetVehicleModel(vid) == 510)
{
SetVehicleVelocity(vid,0.0,0.0,0.0);
}
if(PlantedC4OnVault[playerid] == 1)
{
// TakeWeapon(playerid, 40);
RobStatus[BeingRobbed] = 1;
RobStatus[Setup] = 0;
PlantedC4OnVault[playerid] = 0;
Delete3DTextLabel(playertextid1);
playertextid2 = Create3DTextLabel("/laytien de vo vet tien vao tui!", 0x008080FF, 404.8637,130.9356,1012.4459, 10.0, 0, 0);
new randomrobbank = Random(1, 3);
if(randomrobbank == 1)
{
SetPlayerCheckpoint(RobStatus[RobberID1], -1632.1014,-2238.9224,31.4766, 5);
SetPVarInt(RobStatus[RobberID1],"nhantien", 1);
SetPlayerCheckpoint(RobStatus[RobberID2], -1632.1014,-2238.9224,31.4766, 5);
SetPVarInt(RobStatus[RobberID2],"nhantien", 1);
SetPlayerCheckpoint(RobStatus[RobberID3], -1632.1014,-2238.9224,31.4766, 5);
SetPVarInt(RobStatus[RobberID3],"nhantien", 1);
SetPlayerCheckpoint(RobStatus[RobberID4], -1632.1014,-2238.9224,31.4766, 5);
SetPVarInt(RobStatus[RobberID4],"nhantien", 1);
SetPlayerCheckpoint(RobStatus[RobberID5], -1632.1014,-2238.9224,31.4766, 5);
SetPVarInt(RobStatus[RobberID5],"nhantien", 1);
}
if(randomrobbank == 2)
{
SetPlayerCheckpoint(RobStatus[RobberID1], 655.3608, -502.9871, 15.3291, 5);
SetPVarInt(RobStatus[RobberID1],"nhantien", 1);
SetPlayerCheckpoint(RobStatus[RobberID2], 655.3608, -502.9871, 15.3291, 5);
SetPVarInt(RobStatus[RobberID2],"nhantien", 1);
SetPlayerCheckpoint(RobStatus[RobberID3], 655.3608, -502.9871, 15.3291, 5);
SetPVarInt(RobStatus[RobberID3],"nhantien", 1);
SetPlayerCheckpoint(RobStatus[RobberID4], 655.3608, -502.9871, 15.3291, 5);
SetPVarInt(RobStatus[RobberID4],"nhantien", 1);
SetPlayerCheckpoint(RobStatus[RobberID5], 655.3608, -502.9871, 15.3291, 5);
SetPVarInt(RobStatus[RobberID5],"nhantien", 1);
}
SendClientMessage(RobStatus[RobberID1], COLOR_YELLOW, "Hay~ chay. den' cho~ lay' tien` va go~ /laytien ");
SendClientMessage(RobStatus[RobberID2], COLOR_YELLOW, "Hay~ chay. den' cho~ lay' tien` va go~ /laytien");
SendClientMessage(RobStatus[RobberID3], COLOR_YELLOW, "Hay~ chay. den' cho~ lay' tien` va go~ /laytien");
SendClientMessage(RobStatus[RobberID4], COLOR_YELLOW, "Hay~ chay. den' cho~ lay' tien` va go~ /laytien");
SendClientMessage(RobStatus[RobberID5], COLOR_YELLOW, "Hay~ chay. den' cho~ lay' tien` va go~ /laytien");
SetPlayerColor(RobStatus[RobberID1], TCOLOR_PRISON);
SetPlayerColor(RobStatus[RobberID2], TCOLOR_PRISON);
SetPlayerColor(RobStatus[RobberID3], TCOLOR_PRISON);
SetPlayerColor(RobStatus[RobberID4], TCOLOR_PRISON);
SetPlayerColor(RobStatus[RobberID5], TCOLOR_PRISON);
new string12[128],string2[128];
format(string12, sizeof(string12), "Mot tieng no vang troi rung dong ca thanh pho.Chuong bao dong duoc bat len.");
format(string2, sizeof(string2), "Ngan hang nha nuoc da bi pha huy.Cac ten trom dang co gang vo vet tien va tron thoat.");
foreach(new i: Player) {
SendClientMessageEx(i, COLOR_YELLOW, string12);
SendClientMessageEx(i, COLOR_YELLOW, string2);
SetTimerEx("BankRobbedz",7200000,false,"i");
BankRobbed = 1;
//SendAudioToPlayer(i, 47, 100);
}
new string[126];
format(string, sizeof(string), "** KET SAT CUA NGAN HANG nhГ* NUOC' DA~ BI PHA' HUY! **");
SendFamilyMessage(1, COLOR_DCHAT, string);
SendFamilyMessage(2, COLOR_DCHAT, string);
SendFamilyMessage(3, COLOR_DCHAT, string);
SendFamilyMessage(4, COLOR_DCHAT, string);
SendFamilyMessage(5, COLOR_DCHAT, string);
SendFamilyMessage(6, COLOR_DCHAT, string);
SendFamilyMessage(7, COLOR_DCHAT, string);
SendFamilyMessage(1, COLOR_DBLUE, "------------------------------------------------------------");
SendFamilyMessage(2, COLOR_DBLUE, "------------------------------------------------------------");
SendFamilyMessage(3, COLOR_DBLUE, "------------------------------------------------------------");
SendFamilyMessage(4, COLOR_DBLUE, "------------------------------------------------------------");
SendFamilyMessage(5, COLOR_DBLUE, "------------------------------------------------------------");
SendFamilyMessage(6, COLOR_DBLUE, "------------------------------------------------------------");
SendFamilyMessage(7, COLOR_DBLUE, "------------------------------------------------------------");
SendClientMessageToAll(COLOR_ORANGE, "** 1 TIENG NO VANG TROI..RUNG DONG CA thГ*nh PHO' **");
SendClientMessageToAll(COLOR_ORANGE, "** 1 TIENG NO VANG TROI..RUNG DONG CA thГ*nh PHO' **");
new string4[128],string5[128],string6[128];
format(string4, sizeof(string4), "Tat ca cac don vi! Hay tap trung den NGAN HANG NHA NUOC");
format(string5, sizeof(string5), "Hay cung nhau ngan chan mot vu cuop ngan hang vua xay ra.");
format(string6, sizeof(string6), "Trieu tap tat ca cac thanh vien chinh phu den ngan chan cuoc tan cong nay!!!");
SendRadioMessage(1, TEAM_MED_COLOR, string4);
SendRadioMessage(1, TEAM_MED_COLOR, string5);
SendRadioMessage(1, TEAM_MED_COLOR, string6);
SendRadioMessage(2, TEAM_MED_COLOR, string4);
SendRadioMessage(2, TEAM_MED_COLOR, string5);
SendRadioMessage(2, TEAM_MED_COLOR, string6);
SendRadioMessage(3, TEAM_MED_COLOR, string4);
SendRadioMessage(3, TEAM_MED_COLOR, string5);
SendRadioMessage(3, TEAM_MED_COLOR, string6);
SendRadioMessage(4, TEAM_MED_COLOR, string4);
SendRadioMessage(4, TEAM_MED_COLOR, string5);
SendRadioMessage(4, TEAM_MED_COLOR, string6);
SendRadioMessage(5, TEAM_MED_COLOR, string4);
SendRadioMessage(5, TEAM_MED_COLOR, string5);
SendRadioMessage(5, TEAM_MED_COLOR, string6);
SendRadioMessage(6, TEAM_MED_COLOR, string4);
SendRadioMessage(6, TEAM_MED_COLOR, string5);
SendRadioMessage(6, TEAM_MED_COLOR, string6);
SendRadioMessage(7, TEAM_MED_COLOR, string4);
SendRadioMessage(7, TEAM_MED_COLOR, string5);
SendRadioMessage(7, TEAM_MED_COLOR, string6);
new Float, Float:y, Float:z;
GetObjectPos(quabombc4, x, y, z);
DestroyDynamicObject(ketsat1);
DestroyDynamicObject(ketsat2);
DestroyDynamicObject(ketsat3);
DestroyDynamicObject(ketsat4);
DestroyDynamicObject(ketsat5);
DestroyDynamicObject(ketsat6);
DestroyDynamicObject(ketsat7);
DestroyDynamicObject(ketsat;
DestroyDynamicObject(ketsat9);
DestroyDynamicObject(ketsat10);
DestroyDynamicObject(quabombc4);
DestroyDynamicObject(khoasat);
PlayerInfo[RobStatus[RobberID1]][pWantedLevel] = 6;
PlayerInfo[RobStatus[RobberID2]][pWantedLevel] = 6;
PlayerInfo[RobStatus[RobberID3]][pWantedLevel] = 6;
PlayerInfo[RobStatus[RobberID4]][pWantedLevel] = 6;
PlayerInfo[RobStatus[RobberID5]][pWantedLevel] = 6;
SetPlayerWantedLevel(RobStatus[RobberID1], 6);
SetPlayerWantedLevel(RobStatus[RobberID2], 6);
SetPlayerWantedLevel(RobStatus[RobberID3], 6);
SetPlayerWantedLevel(RobStatus[RobberID4], 6);
SetPlayerWantedLevel(RobStatus[RobberID5], 6);
CreateExplosion(x, y, z, 11, 10);
ketsatroi1 = CreateDynamicObject(1829, 406.8130, 127.6309, 1011.9412, 0.0000, 0.0000, -90.0000);
ketsatroi2 = CreateDynamicObject(1829, 406.9369, 129.3190, 1011.9412, 0.0000, 0.0000, -90.0000);
ketsatroi3 = CreateDynamicObject(1829, 406.9613, 130.7210, 1011.9412, 0.0000, 0.0000, -90.0000);
ketsatroi4 = CreateDynamicObject(1829, 407.0338, 132.4478, 1011.9412, 0.0000, 0.0000, -90.0000);
ketsatroi5 = CreateDynamicObject(1829, 407.1393, 134.0996, 1011.9412, 0.0000, 0.0000, -90.0000);
ketsatroi6 = CreateDynamicObject(1829, 402.52, 132.59, 1011.94, 0.00, 0.00, 90.00);
ketsatroi7 = CreateDynamicObject(1829, 402.49, 130.95, 1011.94, 0.00, 0.00, 90.00);
ketsatroi8 = CreateDynamicObject(1829, 402.50, 129.14, 1011.94, 0.00, 0.00, 90.00);
ketsatroi9 = CreateDynamicObject(1829, 402.51, 127.18, 1011.94, 0.00, 0.00, 90.00);
ketsatroi10 = CreateDynamicObject(1829, 402.50, 134.10, 1011.94, 0.00, 0.00, 90.00);
tienroi1 = CreateDynamicObject(1212, 405.12, 131.13, 1011.44, 0.00, 0.00, 0.00);
tienroi2 = CreateDynamicObject(1212, 405.11, 130.43, 1011.44, 0.00, 0.00, 0.00);
tienroi3 = CreateDynamicObject(1212, 404.91, 130.83, 1011.44, 0.00, 0.00, 0.00);
tienroi4 = CreateDynamicObject(1212, 404.60, 130.32, 1011.44, 0.00, 0.00, 0.00);
tienroi5 = CreateDynamicObject(1212, 405.92, 130.75, 1011.44, 0.00, 0.00, 0.00);
tienroi6 = CreateDynamicObject(1212, 404.71, 131.14, 1011.44, 0.00, 0.00, 0.00);
tienroi7 = CreateDynamicObject(1212, 405.31, 130.92, 1011.44, 0.00, 0.00, 0.00);
tienroi8 = CreateDynamicObject(1212, 405.50, 130.37, 1011.44, 0.00, 0.00, 0.00);
tienroi9 = CreateDynamicObject(1212, 405.71, 131.13, 1011.44, 0.00, 0.00, 0.00);
tienroi10 = CreateDynamicObject(1212, 405.71, 131.13, 1011.44, 0.00, 0.00, 0.00);
tienroi11 = CreateDynamicObject(1212, 404.77, 131.15, 1011.44, 0.00, 0.00, 0.00);
tienroi12 = CreateDynamicObject(1212, 405.50, 131.69, 1011.44, 0.00, 0.00, 0.00);
tienroi13 = CreateDynamicObject(1212, 404.43, 131.97, 1011.44, 0.00, 0.00, 0.00);
tienroi14 = CreateDynamicObject(1212, 404.79, 131.89, 1011.44, 0.00, 0.00, 0.00);
bankvault = CreateDynamicObject(2634, 403.88, 136.95, 1012.93, 11.00, 4.00, -55.00);
}
}
// Bank robbery end
if(newkeys & KEY_NO)
{
if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
new engine,lights,alarm,doors,bonnet,boot,objective,ve hicleid;
vehicleid = GetPlayerVehicleID(playerid);
if(GetVehicleModel(vehicleid) == 481 || GetVehicleModel(vehicleid) == 509 || GetVehicleModel(vehicleid) == 510 || vehicleid == CrateIslandVehicles[0] || vehicleid == CrateIslandVehicles[1]) return SendClientMessageEx(playerid,COLOR_WHITE,"Lenh nay khong the su dung trong chiec xe nay.");
GetVehicleParamsEx(vehicleid,engine,lights,alarm,d oors,bonnet,boot,objective);
if(engine == VEHICLE_PARAMS_ON)
{
SetVehicleEngine(vehicleid, playerid);
}
else if((engine == VEHICLE_PARAMS_OFF || engine == VEHICLE_PARAMS_UNSET))
{
SendClientMessageEx(playerid, COLOR_WHITE, "Dong co xe dang duoc mo, xin vui long doi....");
SetTimerEx("SetVehicleEngine", 1000, 0, "dd", vehicleid, playerid);
}
}
}
// Bank robbery
forward FinishRobbery();
public FinishRobbery()
{
RobStatus[BeingRobbed] = 0;
RobStatus[RobberID1] = 255;
RobStatus[RobberID2] = 255;
RobStatus[RobberID3] = 255;
RobStatus[RobberID4] = 255;
RobStatus[RobberID5] = 255;
RobStatus[Setup] = 0;
RobStatus[DaCuop] = 1;
DestroyDynamicObject(ketsatroi1);
DestroyDynamicObject(ketsatroi2);
DestroyDynamicObject(ketsatroi3);
DestroyDynamicObject(ketsatroi4);
DestroyDynamicObject(ketsatroi5);
DestroyDynamicObject(ketsatroi6);
DestroyDynamicObject(ketsatroi7);
DestroyDynamicObject(ketsatroi;
DestroyDynamicObject(ketsatroi9);
DestroyDynamicObject(ketsatroi10);
Delete3DTextLabel(playertextid1);
Delete3DTextLabel(playertextid2);
DestroyDynamicObject(tienroi1);
DestroyDynamicObject(tienroi2);
DestroyDynamicObject(tienroi3);
DestroyDynamicObject(tienroi4);
DestroyDynamicObject(tienroi5);
DestroyDynamicObject(tienroi6);
DestroyDynamicObject(tienroi7);
DestroyDynamicObject(tienroi;
DestroyDynamicObject(tienroi9);
DestroyDynamicObject(tienroi10);
DestroyDynamicObject(tienroi11);
DestroyDynamicObject(tienroi12);
DestroyDynamicObject(tienroi13);
DestroyDynamicObject(tienroi14);
DestroyDynamicObject(bankvault);
ketsat1 = CreateDynamicObject(2332, 402.52, 132.59, 1011.94, 0.00, 0.00, 90.00);
ketsat2 = CreateDynamicObject(2332, 402.49, 130.95, 1011.94, 0.00, 0.00, 90.00);
ketsat3 = CreateDynamicObject(2332, 402.50, 129.14, 1011.94, 0.00, 0.00, 90.00);
ketsat4 = CreateDynamicObject(2332, 402.51, 127.18, 1011.94, 0.00, 0.00, 90.00);
ketsat5 = CreateDynamicObject(2332, 402.50, 134.10, 1011.94, 0.00, 0.00, 90.00);
ketsat6 = CreateDynamicObject(2332, 407.14, 134.10, 1011.94, 0.00, 0.00, -90.00);
ketsat7 = CreateDynamicObject(2332, 406.96, 130.72, 1011.94, 0.00, 0.00, -90.00);
ketsat8 = CreateDynamicObject(2332, 406.94, 129.32, 1011.94, 0.00, 0.00, -90.00);
ketsat9 = CreateDynamicObject(2332, 406.81, 127.63, 1011.94, 0.00, 0.00, -90.00);
ketsat10 = CreateDynamicObject(2332, 407.03, 132.45, 1011.94, 0.00, 0.00, -90.00);
khoasat = CreateDynamicObject(2634, 405.14, 136.20, 1012.73, 0.00, 0.00, 0.00);
khoasat1 = CreateDynamicObject(2634, 408.21, 139.21, 995.05, 0.00, 0.00, 90.00);
}
// Bank robbery end
public OnGameModeInit() {
RobStatus[BeingRobbed] = 0;
RobStatus[RobberID1] = 255;
RobStatus[RobberID2] = 255;
RobStatus[RobberID3] = 255;
RobStatus[RobberID4] = 255;
RobStatus[RobberID5] = 255;
RobStatus[Setup] = 0;
RobStatus[DaCuop] = 0;
}
public OnPlayerPressButton(playerid, buttonid)
{
if(buttonid == FBILobbyLeftBTN[0] || buttonid == FBILobbyLeftBTN[1])
{
if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
MoveDynamicObject(FBILobbyLeft,293.93002319,-1498.43457031,-46.13965225,4);
SetTimer("CloseFBILobbyLeft", 2500, 0);
}
else
{
SendClientMessageEx(playerid,COLOR_GREY,"Truy nhap bi tu choi.");
return 1;
}
}
if(buttonid == FBILobbyRightBTN[0] || buttonid == FBILobbyRightBTN[1])
{
if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
MoveDynamicObject(FBILobbyRight,303.84756470,-1521.62988281,-46.13965225,4);
SetTimer("CloseFBILobbyRight", 2500, 0);
}
else
{
SendClientMessageEx(playerid,COLOR_GREY,"Truy nhap bi tu choi.");
return 1;
}
}
if(buttonid == FBIPrivateBTN[0] || buttonid == FBIPrivateBTN[1])
{
if((PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2) && PlayerInfo[playerid][pRank] >= 5)
{
MoveDynamicObject(FBIPrivate[0],299.29986572,-1491.75842285,-28.73300552,4);
MoveDynamicObject(FBIPrivate[1],299.33737183,-1496.86145020,-28.73300552,4);
SetTimer("CloseFBIPrivate", 2500, 0);
}
else
{
SendClientMessageEx(playerid,COLOR_GREY,"Truy nhap bi tu choi.");
return 1;
}
}
if(buttonid == SANewsStudio)
{
if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9 || IsACop(playerid))
{
MoveDynamicObject(SANewsStudioA,625.60937500,-9.80000019,1106.96081543,4);
MoveDynamicObject(SANewsStudioB,625.64941406,-14.77000046,1106.96081543,4);
SetTimer("CloseSANewsStudio", 2500, 0);
}
else
{
SendClientMessageEx(playerid,COLOR_GREY,"Truy nhap bi tu choi.");
return 1;
}
}
if(buttonid == SANewsPrivate)
{
if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9 || IsACop(playerid))
{
MoveDynamicObject(SANewsPrivateA,625.60937500,0.55 000001,1106.96081543,4);
MoveDynamicObject(SANewsPrivateB,625.65002441,-4.54999995,1106.96081543,4);
SetTimer("CloseSANewsPrivate", 2500, 0);
}
else
{
SendClientMessageEx(playerid,COLOR_GREY,"Truy nhap bi tu choi.");
return 1;
}
}
if(buttonid == SANewsPrivateOPP)
{
if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9 || IsACop(playerid))
{
MoveDynamicObject(SANewsPrivateA,625.60937500,0.55 000001,1106.96081543,4);
MoveDynamicObject(SANewsPrivateB,625.65002441,-4.54999995,1106.96081543,4);
SetTimer("CloseSANewsPrivate", 2500, 0);
}
else
{
SendClientMessageEx(playerid,COLOR_GREY,"Truy nhap bi tu choi.");
return 1;
}
}
if(buttonid == SANewsOffice)
{
if(((PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) && (PlayerInfo[playerid][pRank] >=5 || PlayerInfo[playerid][pDivision] == 4) ) || IsACop(playerid))
{
MoveDynamicObject(SANewsOfficeA,613.66998291,17.82 812500,1106.98425293,4);
MoveDynamicObject(SANewsOfficeB,618.69000244,17.86 899948,1106.98425293,4);
SetTimer("CloseSANewsOffice", 2500, 0);
}
else
{
SendClientMessageEx(playerid,COLOR_GREY,"Truy nhap bi tu choi.");
return 1;
}
}
if(buttonid == sasdbtn1)
{
if((PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7) && PlayerInfo[playerid][pRank] >= 5)
{
MoveDynamicObject(sasd1A,2510.65332031,-1697.00976562,561.79223633,4);
MoveDynamicObject(sasd1B,2515.67211914,-1696.97485352,561.79223633,4);
SetTimer("CloseSASD1", 2500, 0);
}
else
{
SendClientMessageEx(playerid,COLOR_GREY,"Truy nhap bi tu choi.");
return 1;
}
}
if(buttonid == sasdbtn2)
{
if((PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7) && PlayerInfo[playerid][pRank] >= 3)
{
MoveDynamicObject(sasd5A,2523.86059570,-1660.07177734,561.80206299,4);
MoveDynamicObject(sasd5B,2518.84228516,-1660.10888672,561.80004883,4);
//2522.86059570,-1660.07177734,561.80206299
//2519.84228516,-1660.10888672,561.80004883
SetTimer("CloseSASD5", 2500, 0);
}
else
{
SendClientMessageEx(playerid,COLOR_GREY,"Truy nhap bi tu choi.");
return 1;
}
}
if(buttonid == sasdbtn3)
{
if((PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7) && PlayerInfo[playerid][pRank] >= 5)
{
MoveDynamicObject(sasd3A,2521.15600586,-1697.01550293,561.79223633,4);
MoveDynamicObject(sasd3B,2526.15893555,-1696.98010254,561.79223633,4);
SetTimer("CloseSASD3", 2500, 0);
}
else
{
SendClientMessageEx(playerid,COLOR_GREY,"Truy nhap bi tu choi.");
return 1;
}
}
if(buttonid == sasdbtn4)
{
if( (PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7) && PlayerInfo[playerid][pRank] >= 5)
{
MoveDynamicObject(sasd2A,2515.87548828,-1697.01525879,561.79223633,4);
MoveDynamicObject(sasd2B,2520.89257812,-1696.97509766,561.79223633,4);
SetTimer("CloseSASD2", 2500, 0);
}
else
{
SendClientMessageEx(playerid,COLOR_GREY,"Truy nhap bi tu choi.");
return 1;
}
}
if(buttonid == sasdbtn5)
{
if((PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7) && PlayerInfo[playerid][pRank] >= 3)
{
MoveDynamicObject(sasd4A,2510.84130859,-1660.08081055,561.79528809,4);
MoveDynamicObject(sasd4B,2515.81982422,-1660.04650879,561.80004883,4);
SetTimer("CloseSASD4", 2500, 0);
}
else
{
SendClientMessageEx(playerid,COLOR_GREY,"Truy nhap bi tu choi.");
return 1;
}
}
if(buttonid == nooseenter[0] || buttonid == nooseenter[1])
{
if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
{
MoveDynamicObject(entrancedoor,-766.27539062,2536.58691406,10023,2);
SetTimer("CloseEntranceDoor", 5000,0);
}
else
{
SendClientMessageEx(playerid,COLOR_GREY,"Truy nhap bi tu choi.");
return 1;
}
}
if(buttonid == radarroom[0] || buttonid == radarroom[1])
{
if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
{
MoveDynamicObject(blastdoor[1],-746.02636719,2535.19433594,10025,2);
SetTimer("CloseBlastDoor2", 5000, 0);
}
else
{
SendClientMessageEx(playerid,COLOR_GREY,"Truy nhap bi tu choi.");
return 1;
}
}
if(buttonid == intergate[0] || buttonid == intergate[1])
{
if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
{
MoveDynamicObject(blastdoor[2],-765.26171875,2552.31347656,10025,2);
SetTimer("CloseBlastDoor3", 5000, 0);
}
else
{
SendClientMessageEx(playerid,COLOR_GREY,"Truy nhap bi tu choi.");
return 1;
}
}
if(buttonid == intergate[2])
{
if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
{
MoveDynamicObject(cage,-773.52050781,2545.62109375,10025,2);
SetTimer("CloseCage", 5000, 0);
}
else
{
SendClientMessageEx(playerid,COLOR_GREY,"Truy nhap bi tu choi.");
return 1;
}
}
if(buttonid == ncontrolroom[0] || buttonid == ncontrolroom[1])
{
if(PlayerInfo[playerid][pMember] == 13 && PlayerInfo[playerid][pRank] >= 5)
{
if(ncontrolroomopened == 1)
{
MoveDynamicObject(ncontrolroomobjects[0],-760.61718750,2544.21679688,10024.92480469,2);
MoveDynamicObject(ncontrolroomobjects[1],-759.52246094,2560.88574219,10024.79785156,2);
MoveDynamicObject(ncontrolroomobjects[2],-755.53906250,2538.61035156,10025.02636719,2);
ncontrolroomopened = 0;
}
else if(ncontrolroomopened == 0)
{
MoveDynamicObject(ncontrolroomobjects[0],-760.61718750,2544.21679688,10020.92480469,2);
MoveDynamicObject(ncontrolroomobjects[1],-759.52246094,2560.88574219,10020.79785156,2);
MoveDynamicObject(ncontrolroomobjects[2],-755.53906250,2538.61035156,10021.02636719,2);
ncontrolroomopened = 1;
}
}
else
{
SendClientMessageEx(playerid,COLOR_GREY,"Truy nhap bi tu choi.");
return 1;
}
}
if(buttonid == bottomroom[0] || buttonid == bottomroom[1])
{
if(PlayerInfo[playerid][pMember] == 13 || PlayerInfo[playerid][pLeader] == 13)
{
MoveDynamicObject(blastdoor[0],-764.11816406,2568.81445312,10025.05566406,2);
SetTimer("CloseBlastDoor", 5000, 0);
}
else
{
SendClientMessageEx(playerid,COLOR_GREY,"Truy nhap bi tu choi.");
return 1;
}
}
if(buttonid == courtbuttons[0])
{
if(PlayerInfo[playerid][pLeader] != 3 && PlayerInfo[playerid][pMember] != 3 && PlayerInfo[playerid][pLeader] != 5 && PlayerInfo[playerid][pMember] != 5)
{
SendClientMessageEx(playerid,COLOR_GREY,"Truy nhap bi tu choi.");
return 1;
}
MoveDynamicObject(courtgates[1],2138.00292969,1290.96386719-10,7698.24169922,4);
SetTimer("CloseCourtGate2", 5000, 0);
}
if(buttonid == courtbuttons[3])
{
if(PlayerInfo[playerid][pLeader] != 3 && PlayerInfo[playerid][pMember] != 3 && PlayerInfo[playerid][pLeader] != 5 && PlayerInfo[playerid][pMember] != 5)
{
SendClientMessageEx(playerid,COLOR_GREY,"Truy nhap bi tu choi.");
return 1;
}
MoveDynamicObject(courtgates[1],2138.00292969,1290.96386719-10,7698.24169922,4);
SetTimer("CloseCourtGate2", 5000, 0);
}
if(buttonid == courtbuttons[1])
{
if(PlayerInfo[playerid][pLeader] != 3 && PlayerInfo[playerid][pMember] != 3 && PlayerInfo[playerid][pLeader] != 5 && PlayerInfo[playerid][pMember] != 5)
{
SendClientMessageEx(playerid,COLOR_GREY,"Truy nhap bi tu choi.");
return 1;
}
MoveDynamicObject(courtgates[0],2138.00000000,1316.72106934+10,7698.23632812,4);
SetTimer("CloseCourtGate1", 5000, 0);
}
if(buttonid == courtbuttons[2])
{
if(PlayerInfo[playerid][pLeader] != 3 && PlayerInfo[playerid][pMember] != 3 && PlayerInfo[playerid][pLeader] != 5 && PlayerInfo[playerid][pMember] != 5)
{
SendClientMessageEx(playerid,COLOR_GREY,"Truy nhap bi tu choi.");
return 1;
}
MoveDynamicObject(courtgates[0],2138.00000000,1316.72106934+10,7698.23632812,4);
SetTimer("CloseCourtGate1", 5000, 0);
}
if(buttonid == westout)
{
if(!IsACop(playerid))
{
SendClientMessageEx(playerid,COLOR_GREY,"Truy nhap bi tu choi.");
return 1;
}
MoveDynamicObject(westlobby1,239.71582031,115.0917 9688,1002.21502686,4);
MoveDynamicObject(westlobby2,239.67968750,120.0996 0938,1002.21502686,4);
SetTimer("CloseWestLobby", 2500, 0);
}
if(buttonid == eastout)
{
if(!IsACop(playerid))
{
SendClientMessageEx(playerid,COLOR_GREY,"Truy nhap bi tu choi.");
return 1;
}
MoveDynamicObject(eastlobby1,253.14941406,111.5996 0938,1002.21502686,4);
MoveDynamicObject(eastlobby2,253.18457031,106.5996 0938,1002.21502686,4);
SetTimer("CloseEastLobby", 2500, 0);
}
if(buttonid == lockerin || buttonid == lockerout)
{
if(!IsACop(playerid))
{
SendClientMessageEx(playerid,COLOR_GREY,"Truy nhap bi tu choi.");
return 1;
}
MoveDynamicObject(locker1,268.29980469,112.5664062 5,1003.61718750,4);
MoveDynamicObject(locker2,263.29980469,112.5292968 8,1003.61718750,4);
SetTimer("CloseLocker", 2500, 0);
}
if(buttonid == cctvin || buttonid == cctvout)
{
if(!IsACop(playerid))
{
SendClientMessageEx(playerid,COLOR_GREY,"Truy nhap bi tu choi.");
return 1;
}
MoveDynamicObject(cctv1,263.44921875,115.79980469, 1003.61718750,4);
MoveDynamicObject(cctv2,268.46875000,115.83691406, 1003.61718750,4);
SetTimer("CloseCCTV", 2500, 0);
}
if(buttonid == chiefin || buttonid == chiefout)
{
if((PlayerInfo[playerid][pRank] < 6 && PlayerInfo[playerid][pMember] == 1) || PlayerInfo[playerid][pMember] != 1)
{
SendClientMessageEx(playerid,COLOR_GREY,"Truy nhap bi tu choi.");
return 1;
}
MoveDynamicObject(chief1,228.0,119.50000000,1009.2 1875000,4);
MoveDynamicObject(chief2,230.0,119.53515625,1009.2 1875000,4);
SetTimer("CloseChief", 2500, 0);
}
if(buttonid == elevator)
{
if(!IsACop(playerid))
{
SendClientMessageEx(playerid,COLOR_GREY,"Truy nhap bi tu choi.");
return 1;
}
else ShowPlayerDialog( playerid, ELEVATOR3, DIALOG_STYLE_LIST, "Elevator", "Rooftop\nGarage", "Lua chon", "Tu choi");
}
if(buttonid == garagekey)
{
if(!IsACop(playerid))
{
SendClientMessageEx(playerid,COLOR_GREY,"Truy nhap bi tu choi.");
return 1;
}
else ShowPlayerDialog( playerid, ELEVATOR2, DIALOG_STYLE_LIST, "Elevator", "Rooftop\nInterior", "Lua chon", "Tu choi");
}
if(buttonid == roofkey)
{
if(!IsACop(playerid))
{
SendClientMessageEx(playerid,COLOR_GREY,"Truy nhap bi tu choi.");
return 1;
}
else ShowPlayerDialog( playerid, ELEVATOR, DIALOG_STYLE_LIST, "Elevator", "Interior\nGarage", "Lua chon", "Tu choi");
}
if(buttonid == westin)
{
MoveDynamicObject(westlobby1,239.71582031,115.0917 9688,1002.21502686,4);
MoveDynamicObject(westlobby2,239.67968750,120.0996 0938,1002.21502686,4);
SetTimer("CloseWestLobby", 2500, 0);
}
if(buttonid == eastin)
{
MoveDynamicObject(eastlobby1,253.14941406,111.5996 0938,1002.21502686,4);
MoveDynamicObject(eastlobby2,253.18457031,106.5996 0938,1002.21502686,4);
SetTimer("CloseEastLobby", 2500, 0);
}
if (buttonid == ngeveryone)
{
if (NGCellStatus == 0)
{
MoveDynamicObject(NGGate1, -292.82714844,1872.89453125,30.15856934, 4.5000);
NGCellStatus=1;
}
else
{
MoveDynamicObject(NGGate1, -292.82714844,1872.89453125,25.90857315, 4.5000);
NGCellStatus=0;
}
}
if (buttonid == PrisonButtons[0] || buttonid == PrisonButtons[1] || buttonid == PrisonButtons[2] || buttonid == PrisonButtons[3] || buttonid == PrisonButtons[4])
{
if (PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pMember] == 11)
{
ShowPlayerDialog(playerid, PANEL, DIALOG_STYLE_LIST, "Easter Basin Correctional Facility Controls", "Mo khoa All\r\nKhoa cua tu\r\nKhan cap", "Chon", "Tu choi");
}
else return SendClientMessageEx(playerid, COLOR_GREY, "Ban khong duoc phep su dung bang dieu khien.");
}
if (buttonid == SFPDButton[0] || buttonid == SFPDButton[3])
{
if(IsACop(playerid))
{
MoveDynamicObject(SFPDObject[0], -1636.02539062, 700.0, 19994.54101562, 2.5);
SetTimer("SFPD", 3000, 0);
}
else
{
SendClientMessageEx(playerid, COLOR_GREY, "Truy nhap bi tu choi.");
}
}
if (buttonid == SFPDButton[1] || buttonid == SFPDButton[2])
{
if(IsACop(playerid))
{
MoveDynamicObject(SFPDObject[1], -1635.99414062,698,19994.55078125, 2.5);
SetTimer("SFPD1", 3000, 0);
}
else
{
SendClientMessageEx(playerid, COLOR_GREY, "Truy nhap bi tu choi.");
}
}
if (buttonid == SFPDButton[4] || buttonid == SFPDButton[5])
{
if(IsACop(playerid))
{
MoveDynamicObject(SFPDObject[2], -1623.8,712.56250000,19994.85937500, 2.5);
SetTimer("SFPD2", 3000, 0);
}
else
{
SendClientMessageEx(playerid, COLOR_GREY, "Truy nhap bi tu choi.");
}
}
if (buttonid == SFPDButton[6] || buttonid == SFPDButton[7])
{
if(IsACop(playerid))
{
MoveDynamicObject(SFPDObject[3], -1613.92871094,679.6,19989.05468750, 2.5);
SetTimer("SFPD3", 3000, 0);
}
else
{
SendClientMessageEx(playerid, COLOR_GREY, "Truy nhap bi tu choi.");
}
}
if (buttonid == SFPDButton[8] || buttonid == SFPDButton[9])
{
if(IsACop(playerid))
{
MoveDynamicObject(SFPDObject[4], -1636.0,712.56250000,19994.85937500, 2.5);
SetTimer("SFPD4", 3000, 0);
}
else
{
SendClientMessageEx(playerid, COLOR_GREY, "Truy nhap bi tu choi.");
}
}
//Bank robbery
if(buttonid == laytien )
{
if(IsACop(playerid))
{
// SetTimer("CloseKhoaSat", 25000, 0);
SendClientMessageEx(playerid,COLOR_GREY,"Ban la nguoi cua chinh phu nen khong the cuop.");
return 1;
}
else
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pLevel] < 3)
{
SendClientMessage(playerid, COLOR_GREY, "Ban can level 4 de cuop nha bank!");
return 1;
}
if (BankRobbed != 0)
{
return Error(playerid, "** Ngan hang da bi cuop cach day 2 tieng. Hay quay lai sau");
}
if(RobStatus[BeingRobbed] == 1)
{
SendClientMessage(playerid, COLOR_GREY, "Ai do dang cuop bank!");
return 1;
}
if(RobStatus[DaCuop] != 0)
{
SendClientMessage(playerid, COLOR_GREY, "Ngan hang vua bi cuop!");
return 1;
}
if(PlayerInfo[playerid][pWantedLevel] >= 1)
{
SendClientMessage(playerid, COLOR_GREY, " Ban can phai khong co toi de thuc hien vu cuop !");
return 1;
}
new robhour;
gettime(robhour);
robhour = shifthour;
if(robhour >= 21)
{
SendClientMessage(playerid, COLOR_GREY, "Qua 21h nen khong the cuop bank!");
return 1;
}
if(IsACop(playerid))
{
SendClientMessage(playerid, COLOR_GREY, "Ban dang lam viec nha nuoc,ban khong the cuop bank!");
return 1;
}
new weap2 = GetPlayerWeapon(playerid);
if(weap2 > 24 && weap2 != 36)
{
new masocua;
masocua = random(10000);
new szKey[6];
new result;
if (GetPVarInt(playerid, "firsttime") != 0)
{
masocua = GetPVarInt(playerid, "masocua");
valstr(szKey, masocua);
result = ShowPlayerKeypad(playerid, 1, szKey);
SetPVarInt(playerid, "masocua", masocua);
}
else
{
valstr(szKey, masocua);
result = ShowPlayerKeypad(playerid, 1, szKey);
SetPVarInt(playerid, "masocua", masocua);
SetPVarInt(playerid, "firsttime", 1);
}
if(result == CREATEKEYPAD_RETURN_INVALID_ID) return SendClientMessage(playerid, COLOR_RED, "Invalid keypad ID passed to CreateKeypad().");
if(result == CREATEKEYPAD_RETURN_NUM) return SendClientMessage(playerid, COLOR_RED, "Invalid keypad string (non-numerical) passed to CreateKeypad().");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Ban can vu khi nguy hiem hon de cuop bank!");
return 1;
}
}
}
return 1;
}
return false;
}
public OnPlayerKeypadInput(playerid, keypadID, type, key) // 'key' contains the number that has already been entered in it's entirety
{
if(keypadID == 1 && type == KEYPAD_INPUT_GOOD)
{
MoveDynamicObject(khoasat1,408.21, 139.21, 998.25,4);
// SetTimer("CloseKhoaSat", 25000, 0);
new str[128];
GameTextForPlayer(playerid, "~G~ Chinh xac, lay tien thoi", 3000, 3);
format(str, sizeof(str), "** %s da mo? khoa thanh cong, hay mau dat. boom de pha' ket sat", GetPlayerNameEx(playerid));//o day
ProxDetector(30.0, playerid, str, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
SetTimer("hetthoigianrobbank",900000,false);
RobStatus[RobberID1] = playerid;
PlayerInfo[playerid][Robbing] = 1;
failed_attempts = 0; // Reset failed attempts
DeletePVar(playerid, "masocua");
DeletePVar(playerid, "firsttime");
RobStatus[Setup] = 1;
playertextid1 = Create3DTextLabel("Hay mau den day dat bomb :\nGo~ /plantc4", 0x008080FF, 405.1697, 136.7023, 1011.4355, 20.0, 0, 0);
}
else if(keypadID == 1 && type == KEYPAD_INPUT_BAD)
{
new string[128];
if(key > GetPVarInt(playerid, "masocua"))
{
GameTextForPlayer(playerid, "~R~Ma so' be' hon", 3000, 3);
}
else
{
GameTextForPlayer(playerid, "~R~Ma so' lon' hon", 3000, 3);
}
failed_attempts++;
if(failed_attempts == 10)
{
SendClientMessage(playerid,COLOR_YELLOW2, "** Luu y : Chuong bao dong da duoc mo? vi ban nhap sai nhieu lan");
SendClientMessage(playerid,COLOR_YELLOW2, "** Canh sat dang tren duong den, hay~ khan truong !");
format(string, sizeof(string), "** %s da co gang mo khoa nhung sai qua nhieu, he thong bao' dong. da mo?, canh sat dang den", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
SendAudioURLToRange("http://media.ringring.vn/ringtone/realtone/0/0/33/34466.mp3",405.1392, 136.1574, 1016.4901,1000000000);
SetTimer("StopAudioRobbank", 20000, false); //900000
}
if(failed_attempts == 15)
{
SendClientMessage(playerid,COLOR_YELLOW2, "** Luu y : Chuong bao dong da duoc mo? vi ban nhap sai nhieu lan");
SendClientMessage(playerid,COLOR_YELLOW2, "** Canh sat dang tren duong den, hay~ khan truong !");
format(string, sizeof(string), "** %s da co gang mo khoa nhung sai qua nhieu, he thong bao' dong. da mo?, canh sat dang den", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
SendAudioURLToRange("http://media.ringring.vn/ringtone/realtone/0/0/33/34466.mp3",405.1392, 136.1574, 1016.4901,1000000000);
SetTimer("StopAudioRobbank", 20000, false); //900000
}
if(failed_attempts == 20)
{
SendClientMessage(playerid,COLOR_YELLOW2, "** Luu y : Chuong bao dong da duoc mo? vi ban nhap sai nhieu lan");
SendClientMessage(playerid,COLOR_YELLOW2, "** Canh sat dang tren duong den, hay~ khan truong !");
format(string, sizeof(string), "** %s da co gang mo khoa nhung sai qua nhieu, he thong bao' dong. da mo?, canh sat dang den", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
SendAudioURLToRange("http://media.ringring.vn/ringtone/realtone/0/0/33/34466.mp3",405.1392, 136.1574, 1016.4901,1000000000);
SetTimer("StopAudioRobbank", 20000, false); //900000
}
if(failed_attempts == 25)
{
SendClientMessage(playerid,COLOR_YELLOW2, "** Luu y : Chuong bao dong da duoc mo? vi ban nhap sai nhieu lan");
SendClientMessage(playerid,COLOR_YELLOW2, "** Canh sat dang tren duong den, hay~ khan truong !");
format(string, sizeof(string), "** %s da co gang mo khoa nhung sai qua nhieu, he thong bao' dong. da mo?, canh sat dang den", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
SendAudioURLToRange("http://media.ringring.vn/ringtone/realtone/0/0/33/34466.mp3",405.1392, 136.1574, 1016.4901,1000000000);
SetTimer("StopAudioRobbank", 20000, false); //900000
}
if(failed_attempts == 30)
{
SendClientMessage(playerid,COLOR_YELLOW2, "** Luu y : Chuong bao dong da duoc mo? vi ban nhap sai nhieu lan");
SendClientMessage(playerid,COLOR_YELLOW2, "** Canh sat dang tren duong den, hay~ khan truong !");
format(string, sizeof(string), "** %s da co gang mo khoa nhung sai qua nhieu, he thong bao' dong. da mo?, canh sat dang den", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
SendAudioURLToRange("http://media.ringring.vn/ringtone/realtone/0/0/33/34466.mp3",405.1392, 136.1574, 1016.4901,1000000000);
SetTimer("StopAudioRobbank", 20000, false); //900000
}
if(failed_attempts == 35)
{
SendClientMessage(playerid,COLOR_YELLOW2, "** Luu y : Chuong bao dong da duoc mo? vi ban nhap sai nhieu lan");
SendClientMessage(playerid,COLOR_YELLOW2, "** Canh sat dang tren duong den, hay~ khan truong !");
format(string, sizeof(string), "** %s da co gang mo khoa nhung sai qua nhieu, he thong bao' dong. da mo?, canh sat dang den", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
SendAudioURLToRange("http://media.ringring.vn/ringtone/realtone/0/0/33/34466.mp3",405.1392, 136.1574, 1016.4901,1000000000);
SetTimer("StopAudioRobbank", 20000, false); //900000
}
if(failed_attempts == 40)
{
SendClientMessage(playerid,COLOR_YELLOW2, "** Luu y : Chuong bao dong da duoc mo? vi ban nhap sai nhieu lan");
SendClientMessage(playerid,COLOR_YELLOW2, "** Canh sat dang tren duong den, hay~ khan truong !");
format(string, sizeof(string), "** %s da co gang mo khoa nhung sai qua nhieu, he thong bao' dong. da mo?, canh sat dang den", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
SendAudioURLToRange("http://media.ringring.vn/ringtone/realtone/0/0/33/34466.mp3",405.1392, 136.1574, 1016.4901,1000000000);
SetTimer("StopAudioRobbank", 20000, false); //900000
}
if(failed_attempts == 45)
{
SendClientMessage(playerid,COLOR_YELLOW2, "** Luu y : Chuong bao dong da duoc mo? vi ban nhap sai nhieu lan");
SendClientMessage(playerid,COLOR_YELLOW2, "** Canh sat dang tren duong den, hay~ khan truong !");
format(string, sizeof(string), "** %s da co gang mo khoa nhung sai qua nhieu, he thong bao' dong. da mo?, canh sat dang den", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
SendAudioURLToRange("http://media.ringring.vn/ringtone/realtone/0/0/33/34466.mp3",405.1392, 136.1574, 1016.4901,1000000000);
SetTimer("StopAudioRobbank", 20000, false); //900000
}
if(failed_attempts == 50)
{
SendClientMessage(playerid,COLOR_YELLOW2, "** Luu y : Chuong bao dong da duoc mo? vi ban nhap sai nhieu lan");
SendClientMessage(playerid,COLOR_YELLOW2, "** Canh sat dang tren duong den, hay~ khan truong !");
format(string, sizeof(string), "** %s da co gang mo khoa nhung sai qua nhieu, he thong bao' dong. da mo?, canh sat dang den", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
SendAudioURLToRange("http://media.ringring.vn/ringtone/realtone/0/0/33/34466.mp3",405.1392, 136.1574, 1016.4901,1000000000);
SetTimer("StopAudioRobbank", 20000, false); //900000
}
if(failed_attempts == 55)
{
SendClientMessage(playerid,COLOR_YELLOW2, "** Luu y : Chuong bao dong da duoc mo? vi ban nhap sai nhieu lan");
SendClientMessage(playerid,COLOR_YELLOW2, "** Canh sat dang tren duong den, hay~ khan truong !");
format(string, sizeof(string), "** %s da co gang mo khoa nhung sai qua nhieu, he thong bao' dong. da mo?, canh sat dang den", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
SendAudioURLToRange("http://media.ringring.vn/ringtone/realtone/0/0/33/34466.mp3",405.1392, 136.1574, 1016.4901,1000000000);
SetTimer("StopAudioRobbank", 20000, false); //900000
}
if(failed_attempts == 60)
{
SendClientMessage(playerid,COLOR_YELLOW2, "** Luu y : Chuong bao dong da duoc mo? vi ban nhap sai nhieu lan");
SendClientMessage(playerid,COLOR_YELLOW2, "** Canh sat dang tren duong den, hay~ khan truong !");
format(string, sizeof(string), "** %s da co gang mo khoa nhung sai qua nhieu, he thong bao' dong. da mo?, canh sat dang den", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
SendAudioURLToRange("http://media.ringring.vn/ringtone/realtone/0/0/33/34466.mp3",405.1392, 136.1574, 1016.4901,1000000000);
SetTimer("StopAudioRobbank", 20000, false); //900000
}
if(failed_attempts == 65)
{
SendClientMessage(playerid,COLOR_YELLOW2, "** Luu y : Chuong bao dong da duoc mo? vi ban nhap sai nhieu lan");
SendClientMessage(playerid,COLOR_YELLOW2, "** Canh sat dang tren duong den, hay~ khan truong !");
format(string, sizeof(string), "** %s da co gang mo khoa nhung sai qua nhieu, he thong bao' dong. da mo?, canh sat dang den", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
SendAudioURLToRange("http://media.ringring.vn/ringtone/realtone/0/0/33/34466.mp3",405.1392, 136.1574, 1016.4901,1000000000);
SetTimer("StopAudioRobbank", 20000, false); //900000
}
if(failed_attempts == 70)
{
SendClientMessage(playerid,COLOR_YELLOW2, "** Luu y : Chuong bao dong da duoc mo? vi ban nhap sai nhieu lan");
SendClientMessage(playerid,COLOR_YELLOW2, "** Canh sat dang tren duong den, hay~ khan truong !");
format(string, sizeof(string), "** %s da co gang mo khoa nhung sai qua nhieu, he thong bao' dong. da mo?, canh sat dang den", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
SendAudioURLToRange("http://media.ringring.vn/ringtone/realtone/0/0/33/34466.mp3",405.1392, 136.1574, 1016.4901,1000000000);
SetTimer("StopAudioRobbank", 20000, false); //900000
}
if(failed_attempts == 75)
{
SendClientMessage(playerid,COLOR_YELLOW2, "** Luu y : Chuong bao dong da duoc mo? vi ban nhap sai nhieu lan");
SendClientMessage(playerid,COLOR_YELLOW2, "** Canh sat dang tren duong den, hay~ khan truong !");
format(string, sizeof(string), "** %s da co gang mo khoa nhung sai qua nhieu, he thong bao' dong. da mo?, canh sat dang den", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
SendAudioURLToRange("http://media.ringring.vn/ringtone/realtone/0/0/33/34466.mp3",405.1392, 136.1574, 1016.4901,1000000000);
SetTimer("StopAudioRobbank", 20000, false); //900000
}
if(failed_attempts == 80)
{
SendClientMessage(playerid,COLOR_YELLOW2, "** Luu y : Chuong bao dong da duoc mo? vi ban nhap sai nhieu lan");
SendClientMessage(playerid,COLOR_YELLOW2, "** Canh sat dang tren duong den, hay~ khan truong !");
format(string, sizeof(string), "** %s da co gang mo khoa nhung sai qua nhieu, he thong bao' dong. da mo?, canh sat dang den", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
SendAudioURLToRange("http://media.ringring.vn/ringtone/realtone/0/0/33/34466.mp3",405.1392, 136.1574, 1016.4901,1000000000);
SetTimer("StopAudioRobbank", 20000, false); //900000
}
if(failed_attempts == 85)
{
SendClientMessage(playerid,COLOR_YELLOW2, "** Luu y : Chuong bao dong da duoc mo? vi ban nhap sai nhieu lan");
SendClientMessage(playerid,COLOR_YELLOW2, "** Canh sat dang tren duong den, hay~ khan truong !");
format(string, sizeof(string), "** %s da co gang mo khoa nhung sai qua nhieu, he thong bao' dong. da mo?, canh sat dang den", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
SendAudioURLToRange("http://media.ringring.vn/ringtone/realtone/0/0/33/34466.mp3",405.1392, 136.1574, 1016.4901,1000000000);
SetTimer("StopAudioRobbank", 20000, false); //900000
}
if(failed_attempts == 90)
{
SendClientMessage(playerid,COLOR_YELLOW2, "** Luu y : Chuong bao dong da duoc mo? vi ban nhap sai nhieu lan");
SendClientMessage(playerid,COLOR_YELLOW2, "** Canh sat dang tren duong den, hay~ khan truong !");
format(string, sizeof(string), "** %s da co gang mo khoa nhung sai qua nhieu, he thong bao' dong. da mo?, canh sat dang den", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
SendAudioURLToRange("http://media.ringring.vn/ringtone/realtone/0/0/33/34466.mp3",405.1392, 136.1574, 1016.4901,1000000000);
SetTimer("StopAudioRobbank", 20000, false); //900000
}
if(failed_attempts == 95)
{
SendClientMessage(playerid,COLOR_YELLOW2, "** Luu y : Chuong bao dong da duoc mo? vi ban nhap sai nhieu lan");
SendClientMessage(playerid,COLOR_YELLOW2, "** Canh sat dang tren duong den, hay~ khan truong !");
format(string, sizeof(string), "** %s da co gang mo khoa nhung sai qua nhieu, he thong bao' dong. da mo?, canh sat dang den", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
SendAudioURLToRange("http://media.ringring.vn/ringtone/realtone/0/0/33/34466.mp3",405.1392, 136.1574, 1016.4901,1000000000);
SetTimer("StopAudioRobbank", 20000, false); //900000
}
if(failed_attempts == 100)
{
SendClientMessage(playerid,COLOR_YELLOW2, "** Luu y : Chuong bao dong da duoc mo? vi ban nhap sai nhieu lan");
SendClientMessage(playerid,COLOR_YELLOW2, "** Canh sat dang tren duong den, hay~ khan truong !");
format(string, sizeof(string), "** %s da co gang mo khoa nhung sai qua nhieu, he thong bao' dong. da mo?, canh sat dang den", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
SendAudioURLToRange("http://media.ringring.vn/ringtone/realtone/0/0/33/34466.mp3",405.1392, 136.1574, 1016.4901,1000000000);
SetTimer("StopAudioRobbank", 20000, false); //900000
}
if(failed_attempts == 105)
{
SendClientMessage(playerid,COLOR_YELLOW2, "** Luu y : Chuong bao dong da duoc mo? vi ban nhap sai nhieu lan");
SendClientMessage(playerid,COLOR_YELLOW2, "** Canh sat dang tren duong den, hay~ khan truong !");
format(string, sizeof(string), "** %s da co gang mo khoa nhung sai qua nhieu, he thong bao' dong. da mo?, canh sat dang den", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
SendAudioURLToRange("http://media.ringring.vn/ringtone/realtone/0/0/33/34466.mp3",405.1392, 136.1574, 1016.4901,1000000000);
SetTimer("StopAudioRobbank", 20000, false); //900000
failed_attempts = 5;
}
}
return 1;
}
// Bank robbery
CreateDynamicObject(1616, 402.19, 135.26, 1014.01, 0.00, 0.00, 171.00);
CreateDynamicObject(13007, 398.31, 142.10, 995.84, 0.00, 0.00, 0.00);
CreateDynamicObject(14596, 408.87, 141.22, 1004.73, 0.00, 0.00, 90.00);
CreateDynamicObject(1505, 404.32, 136.25, 999.83, 0.00, 0.00, 0.00);
CreateDynamicObject(2929, 404.97, 136.24, 1006.62, 0.00, 0.00, 0.00);
CreateDynamicObject(19377, 406.09, 131.38, 1011.36, 0.00, 90.00, 0.00);
CreateDynamicObject(19377, 406.75, 131.27, 1014.36, 0.00, 90.00, 0.00);
CreateDynamicObject(19451, 407.54, 131.47, 1012.58, 0.00, 0.00, 0.00);
CreateDynamicObject(19451, 399.24, 135.52, 1012.62, 0.00, 0.00, 91.00);
CreateDynamicObject(19451, 405.84, 126.82, 1012.44, 0.00, 0.00, 90.00);
CreateDynamicObject(19451, 401.96, 131.52, 1012.62, 0.00, 0.00, 0.00);
CreateDynamicObject(19451, 411.01, 135.67, 1012.62, 0.00, 0.00, 91.00);
CreateObject(19464, 390.85, 150.60, 994.04, 0.00, 0.00, 90.00);
ketsat1 = CreateDynamicObject(2332, 402.52, 132.59, 1011.94, 0.00, 0.00, 90.00);
ketsat2 = CreateDynamicObject(2332, 402.49, 130.95, 1011.94, 0.00, 0.00, 90.00);
ketsat3 = CreateDynamicObject(2332, 402.50, 129.14, 1011.94, 0.00, 0.00, 90.00);
ketsat4 = CreateDynamicObject(2332, 402.51, 127.18, 1011.94, 0.00, 0.00, 90.00);
ketsat5 = CreateDynamicObject(2332, 402.50, 134.10, 1011.94, 0.00, 0.00, 90.00);
ketsat6 = CreateDynamicObject(2332, 407.14, 134.10, 1011.94, 0.00, 0.00, -90.00);
ketsat7 = CreateDynamicObject(2332, 406.96, 130.72, 1011.94, 0.00, 0.00, -90.00);
ketsat8 = CreateDynamicObject(2332, 406.94, 129.32, 1011.94, 0.00, 0.00, -90.00);
ketsat9 = CreateDynamicObject(2332, 406.81, 127.63, 1011.94, 0.00, 0.00, -90.00);
ketsat10 = CreateDynamicObject(2332, 407.03, 132.45, 1011.94, 0.00, 0.00, -90.00);
khoasat = CreateDynamicObject(2634, 405.14, 136.20, 1012.73, 0.00, 0.00, 0.00);
khoasat1 = CreateDynamicObject(2634, 408.21, 139.21, 995.05, 0.00, 0.00, 90.00);
laytien = CreateButton(407.5255, 138.3206, 995.3779, 270);
// Bank robbery end
CMD:moicuopchung(playerid, params[])
{
new giveplayerid;
if(IsPlayerConnected(playerid))
{
if(sscanf(params, "u", giveplayerid)) return SendClientMessageEx(playerid, COLOR_GREY, "Su dung: /moicuopchung [player]");
if(IsPlayerConnected(giveplayerid))
{
if(PlayerInfo[playerid][Robbing] == 1 && RobStatus[RobberID1] == playerid)
{
if(PlayerInfo[giveplayerid][pMember] != 1 || PlayerInfo[giveplayerid][pMember] != 2 || PlayerInfo[giveplayerid][pMember] != 5 || PlayerInfo[giveplayerid][pMember] != 7)
{
if(PlayerInfo[giveplayerid][Robbing] == 0)
{
PlayerInfo[giveplayerid][ROffered] = 1;
PlayerInfo[giveplayerid][ROfferer] = playerid;
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, "** Ban da duoc moi tham gia de tro giup trong vu cuop Ngan hang");
SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, "** Go~ '/chapnhancuop' de tham gia");
SendClientMessage(playerid, COLOR_LIGHTBLUE, "** Loi moi duoc gui");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Nguoi do dang thuc hien vu cuop!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Nguoi do la nhan vien nha nuoc'!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Ban can phai pha khoa truoc khi muon moi mot ai do vao cuop!");
return 1;
}
}
}
return 1;
}
CMD:chapnhancuop(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][ROffered] > 0)
{
if(PlayerInfo[playerid][ROffered] == 1)
{
if(RobStatus[RobberID2] == 255)
{
RobStatus[RobberID2] = playerid;
SendClientMessage(playerid, COLOR_YELLOW, "** Ban da tham gia vao vu cuop ngan hang");
PlayerInfo[playerid][Robbing] = 1;
SendClientMessage(PlayerInfo[playerid][ROfferer], COLOR_YELLOW, "** Bay gio ban da co hai nguoi, Can mot nguoi nua~ de pha' kho tien`");
return 1;
}
else if(RobStatus[RobberID3] == 255)
{
RobStatus[RobberID3] = playerid;
SendClientMessage(playerid, COLOR_YELLOW, "** Ban da tham gia vao vu cuop ngan hang");
PlayerInfo[playerid][Robbing] = 1;
SendClientMessage(PlayerInfo[playerid][ROfferer], COLOR_YELLOW, "** Bay gio ban da co 3 nguoi, ban da co the pha' ket' sat'");
SendClientMessage(PlayerInfo[playerid][ROfferer], COLOR_WHITE, "Hay den gan ket sat va go~ /plantc4'");
return 1;
}
else if(RobStatus[RobberID4] == 255)
{
RobStatus[RobberID4] = playerid;
SendClientMessage(playerid, COLOR_YELLOW, "** Ban da tham gia vao vu cuop ngan hang");
PlayerInfo[playerid][Robbing] = 1;
SendClientMessage(PlayerInfo[playerid][ROfferer], COLOR_YELLOW, "** Bay gio ban da co 4 nguoi, ban da co the pha' ket' sat'");
SendClientMessage(PlayerInfo[playerid][ROfferer], COLOR_WHITE, "HINT: Go /plantc4 o gan` de pha ket' sat'");
return 1;
}
else if(RobStatus[RobberID5] == 255)
{
RobStatus[RobberID5] = playerid;
SendClientMessage(playerid, COLOR_YELLOW, "** Ban da tham gia vao vu cuop ngan hang");
PlayerInfo[playerid][Robbing] = 1;
SendClientMessage(PlayerInfo[playerid][ROfferer], COLOR_YELLOW, "** Bay gio ban da co 5 nguoi, ban da co the pha' ket' sat'");
SendClientMessage(PlayerInfo[playerid][ROfferer], COLOR_WHITE, "HINT: Go /plantc4 o gan` de pha ket' sat'");
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Da co 5 nguoi trong vu cuop nay!");
SendClientMessage(PlayerInfo[playerid][ROfferer], COLOR_WHITE, "HINT: Go /plantc4 o gan` de pha ket' sat'!");
return 1;
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Khong ai moi` ban tham gia cuop ngan hang!");
return 1;
}
}
return 1;
}
CMDlantc4(playerid, params[])
{
if(IsPlayerConnected(playerid))
{
if(IsPlayerConnected(playerid))
{
if(RobStatus[Setup] == 0 && RobStatus[RobberID3] == 255)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "** Ban chi co the dat bom C4 khi thuc hien vu cuop va co 3 nguoi tro len");
return 1;
}
new str[126];
if(RobStatus[Setup] == 1)
{
if(PlayerInfo[playerid][pQuaBom] >= 1)
{
if(IsPlayerInRangeOfPoint(playerid, 3, 405.1697, 136.7023, 1011.4355) && RobStatus[RobberID1] == playerid)
{
GivePlayerWeapon(playerid, 40, 1);
new Float, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
quabombc4 = CreateDynamicObject(1654, x, y, z-0.9, 0, 89.325012207031, 3.9700012207031);
ApplyAnimation(playerid,"BOMBER","BOM_Plant",4.0,0 ,0,0,0,0);
PlantedC4OnVault[playerid] = 1;
PlayerInfo[playerid][pQuaBom]--;
format(str, sizeof(str), "** %s da dat bom C4", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, str, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED, "** Ban khong phai chi huy vu cuop'.ban khong the dat bom");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_LIGHTRED, "** Ban khong co qua bom C4 - Mua no tu Tho thu cong hoac /chetao!");
return 1;
}
}
else
{
return 1;
}
}
}
else
{
return 1;
}
return 1;
}
CMD:laytien(playerid, params[])
{
new str[126];
if(PlayerInfo[playerid][Robbing] == 1)
{
if(IsPlayerInRangeOfPoint(playerid,5.0,404.8637,13 0.9356,1012.4459))
{
if(PlayerInfo[playerid][CashLoading] > 0)
{
format(str, sizeof(str), "** Ban dang gom tien !!! vui long cho : %d giay", PlayerInfo[playerid][CashLoading]);
SendClientMessage(playerid, COLOR_LIGHTRED, str);
return 1;
}
else
{
if(RobStatus[RobberID1] == playerid)
{
PlayerInfo[playerid][CashLoading] = 15;
SetPlayerAttachedObject(playerid, 3, 1550, 1, 0.1, -0.3, 0, 0, 40, 0, 1, 1, 1);
format(str, sizeof(str), "** %s dang bat dau` lay' tien` vao balo...", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, str, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0); // Place Bomb
PlayerInfo[playerid][CashLoaded] += 15000;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "** Dung' cho 15s de? lay' 15000$ 1 lan` vao balo cua ban...");
return 1;
}
if(RobStatus[RobberID2] == playerid)
{
PlayerInfo[playerid][CashLoading] = 15;
SetPlayerAttachedObject(playerid, 3, 1550, 1, 0.1, -0.3, 0, 0, 40, 0, 1, 1, 1);
format(str, sizeof(str), "** %s dang bat dau` lay' tien` vao balo...", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, str, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0); // Place Bomb
PlayerInfo[playerid][CashLoaded] += 15000;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "** Dung' cho 15s de? lay' 15000$ 1 lan` vao balo cua ban...");
return 1;
}
if(RobStatus[RobberID3] == playerid)
{
PlayerInfo[playerid][CashLoading] = 15;
SetPlayerAttachedObject(playerid, 3, 1550, 1, 0.1, -0.3, 0, 0, 40, 0, 1, 1, 1);
format(str, sizeof(str), "** %s dang bat dau` lay' tien` vao balo...", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, str, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0); // Place Bomb
PlayerInfo[playerid][CashLoaded] += 15000;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "** Dung' cho 15s de? lay' 15000$ 1 lan` vao balo cua ban...");
return 1;
}
if(RobStatus[RobberID4] == playerid)
{
PlayerInfo[playerid][CashLoading] = 15;
SetPlayerAttachedObject(playerid, 3, 1550, 1, 0.1, -0.3, 0, 0, 40, 0, 1, 1, 1);
format(str, sizeof(str), "** %s dang bat dau` lay' tien` vao balo...", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, str, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0); // Place Bomb
PlayerInfo[playerid][CashLoaded] += 15000;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "** Dung' cho 15s de? lay' 15000$ 1 lan` vao balo cua ban...");
return 1;
}
if(RobStatus[RobberID5] == playerid)
{
PlayerInfo[playerid][CashLoading] = 15;
SetPlayerAttachedObject(playerid, 3, 1550, 1, 0.1, -0.3, 0, 0, 40, 0, 1, 1, 1);
format(str, sizeof(str), "** %s dang bat dau` lay' tien` vao balo...", GetPlayerNameEx(playerid));
ProxDetector(30.0, playerid, str, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE);
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0); // Place Bomb
PlayerInfo[playerid][CashLoaded] += 15000;
SendClientMessage(playerid, COLOR_LIGHTBLUE, "** Dung' cho 15s de? lay' 15000$ 1 lan` vao balo cua ban...");
return 1;
}
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Ban dang khong dung o khu vuc co tien!");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Ban dang khong cuop ngan hang!");
return 1;
}
return 1;
}
// Bank robbery end
|