/* Block Fort Tag mode (mini mode) by wario5 8/25/07 
 Edited and updated with lights and new features 11/11/09 */


//	           N=180
//W=270--------|---------E=90
//            S=0


// player's normal start position
PLAYER_PED p1 = (139.5, 143.5, 2.0) 7 180
PLAYER_PED p2 = (85.5, 68.5, 2.0) 10 0
PLAYER_PED p3 = (139.5, 68.5, 2.0) 5 0
PLAYER_PED p4 = (85.5, 143.5, 2.0) 11 180
PLAYER_PED p5 = (87.5, 106.5, 2.0) 9 90
PLAYER_PED p6 = (136.5, 106.5, 2.0) 13 270

// Police
DECLARE_POLICELEVEL (6)

// Shops
OBJ_DATA bombshop1 = ( 122.0 , 115.0 , 2.0 ) 0 car_shop bomb_shop
OBJ_DATA paintshop1 = ( 103.0 , 115.0 , 2.0 ) 0 car_shop 15
OBJ_DATA minesshop1 = ( 103.0 , 97.0 , 2.0 ) 0 car_shop mines_shop
OBJ_DATA gunshop1 = ( 122.0 , 97.0 , 2.0 ) 0 car_shop machinegun_shop

// ENHANCED GANGS
CHAR_DATA GANGP1
CHAR_DATA GANGP2
CHAR_DATA GANGP3
CHAR_DATA GANGP4
CHAR_DATA GANGP5
CHAR_DATA GANGP6

// MACHINE GUN GANG SPOTS
OBJ_DATA kf1 = ( 142.5 , 146.5 , 4.0 ) 0 kill_frenzy
OBJ_DATA kf2 = ( 142.5 , 65.5 , 4.0 ) 0 kill_frenzy
OBJ_DATA kf3 = ( 82.5 , 65.5 , 4.0 ) 0 kill_frenzy
OBJ_DATA kf4 = ( 82.5 , 146.5 , 4.0 ) 0 kill_frenzy

OBJ_DATA DISARM1 = ( 106.5 , 133.5 , 2.0 ) 180 phone
OBJ_DATA DISARM2 = ( 118.5 , 78.5 , 2.0 ) 0 phone

// BARRICADES
OBJ_DATA BOLLARD1 = ( 141.5 , 146.0 , 2.0 ) 0 BOLLARD 
OBJ_DATA BOLLARD2 = ( 142.0 , 145.5 , 2.0 ) 90 BOLLARD
OBJ_DATA BOLLARD3 = ( 142.0 , 66.5 , 2.0 ) 90 BOLLARD
OBJ_DATA BOLLARD4 = ( 141.5 , 66.0 , 2.0 ) 0 BOLLARD
OBJ_DATA BOLLARD5 = ( 83.5 , 66.0 , 2.0 ) 0 BOLLARD
OBJ_DATA BOLLARD6 = ( 83.0 , 66.5 , 2.0 ) 90 BOLLARD
OBJ_DATA BOLLARD7 = ( 83.0 , 145.5 , 2.0 ) 90 BOLLARD
OBJ_DATA BOLLARD8 = ( 83.5 , 146.0 , 2.0 ) 0 BOLLARD

// MINES
OBJ_DATA MINE1 = ( 131.5 , 134.5 , 4.0 ) 90 mine 
OBJ_DATA MINE2 = ( 131.5 , 135.5 , 4.0 ) 90 mine 
OBJ_DATA MINE3 = ( 133.5 , 132.5 , 4.0 ) 0 mine 
OBJ_DATA MINE4 = ( 134.5 , 132.5 , 4.0 ) 0 mine 

OBJ_DATA MINE5 = ( 90.5 , 132.5 , 4.0 ) 0 mine 
OBJ_DATA MINE6 = ( 91.5 , 132.5 , 4.0 ) 0 mine 
OBJ_DATA MINE7 = ( 93.5 , 134.5 , 4.0 ) 90 mine 
OBJ_DATA MINE8 = ( 93.5 , 135.5 , 4.0 ) 90 mine 

OBJ_DATA MINE9 = ( 90.5 , 79.5 , 4.0 ) 0 mine 
OBJ_DATA MINE10 = ( 91.5 , 79.5 , 4.0 ) 0 mine 
OBJ_DATA MINE11 = ( 93.5 , 76.5 , 4.0 ) 90 mine 
OBJ_DATA MINE12 = ( 93.5 , 77.5 , 4.0 ) 90 mine 

OBJ_DATA MINE13 = ( 131.5 , 76.5 , 4.0 ) 90 mine 
OBJ_DATA MINE14 = ( 131.5 , 77.5 , 4.0 ) 90 mine 
OBJ_DATA MINE15 = ( 133.5 , 79.5 , 4.0 ) 0 mine 
OBJ_DATA MINE16 = ( 134.5 , 79.5 , 4.0 ) 0 mine 

// MAP ZONE INFO
MAP_ZONE total = ( 1000 , 800 , 0 , 0 , 1000 , 15 , 15 , 600 , 0 , 10 , 0)
//                   CD   GCD  BCD  PCR  PD   MR   CTR   ER   GCR  PPR  GCARR
// ( CD:cardensity , GCD:good car ratio , BCD:bad car ratio , PCR:police car ratio , PD:ped density , MR:mugger ratio , CTR:car thief ratio , ER:elvis ratio , GCR:gang char ratio , PPR:police ped ratio , GCARR:gang character ratio)


// HEALTH
GENERATOR HEALTH01 = ( 83.5 , 106.5 ) 0 COLLECT_30 3500 3500 20  
GENERATOR HEALTH02 = ( 141.5 , 106.5 ) 0 COLLECT_30 3500 3500 20  

// ARMOR
GENERATOR ARMOR01 = ( 84.5 , 106.5 ) 0 COLLECT_31 3500 3500 20  
GENERATOR ARMOR02 = ( 140.5 , 106.5 ) 0 COLLECT_31 3500 3500 20  

// INSTANT GANGS
GENERATOR GANG01 = ( 87.5 , 71.5 ) 0 COLLECT_40 3500 3500 20 
GENERATOR GANG02 = ( 137.5 , 71.5 ) 0 COLLECT_40 3500 3500 20
GENERATOR GANG03 = ( 137.5 , 140.5 ) 0 COLLECT_40 3500 3500 20  
GENERATOR GANG04 = ( 87.5 , 140.5 ) 0 COLLECT_40 3500 3500 20 

// MACHINE GUNS
GENERATOR CARUZI = ( 112.5 , 106.5 ) 0 COLLECT_18 3500 3500 10
GENERATOR QUZI01 = ( 108.5 , 103.5 ) 0 COLLECT_09 3500 3500 10
GENERATOR QUZI02 = ( 98.0 , 73.0 ) 0 COLLECT_09 3500 3500 10
GENERATOR QUZI03 = ( 122.5 , 144.5 ) 0 COLLECT_09 3500 3500 10
GENERATOR QUZI04 = ( 137.5 , 91.5 ) 0 COLLECT_09 3500 3500 10
GENERATOR QUZI05 = ( 122.0 , 106.5 ) 0 COLLECT_09 3500 3500 10
GENERATOR QUZI06 = ( 112.5 , 97.0 ) 0 COLLECT_09 3500 3500 10
GENERATOR QUZI07 = ( 112.5 , 115.0 ) 0 COLLECT_09 3500 3500 10
GENERATOR QUZI08 = ( 103.0 , 106.5 ) 0 COLLECT_09 3500 3500 10

