14.02.2014, 16:03
I've a Problem With the FD FIre system.When a Fire Starts it doesnt make a real fire ,it only makes a flame which doesnt effect on you if you went throw it,Can Someone help me with it please ? i want to make it fire exploding and makes damage and the Fire fighters can extinguish it
Here is the Start Random Fire Code
Here is the Start Random Fire Code
Код:
public StartRandomFire(randomloc) { new string[512], zone[MAX_ZONE_NAME]; new RAND = randomloc; RandomFire_X = RandomFireSpawns[RAND][0]; RandomFire_Y = RandomFireSpawns[RAND][1]; RandomFire_Z = RandomFireSpawns[RAND][2]; new fireslot = GetNextFire(); format(RandomFireLocation, 256, "%s", RandomFireLocationNames[RAND]); FireBurnout[fireslot] = SetTimerEx("BurnoutTimer",300000,0, "i", fireslot); Fire[fireslot][Fire_Exists] = 1; Fire[fireslot][Fire_id] = fireslot; ActiveFires ++; Fire[fireslot][Fire_X] = RandomFireSpawns[RAND][0]; Fire[fireslot][Fire_Y] = RandomFireSpawns[RAND][1]; Fire[fireslot][Fire_Z] = RandomFireSpawns[RAND][2]; FireObjects[fireslot][0] = CreateFire(fireslot, RandomFire_X, RandomFire_Y, RandomFire_Z); FireObjects[fireslot][1] = CreateFire(fireslot, RandomFire_X+random(3),RandomFire_Y+random(3),RandomFire_Z+random(2)); FireObjects[fireslot][2] = CreateFire(fireslot, RandomFire_X-random(3),RandomFire_Y-random(3),RandomFire_Z-random(2)); FireObjects[fireslot][3] = CreateFire(fireslot, RandomFire_X+random(3),RandomFire_Y-random(3),RandomFire_Z+random(1)); Get3DZone(RandomFire_X, RandomFire_Y, RandomFire_Z, zone, sizeof(zone)); Fire[fireslot][Fire_Zone] = zone; FireHealth[fireslot] = 100; format(string, sizeof(string), "Fire Health: \n %d /100", FireHealth[fireslot]); FireHealthText[fireslot] = CreateDynamic3DTextLabel(string, COLOR_WHITE, RandomFire_X, RandomFire_Y, RandomFire_Z, 20); foreach(Player, i) { if(IsPlayerInCircle(i,RandomFire_X,RandomFire_Y,70)) { format(string, sizeof(string), "(INFO) A fire has erupted in the vicinity."); SendClientMessage(i,COLOR_YELLOW,string); } if((PlayerInfo[i][pMember] == 4 && RAND < 24)) { new szMessage[256]; new Float:x2,Float:y2,Float:z2; GetPlayerPos(i,x2,y2,z2); PlayAudioStreamForPlayer(i, "http://shock-roleplay.net/sounds/pagertones.mp3"); format(szMessage, sizeof(szMessage), "* %s's pager just activated, you hear the sound.", GetPlayerNameEx(i)); ProxDetector(25.0, i, szMessage, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); if((IsPlayerInCircle(i, 1761.3842,-1783.0110, 15)) || (IsPlayerInCircle(i, 1760.6700,2082.7996, 15))) { PlayAudioStreamForPlayer(i, "http://shock-roleplay.net/sounds/stationtones.mp3"); } } if((PlayerInfo[i][pMember] == 17 && RAND > 23)) { new szMessage[256]; new Float:x2,Float:y2,Float:z2; GetPlayerPos(i,x2,y2,z2); PlayAudioStreamForPlayer(i, "http://shock-roleplay.net/sounds/pagertones.mp3"); format(szMessage, sizeof(szMessage), "* %s's pager just activated, you hear the sound.", GetPlayerNameEx(i)); ProxDetector(25.0, i, szMessage, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE); if((IsPlayerInCircle(i, 1761.3842,-1783.0110, 15)) || (IsPlayerInCircle(i, 1760.6700,2082.7996, 15))) { PlayAudioStreamForPlayer(i, "http://shock-roleplay.net/sounds/stationtones.mp3"); } } } switch(RAND) { case 0: { format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "DPS AUTOMATED DISPATCH"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "LAFD Stations, fire response, location below."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Location: %s in %s [ID:%d]", RandomFireLocation, zone, Fire[fireslot][Fire_id]); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Information: Toro Commercial Sprinkler System, Automatic Fire Alarm."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Suggested action: Extinguish flames and confirm no more smoke is visible."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); foreach(Player, i) { if(PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pMember] == 15) { SendClientMessage(i, COLOR_YELLOW, "(INFO) A fire location has been put on your GPS."); } } format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "FIRE COMM DISPATCH"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "Dispatching Fire to %s in %s for a Toro Commercial Sprinkler System, Automatic Fire Alarm.", RandomFireLocation, zone); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); } case 1: { format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "DPS AUTOMATED DISPATCH"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "LAFD Stations, fire response, location below."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Location: %s in %s [ID:%d]", RandomFireLocation, zone, Fire[fireslot][Fire_id]); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Information: Pull Station Alarm."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Suggested action: Extinguish flames and confirm no more smoke is visible."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); foreach(Player, i) { if(PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pMember] == 15) { SendClientMessage(i, COLOR_YELLOW, "(INFO) A fire location has been put on your GPS."); } } format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "FIRE COMM DISPATCH"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "Dispatching Fire to %s in %s for a Pull Station alarm.", RandomFireLocation, zone); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); } case 2: { format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "DPS AUTOMATED DISPATCH"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "LAFD Stations, fire response, location below."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Location: %s in %s [ID:%d]", RandomFireLocation, zone, Fire[fireslot][Fire_id]); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Information: Visible Smoke, Gym Roof."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Suggested action: Extinguish flames and confirm no more smoke is visible."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); foreach(Player, i) { if(PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pMember] == 15) { SendClientMessage(i, COLOR_YELLOW, "(INFO) A fire location has been put on your GPS."); } } format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "FIRE COMM DISPATCH"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "Dispatching Fire to %s in %s for Visible Smoke, Gym Roof.", RandomFireLocation, zone); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); } case 3: { format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "DPS AUTOMATED DISPATCH"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "LAFD Stations, fire response, location below."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Location: %s in %s [ID:%d]", RandomFireLocation, zone, Fire[fireslot][Fire_id]); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Information: Structural Fire, Ten Green Bottles."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Suggested action: Extinguish flames and confirm no more smoke is visible."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); foreach(Player, i) { if(PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pMember] == 15) { SendClientMessage(i, COLOR_YELLOW, "(INFO) A fire location has been put on your GPS."); } } format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "FIRE COMM DISPATCH"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "Dispatching Fire to %s in %s for a Structural Fire.", RandomFireLocation, zone); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); } case 4: { format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "DPS AUTOMATED DISPATCH"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "LAFD Stations, fire response, location below."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Location: %s in %s [ID:%d]", RandomFireLocation, zone, Fire[fireslot][Fire_id]); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Information: Pyrotechnics Fire, Stage A."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Suggested action: Extinguish flames and confirm no more smoke is visible."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); foreach(Player, i) { if(PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pMember] == 15) { SendClientMessage(i, COLOR_YELLOW, "(INFO) A fire location has been put on your GPS."); } } format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "FIRE COMM DISPATCH"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "Dispatching Fire to %s in %s for a Pyrotechnics Fire, Stage A.", RandomFireLocation, zone); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); } case 5: { format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "DPS AUTOMATED DISPATCH"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "LAFD Stations, fire response, location below."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Location: %s in %s [ID:%d]", RandomFireLocation, zone, Fire[fireslot][Fire_id]); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Information: Gas Leak, Forum Arena, Visual Reports."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Suggested action: Extinguish flames and confirm no more smoke is visible."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); foreach(Player, i) { if(PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pMember] == 15) { SendClientMessage(i, COLOR_YELLOW, "(INFO) A fire location has been put on your GPS."); } } format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "FIRE COMM DISPATCH"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "Dispatching Fire to %s in %s for Gas Leak, Forum Arena, Visual Reports.", RandomFireLocation, zone); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); } case 6: { format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "DPS AUTOMATED DISPATCH"); CreateExplosion( RandomFire_X, RandomFire_Y, RandomFire_Z, 7, 3); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "LAFD Stations, fire response, location below."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Location: %s in %s [ID:%d]", RandomFireLocation, zone, Fire[fireslot][Fire_id]); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Information: Gas Tank Explosion, Oil Refinery."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Suggested action: Clear Injured, Extinguish flames and confirm no more smoke is visible."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); foreach(Player, i) { if(PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pMember] == 15) { SendClientMessage(i, COLOR_YELLOW, "(INFO) A fire location has been put on your GPS."); } } format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "FIRE COMM DISPATCH"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "Dispatching Fire to %s in %s for a Gas Tank Explosion, Oil Refinery.", RandomFireLocation, zone); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); } case 7: { format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "DPS AUTOMATED DISPATCH"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "LAFD Stations, fire response, location below."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Location: %s in %s [ID:%d]", RandomFireLocation, zone, Fire[fireslot][Fire_id]); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Information: Grease Fire, Cluckin Bell, Automatic Fire Alarm."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Suggested action: Extinguish flames and confirm no more smoke is visible."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); foreach(Player, i) { if(PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pMember] == 15) { SendClientMessage(i, COLOR_YELLOW, "(INFO) A fire location has been put on your GPS."); } } format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "FIRE COMM DISPATCH"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "Dispatching Fire to %s in %s for a Grease Fire, Cluckin Bell, Automatic Fire Alarm.", RandomFireLocation, zone); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); } case 8: { format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "DPS AUTOMATED DISPATCH"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "LAFD Stations, fire response, location below."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Location: %s in %s [ID:%d]", RandomFireLocation, zone, Fire[fireslot][Fire_id]); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Information: Toro Commercial Sprinkler System, Automatic Fire Alarm."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Suggested action: Extinguish flames and confirm no more smoke is visible."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); foreach(Player, i) { if(PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pMember] == 15) { SendClientMessage(i, COLOR_YELLOW, "(INFO) A fire location has been put on your GPS."); } } format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "FIRE COMM DISPATCH"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "Dispatching Fire to %s in %s for a Toro Commercial Sprinkler System, Automatic Fire Alarm", RandomFireLocation, zone); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); } case 9: { format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "DPS AUTOMATED DISPATCH"); SendFamilyMessage(4, COLOR_RED, string); CreateExplosion( RandomFire_X, RandomFire_Y, RandomFire_Z, 7, 3); format(string, sizeof(string), "LAFD Stations, fire response, location below."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Location: %s in %s [ID:%d]", RandomFireLocation, zone, Fire[fireslot][Fire_id]); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Information: Gas Leak, Automatic Fire Alarm."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Suggested action: Extinguish flames and confirm no more smoke is visible."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); foreach(Player, i) { if(PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pMember] == 15) { SendClientMessage(i, COLOR_YELLOW, "(INFO) A fire location has been put on your GPS."); } } format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "FIRE COMM DISPATCH"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "Dispatching Fire to %s in %s for a Gas Leak, Automatic Fire Alarm", RandomFireLocation, zone); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); } case 10: { format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "DPS AUTOMATED DISPATCH"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "LAFD Stations, fire response, location below."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Location: %s in %s [ID:%d]", RandomFireLocation, zone, Fire[fireslot][Fire_id]); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Information: Toro Commercial Sprinkler System, Automatic Fire Alarm."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Suggested action: Extinguish flames and confirm no more smoke is visible."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); foreach(Player, i) { if(PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pMember] == 15) { SendClientMessage(i, COLOR_YELLOW, "(INFO) A fire location has been put on your GPS."); } } format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "FIRE COMM DISPATCH"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "Dispatching Fire to %s in %s for a Toro Commercial Sprinkler System, Automatic Fire Alarm", RandomFireLocation, zone); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); } case 11: { format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "DPS AUTOMATED DISPATCH"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "LAFD Stations, fire response, location below."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Location: %s in %s [ID:%d]", RandomFireLocation, zone, Fire[fireslot][Fire_id]); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Information: Visible Smoke, Eyewitness Report."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Suggested action: Extinguish flames and confirm no more smoke is visible."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); foreach(Player, i) { if(PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pMember] == 15) { SendClientMessage(i, COLOR_YELLOW, "(INFO) A fire location has been put on your GPS."); } } format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "FIRE COMM DISPATCH"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "Dispatching Fire to %s in %s for a Visible Smoke, Eyewitness Report", RandomFireLocation, zone); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); } case 12: { format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "DPS AUTOMATED DISPATCH"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "LAFD Stations, fire response, location below."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Location: %s in %s [ID:%d]", RandomFireLocation, zone, Fire[fireslot][Fire_id]); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Information: MAC Security Services, Residential Fire Alarm."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Suggested action: Extinguish flames and confirm no more smoke is visible."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); foreach(Player, i) { if(PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pMember] == 15) { SendClientMessage(i, COLOR_YELLOW, "(INFO) A fire location has been put on your GPS."); } } format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "FIRE COMM DISPATCH"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "Dispatching Fire to %s in %s for a MAC Security Services, Residential Fire Alarm.", RandomFireLocation, zone); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); } case 13: { format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "DPS AUTOMATED DISPATCH"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "LAFD Stations, fire response, location below."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Location: %s in %s [ID:%d]", RandomFireLocation, zone, Fire[fireslot][Fire_id]); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Information: Electrical Fire, Box Short Circuit."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Suggested action: Extinguish flames and confirm no more smoke is visible."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); foreach(Player, i) { if(PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pMember] == 15) { SendClientMessage(i, COLOR_YELLOW, "(INFO) A fire location has been put on your GPS."); } } format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "FIRE COMM DISPATCH"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "Dispatching Fire to %s in %s for a Electrical Fire, Box Short Circuit.", RandomFireLocation, zone); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); } case 14: { format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "DPS AUTOMATED DISPATCH"); SendFamilyMessage(4, COLOR_RED, string); CreateExplosion( RandomFire_X, RandomFire_Y, RandomFire_Z, 7, 3); format(string, sizeof(string), "LAFD Stations, fire response, location below."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Location: %s in %s [ID:%d]", RandomFireLocation, zone, Fire[fireslot][Fire_id]); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Information: Gas Spill and Explosion."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Suggested action: Clear Injured, Extinguish flames and confirm no more smoke is visible."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); foreach(Player, i) { if(PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pMember] == 15) { SendClientMessage(i, COLOR_YELLOW, "(INFO) A fire location has been put on your GPS."); } } format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "FIRE COMM DISPATCH"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "Dispatching Fire to %s in %s for a Gas Spill and Explosion.", RandomFireLocation, zone); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); } case 15: { format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "DPS AUTOMATED DISPATCH"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "LAFD Stations, fire response, location below."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Location: %s in %s [ID:%d]", RandomFireLocation, zone, Fire[fireslot][Fire_id]); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Information: Structure Fire, Eyewitness Report."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Suggested action: Extinguish flames and confirm no more smoke is visible."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); foreach(Player, i) { if(PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pMember] == 15) { SendClientMessage(i, COLOR_YELLOW, "(INFO) A fire location has been put on your GPS."); } } format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "FIRE COMM DISPATCH"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "Dispatching Fire to %s in %s for a Structure Fire, Eyewitness Report.", RandomFireLocation, zone); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); } case 16: { format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "DPS AUTOMATED DISPATCH"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "LAFD Stations, fire response, location below."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Location: %s in %s [ID:%d]", RandomFireLocation, zone, Fire[fireslot][Fire_id]); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Information: Electrical Fire, Box Short Circuit."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Suggested action: Extinguish flames and confirm no more smoke is visible."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); foreach(Player, i) { if(PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pMember] == 15) { SendClientMessage(i, COLOR_YELLOW, "(INFO) A fire location has been put on your GPS."); } } format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "FIRE COMM DISPATCH"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "Dispatching Fire to %s in %s for a Electrical Fire, Box Short Circuit.", RandomFireLocation, zone); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); } case 17: { format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "DPS AUTOMATED DISPATCH"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "LAFD Stations, fire response, location below."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Location: %s in %s [ID:%d]", RandomFireLocation, zone, Fire[fireslot][Fire_id]); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Information: MAC Security Services, Residential Fire Alarm."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Suggested action: Extinguish flames and confirm no more smoke is visible."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); foreach(Player, i) { if(PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pMember] == 15) { SendClientMessage(i, COLOR_YELLOW, "(INFO) A fire location has been put on your GPS."); } } format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "FIRE COMM DISPATCH"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "Dispatching Fire to %s in %s for MAC Security Services, Residential Fire Alarm..", RandomFireLocation, zone); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); } case 18: { format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "DPS AUTOMATED DISPATCH"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "LAFD Stations, fire response, location below."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Location: %s in %s [ID:%d]", RandomFireLocation, zone, Fire[fireslot][Fire_id]); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Information: Structure Fire, Residential Fire Alarm."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Suggested action: Extinguish flames and confirm no more smoke is visible."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); foreach(Player, i) { if(PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pMember] == 15) { SendClientMessage(i, COLOR_YELLOW, "(INFO) A fire location has been put on your GPS."); } } format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "FIRE COMM DISPATCH"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "Dispatching Fire to %s in %s for a Structure Fire, Residential Fire Alarm.", RandomFireLocation, zone); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); } case 19: { format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "DPS AUTOMATED DISPATCH"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "LAFD Stations, fire response, location below."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Location: %s in %s [ID:%d]", RandomFireLocation, zone, Fire[fireslot][Fire_id]); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Information: Grease Fire, J&J's Restaurant."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Suggested action: Extinguish flames and confirm no more smoke is visible."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); foreach(Player, i) { if(PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pMember] == 15) { SendClientMessage(i, COLOR_YELLOW, "(INFO) A fire location has been put on your GPS."); } } format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "FIRE COMM DISPATCH"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "Dispatching Fire to %s in %s for a Grease Fire, J&J's Restaurant.", RandomFireLocation, zone); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); } case 20: { format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "DPS AUTOMATED DISPATCH"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "LAFD Stations, fire response, location below."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Location: %s in %s [ID:%d]", RandomFireLocation, zone, Fire[fireslot][Fire_id]); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Information: Grease Fire, Cluckin' Bell."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Suggested action: Extinguish flames and confirm no more smoke is visible."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); foreach(Player, i) { if(PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pMember] == 15) { SendClientMessage(i, COLOR_YELLOW, "(INFO) A fire location has been put on your GPS."); } } format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "FIRE COMM DISPATCH"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "Dispatching Fire to %s in %s for a Grease Fire, Cluckin' Bell.", RandomFireLocation, zone); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); } case 21: { format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "DPS AUTOMATED DISPATCH"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "LAFD Stations, fire response, location below."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Location: %s in %s [ID:%d]", RandomFireLocation, zone, Fire[fireslot][Fire_id]); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Information: Visible Smoke, Ammu-Nation, Eyewitness Report."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Suggested action: Extinguish flames and confirm no more smoke is visible."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); foreach(Player, i) { if(PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pMember] == 15) { SendClientMessage(i, COLOR_YELLOW, "(INFO) A fire location has been put on your GPS."); } } format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "FIRE COMM DISPATCH"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "Dispatching Fire to %s in %s for a Visible Smoke, Ammu-Nation, Eyewitness Report.", RandomFireLocation, zone); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); } case 22: { format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "DPS AUTOMATED DISPATCH"); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "LAFD Stations, fire response, location below."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Location: %s in %s [ID:%d]", RandomFireLocation, zone, Fire[fireslot][Fire_id]); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Information: Reported Arson, Liquor Store."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "Suggested action: Extinguish flames and confirm no more smoke is visible."); SendFamilyMessage(4, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(4, COLOR_RED, string); foreach(Player, i) { if(PlayerInfo[i][pMember] == 4 || PlayerInfo[i][pMember] == 15) { SendClientMessage(i, COLOR_YELLOW, "(INFO) A fire location has been put on your GPS."); } } format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "FIRE COMM DISPATCH"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "Dispatching Fire to %s in %s for a Reported Arson, Liquor Store.", RandomFireLocation, zone); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(1, COLOR_RED, string); SendFamilyMessage(7, COLOR_RED, string); } case 23: { format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "DPS AUTOMATED DISPATCH"); SendFamilyMessage(17, COLOR_RED, string); CreateExplosion( RandomFire_X, RandomFire_Y, RandomFire_Z, 7, 3); format(string, sizeof(string), "CCFD Stations, fire response, location below."); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "Location: %s in %s [ID:%d]", RandomFireLocation, zone, Fire[fireslot][Fire_id]); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "Information: Pyrotechnics Fire, Pirate Ship."); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "Suggested action: Extinguish flames and confirm no more smoke is visible."); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(17, COLOR_RED, string); foreach(Player, i) { if( PlayerInfo[i][pMember] == 17) { SendClientMessage(i, COLOR_YELLOW, "(INFO) A fire location has been put on your GPS."); } } format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(19, COLOR_RED, string); format(string, sizeof(string), "FIRE COMM DISPATCH"); SendFamilyMessage(19, COLOR_RED, string); format(string, sizeof(string), "Dispatching Fire to %s in %s for a Pyrotechnics Fire, Pirate Ship.", RandomFireLocation, zone); SendFamilyMessage(19, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(19, COLOR_RED, string); } case 24: { format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "DPS AUTOMATED DISPATCH"); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "CCFD Stations, fire response, location below."); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "Location: %s in %s [ID:%d]", RandomFireLocation, zone, Fire[fireslot][Fire_id]); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "Information: Suspected Arson, Residential Fire Alarm."); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "Suggested action: Extinguish flames and confirm no more smoke is visible."); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(17, COLOR_RED, string); foreach(Player, i) { if( PlayerInfo[i][pMember] == 17) { SendClientMessage(i, COLOR_YELLOW, "(INFO) A fire location has been put on your GPS."); } } format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(19, COLOR_RED, string); format(string, sizeof(string), "FIRE COMM DISPATCH"); SendFamilyMessage(19, COLOR_RED, string); format(string, sizeof(string), "Dispatching Fire to %s in %s for a Suspected Arson, Residential Fire Alarm.", RandomFireLocation, zone); SendFamilyMessage(19, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(19, COLOR_RED, string); } case 25: { format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "DPS AUTOMATED DISPATCH"); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "CCFD Stations, fire response, location below."); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "Location: %s in %s [ID:%d]", RandomFireLocation, zone, Fire[fireslot][Fire_id]); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "Information: Grease Fire, Commercial Fire Alarm."); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "Suggested action: Extinguish flames and confirm no more smoke is visible."); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(17, COLOR_RED, string); foreach(Player, i) { if( PlayerInfo[i][pMember] == 17) { SendClientMessage(i, COLOR_YELLOW, "(INFO) A fire location has been put on your GPS."); } } format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(19, COLOR_RED, string); format(string, sizeof(string), "FIRE COMM DISPATCH"); SendFamilyMessage(19, COLOR_RED, string); format(string, sizeof(string), "Dispatching Fire to %s in %s for a Grease Fire, Commercial Fire Alarm.", RandomFireLocation, zone); SendFamilyMessage(19, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(19, COLOR_RED, string); } case 26: { format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "DPS AUTOMATED DISPATCH"); SendFamilyMessage(17, COLOR_RED, string); CreateExplosion( RandomFire_X, RandomFire_Y, RandomFire_Z, 7, 3); format(string, sizeof(string), "CCFD Stations, fire response, location below."); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "Location: %s in %s [ID:%d]", RandomFireLocation, zone, Fire[fireslot][Fire_id]); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "Information: Gas Leak, Visual Report."); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "Suggested action: Extinguish flames and confirm no more smoke is visible."); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(17, COLOR_RED, string); foreach(Player, i) { if( PlayerInfo[i][pMember] == 17) { SendClientMessage(i, COLOR_YELLOW, "(INFO) A fire location has been put on your GPS."); } } format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(19, COLOR_RED, string); format(string, sizeof(string), "FIRE COMM DISPATCH"); SendFamilyMessage(19, COLOR_RED, string); format(string, sizeof(string), "Dispatching Fire to %s in %s for a Gas Leak, Visual Report.", RandomFireLocation, zone); SendFamilyMessage(19, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(19, COLOR_RED, string); } case 27: { format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "DPS AUTOMATED DISPATCH"); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "CCFD Stations, fire response, location below."); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "Location: %s in %s [ID:%d]", RandomFireLocation, zone, Fire[fireslot][Fire_id]); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "Information: Toro Commercial Sprinkler Systems, Automatic Fire Alarm."); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "Suggested action: Extinguish flames and confirm no more smoke is visible."); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(17, COLOR_RED, string); foreach(Player, i) { if( PlayerInfo[i][pMember] == 17) { SendClientMessage(i, COLOR_YELLOW, "(INFO) A fire location has been put on your GPS."); } } format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(19, COLOR_RED, string); format(string, sizeof(string), "FIRE COMM DISPATCH"); SendFamilyMessage(19, COLOR_RED, string); format(string, sizeof(string), "Dispatching Fire to %s in %s for a Toro Commercial Sprinkler Systems, Automatic Fire Alarm.", RandomFireLocation, zone); SendFamilyMessage(19, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(19, COLOR_RED, string); } case 28: { format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "DPS AUTOMATED DISPATCH"); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "CCFD Stations, fire response, location below."); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "Location: %s in %s [ID:%d]", RandomFireLocation, zone, Fire[fireslot][Fire_id]); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "Information: Smoke Showing, Visual Report."); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "Suggested action: Extinguish flames and confirm no more smoke is visible."); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(17, COLOR_RED, string); foreach(Player, i) { if( PlayerInfo[i][pMember] == 17) { SendClientMessage(i, COLOR_YELLOW, "(INFO) A fire location has been put on your GPS."); } } format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(19, COLOR_RED, string); format(string, sizeof(string), "FIRE COMM DISPATCH"); SendFamilyMessage(19, COLOR_RED, string); format(string, sizeof(string), "Dispatching Fire to %s in %s for a Smoke Showing, Visual Report.", RandomFireLocation, zone); SendFamilyMessage(19, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(19, COLOR_RED, string); } case 29: { format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "DPS AUTOMATED DISPATCH"); SendFamilyMessage(17, COLOR_RED, string); CreateExplosion( RandomFire_X, RandomFire_Y, RandomFire_Z, 7, 3); format(string, sizeof(string), "CCFD Stations, fire response, location below."); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "Location: %s in %s [ID:%d]", RandomFireLocation, zone, Fire[fireslot][Fire_id]); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "Information: Diesel Fire, 911 Report."); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "Suggested action: Extinguish flames and confirm no more smoke is visible."); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(17, COLOR_RED, string); foreach(Player, i) { if( PlayerInfo[i][pMember] == 17) { SendClientMessage(i, COLOR_YELLOW, "(INFO) A fire location has been put on your GPS."); } } format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(19, COLOR_RED, string); format(string, sizeof(string), "FIRE COMM DISPATCH"); SendFamilyMessage(19, COLOR_RED, string); format(string, sizeof(string), "Dispatching Fire to %s in %s for a Diesel Fire, 911 Report.", RandomFireLocation, zone); SendFamilyMessage(19, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(19, COLOR_RED, string); } case 30: { format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "DPS AUTOMATED DISPATCH"); SendFamilyMessage(17, COLOR_RED, string); CreateExplosion( RandomFire_X, RandomFire_Y, RandomFire_Z, 7, 3); format(string, sizeof(string), "CCFD Stations, fire response, location below."); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "Location: %s in %s [ID:%d]", RandomFireLocation, zone, Fire[fireslot][Fire_id]); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "Information: Ammunitions Fire, Commerical Fire Alarm."); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "Suggested action: Extinguish flames and confirm no more smoke is visible."); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(17, COLOR_RED, string); foreach(Player, i) { if( PlayerInfo[i][pMember] == 17) { SendClientMessage(i, COLOR_YELLOW, "(INFO) A fire location has been put on your GPS."); } } format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(19, COLOR_RED, string); format(string, sizeof(string), "FIRE COMM DISPATCH"); SendFamilyMessage(19, COLOR_RED, string); format(string, sizeof(string), "Dispatching Fire to %s in %s for a Ammunitions Fire, Commercial Fire Alarm.", RandomFireLocation, zone); SendFamilyMessage(19, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(19, COLOR_RED, string); } case 31: { format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "DPS AUTOMATED DISPATCH"); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "CCFD Stations, fire response, location below."); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "Location: %s in %s [ID:%d]", RandomFireLocation, zone, Fire[fireslot][Fire_id]); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "Information: Electrical Fire, Commercial Fire Alarm."); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "Suggested action: Extinguish flames and confirm no more smoke is visible."); SendFamilyMessage(17, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(17, COLOR_RED, string); foreach(Player, i) { if( PlayerInfo[i][pMember] == 17) { SendClientMessage(i, COLOR_YELLOW, "(INFO) A fire location has been put on your GPS."); } } format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(19, COLOR_RED, string); format(string, sizeof(string), "FIRE COMM DISPATCH"); SendFamilyMessage(19, COLOR_RED, string); format(string, sizeof(string), "Dispatching Fire to %s in %s for a Electrical Fire, Commercial Fire Alarm.", RandomFireLocation, zone); SendFamilyMessage(19, COLOR_RED, string); format(string, sizeof(string), "____________________________________________________________________________________________________________"); SendFamilyMessage(19, COLOR_RED, string); } } }