24.07.2014, 10:57
Код:
CMD:rob(playerid, params[]) { new dcount; foreach(Player, i) { if(PlayerInfo[i][pDispatchOn] == 1) dcount ++; } if(GetPlayerWeapon(playerid) >= 1) { if(IsPlayerInRangeOfPoint(playerid, 15.0, -25.7616, -139.2528, 1003.5469) && GetPlayerVirtualWorld(playerid) == 1345) { if (PlayerInfo[playerid][pRobTime] != 0) { return Error(playerid, "** You can only rob once every 5 hours, return later"); } if (IsACop(playerid) || IsACop(playerid)) { return Error(playerid, "** You cannot rob the bank as a Law Enforcement Officer"); } if (PlayerInfo[playerid][pLevel] < 2) { return Error(playerid, "** You must be level 3 to rob this place"); } if (StoreRob != 0) { return Error(playerid, "** Store has been robbed in the past 45 minutes, return later"); } if (PlayerInfo[playerid][pRobTime] <= 0 && StoreRob == 0) { new string[128], aseen = Random(1, 5); if (aseen >= 3) { ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 0, 0, 0, 0, 0); // Rob PlayerInfo[playerid][pRobTime] = 300; PlayerInfo[playerid][pRobbingStore] = 30; StoreRob = 1; if(dcount > 0) { new hours, minutes, seconds; gettime(hours, minutes, seconds); new nextslot = GetNextSituationSlot(); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Situation %d has been created at 24/7 by City Hall **", nextslot); SendDispatchMessage(string); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Description of situation: Robbery In Progress **"); SendDispatchMessage(string); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Status of the situation is: Code 3 [%d:%d:%d]**", hours, minutes, seconds); SendDispatchMessage(string); CreateDPSituation(nextslot, 3, "24/7 by City Hall", "Robbery"); } else { foreach(Player, i) { if(PlayerInfo[i][pMember] != 0) { PlayAudioStreamForPlayer(i, "http://*******/forum/sounds/genbroadcast.mp3"); } } format(string, sizeof(string), "** DISPATCH: Silent Alarm Trigged. 24/7 by the City Hall has a robbery in progress. All units respond immediately **"); SendDispatchMessage(string); } format(string,sizeof(string), "* %s points his gun at the clerk and attempts to rob the 24/7.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(aseen == 1 || aseen == 2) { ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 0, 0, 0, 0, 0); // Rob PlayerInfo[playerid][pRobTime] = 300; PlayerInfo[playerid][pRobbingStore] = 30; StoreRob = 1; format(string,sizeof(string), "* %s points his gun at the clerk and attempts to rob the 24/7.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } SetTimerEx("StoreRobbed",1800000,false,"i"); } else { return Error(playerid, "A problem has occured while trying to rob, try again later."); } return 1; } if(IsPlayerInRangeOfPoint(playerid, 15.0, 449.976, 83.651, 999.554) && GetPlayerVirtualWorld(playerid) ==6135) { if (PlayerInfo[playerid][pRobTime] != 0) { SendClientMessage(playerid, COLOR_YELLOW, "** You can only rob once every 5 hours, return later"); return 1; } if (LADonutRob != 0) { return Error(playerid, "** The donut shop has been robbed in the past 45 minutes, return later"); } if (PlayerInfo[playerid][pRobTime] <= 0 && LADonutRob == 0) { new string[128], aseen = Random(1, 5); if (aseen >= 3) { ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 0, 0, 0, 0, 0); // Rob PlayerInfo[playerid][pRobTime] = 300; PlayerInfo[playerid][pRobbingLADonut] = 80; LADonutRob = 1; if(dcount > 0) { new hours, minutes, seconds; gettime(hours, minutes, seconds); new nextslot = GetNextSituationSlot(); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Situation %d has been created at Donut Shop West LA **", nextslot); SendDispatchMessage(string); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Description of situation: Robbery In Progress **"); SendDispatchMessage(string); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Status of the situation is: Code 3 [%d:%d:%d]**", hours, minutes, seconds); SendDispatchMessage(string); CreateDPSituation(nextslot, 3, "Donut Shop in West LA", "Robbery"); } else { foreach(Player, i) { if(PlayerInfo[i][pMember] != 0) { PlayAudioStreamForPlayer(i, "http://*******/forum/sounds/genbroadcast.mp3"); } } format(string, sizeof(string), "** DISPATCH: Silent Alarm Trigged. The Donut Shop in West LA has a robbery in progress. LAPD please respond **"); SendDispatchMessage(string); } format(string,sizeof(string), "* %s points his gun at the clerk and attempts to rob the register.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(aseen == 1 || aseen == 2) { ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 0, 0, 0, 0, 0); // Rob PlayerInfo[playerid][pRobTime] = 300; PlayerInfo[playerid][pRobbingLADonut] = 80; LADonutRob = 1; format(string,sizeof(string), "* %s points his gun at the clerk and attempts to rob the register.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } SetTimerEx("LADonutRobbed",1800000,false,"i"); } else { return Error(playerid, "A problem has occured while trying to rob, try again later."); } return 1; } if(IsPlayerInRangeOfPoint(playerid, 15.0, -103.728, 22.675, 1000.718) && GetPlayerVirtualWorld(playerid) ==6005) { if (PlayerInfo[playerid][pRobTime] != 0) { SendClientMessage(playerid, COLOR_YELLOW, "** You can only rob once every 5 hours, return later"); return 1; } if (LARecordRob != 0) { return Error(playerid, "** The record store has been robbed in the past 45 minutes, return later"); } if (PlayerInfo[playerid][pRobTime] <= 0 && LARecordRob == 0) { new string[128], aseen = Random(1, 5); if (aseen >= 3) { ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 0, 0, 0, 0, 0); // Rob PlayerInfo[playerid][pRobTime] = 300; PlayerInfo[playerid][pRobbingLARecord] = 80; LARecordRob = 1; if(dcount > 0) { new hours, minutes, seconds; gettime(hours, minutes, seconds); new nextslot = GetNextSituationSlot(); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Situation %d has been created at Record Store West LA **", nextslot); SendDispatchMessage(string); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Description of situation: Robbery In Progress **"); SendDispatchMessage(string); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Status of the situation is: Code 3 [%d:%d:%d]**", hours, minutes, seconds); SendDispatchMessage(string); CreateDPSituation(nextslot, 3, "Record Store West LA", "Robbery"); } else { foreach(Player, i) { if(PlayerInfo[i][pMember] != 0) { PlayAudioStreamForPlayer(i, "http://*******/forum/sounds/genbroadcast.mp3"); } } format(string, sizeof(string), "** DISPATCH: Silent Alarm Trigged. The Record Store in West LA has a robbery in progress. LAPD please respond **"); SendDispatchMessage(string); } format(string,sizeof(string), "* %s points his gun at the clerk and attempts to rob the register.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(aseen == 1 || aseen == 2) { ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 0, 0, 0, 0, 0); // Rob PlayerInfo[playerid][pRobTime] = 300; PlayerInfo[playerid][pRobbingLARecord] = 80; LARecordRob = 1; format(string,sizeof(string), "* %s points his gun at the clerk and attempts to rob the register.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } SetTimerEx("LARecordRobbed",1800000,false,"i"); } else { return Error(playerid, "A problem has occured while trying to rob, try again later."); } return 1; } if(IsPlayerInRangeOfPoint(playerid, 15.0, 2316.4497, -9.8741, 26.7422) && GetPlayerVirtualWorld(playerid) == 0) { if (PlayerInfo[playerid][pRobTime] != 0) { SendClientMessage(playerid, COLOR_YELLOW, "** You can only rob once every 5 hours, return later"); return 1; } if (PaloBankStoreRob != 0) { return Error(playerid, "** The Bank has been robbed in the past 45 minutes, return later"); } if (PlayerInfo[playerid][pRobTime] <= 0 && PaloBankStoreRob == 0) { new string[128], aseen = Random(1, 5); if (aseen >= 3) { ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 0, 0, 0, 0, 0); // Rob PlayerInfo[playerid][pRobTime] = 300; PlayerInfo[playerid][pRobbingPaloBank] = 80; PaloBankStoreRob = 1; if(dcount > 0) { new hours, minutes, seconds; gettime(hours, minutes, seconds); new nextslot = GetNextSituationSlot(); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Situation %d has been created at the Bank in Palomino **", nextslot); SendDispatchMessage(string); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Description of situation: Robbery In Progress **"); SendDispatchMessage(string); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Status of the situation is: Code 3 [%d:%d:%d]**", hours, minutes, seconds); SendDispatchMessage(string); CreateDPSituation(nextslot, 3, "Bank in Palomino", "Robbery"); } else { foreach(Player, i) { if(PlayerInfo[i][pMember] != 0) { PlayAudioStreamForPlayer(i, "http://*******/forum/sounds/genbroadcast.mp3"); } } format(string, sizeof(string), "** DISPATCH: Silent Alarm Trigged. The Bank in Palomino has a robbery in progress. All units respond immediately **"); SendDispatchMessage(string); } format(string,sizeof(string), "* %s points his gun at the bank clerk and attempts to rob the safe.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(aseen == 1 || aseen == 2) { ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 0, 0, 0, 0, 0); // Rob PlayerInfo[playerid][pRobTime] = 300; PlayerInfo[playerid][pRobbingPaloBank] = 80; PaloBankStoreRob = 1; format(string,sizeof(string), "* %s points his gun at the bank clerk and attempts to rob the safe.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } SetTimerEx("PaloBankStoreRobbed",1800000,false,"i"); } else { return Error(playerid, "A problem has occured while trying to rob, try again later."); } return 1; } if(IsPlayerInRangeOfPoint(playerid, 15.0, 2316.4497, -9.8741, 26.7422) && GetPlayerVirtualWorld(playerid) == 1357) { if (PlayerInfo[playerid][pRobTime] != 0) { SendClientMessage(playerid, COLOR_YELLOW, "** You can only rob once every 5 hours, return later"); return 1; } if (CCBankStoreRob != 0) { return Error(playerid, "** The Bank has been robbed in the past 45 minutes, return later"); } if (PlayerInfo[playerid][pRobTime] <= 0 && CCBankStoreRob == 0) { new string[128], aseen = Random(1, 5); if (aseen >= 3) { ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 0, 0, 0, 0, 0); // Rob PlayerInfo[playerid][pRobTime] = 300; PlayerInfo[playerid][pRobbingCCBank] = 80; CCBankStoreRob = 1; if(dcount > 0) { new hours, minutes, seconds; gettime(hours, minutes, seconds); new nextslot = GetNextSituationSlot(); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Situation %d has been created at The Bank, Las Barrancas, Clark County **", nextslot); SendDispatchMessage(string); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Description of situation: Robbery In Progress **"); SendDispatchMessage(string); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Status of the situation is: Code 3 [%d:%d:%d]**", hours, minutes, seconds); SendDispatchMessage(string); CreateDPSituation(nextslot, 3, "Bank, Las Barancas, Clark County", "Robbery"); } else { foreach(Player, i) { if(PlayerInfo[i][pMember] != 0) { PlayAudioStreamForPlayer(i, "http://*******/forum/sounds/genbroadcast.mp3"); } } format(string, sizeof(string), "** DISPATCH: Silent Alarm Trigged. The Bank in Clark County: Las Barrancas has a robbery in progress. All units respond immediately **"); SendDispatchMessage(string); } format(string,sizeof(string), "* %s points his gun at the bank clerk and attempts to rob the safe.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(aseen == 1 || aseen == 2) { ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 0, 0, 0, 0, 0); // Rob PlayerInfo[playerid][pRobTime] = 300; PlayerInfo[playerid][pRobbingCCBank] = 80; CCBankStoreRob = 1; format(string,sizeof(string), "* %s points his gun at the bank clerk and attempts to rob the safe.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } SetTimerEx("CCBankStoreRobbed",1800000,false,"i"); } else { return Error(playerid, "A problem has occured while trying to rob, try again later."); } return 1; } if(IsPlayerInRangeOfPoint(playerid, 15.0, 2316.4497, -9.8741, 26.7422) && GetPlayerVirtualWorld(playerid) == 1356) { if (PlayerInfo[playerid][pRobTime] != 0) { SendClientMessage(playerid, COLOR_YELLOW, "** You can only rob once every 5 hours, return later"); return 1; } if (FCBankStoreRob != 0) { return Error(playerid, "** The Bank has been robbed in the past 45 minutes, return later"); } if (PlayerInfo[playerid][pRobTime] <= 0 && FCBankStoreRob == 0) { new string[128], aseen = Random(1, 5); if (aseen >= 3) { ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 0, 0, 0, 0, 0); // Rob PlayerInfo[playerid][pRobTime] = 300; PlayerInfo[playerid][pRobbingFCBank] = 80; FCBankStoreRob = 1; if(dcount > 0) { new hours, minutes, seconds; gettime(hours, minutes, seconds); new nextslot = GetNextSituationSlot(); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Situation %d has been created at Bank, Fort Carson in Clark County **", nextslot); SendDispatchMessage(string); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Description of situation: Robbery In Progress **"); SendDispatchMessage(string); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Status of the situation is: Code 3 [%d:%d:%d]**", hours, minutes, seconds); SendDispatchMessage(string); CreateDPSituation(nextslot, 3, "Bank, Fort Carson in Clark County", "Robbery"); } else { foreach(Player, i) { if(PlayerInfo[i][pMember] != 0) { PlayAudioStreamForPlayer(i, "http://*******/forum/sounds/genbroadcast.mp3"); } } format(string, sizeof(string), "** DISPATCH: Silent Alarm Trigged. The Bank in Clark County: Fort Carson has a robbery in progress. All units respond immediately **"); SendDispatchMessage(string); } format(string,sizeof(string), "* %s points his gun at the bank clerk and attempts to rob the safe.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(aseen == 1 || aseen == 2) { ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 0, 0, 0, 0, 0); // Rob PlayerInfo[playerid][pRobTime] = 300; PlayerInfo[playerid][pRobbingFCBank] = 80; FCBankStoreRob = 1; format(string,sizeof(string), "* %s points his gun at the bank clerk and attempts to rob the safe.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } SetTimerEx("FCBankStoreRobbed",1800000,false,"i"); } else { return Error(playerid, "A problem has occured while trying to rob, try again later."); } return 1; } if(IsPlayerInRangeOfPoint(playerid, 15.0, 1213.043, -13.337, 1000.921) && GetPlayerVirtualWorld(playerid) ==0) { if (PlayerInfo[playerid][pRobTime] != 0) { SendClientMessage(playerid, COLOR_YELLOW, "** You can only rob once every 5 hours, return later"); return 1; } if (LAPigpenRob != 0) { return Error(playerid, "** The Pigpen has been robbed in the past 45 minutes, return later"); } if (PlayerInfo[playerid][pRobTime] <= 0 && LAPigpenRob == 0) { new string[128], aseen = Random(1, 5); if (aseen >= 3) { ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 0, 0, 0, 0, 0); // Rob PlayerInfo[playerid][pRobTime] = 300; PlayerInfo[playerid][pRobbingLAPigpen] = 80; LAPigpenRob = 1; if(dcount > 0) { new hours, minutes, seconds; gettime(hours, minutes, seconds); new nextslot = GetNextSituationSlot(); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Situation %d has been created at The Pigpen, East LA **", nextslot); SendDispatchMessage(string); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Description of situation: Robbery In Progress **"); SendDispatchMessage(string); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Status of the situation is: Code 3 [%d:%d:%d]**", hours, minutes, seconds); SendDispatchMessage(string); CreateDPSituation(nextslot, 3, "The Pigpen, East LA", "Robbery"); } else { foreach(Player, i) { if(PlayerInfo[i][pMember] != 0) { PlayAudioStreamForPlayer(i, "http://*******/forum/sounds/genbroadcast.mp3"); } } format(string, sizeof(string), "** DISPATCH: Silent Alarm Trigged. The Pigpen in East LA has a robbery in progress. LAPD please respond **"); SendDispatchMessage(string); } format(string,sizeof(string), "* %s points his gun at the clerk and attempts to rob the register.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(aseen == 1 || aseen == 2) { ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 0, 0, 0, 0, 0); // Rob PlayerInfo[playerid][pRobTime] = 300; PlayerInfo[playerid][pRobbingLAPigpen] = 80; LAPigpenRob = 1; format(string,sizeof(string), "* %s points his gun at the manager and attempts to rob the register.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } SetTimerEx("LAPigpenRobbed",1800000,false,"i"); } else { return Error(playerid, "A problem has occured while trying to rob, try again later."); } return 1; } if(IsPlayerInRangeOfPoint(playerid, 15.0, -2157.640, -2452.253, 1030.860) && GetPlayerVirtualWorld(playerid) ==3) { if (PlayerInfo[playerid][pRobTime] != 0) { SendClientMessage(playerid, COLOR_YELLOW, "** You can only rob once every 5 hours, return later"); return 1; } if (LAKFCRob != 0) { return Error(playerid, "** The LA KFC has been robbed in the past 45 minutes, return later"); } if (PlayerInfo[playerid][pRobTime] <= 0 && LAKFCRob == 0) { new string[128], aseen = Random(1, 5); if (aseen >= 3) { ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 0, 0, 0, 0, 0); // Rob PlayerInfo[playerid][pRobTime] = 300; PlayerInfo[playerid][pRobbingLAKFC] = 80; LAKFCRob = 1; if(dcount > 0) { new hours, minutes, seconds; gettime(hours, minutes, seconds); new nextslot = GetNextSituationSlot(); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Situation %d has been created at the KFC, East LA **", nextslot); SendDispatchMessage(string); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Description of situation: Robbery In Progress **"); SendDispatchMessage(string); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Status of the situation is: Code 3 [%d:%d:%d]**", hours, minutes, seconds); SendDispatchMessage(string); CreateDPSituation(nextslot, 3, "The KFC, East LA", "Robbery"); } else { foreach(Player, i) { if(PlayerInfo[i][pMember] != 0) { PlayAudioStreamForPlayer(i, "http://*******/forum/sounds/genbroadcast.mp3"); } } format(string, sizeof(string), "** DISPATCH: Silent Alarm Trigged. The KFC in East LA has a robbery in progress. LAPD please respond **"); SendDispatchMessage(string); } format(string,sizeof(string), "* %s points his gun at the clerk and attempts to rob the register.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(aseen == 1 || aseen == 2) { ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 0, 0, 0, 0, 0); // Rob PlayerInfo[playerid][pRobTime] = 300; PlayerInfo[playerid][pRobbingLAKFC] = 80; LAKFCRob = 1; format(string,sizeof(string), "* %s points his gun at the clerk and attempts to rob the register.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } SetTimerEx("LAKFCRobbed",1800000,false,"i"); } else { return Error(playerid, "A problem has occured while trying to rob, try again later."); } return 1; } if(IsPlayerInRangeOfPoint(playerid, 15.0, 300.48, 119.36, 998.84) && GetPlayerVirtualWorld(playerid) == 69) { if (PlayerInfo[playerid][pRobTime] != 0) { SendClientMessage(playerid, COLOR_YELLOW, "** You can only rob once every 5 hours, return later"); return 1; } if (BankStoreRob != 0) { return Error(playerid, "** The Bank has been robbed in the past 45 minutes, return later"); } if (PlayerInfo[playerid][pRobTime] <= 0 && BankStoreRob == 0) { new string[128], aseen = Random(1, 5); if (aseen >= 3) { ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 0, 0, 0, 0, 0); // Rob PlayerInfo[playerid][pRobTime] = 300; PlayerInfo[playerid][pRobbingBank] = 80; BankStoreRob = 1; if(dcount > 0) { new hours, minutes, seconds; gettime(hours, minutes, seconds); new nextslot = GetNextSituationSlot(); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Situation %d has been created at Elm Street Bank, LA **", nextslot); SendDispatchMessage(string); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Description of situation: Robbery In Progress **"); SendDispatchMessage(string); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Status of the situation is: Code 3 [%d:%d:%d]**", hours, minutes, seconds); SendDispatchMessage(string); CreateDPSituation(nextslot, 3, "Elm Street Bank, LA", "Robbery"); } else { foreach(Player, i) { if(PlayerInfo[i][pMember] != 0) { PlayAudioStreamForPlayer(i, "http://*******/forum/sounds/genbroadcast.mp3"); } } format(string, sizeof(string), "** DISPATCH: Silent Alarm Trigged. The Bank near Elm St has a robbery in progress. All units respond immediately **"); SendDispatchMessage(string); } format(string,sizeof(string), "* %s points his gun at the bank clerk and attempts to rob the safe.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(aseen == 1 || aseen == 2) { ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 0, 0, 0, 0, 0); // Rob PlayerInfo[playerid][pRobTime] = 300; PlayerInfo[playerid][pRobbingBank] = 80; BankStoreRob = 1; format(string,sizeof(string), "* %s points his gun at the bank clerk and attempts to rob the safe.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } SetTimerEx("BankStoreRobbed",1800000,false,"i"); } else { return Error(playerid, "A problem has occured while trying to rob, try again later."); } } if(IsPlayerInRangeOfPoint(playerid, 15.0, 23.999, -55.610, 1003.546) && GetPlayerVirtualWorld(playerid) ==6007) { if (PlayerInfo[playerid][pRobTime] != 0) { SendClientMessage(playerid, COLOR_YELLOW, "** You can only rob once every 5 hours, return later"); return 1; } if (BBGasRob != 0) { return Error(playerid, "** The Blueberry 24/7 has been robbed in the past 45 minutes, return later"); } if (PlayerInfo[playerid][pRobTime] <= 0 && BBGasRob == 0) { new string[128], aseen = Random(1, 5); if (aseen >= 3) { ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 0, 0, 0, 0, 0); // Rob PlayerInfo[playerid][pRobTime] = 300; PlayerInfo[playerid][pRobbingBBGas] = 80; BBGasRob = 1; if(dcount > 0) { new hours, minutes, seconds; gettime(hours, minutes, seconds); new nextslot = GetNextSituationSlot(); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Situation %d has been created at the Blueberry 24/7 **", nextslot); SendDispatchMessage(string); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Description of situation: Robbery In Progress **"); SendDispatchMessage(string); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Status of the situation is: Code 3 [%d:%d:%d]**", hours, minutes, seconds); SendDispatchMessage(string); CreateDPSituation(nextslot, 3, "Blueberry 24/7, LA", "Robbery"); } else { foreach(Player, i) { if(PlayerInfo[i][pMember] != 0) { PlayAudioStreamForPlayer(i, "http://*******/forum/sounds/genbroadcast.mp3"); } } format(string, sizeof(string), "** DISPATCH: Silent Alarm Trigged. The Blueberry 24/7 has a robbery in progress. Any unit please respond **"); SendDispatchMessage(string); } format(string,sizeof(string), "* %s points his gun at the clerk and attempts to rob the register.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(aseen == 1 || aseen == 2) { ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 0, 0, 0, 0, 0); // Rob PlayerInfo[playerid][pRobTime] = 300; PlayerInfo[playerid][pRobbingBBGas] = 80; BBGasRob = 1; format(string,sizeof(string), "* %s points his gun at the clerk and attempts to rob the register.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } SetTimerEx("BBGasRobbed",1800000,false,"i"); } else { return Error(playerid, "A problem has occured while trying to rob, try again later."); } return 1; } if(IsPlayerInRangeOfPoint(playerid, 15.0, 300.48, 119.36, 998.84) && GetPlayerVirtualWorld(playerid) == 1355) { if (PlayerInfo[playerid][pRobTime] != 0) { SendClientMessage(playerid, COLOR_YELLOW, "** You can only rob once every 5 hours, return later"); return 1; } if (SFBankStoreRob != 0) { return Error(playerid, "** The Bank has been robbed in the past 45 minutes, return later"); } if (PlayerInfo[playerid][pRobTime] <= 0 && SFBankStoreRob == 0) { new string[128], aseen = Random(1, 5); if (aseen >= 3) { ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 0, 0, 0, 0, 0); // Rob PlayerInfo[playerid][pRobTime] = 300; PlayerInfo[playerid][pRobbingSFBank] = 80; SFBankStoreRob = 1; if(dcount > 0) { new hours, minutes, seconds; gettime(hours, minutes, seconds); new nextslot = GetNextSituationSlot(); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Situation %d has been created at the Las Vegas Bank **", nextslot); SendDispatchMessage(string); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Description of situation: Robbery In Progress **"); SendDispatchMessage(string); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Status of the situation is: Code 3 [%d:%d:%d]**", hours, minutes, seconds); SendDispatchMessage(string); CreateDPSituation(nextslot, 3, "Las Vegas Bank", "Robbery"); } else { foreach(Player, i) { if(PlayerInfo[i][pMember] != 0) { PlayAudioStreamForPlayer(i, "http://*******/forum/sounds/genbroadcast.mp3"); } } format(string, sizeof(string), "** DISPATCH: Silent Alarm Trigged. The Bank in Las Vegas has a robbery in progress. All units respond immediately **"); SendDispatchMessage(string); } format(string,sizeof(string), "* %s points his gun at the bank clerk and attempts to rob the safe.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(aseen == 1 || aseen == 2) { ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 0, 0, 0, 0, 0); // Rob PlayerInfo[playerid][pRobTime] = 300; PlayerInfo[playerid][pRobbingSFBank] = 80; SFBankStoreRob = 1; format(string,sizeof(string), "* %s points his gun at the bank clerk and attempts to rob the safe.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } SetTimerEx("SFBankStoreRobbed",1800000,false,"i"); } else { return Error(playerid, "A problem has occured while trying to rob, try again later."); } } if(IsPlayerInRangeOfPoint(playerid, 15.0,434.4189,-83.8489,999.5547) && GetPlayerVirtualWorld(playerid) ==1006) { if (PlayerInfo[playerid][pRobTime] != 0) { SendClientMessage(playerid, COLOR_YELLOW, "** You can only rob once every 5 hours, return later"); return 1; } if (BBDennysRob != 0) { return Error(playerid, "** The Blueberry Dennys has been robbed in the past 45 minutes, return later"); } if (PlayerInfo[playerid][pRobTime] <= 0 && BBDennysRob == 0) { new string[128], aseen = Random(1, 5); if (aseen >= 3) { ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 0, 0, 0, 0, 0); // Rob PlayerInfo[playerid][pRobTime] = 300; PlayerInfo[playerid][pRobbingBBDennys] = 80; BBDennysRob = 1; if(dcount > 0) { new hours, minutes, seconds; gettime(hours, minutes, seconds); new nextslot = GetNextSituationSlot(); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Situation %d has been created at The Blueberry Dennys **", nextslot); SendDispatchMessage(string); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Description of situation: Robbery In Progress **"); SendDispatchMessage(string); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Status of the situation is: Code 3 [%d:%d:%d]**", hours, minutes, seconds); SendDispatchMessage(string); CreateDPSituation(nextslot, 3, "The Blueberry Dennys", "Robbery"); } else { foreach(Player, i) { if(PlayerInfo[i][pMember] != 0) { PlayAudioStreamForPlayer(i, "http://*******/forum/sounds/genbroadcast.mp3"); } } format(string, sizeof(string), "** DISPATCH: Silent Alarm Trigged. The Blueberry Dennys has a robbery in progress. Any unit please respond **"); SendDispatchMessage(string); } format(string,sizeof(string), "* %s points his gun at the clerk and attempts to rob the register.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(aseen == 1 || aseen == 2) { ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 0, 0, 0, 0, 0); // Rob PlayerInfo[playerid][pRobTime] = 300; PlayerInfo[playerid][pRobbingBBDennys] = 80; BBDennysRob = 1; format(string,sizeof(string), "* %s points his gun at the clerk and attempts to rob the register.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } SetTimerEx("BBDennysRobbed",1800000,false,"i"); } else { return Error(playerid, "A problem has occured while trying to rob, try again later."); } return 1; } if(IsPlayerInRangeOfPoint(playerid, 15.0,-26.6872,-57.6127,1003.5469) && GetPlayerVirtualWorld(playerid) ==6007) { if (PlayerInfo[playerid][pRobTime] != 0) { SendClientMessage(playerid, COLOR_YELLOW, "** You can only rob once every 5 hours, return later"); return 1; } if (BBGasRob != 0) { return Error(playerid, "** The BB Gas Station has been robbed in the past 45 minutes, return later"); } if (PlayerInfo[playerid][pRobTime] <= 0 && BBGasRob == 0) { new string[128], aseen = Random(1, 5); if (aseen >= 3) { ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 0, 0, 0, 0, 0); // Rob PlayerInfo[playerid][pRobTime] = 300; PlayerInfo[playerid][pRobbingBBGas] = 80; APBarberRob = 1; if(dcount > 0) { new hours, minutes, seconds; gettime(hours, minutes, seconds); new nextslot = GetNextSituationSlot(); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Situation %d has been created at the Blueberry Gas Station **", nextslot); SendDispatchMessage(string); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Description of situation: Robbery In Progress **"); SendDispatchMessage(string); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Status of the situation is: Code 3 [%d:%d:%d]**", hours, minutes, seconds); SendDispatchMessage(string); CreateDPSituation(nextslot, 3, "Blueberry Gas Station", "Robbery"); } else { foreach(Player, i) { if(PlayerInfo[i][pMember] != 0) { PlayAudioStreamForPlayer(i, "http://*******/forum/sounds/genbroadcast.mp3"); } } format(string, sizeof(string), "** DISPATCH: Silent Alarm Trigged. The BB Gas Station has a robbery in progress. Any unit please respond **"); SendDispatchMessage(string); } format(string,sizeof(string), "* %s points his gun at the cashier and attempts to rob the register.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(aseen == 1 || aseen == 2) { ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 0, 0, 0, 0, 0); // Rob PlayerInfo[playerid][pRobTime] = 300; PlayerInfo[playerid][pRobbingBBGas] = 80; BBGasRob = 1; format(string,sizeof(string), "* %s points his gun at the cashier and attempts to rob the register.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } SetTimerEx("BBGasRobbed",1800000,false,"i"); } else { return Error(playerid, "A problem has occured while trying to rob, try again later."); } return 1; } if(IsPlayerInRangeOfPoint(playerid, 15.0,422.244,-81.406,1001.804) && GetPlayerVirtualWorld(playerid) ==315) { if (PlayerInfo[playerid][pRobTime] != 0) { SendClientMessage(playerid, COLOR_YELLOW, "** You can only rob once every 5 hours, return later"); return 1; } if (APBarberRob != 0) { return Error(playerid, "** The AP Barber Shop has been robbed in the past 45 minutes, return later"); } if (PlayerInfo[playerid][pRobTime] <= 0 && APBarberRob == 0) { new string[128], aseen = Random(1, 5); if (aseen >= 3) { ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 0, 0, 0, 0, 0); // Rob PlayerInfo[playerid][pRobTime] = 300; PlayerInfo[playerid][pRobbingAPBarber] = 80; APBarberRob = 1; if(dcount > 0) { new hours, minutes, seconds; gettime(hours, minutes, seconds); new nextslot = GetNextSituationSlot(); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Situation %d has been created at the Angel Pine Barber Shop **", nextslot); SendDispatchMessage(string); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Description of situation: Robbery In Progress **"); SendDispatchMessage(string); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Status of the situation is: Code 3 [%d:%d:%d]**", hours, minutes, seconds); SendDispatchMessage(string); CreateDPSituation(nextslot, 3, "Angel Pine Barber Shop", "Robbery"); } else { foreach(Player, i) { if(PlayerInfo[i][pMember] != 0) { PlayAudioStreamForPlayer(i, "http://*******/forum/sounds/genbroadcast.mp3"); } } format(string, sizeof(string), "** DISPATCH: Silent Alarm Trigged. The AP Barber Shop has a robbery in progress. Any unit please respond **"); SendDispatchMessage(string); } format(string,sizeof(string), "* %s points his gun at the barber and attempts to rob the register.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(aseen == 1 || aseen == 2) { ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 0, 0, 0, 0, 0); // Rob PlayerInfo[playerid][pRobTime] = 300; PlayerInfo[playerid][pRobbingAPBarber] = 80; APBarberRob = 1; format(string,sizeof(string), "* %s points his gun at the barber and attempts to rob the register.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } SetTimerEx("APBarberRobbed",1800000,false,"i"); } else { return Error(playerid, "A problem has occured while trying to rob, try again later."); } return 1; } if(IsPlayerInRangeOfPoint(playerid, 15.0,-782.4790,500.0764,1371.7490) && GetPlayerVirtualWorld(playerid) ==3003) { if (PlayerInfo[playerid][pRobTime] != 0) { SendClientMessage(playerid, COLOR_YELLOW, "** You can only rob once every 5 hours, return later"); return 1; } if (LVCoffeeRob != 0) { return Error(playerid, "** The LV Coffee Shop has been robbed in the past 45 minutes, return later"); } if (PlayerInfo[playerid][pRobTime] <= 0 && LVCoffeeRob == 0) { new string[128], aseen = Random(1, 5); if (aseen >= 3) { ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 0, 0, 0, 0, 0); // Rob PlayerInfo[playerid][pRobTime] = 300; PlayerInfo[playerid][pRobbingLVCoffee] = 80; LVCoffeeRob = 1; if(dcount > 0) { new hours, minutes, seconds; gettime(hours, minutes, seconds); new nextslot = GetNextSituationSlot(); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Situation %d has been created at Las Vegas Coffee Shop **", nextslot); SendDispatchMessage(string); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Description of situation: Robbery In Progress **"); SendDispatchMessage(string); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Status of the situation is: Code 3 [%d:%d:%d]**", hours, minutes, seconds); SendDispatchMessage(string); CreateDPSituation(nextslot, 3, "Las Vegas Coffee Shop", "Robbery"); } else { foreach(Player, i) { if(PlayerInfo[i][pMember] != 0) { PlayAudioStreamForPlayer(i, "http://*******/forum/sounds/genbroadcast.mp3"); } } format(string, sizeof(string), "** DISPATCH: Silent Alarm Trigged. The LV Coffee Shop has a robbery in progress. LVMPD unit please respond **"); SendDispatchMessage(string); } format(string,sizeof(string), "* %s points his gun at the clerk and attempts to rob the register.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(aseen == 1 || aseen == 2) { ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 0, 0, 0, 0, 0); // Rob PlayerInfo[playerid][pRobTime] = 300; PlayerInfo[playerid][pRobbingLVCoffee] = 80; LVCoffeeRob = 1; format(string,sizeof(string), "* %s points his gun at the clerk and attempts to rob the register.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } SetTimerEx("LVCoffeeRobbed",1800000,false,"i"); } else { return Error(playerid, "A problem has occured while trying to rob, try again later."); } return 1; } if(IsPlayerInRangeOfPoint(playerid, 15.0,-30.896,-90.992,1003.546) && GetPlayerVirtualWorld(playerid) ==3002) { if (PlayerInfo[playerid][pRobTime] != 0) { SendClientMessage(playerid, COLOR_YELLOW, "** You can only rob once every 5 hours, return later"); return 1; } if (LVNEGasRob != 0) { return Error(playerid, "** The LV NE 24/7 has been robbed in the past 45 minutes, return later"); } if (PlayerInfo[playerid][pRobTime] <= 0 && LVNEGasRob == 0) { new string[128], aseen = Random(1, 5); if (aseen >= 3) { ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 0, 0, 0, 0, 0); // Rob PlayerInfo[playerid][pRobTime] = 300; PlayerInfo[playerid][pRobbingLVNEGas] = 80; LVNEGasRob = 1; if(dcount > 0) { new hours, minutes, seconds; gettime(hours, minutes, seconds); new nextslot = GetNextSituationSlot(); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Situation %d has been created at the LV NE 24/7 **", nextslot); SendDispatchMessage(string); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Description of situation: Robbery In Progress **"); SendDispatchMessage(string); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Status of the situation is: Code 3 [%d:%d:%d]**", hours, minutes, seconds); SendDispatchMessage(string); CreateDPSituation(nextslot, 3, "The LV NE 24/7", "Robbery"); } else { foreach(Player, i) { if(PlayerInfo[i][pMember] != 0) { PlayAudioStreamForPlayer(i, "http://*******/forum/sounds/genbroadcast.mp3"); } } format(string, sizeof(string), "** DISPATCH: Silent Alarm Trigged. The LV NE 24/7 has a robbery in progress. LVMPD unit please respond **"); SendDispatchMessage(string); } format(string,sizeof(string), "* %s points his gun at the clerk and attempts to rob the register.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(aseen == 1 || aseen == 2) { ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 0, 0, 0, 0, 0); // Rob PlayerInfo[playerid][pRobTime] = 300; PlayerInfo[playerid][pRobbingLVNEGas] = 80; LVNEGasRob = 1; format(string,sizeof(string), "* %s points his gun at the clerk and attempts to rob the register.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } SetTimerEx("LVNEGasRobbed",1800000,false,"i"); } else { return Error(playerid, "A problem has occured while trying to rob, try again later."); } return 1; } if(IsPlayerInRangeOfPoint(playerid, 15.0,2.249, -29.014, 1003.549) && GetPlayerVirtualWorld(playerid) ==3001) { if (PlayerInfo[playerid][pRobTime] != 0) { SendClientMessage(playerid, COLOR_YELLOW, "** You can only rob once every 5 hours, return later"); return 1; } if (LVSGasRob != 0) { return Error(playerid, "** The LV West 24/7 has been robbed in the past 45 minutes, return later"); } if (PlayerInfo[playerid][pRobTime] <= 0 && LVSGasRob == 0) { new string[128], aseen = Random(1, 5); if (aseen >= 3) { ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 0, 0, 0, 0, 0); // Rob PlayerInfo[playerid][pRobTime] = 300; PlayerInfo[playerid][pRobbingLVSGas] = 80; LVSGasRob = 1; if(dcount > 0) { new hours, minutes, seconds; gettime(hours, minutes, seconds); new nextslot = GetNextSituationSlot(); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Situation %d has been created at The LV West 24/7 **", nextslot); SendDispatchMessage(string); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Description of situation: Robbery In Progress **"); SendDispatchMessage(string); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Status of the situation is: Code 3 [%d:%d:%d]**", hours, minutes, seconds); SendDispatchMessage(string); CreateDPSituation(nextslot, 3, "The LV West 24/7", "Robbery"); } else { foreach(Player, i) { if(PlayerInfo[i][pMember] != 0) { PlayAudioStreamForPlayer(i, "http://*******/forum/sounds/genbroadcast.mp3"); } } format(string, sizeof(string), "** DISPATCH: Silent Alarm Trigged. The LV West 24/7 has a robbery in progress. LVMPD unit please respond **"); SendDispatchMessage(string); } format(string,sizeof(string), "* %s points his gun at the barber and attempts to rob the register.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(aseen == 1 || aseen == 2) { ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 0, 0, 0, 0, 0); // Rob PlayerInfo[playerid][pRobTime] = 300; PlayerInfo[playerid][pRobbingLVSGas] = 80; LVSGasRob = 1; format(string,sizeof(string), "* %s points his gun at the barber and attempts to rob the register.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } SetTimerEx("LVSGasRobbed",1800000,false,"i"); } else { return Error(playerid, "A problem has occured while trying to rob, try again later."); } return 1; } if(IsPlayerInRangeOfPoint(playerid, 15.0, -23.865, -54.673, 1003.546) && GetPlayerVirtualWorld(playerid) ==6001) { if (PlayerInfo[playerid][pRobTime] != 0) { SendClientMessage(playerid, COLOR_YELLOW, "** You can only rob once every 5 hours, return later"); return 1; } if (LAIdlewoodRob != 0) { return Error(playerid, "** The gas station has been robbed in the past 45 minutes, return later"); } if (PlayerInfo[playerid][pRobTime] <= 0 && LAIdlewoodRob == 0) { new string[128], aseen = Random(1, 5); if (aseen >= 3) { ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 0, 0, 0, 0, 0); // Rob PlayerInfo[playerid][pRobTime] = 300; PlayerInfo[playerid][pRobbingLAIdlewood] = 80; LAIdlewoodRob = 1; if(dcount > 0) { new hours, minutes, seconds; gettime(hours, minutes, seconds); new nextslot = GetNextSituationSlot(); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Situation %d has been created at 24/7 in Idlewood **", nextslot); SendDispatchMessage(string); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Description of situation: Robbery In Progress **"); SendDispatchMessage(string); format(string, sizeof(string), "** DISPATCH-0: (Silent Alarm) Status of the situation is: Code 3 [%d:%d:%d]**", hours, minutes, seconds); SendDispatchMessage(string); CreateDPSituation(nextslot, 3, "24/7 in Idlewood", "Robbery"); } else { foreach(Player, i) { if(PlayerInfo[i][pMember] != 0) { PlayAudioStreamForPlayer(i, "http://*******/forum/sounds/genbroadcast.mp3"); } } format(string, sizeof(string), "** DISPATCH: Silent Alarm Trigged. The 24/7 in Idlewood has a robbery in progress. All units respond immediately **"); SendDispatchMessage(string); } format(string,sizeof(string), "* %s points his gun at the clerk and attempts to rob the register.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } else if(aseen == 1 || aseen == 2) { ApplyAnimation(playerid, "SHOP", "ROB_Loop_Threat", 4.0, 0, 0, 0, 0, 0); // Rob PlayerInfo[playerid][pRobTime] = 300; PlayerInfo[playerid][pRobbingLAIdlewood] = 80; LAIdlewoodRob = 1; format(string,sizeof(string), "* %s points his gun at the clerk and attempts to rob the register.", GetPlayerNameEx(playerid)); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); } SetTimerEx("LAIdlewoodRobbed",1800000,false,"i"); } else { return Error(playerid, "A problem has occured while trying to rob, try again later."); } return 1; } } else { SendClientMessageEx(playerid, COLOR_GRAD2, "You must have a gun out to rob this building!"); return 1; } return 1; }