// EXPLOSIVES
GENERATOR MOLI01 = ( 122.5 , 92.5 ) 0 COLLECT_04 3500 3500 10
GENERATOR MOLI02 = ( 122.5 , 120.5 ) 0 COLLECT_04 3500 3500 10
GENERATOR MOLI03 = ( 102.5 , 120.5 ) 0 COLLECT_04 3500 3500 10
GENERATOR MOLI04 = ( 102.5 , 92.5 ) 0 COLLECT_04 3500 3500 10
GENERATOR MOLI05 = ( 112.5 , 84.5 ) 0 COLLECT_04 3500 3500 10
GENERATOR MOLI06 = ( 126.0 , 101.0 ) 0 COLLECT_04 3500 3500 10
GENERATOR MOLI07 = ( 142.5 , 148.5 ) 0 COLLECT_04 3500 3500 10
GENERATOR MOLI08 = ( 142.5 , 63.5 ) 0 COLLECT_04 3500 3500 10
GENERATOR MOLI09 = ( 82.5 , 63.5 ) 0 COLLECT_04 3500 3500 10
GENERATOR MOLI10 = ( 82.5 , 148.5 ) 0 COLLECT_04 3500 3500 10

GENERATOR GREN01 = ( 126.0 , 111.0 ) 0 COLLECT_05 3500 3500 15
GENERATOR GREN02 = ( 133.5 , 134.5 ) 0 COLLECT_05 3500 3500 15
GENERATOR GREN03 = ( 91.5 , 134.5 ) 0 COLLECT_05 3500 3500 15
GENERATOR GREN04 = ( 91.5 , 77.5 ) 0 COLLECT_05 3500 3500 15
GENERATOR GREN05 = ( 133.5 , 77.5 ) 0 COLLECT_05 3500 3500 15

// ROCKETS
GENERATOR BOOM01 = ( 129.0 , 83.0 ) 0 COLLECT_02 3500 3500 5
GENERATOR BOOM02 = ( 129.0 , 129.0 ) 0 COLLECT_02 3500 3500 5
GENERATOR BOOM03 = ( 96.0 , 129.0 ) 0 COLLECT_02 3500 3500 5
GENERATOR BOOM04 = ( 96.0 , 83.0 ) 0 COLLECT_02 3500 3500 5
GENERATOR BOOM05 = ( 112.5 , 144.5 ) 0 COLLECT_02 3500 3500 5

// FLAMERS
GENERATOR FLAME01 = ( 132.5 , 133.5 ) 0 COLLECT_08 3500 3500 10
GENERATOR FLAME02 = ( 92.5 , 78.5 ) 0 COLLECT_08 3500 3500 10
GENERATOR FLAME03 = ( 116.5 , 109.5 ) 0 COLLECT_08 3500 3500 10

// ELECTRO
GENERATOR ZAP01 = ( 112.5 , 67.5 ) 0 COLLECT_03 3500 3500 10
GENERATOR ZAP02 = ( 132.5 , 78.5 ) 0 COLLECT_03 3500 3500 10
GENERATOR ZAP03 = ( 92.5 , 133.5 ) 0 COLLECT_03 3500 3500 10
GENERATOR ZAP04 = ( 91.5 , 102.5 ) 0 COLLECT_03 3500 3500 10

// SHOTGUNS
GENERATOR SHOTGUN01 = ( 84.5 , 125.5 ) 0 COLLECT_06 3500 3500 20
GENERATOR SHOTGUN02 = ( 137.5 , 106.5 ) 0 COLLECT_06 3500 3500 20

// DUAL PISTOLS
GENERATOR DUALP01 = ( 84.5 , 68.5 ) 0 COLLECT_10 3500 3500 20
GENERATOR DUALP02 = ( 84.5 , 143.5 ) 0 COLLECT_10 3500 3500 20
GENERATOR DUALP03 = ( 140.5 , 143.5 ) 0 COLLECT_10 3500 3500 20
GENERATOR DUALP04 = ( 140.5 , 68.5 ) 0 COLLECT_10 3500 3500 20

// MISC POWERUPS
GENERATOR CARBOMB01 = ( 96.5 , 139.5 ) 0 COLLECT_15 3500 3500 1
GENERATOR CARBOMB02 = ( 127.0 , 115.0 ) 0 COLLECT_15 3500 3500 1
GENERATOR MULTIPLY = ( 98.0 , 97.0 ) 0 COLLECT_28 3500 3500 1
GENERATOR FR01 = ( 127.0 , 97.0 ) 0 COLLECT_36 3500 3500 1
GENERATOR FR02 = ( 144.5 , 146.5 ) 0 COLLECT_36 3500 3500 1
GENERATOR DD01 = ( 98.0 , 115.0 ) 0 COLLECT_35 3500 3500 1
GENERATOR DD02 = ( 80.5 , 65.5 ) 0 COLLECT_35 3500 3500 1
GENERATOR COPBRIBE01 = ( 80.5 , 146.5 ) 0 COLLECT_33 3500 3500 1
GENERATOR COPBRIBE02 = ( 144.5 , 65.5 ) 0 COLLECT_33 3500 3500 1

// two basic boolean values
SAVED_COUNTER true = 1 
SAVED_COUNTER false = 0 

// ENHANCED GANG FLAGS
COUNTER P1Once1 = 0
COUNTER P2Once1 = 0
COUNTER P3Once1 = 0
COUNTER P4Once1 = 0
COUNTER P5Once1 = 0
COUNTER P6Once1 = 0

//PARKED CARS (ALL RESPAWNING)
//TWO EDDIES NEAR CENTER SPAWN
PARKED_CAR_DATA car1 = ( 127.5 , 111.5 , 2.0 ) 33 90 EDSEL
PARKED_CAR_DATA car2 = ( 100.5 , 100.5 , 2.0 ) 33 270 EDSEL
//YELLOW AREA CARS
PARKED_CAR_DATA car3 = ( 128.0 , 126.5 , 6.0 ) 10 90 VTYPE
PARKED_CAR_DATA car4 = ( 141.0 , 145.0 , 2.0 ) 10 135 LIMO
PARKED_CAR_DATA car5 = ( 133.0 , 135.0 , 4.0 ) 10 270 T2000GT
PARKED_CAR_DATA car6 = ( 134.0 , 134.0 , 4.0 ) 10 180 BUICK
//RED AREA CARS
PARKED_CAR_DATA car7 = ( 128.0 , 85.5 , 6.0 ) 6 90 VTYPE
PARKED_CAR_DATA car8 = ( 141.0 , 67.0 , 2.0 ) 6 45 LIMO
PARKED_CAR_DATA car9 = ( 133.0 , 77.0 , 4.0 ) 6 270 T2000GT
PARKED_CAR_DATA car10 = ( 134.0 , 78.0 , 4.0 ) 6 0 BUICK
//BLUE AREA CARS
PARKED_CAR_DATA car11 = ( 97.0 , 85.5 , 6.0 ) 31 270 VTYPE
PARKED_CAR_DATA car12 = ( 84.0 , 67.0 , 2.0 ) 31 315 LIMO
PARKED_CAR_DATA car13 = ( 92.0 , 77.0 , 4.0 ) 31 90 T2000GT
PARKED_CAR_DATA car14 = ( 91.0 , 78.0 , 4.0 ) 31 0 BUICK
//GREEN AREA CARS
PARKED_CAR_DATA car15 = ( 97.0 , 126.5 , 6.0 ) 20 270 VTYPE
PARKED_CAR_DATA car16 = ( 84.0 , 145.0 , 2.0 ) 20 225 LIMO
PARKED_CAR_DATA car17 = ( 92.0 , 135.0 , 4.0 ) 20 90 T2000GT
PARKED_CAR_DATA car18 = ( 91.0 , 134.0 , 4.0 ) 20 180 BUICK

//	           N=180
//W=270--------|---------E=90
//            S=0

LEVELSTART 
SET_AMBIENT_LEVEL ( 0.33 , 50 )  //  AMBIENT LIGHT LEVEL AT DUSK, set to take 50 game cycles to complete
SET_shading_LEVEL ( 20 )         // Shading level from a value set of 0-31

SWITCH_GENERATOR ( CARUZI , ON )

SWITCH_GENERATOR ( HEALTH01 , ON )
SWITCH_GENERATOR ( HEALTH02 , ON )
SWITCH_GENERATOR ( ARMOR01 , ON )
SWITCH_GENERATOR ( ARMOR02 , ON )

SWITCH_GENERATOR ( GANG01 , ON )
SWITCH_GENERATOR ( GANG02 , ON )
SWITCH_GENERATOR ( GANG03 , ON )
SWITCH_GENERATOR ( GANG04 , ON )

SWITCH_GENERATOR ( QUZI01 , ON )
SWITCH_GENERATOR ( QUZI02 , ON )
SWITCH_GENERATOR ( QUZI03 , ON )
SWITCH_GENERATOR ( QUZI04 , ON )
SWITCH_GENERATOR ( QUZI05 , ON )
SWITCH_GENERATOR ( QUZI06 , ON )
SWITCH_GENERATOR ( QUZI07 , ON )
SWITCH_GENERATOR ( QUZI08 , ON )

SWITCH_GENERATOR ( MOLI01 , ON )
SWITCH_GENERATOR ( MOLI02 , ON )
SWITCH_GENERATOR ( MOLI03 , ON )
SWITCH_GENERATOR ( MOLI04 , ON )
SWITCH_GENERATOR ( MOLI05 , ON )
SWITCH_GENERATOR ( MOLI06 , ON )
SWITCH_GENERATOR ( MOLI07 , ON )
SWITCH_GENERATOR ( MOLI08 , ON )
SWITCH_GENERATOR ( MOLI09 , ON )
SWITCH_GENERATOR ( MOLI10 , ON )

SWITCH_GENERATOR ( GREN01 , ON )
SWITCH_GENERATOR ( GREN02 , ON )
SWITCH_GENERATOR ( GREN03 , ON )
SWITCH_GENERATOR ( GREN04 , ON )
SWITCH_GENERATOR ( GREN05 , ON )

SWITCH_GENERATOR ( BOOM01 , ON )
SWITCH_GENERATOR ( BOOM02 , ON )
SWITCH_GENERATOR ( BOOM03 , ON )
SWITCH_GENERATOR ( BOOM04 , ON )
SWITCH_GENERATOR ( BOOM05 , ON )

SWITCH_GENERATOR ( FLAME01 , ON )
SWITCH_GENERATOR ( FLAME02 , ON )
SWITCH_GENERATOR ( FLAME03 , ON )

SWITCH_GENERATOR ( ZAP01 , ON )
SWITCH_GENERATOR ( ZAP02 , ON )
SWITCH_GENERATOR ( ZAP03 , ON )
SWITCH_GENERATOR ( ZAP04 , ON )

SWITCH_GENERATOR ( SHOTGUN01 , ON )
SWITCH_GENERATOR ( SHOTGUN02 , ON )

SWITCH_GENERATOR ( DUALP01 , ON )
SWITCH_GENERATOR ( DUALP02 , ON )
SWITCH_GENERATOR ( DUALP03 , ON )
SWITCH_GENERATOR ( DUALP04 , ON )

SWITCH_GENERATOR ( CARBOMB01 , ON )
SWITCH_GENERATOR ( CARBOMB02 , ON )

SWITCH_GENERATOR ( MULTIPLY , ON )
SWITCH_GENERATOR ( FR01 , ON )
SWITCH_GENERATOR ( FR02 , ON )
SWITCH_GENERATOR ( DD01 , ON )
SWITCH_GENERATOR ( DD02 , ON )
SWITCH_GENERATOR ( COPBRIBE01 , ON )
SWITCH_GENERATOR ( COPBRIBE02 , ON )

// SET POLICE WANTED LEVEL TO 4 (SWAT) FOR MULTIPLAY
IF ( CHECK_CHARACTER_HEALTH ( p2 , 0 ) )
   CHANGE_POLICE_LEVEL ( 4 )
ENDIF
IF ( CHECK_CHARACTER_HEALTH ( p3 , 0 ) )
   CHANGE_POLICE_LEVEL ( 4 )
ENDIF
IF ( CHECK_CHARACTER_HEALTH ( p4 , 0 ) )
   CHANGE_POLICE_LEVEL ( 4 )
ENDIF
IF ( CHECK_CHARACTER_HEALTH ( p5 , 0 ) )
   CHANGE_POLICE_LEVEL ( 4 )
ENDIF
IF ( CHECK_CHARACTER_HEALTH ( p6 , 0 ) )
   CHANGE_POLICE_LEVEL ( 4 )
ENDIF




WHILE_EXEC ( TRUE = 1 )

//RESPAWNING CARS
IF ( IS_CAR_WRECKED ( car1 ) )  // FBI CAR 1
IF ( ( NOT ( IS_POINT_ONSCREEN (  127.5 , 111.5 , 2.0  ) ) ) AND ( NOT ( DELAY ( 350 ) ) ) )  // PREVENT CAR SPAWN ON PLAYER
DELETE_ITEM ( car1 )
car1 = CREATE_CAR ( 127.5 , 111.5 , 2.0 ) 33 90 EDSEL END
ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car2 ) )  // FBI CAR 2
IF ( ( NOT ( IS_POINT_ONSCREEN (  100.5 , 100.5 , 2.0  ) ) ) AND ( NOT ( DELAY ( 350 ) ) ) )  // PREVENT CAR SPAWN ON PLAYER
DELETE_ITEM ( car2 )
car2 = CREATE_CAR ( 100.5 , 100.5 , 2.0 ) 33 270 EDSEL END
ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car3 ) )  // YELLOW AREA Z-TYPE
IF ( ( NOT ( IS_POINT_ONSCREEN (  128.0 , 126.5 , 6.0  ) ) ) AND ( NOT ( DELAY ( 350 ) ) ) )  // PREVENT CAR SPAWN ON PLAYER
DELETE_ITEM ( car3 )
car3 = CREATE_CAR ( 128.0 , 126.5 , 6.0 ) 10 90 VTYPE END
ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car4 ) )  // YELLOW AREA LIMO
IF ( ( NOT ( IS_POINT_ONSCREEN (  141.0 , 145.0 , 2.0  ) ) ) AND ( NOT ( DELAY ( 350 ) ) ) )  // PREVENT CAR SPAWN ON PLAYER
DELETE_ITEM ( car4 )
car4 = CREATE_CAR ( 141.0 , 145.0 , 2.0 ) 10 135 LIMO END
ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car5 ) )  // YELLOW AREA MICHELLI ROADSTER
IF ( ( NOT ( IS_POINT_ONSCREEN (  133.0 , 135.0 , 4.0   ) ) ) AND ( NOT ( DELAY ( 350 ) ) ) )  // PREVENT CAR SPAWN ON PLAYER
DELETE_ITEM ( car5 )
car5 = CREATE_CAR ( 133.0 , 135.0 , 4.0 ) 10 270 T2000GT END
ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car6 ) )  // YELLOW AREA BULLWARK
IF ( ( NOT ( IS_POINT_ONSCREEN (  134.0 , 134.0 , 4.0   ) ) ) AND ( NOT ( DELAY ( 350 ) ) ) )  // PREVENT CAR SPAWN ON PLAYER
DELETE_ITEM ( car6 )
car6 = CREATE_CAR ( 134.0 , 134.0 , 4.0  ) 10 180 buick END
ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car7 ) )  // RED AREA Z-TYPE
IF ( ( NOT ( IS_POINT_ONSCREEN (  128.0 , 85.5 , 6.0  ) ) ) AND ( NOT ( DELAY ( 350 ) ) ) )  // PREVENT CAR SPAWN ON PLAYER
DELETE_ITEM ( car7 )
car7 = CREATE_CAR ( 128.0 , 85.5 , 6.0 ) 6 90 VTYPE END
ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car8 ) )  // RED AREA LIMO
IF ( ( NOT ( IS_POINT_ONSCREEN (  141.0 , 67.0 , 2.0   ) ) ) AND ( NOT ( DELAY ( 350 ) ) ) )  // PREVENT CAR SPAWN ON PLAYER
DELETE_ITEM ( car8 )
car8 = CREATE_CAR ( 141.0 , 67.0 , 2.0 ) 6 45 LIMO END
ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car9 ) )  // RED AREA MICHELLI ROADSTER
IF ( ( NOT ( IS_POINT_ONSCREEN (  133.0 , 77.0 , 4.0  ) ) ) AND ( NOT ( DELAY ( 350 ) ) ) )  // PREVENT CAR SPAWN ON PLAYER
DELETE_ITEM ( car9 )
car9 = CREATE_CAR ( 133.0 , 77.0 , 4.0 ) 6 270 T2000GT END
ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car10 ) )  // RED AREA BULLWARK
IF ( ( NOT ( IS_POINT_ONSCREEN (  134.0 , 78.0 , 4.0  ) ) ) AND ( NOT ( DELAY ( 350 ) ) ) )  // PREVENT CAR SPAWN ON PLAYER
DELETE_ITEM ( car10 )
car10 = CREATE_CAR ( 134.0 , 78.0 , 4.0 ) 6 0 BUICK END
ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car11 ) )  // BLUE AREA Z-TYPE
IF ( ( NOT ( IS_POINT_ONSCREEN (  97.0 , 85.5 , 6.0  ) ) ) AND ( NOT ( DELAY ( 350 ) ) ) )  // PREVENT CAR SPAWN ON PLAYER
DELETE_ITEM ( car11 )
car11 = CREATE_CAR ( 97.0 , 85.5 , 6.0 ) 31 270 VTYPE END
ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car12 ) )  // BLUE AREA LIMO
IF ( ( NOT ( IS_POINT_ONSCREEN (  84.0 , 67.0 , 2.0   ) ) ) AND ( NOT ( DELAY ( 350 ) ) ) )  // PREVENT CAR SPAWN ON PLAYER
DELETE_ITEM ( car12 )
car12 = CREATE_CAR ( 84.0 , 67.0 , 2.0 ) 31 315 LIMO END
ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car13 ) )  // BLUE AREA MICHELLI ROADSTER
IF ( ( NOT ( IS_POINT_ONSCREEN (  92.0 , 77.0 , 4.0  ) ) ) AND ( NOT ( DELAY ( 350 ) ) ) )  // PREVENT CAR SPAWN ON PLAYER
DELETE_ITEM ( car13 )
car13 = CREATE_CAR ( 92.0 , 77.0 , 4.0 ) 31 90 T2000GT END
ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car14 ) )  // BLUE AREA BULLWARK
IF ( ( NOT ( IS_POINT_ONSCREEN (  91.0 , 78.0 , 4.0   ) ) ) AND ( NOT ( DELAY ( 350 ) ) ) )  // PREVENT CAR SPAWN ON PLAYER
DELETE_ITEM ( car14 )
car14 = CREATE_CAR ( 91.0 , 78.0 , 4.0  ) 31 0 BUICK END
ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car15 ) )  // GREEN AREA Z-TYPE
IF ( ( NOT ( IS_POINT_ONSCREEN (  97.0 , 126.5 , 6.0  ) ) ) AND ( NOT ( DELAY ( 350 ) ) ) )  // PREVENT CAR SPAWN ON PLAYER
DELETE_ITEM ( car15 )
car15 = CREATE_CAR ( 97.0 , 126.5 , 6.0 ) 20 270 VTYPE END
ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car16 ) )  // GREEN AREA LIMO
IF ( ( NOT ( IS_POINT_ONSCREEN (  84.0 , 145.0 , 2.0   ) ) ) AND ( NOT ( DELAY ( 350 ) ) ) )  // PREVENT CAR SPAWN ON PLAYER
DELETE_ITEM ( car16 )
car16 = CREATE_CAR ( 84.0 , 145.0 , 2.0 ) 20 225 LIMO END
ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car17 ) )  // GREEN AREA MICHELLI ROADSTER
IF ( ( NOT ( IS_POINT_ONSCREEN (  92.0 , 135.0 , 4.0 ) ) ) AND ( NOT ( DELAY ( 350 ) ) ) )  // PREVENT CAR SPAWN ON PLAYER
DELETE_ITEM ( car17 )
car17 = CREATE_CAR ( 92.0 , 135.0 , 4.0 ) 20 90 T2000GT END
ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car18 ) )  // GREEN AREA BULLWARK
IF ( ( NOT ( IS_POINT_ONSCREEN (  91.0 , 134.0 , 4.0   ) ) ) AND ( NOT ( DELAY ( 350 ) ) ) )  // PREVENT CAR SPAWN ON PLAYER
DELETE_ITEM ( car18 )
car18 = CREATE_CAR ( 91.0 , 134.0 , 4.0  ) 20 180 BUICK END
ENDIF
ENDIF


//P1 MACHINE GUN GANG DEACTIVATION
//SOUTH PHONE
IF ((LOCATE_CHARACTER_ON_FOOT ( p1  ,  106.5  , 133.5  ,  2.0  , 0.5 , 0.5  )) AND (CHECK_CHARACTER_HEALTH ( P1 , 0 )))
IF ( P1Once1 = 1 )
DESTROY_GROUP ( P1 )
KILL_CHAR ( GANGP1 )
DELETE_ITEM ( GANGP1 )
SET P1Once1 = 0
DISPLAY_BRIEF ( 1133 )
ENDIF
ENDIF
//NORTH PHONE
IF ((LOCATE_CHARACTER_ON_FOOT ( p1  ,  118.5  , 78.5  ,  2.0  , 0.5 , 0.5  )) AND (CHECK_CHARACTER_HEALTH ( P1 , 0 )))
IF  ( P1Once1 = 1 )
DESTROY_GROUP ( P1 )
KILL_CHAR ( GANGP1 )
DELETE_ITEM ( GANGP1 )
SET P1Once1 = 0
DISPLAY_BRIEF ( 1133 )
ENDIF
ENDIF


//P2 MACHINE GUN GANG DEACTIVATION
//SOUTH PHONE
IF ((LOCATE_CHARACTER_ON_FOOT ( p2  ,  106.5  , 133.5  ,  2.0  , 0.5 , 0.5  )) AND (CHECK_CHARACTER_HEALTH ( P2 , 0 )))
IF ( P2Once1 = 1 )
DESTROY_GROUP ( P2 )
KILL_CHAR ( GANGP2 )
DELETE_ITEM ( GANGP2 )
SET P2Once1 = 0
DISPLAY_BRIEF ( 1133 )
ENDIF
ENDIF
//NORTH PHONE
IF ((LOCATE_CHARACTER_ON_FOOT ( p2  ,  118.5  , 78.5  ,  2.0  , 0.5 , 0.5  )) AND (CHECK_CHARACTER_HEALTH ( P2 , 0 )))
IF  ( P2Once1 = 1 )
DESTROY_GROUP ( P2 )
KILL_CHAR ( GANGP2 )
DELETE_ITEM ( GANGP2 )
SET P2Once1 = 0
DISPLAY_BRIEF ( 1133 )
ENDIF
ENDIF


//P3 MACHINE GUN GANG DEACTIVATION
//SOUTH PHONE
IF ((LOCATE_CHARACTER_ON_FOOT ( p3  ,  106.5  , 133.5  ,  2.0  , 0.5 , 0.5  )) AND (CHECK_CHARACTER_HEALTH ( P3 , 0 )))
IF ( P3Once1 = 1 )
DESTROY_GROUP ( P3 )
KILL_CHAR ( GANGP3 )
DELETE_ITEM ( GANGP3 )
SET P3Once1 = 0
DISPLAY_BRIEF ( 1133 )
ENDIF
ENDIF
//NORTH PHONE
IF ((LOCATE_CHARACTER_ON_FOOT ( p3  ,  118.5  , 78.5  ,  2.0  , 0.5 , 0.5  )) AND (CHECK_CHARACTER_HEALTH ( P3 , 0 )))
IF  ( P3Once1 = 1 )
DESTROY_GROUP ( P3 )
KILL_CHAR ( GANGP3 )
DELETE_ITEM ( GANGP3 )
SET P3Once1 = 0
DISPLAY_BRIEF ( 1133 )
ENDIF
ENDIF


//P4 MACHINE GUN GANG DEACTIVATION
//SOUTH PHONE
IF ((LOCATE_CHARACTER_ON_FOOT ( p4  ,  106.5  , 133.5  ,  2.0  , 0.5 , 0.5  )) AND (CHECK_CHARACTER_HEALTH ( P4 , 0 )))
IF ( P4Once1 = 1 )
DESTROY_GROUP ( P4 )
KILL_CHAR ( GANGP4 )
DELETE_ITEM ( GANGP4 )
SET P4Once1 = 0
DISPLAY_BRIEF ( 1133 )
ENDIF
ENDIF
//NORTH PHONE
IF ((LOCATE_CHARACTER_ON_FOOT ( p4  ,  118.5  , 78.5  ,  2.0  , 0.5 , 0.5  )) AND (CHECK_CHARACTER_HEALTH ( P4 , 0 )))
IF  ( P4Once1 = 1 )
DESTROY_GROUP ( P4 )
KILL_CHAR ( GANGP4 )
DELETE_ITEM ( GANGP4 )
SET P4Once1 = 0
DISPLAY_BRIEF ( 1133 )
ENDIF
ENDIF



//P5 MACHINE GUN GANG DEACTIVATION
//SOUTH PHONE
IF ((LOCATE_CHARACTER_ON_FOOT ( p5  ,  106.5  , 133.5  ,  2.0  , 0.5 , 0.5  )) AND (CHECK_CHARACTER_HEALTH ( P5 , 0 )))
IF ( P5Once1 = 1 )
DESTROY_GROUP ( P5 )
KILL_CHAR ( GANGP5 )
DELETE_ITEM ( GANGP5 )
SET P5Once1 = 0
DISPLAY_BRIEF ( 1133 )
ENDIF
ENDIF
//NORTH PHONE
IF ((LOCATE_CHARACTER_ON_FOOT ( p5  ,  118.5  , 78.5  ,  2.0  , 0.5 , 0.5  )) AND (CHECK_CHARACTER_HEALTH ( P5 , 0 )))
IF  ( P5Once1 = 1 )
DESTROY_GROUP ( P5 )
KILL_CHAR ( GANGP5 )
DELETE_ITEM ( GANGP5 )
SET P5Once1 = 0
DISPLAY_BRIEF ( 1133 )
ENDIF
ENDIF


//P6 MACHINE GUN GANG DEACTIVATION
//SOUTH PHONE
IF ((LOCATE_CHARACTER_ON_FOOT ( p6  ,  106.5  , 133.5  ,  2.0  , 0.5 , 0.5  )) AND (CHECK_CHARACTER_HEALTH ( P6 , 0 )))
IF ( P6Once1 = 1 )
DESTROY_GROUP ( P6 )
KILL_CHAR ( GANGP6 )
DELETE_ITEM ( GANGP6 )
SET P6Once1 = 0
DISPLAY_BRIEF ( 1133 )
ENDIF
ENDIF
//NORTH PHONE
IF ((LOCATE_CHARACTER_ON_FOOT ( p6 ,  118.5  , 78.5  ,  2.0  , 0.5 , 0.5  )) AND (CHECK_CHARACTER_HEALTH ( P6 , 0 )))
IF  ( P6Once1 = 1 )
DESTROY_GROUP ( P6 )
KILL_CHAR ( GANGP6 )
DELETE_ITEM ( GANGP6 )
SET P6Once1 = 0
DISPLAY_BRIEF ( 1133 )
ENDIF
ENDIF



//P1 YELLOW AREA PHONE SUPPORT
IF ((LOCATE_CHARACTER_ON_FOOT ( p1  ,  142.5  , 146.5  ,  4.0  , 0.5 , 0.5  )) AND (CHECK_CHARACTER_HEALTH ( P1 , 0 )))
IF ( P1Once1 = 0 ) 
GANGP1 = CREATE_CHAR ( 143.5, 148.5 , 4.5 ) 7 0 criminal END
SET_CHAR_THREAT_REACTION ( GANGP1 , react_as_normal )
SET_CHAR_THREAT_SEARCH ( GANGP1 , line_of_sight )
GIVE_WEAPON ( GANGP1 , MACHINE_GUN ) 
ADD_GROUP_TO_CHARACTER ( GANGP1 , 8 )
MAKE_NEW_LEADER_OF_GROUP ( GANGP1 , P1 )
++P1Once1
DISPLAY_BRIEF ( 1150 )
ENDIF
ENDIF
//P1 RED AREA PHONE SUPPORT
IF ((LOCATE_CHARACTER_ON_FOOT ( p1  ,  142.5  , 65.5  ,  4.0  , 0.5 , 0.5  )) AND (CHECK_CHARACTER_HEALTH ( P1 , 0 )))
IF ( P1Once1 = 0 ) 
GANGP1 = CREATE_CHAR ( 144.5, 62.5 , 4.5 ) 7 90 criminal END
SET_CHAR_THREAT_REACTION ( GANGP1 , react_as_normal )
SET_CHAR_THREAT_SEARCH ( GANGP1 , line_of_sight )
GIVE_WEAPON ( GANGP1 , MACHINE_GUN ) 
ADD_GROUP_TO_CHARACTER ( GANGP1 , 8 )
MAKE_NEW_LEADER_OF_GROUP ( GANGP1 , P1 )
SET P1Once1 = 1
DISPLAY_BRIEF ( 1150 )
ENDIF
ENDIF
//P1 BLUE AREA PHONE SUPPORT
IF ((LOCATE_CHARACTER_ON_FOOT ( p1  ,  82.5  , 65.5  ,  4.0  , 0.5 , 0.5  )) AND (CHECK_CHARACTER_HEALTH ( P1 , 0 )))
IF ( P1Once1 = 0 ) 
GANGP1 = CREATE_CHAR ( 80.5, 63.5 , 4.5 ) 7 90 criminal END
SET_CHAR_THREAT_REACTION ( GANGP1 , react_as_normal )
SET_CHAR_THREAT_SEARCH ( GANGP1 , line_of_sight )
GIVE_WEAPON ( GANGP1 , MACHINE_GUN ) 
ADD_GROUP_TO_CHARACTER ( GANGP1 , 8 )
MAKE_NEW_LEADER_OF_GROUP ( GANGP1 , P1 )
SET P1Once1 = 1
DISPLAY_BRIEF ( 1150 )
ENDIF
ENDIF
//P1 GREEN AREA PHONE SUPPORT
IF ((LOCATE_CHARACTER_ON_FOOT ( p1  ,  82.5  , 146.5  ,  4.0  , 0.5 , 0.5  )) AND (CHECK_CHARACTER_HEALTH ( P1 , 0 )))
IF ( P1Once1 = 0 ) 
GANGP1 = CREATE_CHAR ( 80.5, 148.5 , 4.5 ) 7 90 criminal END
SET_CHAR_THREAT_REACTION ( GANGP1 , react_as_normal )
SET_CHAR_THREAT_SEARCH ( GANGP1 , line_of_sight )
GIVE_WEAPON ( GANGP1 , MACHINE_GUN ) 
ADD_GROUP_TO_CHARACTER ( GANGP1 , 8 )
MAKE_NEW_LEADER_OF_GROUP ( GANGP1 , P1 )
SET P1Once1 = 1
DISPLAY_BRIEF ( 1150 )
ENDIF
ENDIF



//P2 YELLOW AREA PHONE SUPPORT
IF ((LOCATE_CHARACTER_ON_FOOT ( p2  ,  142.5  , 146.5  ,  4.0  , 0.5 , 0.5  )) AND (CHECK_CHARACTER_HEALTH ( P2 , 0 )))
IF ( P2Once1 = 0 ) 
GANGP2 = CREATE_CHAR ( 143.5, 148.5 , 4.5 ) 10 0 criminal END
SET_CHAR_THREAT_REACTION ( GANGP2 , react_as_normal )
SET_CHAR_THREAT_SEARCH ( GANGP2 , line_of_sight )
GIVE_WEAPON ( GANGP2 , MACHINE_GUN ) 
ADD_GROUP_TO_CHARACTER ( GANGP2 , 8 )
MAKE_NEW_LEADER_OF_GROUP ( GANGP2 , P2 )
++P2Once1
DISPLAY_BRIEF ( 1150 )
ENDIF
ENDIF
//P2 RED AREA PHONE SUPPORT
IF ((LOCATE_CHARACTER_ON_FOOT ( p2  ,  142.5  , 65.5  ,  4.0  , 0.5 , 0.5  )) AND (CHECK_CHARACTER_HEALTH ( P2 , 0 )))
IF ( P2Once1 = 0 ) 
GANGP2 = CREATE_CHAR ( 142.5, 63.5 , 4.5 ) 10 0 criminal END
SET_CHAR_THREAT_REACTION ( GANGP2 , react_as_normal )
SET_CHAR_THREAT_SEARCH ( GANGP2 , line_of_sight )
GIVE_WEAPON ( GANGP2 , MACHINE_GUN ) 
ADD_GROUP_TO_CHARACTER ( GANGP2 , 8 )
MAKE_NEW_LEADER_OF_GROUP ( GANGP2 , P2 )
++P2Once1
DISPLAY_BRIEF ( 1150 )
ENDIF
ENDIF
//P2 BLUE AREA PHONE SUPPORT
IF ((LOCATE_CHARACTER_ON_FOOT ( p2  ,  82.5  , 65.5  ,  4.0  , 0.5 , 0.5  )) AND (CHECK_CHARACTER_HEALTH ( P2 , 0 )))
IF ( P2Once1 = 0 ) 
GANGP2 = CREATE_CHAR ( 80.5, 63.5 , 4.5 ) 10 0 criminal END
SET_CHAR_THREAT_REACTION ( GANGP2 , react_as_normal )
SET_CHAR_THREAT_SEARCH ( GANGP2 , line_of_sight )
GIVE_WEAPON ( GANGP2 , MACHINE_GUN ) 
ADD_GROUP_TO_CHARACTER ( GANGP2 , 8 )
MAKE_NEW_LEADER_OF_GROUP ( GANGP2 , P2 )
++P2Once1
DISPLAY_BRIEF ( 1150 )
ENDIF
ENDIF
//P2 GREEN AREA PHONE SUPPORT
IF ((LOCATE_CHARACTER_ON_FOOT ( p2  ,  82.5  , 146.5  ,  4.0  , 0.5 , 0.5  )) AND (CHECK_CHARACTER_HEALTH ( P2 , 0 )))
IF ( P2Once1 = 0 ) 
GANGP2 = CREATE_CHAR ( 80.5, 148.5 , 4.5 ) 10 0 criminal END
SET_CHAR_THREAT_REACTION ( GANGP2 , react_as_normal )
SET_CHAR_THREAT_SEARCH ( GANGP2 , line_of_sight )
GIVE_WEAPON ( GANGP2 , MACHINE_GUN ) 
ADD_GROUP_TO_CHARACTER ( GANGP2 , 8 )
MAKE_NEW_LEADER_OF_GROUP ( GANGP2 , P2 )
++P2Once1
DISPLAY_BRIEF ( 1150 )
ENDIF
ENDIF



//P3 YELLOW AREA PHONE SUPPORT
IF ((LOCATE_CHARACTER_ON_FOOT ( p3  ,  142.5  , 146.5  ,  4.0  , 0.5 , 0.5  )) AND (CHECK_CHARACTER_HEALTH ( P3 , 0 )))
IF ( P3Once1 = 0 ) 
GANGP3 = CREATE_CHAR ( 143.5, 148.5 , 4.5 ) 5 0 criminal END
SET_CHAR_THREAT_REACTION ( GANGP3 , react_as_normal )
SET_CHAR_THREAT_SEARCH ( GANGP3 , line_of_sight )
GIVE_WEAPON ( GANGP3 , MACHINE_GUN ) 
ADD_GROUP_TO_CHARACTER ( GANGP3 , 8 )
MAKE_NEW_LEADER_OF_GROUP ( GANGP3 , P3 )
++P3Once1
DISPLAY_BRIEF ( 1150 )
ENDIF
ENDIF
//P3 RED AREA PHONE SUPPORT
IF ((LOCATE_CHARACTER_ON_FOOT ( p3  ,  142.5  , 65.5  ,  4.0  , 0.5 , 0.5  )) AND (CHECK_CHARACTER_HEALTH ( P3 , 0 )))
IF ( P3Once1 = 0 ) 
GANGP3 = CREATE_CHAR ( 143.5, 63.5 , 4.5 ) 5 0 criminal END
SET_CHAR_THREAT_REACTION ( GANGP3 , react_as_normal )
SET_CHAR_THREAT_SEARCH ( GANGP3 , line_of_sight )
GIVE_WEAPON ( GANGP3 , MACHINE_GUN ) 
ADD_GROUP_TO_CHARACTER ( GANGP3 , 8 )
MAKE_NEW_LEADER_OF_GROUP ( GANGP3 , P3 )
++P3Once1
DISPLAY_BRIEF ( 1150 )
ENDIF
ENDIF
//P3 BLUE AREA PHONE SUPPORT
IF ((LOCATE_CHARACTER_ON_FOOT ( p3  ,  82.5  , 65.5  ,  4.0  , 0.5 , 0.5  )) AND (CHECK_CHARACTER_HEALTH ( P3 , 0 )))
IF ( P3Once1 = 0 ) 
GANGP3 = CREATE_CHAR ( 80.5, 63.5 , 4.5 ) 5 0 criminal END
SET_CHAR_THREAT_REACTION ( GANGP3 , react_as_normal )
SET_CHAR_THREAT_SEARCH ( GANGP3 , line_of_sight )
GIVE_WEAPON ( GANGP3 , MACHINE_GUN ) 
ADD_GROUP_TO_CHARACTER ( GANGP3 , 8 )
MAKE_NEW_LEADER_OF_GROUP ( GANGP3 , P3 )
++P3Once1
DISPLAY_BRIEF ( 1150 )
ENDIF
ENDIF
//P3 GREEN AREA PHONE SUPPORT
IF ((LOCATE_CHARACTER_ON_FOOT ( p3  ,  82.5  , 146.5  ,  4.0  , 0.5 , 0.5  )) AND (CHECK_CHARACTER_HEALTH ( P3 , 0 )))
IF ( P3Once1 = 0 ) 
GANGP3 = CREATE_CHAR ( 80.5, 148.5 , 4.5 ) 5 0 criminal END
SET_CHAR_THREAT_REACTION ( GANGP3 , react_as_normal )
SET_CHAR_THREAT_SEARCH ( GANGP3 , line_of_sight )
GIVE_WEAPON ( GANGP3 , MACHINE_GUN ) 
ADD_GROUP_TO_CHARACTER ( GANGP3 , 8 )
MAKE_NEW_LEADER_OF_GROUP ( GANGP3 , P3 )
++P3Once1
DISPLAY_BRIEF ( 1150 )
ENDIF
ENDIF



//P4 YELLOW AREA PHONE SUPPORT
IF ((LOCATE_CHARACTER_ON_FOOT ( p4  ,  142.5  , 146.5  ,  4.0  , 0.5 , 0.5  )) AND (CHECK_CHARACTER_HEALTH ( P4 , 0 )))
IF ( P4Once1 = 0 ) 
GANGP4 = CREATE_CHAR ( 143.5, 148.5 , 4.5 ) 11 0 criminal END
SET_CHAR_THREAT_REACTION ( GANGP4 , react_as_normal )
SET_CHAR_THREAT_SEARCH ( GANGP4 , line_of_sight )
GIVE_WEAPON ( GANGP4 , MACHINE_GUN ) 
ADD_GROUP_TO_CHARACTER ( GANGP4 , 8 )
MAKE_NEW_LEADER_OF_GROUP ( GANGP4 , P4 )
++P4Once1
DISPLAY_BRIEF ( 1150 )
ENDIF
ENDIF
//P4 RED AREA PHONE SUPPORT
IF ((LOCATE_CHARACTER_ON_FOOT ( p4  ,  142.5  , 65.5  ,  4.0  , 0.5 , 0.5  )) AND (CHECK_CHARACTER_HEALTH ( P4 , 0 )))
IF ( P4Once1 = 0 ) 
GANGP4 = CREATE_CHAR ( 143.5, 63.5 , 4.5 ) 11 0 criminal END
SET_CHAR_THREAT_REACTION ( GANGP4 , react_as_normal )
SET_CHAR_THREAT_SEARCH ( GANGP4 , line_of_sight )
GIVE_WEAPON ( GANGP4 , MACHINE_GUN ) 
ADD_GROUP_TO_CHARACTER ( GANGP4 , 8 )
MAKE_NEW_LEADER_OF_GROUP ( GANGP4 , P4 )
++P4Once1
DISPLAY_BRIEF ( 1150 )
ENDIF
ENDIF
//P4 BLUE AREA PHONE SUPPORT
IF ((LOCATE_CHARACTER_ON_FOOT ( p4  ,  82.5  , 65.5  ,  4.0  , 0.5 , 0.5  )) AND (CHECK_CHARACTER_HEALTH ( P4 , 0 )))
IF ( P4Once1 = 0 ) 
GANGP4 = CREATE_CHAR ( 80.5, 63.5 , 4.5 ) 11 0 criminal END
SET_CHAR_THREAT_REACTION ( GANGP4 , react_as_normal )
SET_CHAR_THREAT_SEARCH ( GANGP4 , line_of_sight )
GIVE_WEAPON ( GANGP4 , MACHINE_GUN ) 
ADD_GROUP_TO_CHARACTER ( GANGP4 , 8 )
MAKE_NEW_LEADER_OF_GROUP ( GANGP4 , P4 )
++P4Once1
DISPLAY_BRIEF ( 1150 )
ENDIF
ENDIF
//P4 GREEN AREA PHONE SUPPORT
IF ((LOCATE_CHARACTER_ON_FOOT ( p4  ,  82.5  , 146.5  ,  4.0  , 0.5 , 0.5  )) AND (CHECK_CHARACTER_HEALTH ( P4 , 0 )))
IF ( P4Once1 = 0 ) 
GANGP4 = CREATE_CHAR ( 80.5, 148.5 , 4.5 ) 11 0 criminal END
SET_CHAR_THREAT_REACTION ( GANGP4 , react_as_normal )
SET_CHAR_THREAT_SEARCH ( GANGP4 , line_of_sight )
GIVE_WEAPON ( GANGP4 , MACHINE_GUN ) 
ADD_GROUP_TO_CHARACTER ( GANGP4 , 8 )
MAKE_NEW_LEADER_OF_GROUP ( GANGP4 , P4 )
++P4Once1
DISPLAY_BRIEF ( 1150 )
ENDIF
ENDIF


//P5 YELLOW AREA PHONE SUPPORT
IF ((LOCATE_CHARACTER_ON_FOOT ( p5  ,  142.5  , 146.5  ,  4.0  , 0.5 , 0.5  )) AND (CHECK_CHARACTER_HEALTH ( P5 , 0 )))
IF ( P5Once1 = 0 ) 
GANGP5 = CREATE_CHAR ( 143.5, 148.5 , 4.5 ) 9 0 criminal END
SET_CHAR_THREAT_REACTION ( GANGP5 , react_as_normal )
SET_CHAR_THREAT_SEARCH ( GANGP5 , line_of_sight )
GIVE_WEAPON ( GANGP5 , MACHINE_GUN ) 
ADD_GROUP_TO_CHARACTER ( GANGP5 , 8 )
MAKE_NEW_LEADER_OF_GROUP ( GANGP5 , P5 )
++P5Once1
DISPLAY_BRIEF ( 1150 )
ENDIF
ENDIF
//P5 RED AREA PHONE SUPPORT
IF ((LOCATE_CHARACTER_ON_FOOT ( p5  ,  142.5  , 65.5  ,  4.0  , 0.5 , 0.5  )) AND (CHECK_CHARACTER_HEALTH ( P5 , 0 )))
IF ( P5Once1 = 0 ) 
GANGP5 = CREATE_CHAR ( 143.5, 63.5 , 4.5 ) 9 0 criminal END
SET_CHAR_THREAT_REACTION ( GANGP5 , react_as_normal )
SET_CHAR_THREAT_SEARCH ( GANGP5 , line_of_sight )
GIVE_WEAPON ( GANGP5 , MACHINE_GUN ) 
ADD_GROUP_TO_CHARACTER ( GANGP5 , 8 )
MAKE_NEW_LEADER_OF_GROUP ( GANGP5 , P5 )
++P5Once1
DISPLAY_BRIEF ( 1150 )
ENDIF
ENDIF
//P5 BLUE AREA PHONE SUPPORT
IF ((LOCATE_CHARACTER_ON_FOOT ( p5  ,  82.5  , 65.5  ,  4.0  , 0.5 , 0.5  )) AND (CHECK_CHARACTER_HEALTH ( P5 , 0 )))
IF ( P5Once1 = 0 ) 
GANGP5 = CREATE_CHAR ( 80.5, 63.5 , 4.5 ) 9 0 criminal END
SET_CHAR_THREAT_REACTION ( GANGP5 , react_as_normal )
SET_CHAR_THREAT_SEARCH ( GANGP5 , line_of_sight )
GIVE_WEAPON ( GANGP5 , MACHINE_GUN ) 
ADD_GROUP_TO_CHARACTER ( GANGP5 , 8 )
MAKE_NEW_LEADER_OF_GROUP ( GANGP5 , P5 )
++P5Once1
DISPLAY_BRIEF ( 1150 )
ENDIF
ENDIF
//P5 GREEN AREA PHONE SUPPORT
IF ((LOCATE_CHARACTER_ON_FOOT ( p5  ,  82.5  , 146.5  ,  4.0  , 0.5 , 0.5  )) AND (CHECK_CHARACTER_HEALTH ( P5 , 0 )))
IF ( P5Once1 = 0 ) 
GANGP5 = CREATE_CHAR ( 80.5, 148.5 , 4.5 ) 9 0 criminal END
SET_CHAR_THREAT_REACTION ( GANGP5 , react_as_normal )
SET_CHAR_THREAT_SEARCH ( GANGP5 , line_of_sight )
GIVE_WEAPON ( GANGP5 , MACHINE_GUN ) 
ADD_GROUP_TO_CHARACTER ( GANGP5 , 8 )
MAKE_NEW_LEADER_OF_GROUP ( GANGP5 , P5 )
++P5Once1
DISPLAY_BRIEF ( 1150 )
ENDIF
ENDIF



//P6 YELLOW AREA PHONE SUPPORT
IF ((LOCATE_CHARACTER_ON_FOOT ( p6  ,  142.5  , 146.5  ,  4.0  , 0.5 , 0.5  )) AND (CHECK_CHARACTER_HEALTH ( P6 , 0 )))
IF ( P6Once1 = 0 ) 
GANGP6 = CREATE_CHAR ( 143.5, 148.5 , 4.5 ) 13 0 criminal END
SET_CHAR_THREAT_REACTION ( GANGP6 , react_as_normal )
SET_CHAR_THREAT_SEARCH ( GANGP6 , line_of_sight )
GIVE_WEAPON ( GANGP6 , MACHINE_GUN ) 
ADD_GROUP_TO_CHARACTER ( GANGP6 , 8 )
MAKE_NEW_LEADER_OF_GROUP ( GANGP6 , P6 )
++P6Once1
DISPLAY_BRIEF ( 1150 )
ENDIF
ENDIF
//P6 RED AREA PHONE SUPPORT
IF ((LOCATE_CHARACTER_ON_FOOT ( p6  ,  142.5  , 65.5  ,  4.0  , 0.5 , 0.5  )) AND (CHECK_CHARACTER_HEALTH ( P6 , 0 )))
IF ( P6Once1 = 0 ) 
GANGP6 = CREATE_CHAR ( 143.5, 63.5 , 4.5 ) 13 0 criminal END
SET_CHAR_THREAT_REACTION ( GANGP6 , react_as_normal )
SET_CHAR_THREAT_SEARCH ( GANGP6 , line_of_sight )
GIVE_WEAPON ( GANGP6 , MACHINE_GUN ) 
ADD_GROUP_TO_CHARACTER ( GANGP6 , 8 )
MAKE_NEW_LEADER_OF_GROUP ( GANGP6, P6 )
++P6Once1
DISPLAY_BRIEF ( 1150 )
ENDIF
ENDIF
//P6 BLUE AREA PHONE SUPPORT
IF ((LOCATE_CHARACTER_ON_FOOT ( p6  ,  82.5  , 65.5  ,  4.0  , 0.5 , 0.5  )) AND (CHECK_CHARACTER_HEALTH ( P6 , 0 )))
IF ( P6Once1 = 0 ) 
GANGP6 = CREATE_CHAR ( 80.5, 63.5 , 4.5 ) 13 0 criminal END
SET_CHAR_THREAT_REACTION ( GANGP6 , react_as_normal )
SET_CHAR_THREAT_SEARCH ( GANGP6 , line_of_sight )
GIVE_WEAPON ( GANGP6 , MACHINE_GUN ) 
ADD_GROUP_TO_CHARACTER ( GANGP6 , 8 )
MAKE_NEW_LEADER_OF_GROUP ( GANGP6, P6 )
++P6Once1
DISPLAY_BRIEF ( 1150 )
ENDIF
ENDIF
//P6 GREEN AREA PHONE SUPPORT
IF ((LOCATE_CHARACTER_ON_FOOT ( p6  ,  82.5  , 146.5  ,  4.0  , 0.5 , 0.5  )) AND (CHECK_CHARACTER_HEALTH ( P6 , 0 )))
IF ( P6Once1 = 0 ) 
GANGP6 = CREATE_CHAR ( 80.5, 148.5 , 4.5 ) 13 0 criminal END
SET_CHAR_THREAT_REACTION ( GANGP6 , react_as_normal )
SET_CHAR_THREAT_SEARCH ( GANGP6 , line_of_sight )
GIVE_WEAPON ( GANGP6 , MACHINE_GUN ) 
ADD_GROUP_TO_CHARACTER ( GANGP6 , 8 )
MAKE_NEW_LEADER_OF_GROUP ( GANGP6, P6 )
++P6Once1
DISPLAY_BRIEF ( 1150 )
ENDIF
ENDIF




//P1 DEATH CHECK
IF ( HAS_CHARACTER_DIED ( P1 ) )
DELETE_ITEM ( GANGP1 )
IF ( P1Once1 = 1 ) 
SET P1Once1 = 0 
ENDIF 
ENDIF

//P2 DEATH CHECK 
IF ( HAS_CHARACTER_DIED ( P2 ) )
DELETE_ITEM ( GANGP2 )
IF ( P2Once1 = 1 ) 
SET P2Once1 = 0 
ENDIF 
ENDIF

//P3 DEATH CHECK
IF ( HAS_CHARACTER_DIED ( P3 ) )
DELETE_ITEM ( GANGP3 )
IF ( P3Once1 = 1 ) 
SET P3Once1 = 0 
ENDIF 
ENDIF

//P4 DEATH CHECK
IF ( HAS_CHARACTER_DIED ( P4 ) )
DELETE_ITEM ( GANGP4 )
IF ( P4Once1 = 1 ) 
SET P4Once1 = 0 
ENDIF 
ENDIF

//P5 DEATH CHECK
IF ( HAS_CHARACTER_DIED ( P5 ) )
DELETE_ITEM ( GANGP5 )
IF ( P5Once1 = 1 ) 
SET P5Once1 = 0 
ENDIF 
ENDIF

//P6 DEATH CHECK
IF ( HAS_CHARACTER_DIED ( P6 ) )
DELETE_ITEM ( GANGP6 )
IF ( P6Once1 = 1 ) 
SET P6Once1 = 0 
ENDIF 
ENDIF

ENDWHILE
LEVELEND

//P1 GANG DEATH CHECK
/*IF ( HAS_CHARACTER_DIED ( GANGP1 ) )
DELETE_ITEM ( GANGP1 )
IF ( P1Once1 = 1 ) 
SET P1Once1 = 0 
ENDIF 
ENDIF

//P2 GANG DEATH CHECK
IF ( HAS_CHARACTER_DIED ( GANGP2 ) )
DELETE_ITEM ( GANGP2 )
IF ( P2Once1 = 1 ) 
SET P2Once1 = 0 
ENDIF 
ENDIF

//P3 GANG DEATH CHECK
IF ( HAS_CHARACTER_DIED ( GANGP3 ) )
DELETE_ITEM ( GANGP3 )
IF ( P3Once1 = 1 ) 
SET P3Once1 = 0 
ENDIF 
ENDIF
