PLAYER_PED Player1 = ( 36.0 , 13.5 , 1.0 ) 5 0
PLAYER_PED Player2 = ( 211.0 , 13.5 , 1.0 ) 6 0
PLAYER_PED Player3 = ( 221.0 , 245.5 , 1.0 ) 37 180
PLAYER_PED Player4 = ( 32.0 , 245.5 , 1.0 ) 38 180

SET_STATION_INFO ( trak00 , 3 , 3 , 3 )
SET_STATION_INFO ( trak01 , 3 , 3 , 3 )
SET_STATION_INFO ( trak02 , 3 , 3 , 3 )
SET_STATION_INFO ( trak03 , 3 , 3 , 3 )

COUNTER Loop = 1
COUNTER Target = 1
DECLARE_POLICELEVEL ( 3 )

CAR_DATA Car1 = ( 16.0 , 12.5 , 1.0 ) -1 180 GUNJEEP 
CAR_DATA Car2 = ( 202.5 , 7.0 , 1.0 ) -1 90 GUNJEEP
CAR_DATA Car3 = ( 194.5 , 250.5 , 1.0 ) -1 90 GUNJEEP
CAR_DATA Car4 = ( 59.5 , 236.5 , 1.0 ) -1 270 GUNJEEP

CHAR_DATA Bot1
CHAR_DATA Bot2
CHAR_DATA Bot3
CHAR_DATA Bot4
CHAR_DATA Bot5
CHAR_DATA Bot6
CHAR_DATA Bot7
CHAR_DATA Bot8
CHAR_DATA Bot9
CHAR_DATA Bot10
CHAR_DATA Chr1
CHAR_DATA Chr2

ARROW_DATA Bot1Arrow
ARROW_DATA Bot2Arrow
ARROW_DATA Bot3Arrow
ARROW_DATA Bot4Arrow
ARROW_DATA Bot5Arrow
ARROW_DATA Bot6Arrow
ARROW_DATA Bot7Arrow
ARROW_DATA Bot8Arrow
ARROW_DATA Bot9Arrow
ARROW_DATA Bot10Arrow

GENERATOR Gen1 = ( 15.5 , 8.5 , 1.0 ) 0 COLLECT_30 0 0 99
GENERATOR Gen2 = ( 202.5 , 5.5 , 1.0 ) 0 COLLECT_30 0 0 99
GENERATOR Gen3 = ( 194.5 , 235.5 , 1.0 ) 0 COLLECT_30 0 0 99
GENERATOR Gen4 = ( 22.5 , 235.5 , 1.0 ) 0 COLLECT_30 0 0 99
GENERATOR Gen5 = ( 51.5 , 7.5 , 1.0 ) 0 COLLECT_31 0 0 99
GENERATOR Gen6 = ( 229.5 , 7.5 , 1.0 ) 0 COLLECT_31 0 0 99
GENERATOR Gen7 = ( 231.5 , 235.5 , 1.0 ) 0 COLLECT_31 0 0 99
GENERATOR Gen8 = ( 59.5 , 235.5 , 1.0 ) 0 COLLECT_31 0 0 99
GENERATOR Gen9 = ( 32.5 , 42.5 , 1.0 ) 0 COLLECT_35 0 0 99
GENERATOR Gen10 = ( 202.5 , 23.5 , 1.0 ) 0 COLLECT_35 0 0 99
GENERATOR Gen11 = ( 194.5 , 251.5 , 1.0 ) 0 COLLECT_35 0 0 99
GENERATOR Gen12 = ( 22.5 , 251.5 , 1.0 ) 0 COLLECT_35 0 0 99
GENERATOR Gen13 = ( 39.5 , 42.5 , 1.0 ) 0 COLLECT_36 0 0 99
GENERATOR Gen14 = ( 228.5 , 25.5 , 1.0 ) 0 COLLECT_36 0 0 99
GENERATOR Gen15 = ( 231.5 , 251.5 , 1.0 ) 0 COLLECT_36 0 0 99
GENERATOR Gen16 = ( 59.5 , 251.5 , 1.0 ) 0 COLLECT_36 0 0 99

SOUND Sound1 = ( 30.0 , 17.5 , 3.0 ) BOWLING_ALLEY PLAY_FOREVER
SOUND Sound2 = ( 36.0 , 13.0 , 2.0 ) COUNTRY_CLUB PLAY_FOREVER
SOUND Sound3 = ( 211.0 , 13.0 , 2.0 ) DISGRACELAND PLAY_FOREVER
SOUND Sound4 = ( 228.0 , 241.0 , 2.0 ) DISGRACELAND PLAY_FOREVER
SOUND Sound5 = ( 37.0 , 241.0 , 4.0 ) DISGRACELAND PLAY_FOREVER
SOUND Sound6 = ( 45.0 , 241.0 , 2.0 ) COUNTRY_CLUB PLAY_FOREVER
SOUND Sound7 = ( 122.5 , 122.5 , 6.0 ) PRISON_YARD PLAY_FOREVER
SOUND Sound8 = ( 135.5 , 122.5 , 6.0 ) PRISON_YARD PLAY_FOREVER
SOUND Sound9 = ( 122.5 , 134.5 , 6.0 ) PRISON_YARD PLAY_FOREVER
SOUND Sound10 = ( 135.5 , 134.5 , 6.0 ) PRISON_YARD PLAY_FOREVER

LEVELSTART

SET_GANG_INFO ( prisonergang , 45 , NO_WEAPON , NO_WEAPON , NO_WEAPON , 0 , 129.0 , 131.0 , 2.0 , 0 , MERC , -1 )
MAP_ZONE Texas_State_Prison = ( 0 , 0 , 0 , 0 , 1000 , 0 , 0 , 0 , 980 , 20 , 0 )

SWITCH_GENERATOR ( Gen1 , ON )
SWITCH_GENERATOR ( Gen2 , ON )
SWITCH_GENERATOR ( Gen3 , ON )
SWITCH_GENERATOR ( Gen4 , ON )
SWITCH_GENERATOR ( Gen5 , ON )
SWITCH_GENERATOR ( Gen6 , ON )
SWITCH_GENERATOR ( Gen7 , ON )
SWITCH_GENERATOR ( Gen8 , ON )
SWITCH_GENERATOR ( Gen9 , ON )
SWITCH_GENERATOR ( Gen10 , ON )
SWITCH_GENERATOR ( Gen11 , ON )
SWITCH_GENERATOR ( Gen12 , ON )
SWITCH_GENERATOR ( Gen13 , ON )
SWITCH_GENERATOR ( Gen14 , ON )
SWITCH_GENERATOR ( Gen15 , ON )
SWITCH_GENERATOR ( Gen16 , ON )

Bot1 = CREATE_CHAR ( 122.5 , 122.5 , 6.0 ) 0 225 POLICE END
SET_CHAR_THREAT_SEARCH ( Bot1 , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_REACTION ( Bot1 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Bot1 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Bot1 , LOONY )
SET_CHAR_GRAPHIC_TYPE ( Bot1 , EMERG_GRAPHIC , 0 )
GIVE_WEAPON ( Bot1 , MOLOTOV )
SET_CHAR_OBJECTIVE ( Bot1 , GUARD_SPOT )

Bot2 = CREATE_CHAR ( 135.5 , 122.5 , 6.0 ) 0 135 POLICE END
SET_CHAR_THREAT_SEARCH ( Bot2 , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_REACTION ( Bot2 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Bot2 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Bot2 , LOONY )
SET_CHAR_GRAPHIC_TYPE ( Bot2 , EMERG_GRAPHIC , 0 )
GIVE_WEAPON ( Bot2 , MOLOTOV )
SET_CHAR_OBJECTIVE ( Bot2 , GUARD_SPOT )

Bot3 = CREATE_CHAR ( 122.5 , 134.5 , 6.0 ) 0 315 POLICE END
SET_CHAR_THREAT_SEARCH ( Bot3 , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_REACTION ( Bot3 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Bot3 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Bot3 , LOONY )
SET_CHAR_GRAPHIC_TYPE ( Bot3 , EMERG_GRAPHIC , 0 )
GIVE_WEAPON ( Bot3 , MOLOTOV )
SET_CHAR_OBJECTIVE ( Bot3 , GUARD_SPOT )

Bot4 = CREATE_CHAR ( 135.5 , 134.5 , 6.0 ) 0 45 POLICE END
SET_CHAR_THREAT_SEARCH ( Bot4 , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_REACTION ( Bot4 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Bot4 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Bot4 , LOONY )
SET_CHAR_GRAPHIC_TYPE ( Bot4 , EMERG_GRAPHIC , 0 )
GIVE_WEAPON ( Bot4 , MOLOTOV )
SET_CHAR_OBJECTIVE ( Bot4 , GUARD_SPOT )

Bot5 = CREATE_CHAR ( 124.5 , 132.5 , 2.0 ) 0 180 POLICE END
SET_CHAR_THREAT_SEARCH ( Bot5 , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_REACTION ( Bot5 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Bot5 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Bot5 , LOONY )
SET_CHAR_GRAPHIC_TYPE ( Bot5 , EMERG_GRAPHIC , 0 )
GIVE_WEAPON ( Bot5 , MACHINE_GUN )
POINT_ARROW_AT ( Bot5Arrow , Bot5 )
ADD_PATROL_POINT ( Bot5 , 124.5 , 124.5 , 2.0 )
ADD_PATROL_POINT ( Bot5 , 133.5 , 124.5 , 2.0 )
ADD_PATROL_POINT ( Bot5 , 124.5 , 124.5 , 2.0 )
ADD_PATROL_POINT ( Bot5 , 124.5 , 132.5 , 2.0 )

Bot6 = CREATE_CHAR ( 33.5 , 33.0 , 1.0 ) 45 90 CRIMINAL END
SET_CHAR_THREAT_SEARCH ( Bot6 , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_REACTION ( Bot6 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Bot6 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Bot6 , LOONY )
SET_CHAR_GRAPHIC_TYPE ( Bot6 , GANG_GRAPHIC , 45 )
ADD_GROUP_TO_CHARACTER ( Bot6 , 3 )
GIVE_WEAPON ( Bot6 , PISTOL )
POINT_ARROW_AT ( Bot6Arrow , Bot6 )
MAKE_CHAR_DO_NOTHING ( Bot6 )

Bot7 = CREATE_CHAR ( 223.0 , 17.5 , 1.0 ) 45 180 CRIMINAL END
SET_CHAR_THREAT_SEARCH ( Bot7 , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_REACTION ( Bot7 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Bot7 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Bot7 , LOONY )
SET_CHAR_GRAPHIC_TYPE ( Bot7 , GANG_GRAPHIC , 45 )
ADD_GROUP_TO_CHARACTER ( Bot7 , 3 )
GIVE_WEAPON ( Bot7 , PISTOL )
POINT_ARROW_AT ( Bot7Arrow , Bot7 )
MAKE_CHAR_DO_NOTHING ( Bot7 )

Bot8 = CREATE_CHAR ( 205.0 , 241.5 , 1.0 ) 45 270 CRIMINAL END
SET_CHAR_THREAT_SEARCH ( Bot8 , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_REACTION ( Bot8 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Bot8 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Bot8 , LOONY )
SET_CHAR_GRAPHIC_TYPE ( Bot8 , GANG_GRAPHIC , 45 )
ADD_GROUP_TO_CHARACTER ( Bot8 , 3 )
GIVE_WEAPON ( Bot8 , PISTOL )
POINT_ARROW_AT ( Bot8Arrow , Bot8 )
MAKE_CHAR_DO_NOTHING ( Bot8 )

Bot9 = CREATE_CHAR ( 51.0 , 241.5 , 1.0 ) 45 0 CRIMINAL END
SET_CHAR_THREAT_SEARCH ( Bot9 , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_REACTION ( Bot9 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Bot9 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Bot9 , LOONY )
SET_CHAR_GRAPHIC_TYPE ( Bot9 , GANG_GRAPHIC , 45 )
ADD_GROUP_TO_CHARACTER ( Bot9 , 3 )
GIVE_WEAPON ( Bot9 , PISTOL )
POINT_ARROW_AT ( Bot9Arrow , Bot9 )
MAKE_CHAR_DO_NOTHING ( Bot9 )

Bot10 = CREATE_CHAR ( 133.5 , 124.5 , 2.0 ) 0 0 POLICE END
SET_CHAR_THREAT_SEARCH ( Bot10 , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_REACTION ( Bot10 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Bot10 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Bot10 , LOONY )
SET_CHAR_GRAPHIC_TYPE ( Bot10 , EMERG_GRAPHIC , 0 )
GIVE_WEAPON ( Bot10 , MACHINE_GUN )
POINT_ARROW_AT ( Bot10Arrow , Bot10 )
ADD_PATROL_POINT ( Bot10 , 133.5 , 132.5 , 2.0 )
ADD_PATROL_POINT ( Bot10 , 124.5 , 132.5 , 2.0 )
ADD_PATROL_POINT ( Bot10 , 133.5 , 132.5 , 2.0 )
ADD_PATROL_POINT ( Bot10 , 133.5 , 124.5 , 2.0 )
                                            
Chr1 = CREATE_CHAR ( 207.5 , 127.5 , 1.0 ) 12 90 ELVIS END
SET_CHAR_THREAT_SEARCH ( Chr1 , AREA )
SET_CHAR_THREAT_REACTION ( Chr1 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Chr1 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Chr1 , LOONY )
GIVE_WEAPON ( Chr1 , SHOTGUN )
ADD_PATROL_POINT ( Chr1 , 208.5 , 127.5 , 1.0 )
ADD_PATROL_POINT ( Chr1 , 208.5 , 125.5 , 1.0 )
ADD_PATROL_POINT ( Chr1 , 208.5 , 127.5 , 1.0 )
ADD_PATROL_POINT ( Chr1 , 207.5 , 127.5 , 1.0 )

Chr2 = CREATE_CHAR ( 38.5 , 122.5 , 1.0 ) 40 90 PSYCHO END
SET_CHAR_THREAT_SEARCH ( Chr2 , AREA )
SET_CHAR_THREAT_REACTION ( Chr2 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Chr2 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Chr2 , LOONY )
GIVE_WEAPON ( Chr2 , DUAL_PISTOL )
ADD_PATROL_POINT ( Chr2 , 40.5 , 122.5 , 1.0 )
ADD_PATROL_POINT ( Chr2 , 40.5 , 123.5 , 1.0 )
ADD_PATROL_POINT ( Chr2 , 38.5 , 123.5 , 1.0 )
ADD_PATROL_POINT ( Chr2 , 38.5 , 122.5 , 1.0 )

SET_ARROW_COLOUR ( Bot1 , BLUE )
SET_ARROW_COLOUR ( Bot2 , BLUE )
SET_ARROW_COLOUR ( Bot3 , BLUE )
SET_ARROW_COLOUR ( Bot4 , BLUE )
SET_ARROW_COLOUR ( Bot5 , BLUE )
SET_ARROW_COLOUR ( Bot6 , YELLOW )
SET_ARROW_COLOUR ( Bot7 , YELLOW )
SET_ARROW_COLOUR ( Bot8 , YELLOW )
SET_ARROW_COLOUR ( Bot9 , YELLOW )
SET_ARROW_COLOUR ( Bot10 , BLUE )

SET_CAR_BULLETPROOF ( Car1 , ON )
SET_CAR_BULLETPROOF ( Car2 , ON )
SET_CAR_BULLETPROOF ( Car3 , ON )
SET_CAR_BULLETPROOF ( Car4 , ON )
SET_CAR_FLAMEPROOF ( Car1 , ON )
SET_CAR_FLAMEPROOF ( Car2 , ON )
SET_CAR_FLAMEPROOF ( Car3 , ON )
SET_CAR_FLAMEPROOF ( Car4 , ON )
SET_CAR_ROCKETPROOF ( Car1 , ON )
SET_CAR_ROCKETPROOF ( Car2 , ON )
SET_CAR_ROCKETPROOF ( Car3 , ON )
SET_CAR_ROCKETPROOF ( Car4 , ON )
SET_CAR_NO_COLLIDE ( Car1 )
SET_CAR_NO_COLLIDE ( Car2 )
SET_CAR_NO_COLLIDE ( Car3 )
SET_CAR_NO_COLLIDE ( Car4 )

WHILE_EXEC ( Loop = 1 )

IF ( ( IS_CHAR_OBJECTIVE_FAILED ( Bot1 ) ) OR ( IS_CHAR_OBJECTIVE_PASSED ( Bot1 ) ) )
IF ( Target = 1 )
SET_CHAR_OBJECTIVE ( Bot1 , KILL_CHAR_ANY_MEANS , Player1 ) 
SET Target = 1
ENDIF
IF ( Target = 2 )
SET_CHAR_OBJECTIVE ( Bot1 , KILL_CHAR_ANY_MEANS , Player2 ) 
SET Target = 3
ENDIF
IF ( Target = 3 )
SET_CHAR_OBJECTIVE ( Bot1 , KILL_CHAR_ANY_MEANS , Player3 ) 
SET Target = 4
ENDIF
IF ( Target = 4 )
SET_CHAR_OBJECTIVE ( Bot1 , KILL_CHAR_ANY_MEANS , Player4 ) 
SET Target = 1
ENDIF
ENDIF

IF ( ( IS_CHAR_OBJECTIVE_FAILED ( Bot2 ) ) OR ( IS_CHAR_OBJECTIVE_PASSED ( Bot2 ) ) )
IF ( Target = 1 )
SET_CHAR_OBJECTIVE ( Bot2 , KILL_CHAR_ANY_MEANS , Player1 ) 
SET Target = 1
ENDIF
IF ( Target = 2 )
SET_CHAR_OBJECTIVE ( Bot2 , KILL_CHAR_ANY_MEANS , Player2 ) 
SET Target = 3
ENDIF
IF ( Target = 3 )
SET_CHAR_OBJECTIVE ( Bot2 , KILL_CHAR_ANY_MEANS , Player3 ) 
SET Target = 4
ENDIF
IF ( Target = 4 )
SET_CHAR_OBJECTIVE ( Bot2 , KILL_CHAR_ANY_MEANS , Player4 ) 
SET Target = 1
ENDIF
ENDIF

IF ( ( IS_CHAR_OBJECTIVE_FAILED ( Bot3 ) ) OR ( IS_CHAR_OBJECTIVE_PASSED ( Bot3 ) ) )
IF ( Target = 1 )
SET_CHAR_OBJECTIVE ( Bot3 , KILL_CHAR_ANY_MEANS , Player1 ) 
SET Target = 1
ENDIF
IF ( Target = 2 )
SET_CHAR_OBJECTIVE ( Bot3 , KILL_CHAR_ANY_MEANS , Player2 ) 
SET Target = 3
ENDIF
IF ( Target = 3 )
SET_CHAR_OBJECTIVE ( Bot3 , KILL_CHAR_ANY_MEANS , Player3 ) 
SET Target = 4
ENDIF
IF ( Target = 4 )
SET_CHAR_OBJECTIVE ( Bot3 , KILL_CHAR_ANY_MEANS , Player4 ) 
SET Target = 1
ENDIF
ENDIF

IF ( ( IS_CHAR_OBJECTIVE_FAILED ( Bot4 ) ) OR ( IS_CHAR_OBJECTIVE_PASSED ( Bot4 ) ) )
IF ( Target = 1 )
SET_CHAR_OBJECTIVE ( Bot4 , KILL_CHAR_ANY_MEANS , Player1 )
SET Target = 1
ENDIF
IF ( Target = 2 )
SET_CHAR_OBJECTIVE ( Bot4 , KILL_CHAR_ANY_MEANS , Player2 )
SET Target = 3
ENDIF
IF ( Target = 3 )
SET_CHAR_OBJECTIVE ( Bot4 , KILL_CHAR_ANY_MEANS , Player3 )
SET Target = 4
ENDIF
IF ( Target = 4 )
SET_CHAR_OBJECTIVE ( Bot4 , KILL_CHAR_ANY_MEANS , Player4 )
SET Target = 1
ENDIF
ENDIF

IF ( ( IS_CHAR_OBJECTIVE_FAILED ( Bot5 ) ) OR ( IS_CHAR_OBJECTIVE_PASSED ( Bot5 ) ) )
IF ( Target = 1 )
SET_CHAR_OBJECTIVE ( Bot5 , KILL_CHAR_ANY_MEANS , Player1 )
SET Target = 1
ENDIF
IF ( Target = 2 )
SET_CHAR_OBJECTIVE ( Bot5 , KILL_CHAR_ANY_MEANS , Player2 )
SET Target = 3
ENDIF
IF ( Target = 3 )
SET_CHAR_OBJECTIVE ( Bot5 , KILL_CHAR_ANY_MEANS , Player3 )
SET Target = 4
ENDIF
IF ( Target = 4 )
SET_CHAR_OBJECTIVE ( Bot5 , KILL_CHAR_ANY_MEANS , Player4 )
SET Target = 1
ENDIF
ENDIF

IF ( ( IS_CHAR_OBJECTIVE_FAILED ( Bot6 ) ) OR ( IS_CHAR_OBJECTIVE_PASSED ( Bot6 ) ) )
IF ( Target = 1 )
SET_CHAR_OBJECTIVE ( Bot6 , KILL_CHAR_ANY_MEANS , Player1 )
SET Target = 1
ENDIF
IF ( Target = 2 )
SET_CHAR_OBJECTIVE ( Bot6 , KILL_CHAR_ANY_MEANS , Player2 )
SET Target = 3
ENDIF
IF ( Target = 3 )
SET_CHAR_OBJECTIVE ( Bot6 , KILL_CHAR_ANY_MEANS , Player3 )
SET Target = 4
ENDIF
IF ( Target = 4 )
SET_CHAR_OBJECTIVE ( Bot6 , KILL_CHAR_ANY_MEANS , Player4 )
SET Target = 1
ENDIF
ENDIF

IF ( ( IS_CHAR_OBJECTIVE_FAILED ( Bot7 ) ) OR ( IS_CHAR_OBJECTIVE_PASSED ( Bot7 ) ) )
IF ( Target = 1 )
SET_CHAR_OBJECTIVE ( Bot7 , KILL_CHAR_ANY_MEANS , Player1 )
SET Target = 1
ENDIF
IF ( Target = 2 )
SET_CHAR_OBJECTIVE ( Bot7 , KILL_CHAR_ANY_MEANS , Player2 )
SET Target = 3
ENDIF
IF ( Target = 3 )
SET_CHAR_OBJECTIVE ( Bot7 , KILL_CHAR_ANY_MEANS , Player3 )
SET Target = 4
ENDIF
IF ( Target = 4 )
SET_CHAR_OBJECTIVE ( Bot7 , KILL_CHAR_ANY_MEANS , Player4 )
SET Target = 1
ENDIF
ENDIF

IF ( ( IS_CHAR_OBJECTIVE_FAILED ( Bot8 ) ) OR ( IS_CHAR_OBJECTIVE_PASSED ( Bot8 ) ) )
IF ( Target = 1 )
SET_CHAR_OBJECTIVE ( Bot8 , KILL_CHAR_ANY_MEANS , Player1 )
SET Target = 1
ENDIF
IF ( Target = 2 )
SET_CHAR_OBJECTIVE ( Bot8 , KILL_CHAR_ANY_MEANS , Player2 )
SET Target = 3
ENDIF
IF ( Target = 3 )
SET_CHAR_OBJECTIVE ( Bot8 , KILL_CHAR_ANY_MEANS , Player3 )
SET Target = 4
ENDIF
IF ( Target = 4 )
SET_CHAR_OBJECTIVE ( Bot8 , KILL_CHAR_ANY_MEANS , Player4 )
SET Target = 1
ENDIF
ENDIF

IF ( ( IS_CHAR_OBJECTIVE_FAILED ( Bot9 ) ) OR ( IS_CHAR_OBJECTIVE_PASSED ( Bot9 ) ) )
IF ( Target = 1 )
SET_CHAR_OBJECTIVE ( Bot9 , KILL_CHAR_ANY_MEANS , Player1 )
SET Target = 1
ENDIF
IF ( Target = 2 )
SET_CHAR_OBJECTIVE ( Bot9 , KILL_CHAR_ANY_MEANS , Player2 )
SET Target = 3
ENDIF
IF ( Target = 3 )
SET_CHAR_OBJECTIVE ( Bot9 , KILL_CHAR_ANY_MEANS , Player3 )
SET Target = 4
ENDIF
IF ( Target = 4 )
SET_CHAR_OBJECTIVE ( Bot9 , KILL_CHAR_ANY_MEANS , Player4 )
SET Target = 1
ENDIF
ENDIF

IF ( ( IS_CHAR_OBJECTIVE_FAILED ( Bot10 ) ) OR ( IS_CHAR_OBJECTIVE_PASSED ( Bot10 ) ) )
IF ( Target = 1 )
SET_CHAR_OBJECTIVE ( Bot10 , KILL_CHAR_ANY_MEANS , Player1 )
SET Target = 1
ENDIF
IF ( Target = 2 )
SET_CHAR_OBJECTIVE ( Bot10 , KILL_CHAR_ANY_MEANS , Player2 )
SET Target = 3
ENDIF
IF ( Target = 3 )
SET_CHAR_OBJECTIVE ( Bot10 , KILL_CHAR_ANY_MEANS , Player3 )
SET Target = 4
ENDIF
IF ( Target = 4 )
SET_CHAR_OBJECTIVE ( Bot10 , KILL_CHAR_ANY_MEANS , Player4 )
SET Target = 1
ENDIF
ENDIF

IF ( ( IS_CHAR_OBJECTIVE_FAILED ( Chr1 ) ) OR ( IS_CHAR_OBJECTIVE_PASSED ( Chr1 ) ) )
IF ( Target = 1 )
SET_CHAR_OBJECTIVE ( Chr1 , KILL_CHAR_ANY_MEANS , Player1 )
SET Target = 1
ENDIF
IF ( Target = 2 )
SET_CHAR_OBJECTIVE ( Chr1 , KILL_CHAR_ANY_MEANS , Player2 )
SET Target = 3
ENDIF
IF ( Target = 3 )
SET_CHAR_OBJECTIVE ( Chr1 , KILL_CHAR_ANY_MEANS , Player3 )
SET Target = 4
ENDIF
IF ( Target = 4 )
SET_CHAR_OBJECTIVE ( Chr1 , KILL_CHAR_ANY_MEANS , Player4 )
SET Target = 1
ENDIF
ENDIF

IF ( ( IS_CHAR_OBJECTIVE_FAILED ( Chr2 ) ) OR ( IS_CHAR_OBJECTIVE_PASSED ( Chr2 ) ) )
IF ( Target = 1 )
SET_CHAR_OBJECTIVE ( Chr2 , KILL_CHAR_ANY_MEANS , Player1 )
SET Target = 1
ENDIF
IF ( Target = 2 )
SET_CHAR_OBJECTIVE ( Chr2 , KILL_CHAR_ANY_MEANS , Player2 )
SET Target = 3
ENDIF
IF ( Target = 3 )
SET_CHAR_OBJECTIVE ( Chr2 , KILL_CHAR_ANY_MEANS , Player3 )
SET Target = 4
ENDIF
IF ( Target = 4 )
SET_CHAR_OBJECTIVE ( Chr2 , KILL_CHAR_ANY_MEANS , Player4 )
SET Target = 1
ENDIF
ENDIF

GIVE_WEAPON ( Player1 , PISTOL , 99 )
GIVE_WEAPON ( Player1 , MACHINE_GUN , 99 )
GIVE_WEAPON ( Player1 , ROCKET_LAUNCHER , 99 )
GIVE_WEAPON ( Player1 , ELECTRO_GUN , 99 )
GIVE_WEAPON ( Player1 , MOLOTOV , 99 )
GIVE_WEAPON ( Player1 , GRENADE , 99 )
GIVE_WEAPON ( Player1 , SHOTGUN , 99 )
GIVE_WEAPON ( Player1 , ELECTRO_BATON , 99 )
GIVE_WEAPON ( Player1 , FLAME_THROWER , 99 )
GIVE_WEAPON ( Player1 , SILENCED_MACHINE_GUN , 99 )
GIVE_WEAPON ( Player1 , DUAL_PISTOL , 99 )

GIVE_WEAPON ( Car1 , CAR_FLAMETHROWER )
GIVE_WEAPON ( Car1 , CAR_MACHINE_GUN , 99 )
GIVE_WEAPON ( Car1 , CAR_MINE , 99 )
GIVE_WEAPON ( Car1 , CAR_OIL , 99 )
GIVE_WEAPON ( Car1 , JEEP_GUN , 99 )
GIVE_WEAPON ( Car2 , CAR_FLAMETHROWER )
GIVE_WEAPON ( Car2 , CAR_MACHINE_GUN , 99 )
GIVE_WEAPON ( Car2 , CAR_MINE , 99 )
GIVE_WEAPON ( Car2 , CAR_OIL , 99 )
GIVE_WEAPON ( Car2 , JEEP_GUN , 99 )
GIVE_WEAPON ( Car3 , CAR_FLAMETHROWER )
GIVE_WEAPON ( Car3 , CAR_MACHINE_GUN , 99 )
GIVE_WEAPON ( Car3 , CAR_MINE , 99 )
GIVE_WEAPON ( Car3 , CAR_OIL , 99 )
GIVE_WEAPON ( Car3 , JEEP_GUN , 99 )
GIVE_WEAPON ( Car4 , CAR_FLAMETHROWER )
GIVE_WEAPON ( Car4 , CAR_MACHINE_GUN , 99 )
GIVE_WEAPON ( Car4 , CAR_MINE , 99 )
GIVE_WEAPON ( Car4 , CAR_OIL , 99 )
GIVE_WEAPON ( Car4 , JEEP_GUN , 99 )

IF ( HAS_CHARACTER_DIED ( Bot1 ) )
REMOVE_ARROW ( Bot1Arrow )
DELETE_ITEM ( Bot1 )
Bot1 = CREATE_CHAR ( 122.5 , 122.5 , 6.0 ) 0 225 POLICE END
SET_CHAR_THREAT_SEARCH ( Bot1 , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_REACTION ( Bot1 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Bot1 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Bot1 , LOONY )
SET_CHAR_GRAPHIC_TYPE ( Bot1 , EMERG_GRAPHIC , 0 )
GIVE_WEAPON ( Bot1 , MOLOTOV )
SET_CHAR_OBJECTIVE ( Bot1 , GUARD_SPOT )
ENDIF

IF ( HAS_CHARACTER_DIED ( Bot2 ) )
REMOVE_ARROW ( Bot2Arrow )
DELETE_ITEM ( Bot2 )
Bot2 = CREATE_CHAR ( 135.5 , 122.5 , 6.0 ) 0 135 POLICE END
SET_CHAR_THREAT_SEARCH ( Bot2 , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_REACTION ( Bot2 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Bot2 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Bot2 , LOONY )
SET_CHAR_GRAPHIC_TYPE ( Bot2 , EMERG_GRAPHIC , 0 )
GIVE_WEAPON ( Bot2 , MOLOTOV )
SET_CHAR_OBJECTIVE ( Bot2 , GUARD_SPOT )
ENDIF

IF ( HAS_CHARACTER_DIED ( Bot3 ) )
REMOVE_ARROW ( Bot3Arrow )
DELETE_ITEM ( Bot3 )
Bot3 = CREATE_CHAR ( 122.5 , 134.5 , 6.0 ) 0 315 POLICE END
SET_CHAR_THREAT_SEARCH ( Bot3 , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_REACTION ( Bot3 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Bot3 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Bot3 , LOONY )
SET_CHAR_GRAPHIC_TYPE ( Bot3 , EMERG_GRAPHIC , 0 )
GIVE_WEAPON ( Bot3 , MOLOTOV )
SET_CHAR_OBJECTIVE ( Bot3 , GUARD_SPOT )
ENDIF

IF ( HAS_CHARACTER_DIED ( Bot4 ) )
REMOVE_ARROW ( Bot4Arrow )
DELETE_ITEM ( Bot4 )
Bot4 = CREATE_CHAR ( 135.5 , 134.5 , 6.0 ) 0 45 POLICE END
SET_CHAR_THREAT_SEARCH ( Bot4 , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_REACTION ( Bot4 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Bot4 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Bot4 , LOONY )
SET_CHAR_GRAPHIC_TYPE ( Bot4 , EMERG_GRAPHIC , 0 )
GIVE_WEAPON ( Bot4 , MOLOTOV )
SET_CHAR_OBJECTIVE ( Bot4 , GUARD_SPOT )
ENDIF

IF ( HAS_CHARACTER_DIED ( Bot5 ) )
REMOVE_ARROW ( Bot5Arrow )
DELETE_ITEM ( Bot5 )
Bot5 = CREATE_CHAR ( 124.5 , 132.5 , 2.0 ) 0 180 POLICE END
SET_CHAR_THREAT_SEARCH ( Bot5 , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_REACTION ( Bot5 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Bot5 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Bot5 , LOONY )
SET_CHAR_GRAPHIC_TYPE ( Bot5 , EMERG_GRAPHIC , 0 )
GIVE_WEAPON ( Bot5 , MACHINE_GUN )
POINT_ARROW_AT ( Bot5Arrow , Bot5 )
ADD_PATROL_POINT ( Bot5 , 124.5 , 124.5 , 2.0 )
ADD_PATROL_POINT ( Bot5 , 133.5 , 124.5 , 2.0 )
ADD_PATROL_POINT ( Bot5 , 124.5 , 124.5 , 2.0 )
ADD_PATROL_POINT ( Bot5 , 124.5 , 132.5 , 2.0 )
ENDIF

IF ( HAS_CHARACTER_DIED ( Bot6 ) )
REMOVE_ARROW ( Bot6Arrow )
DELETE_ITEM ( Bot6 )
Bot6 = CREATE_CHAR ( 33.5 , 33.0 , 1.0 ) 45 90 CRIMINAL END
SET_CHAR_THREAT_SEARCH ( Bot6 , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_REACTION ( Bot6 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Bot6 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Bot6 , LOONY )
SET_CHAR_GRAPHIC_TYPE ( Bot6 , GANG_GRAPHIC , 45 )
ADD_GROUP_TO_CHARACTER ( Bot6 , 3 )
GIVE_WEAPON ( Bot6 , PISTOL )
POINT_ARROW_AT ( Bot6Arrow , Bot6 )
MAKE_CHAR_DO_NOTHING ( Bot6 )
ENDIF

IF ( HAS_CHARACTER_DIED ( Bot7 ) )
REMOVE_ARROW ( Bot7Arrow )
DELETE_ITEM ( Bot7 )
Bot7 = CREATE_CHAR ( 223.0 , 17.5 , 1.0 ) 45 180 CRIMINAL END
SET_CHAR_THREAT_SEARCH ( Bot7 , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_REACTION ( Bot7 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Bot7 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Bot7 , LOONY )
SET_CHAR_GRAPHIC_TYPE ( Bot7 , GANG_GRAPHIC , 45 )
ADD_GROUP_TO_CHARACTER ( Bot7 , 3 )
GIVE_WEAPON ( Bot7 , PISTOL )
POINT_ARROW_AT ( Bot7Arrow , Bot7 )
MAKE_CHAR_DO_NOTHING ( Bot7 )
ENDIF

IF ( HAS_CHARACTER_DIED ( Bot8 ) )
REMOVE_ARROW ( Bot8Arrow )
DELETE_ITEM ( Bot8 )
Bot8 = CREATE_CHAR ( 205.0 , 241.5 , 1.0 ) 45 270 CRIMINAL END
SET_CHAR_THREAT_SEARCH ( Bot8 , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_REACTION ( Bot8 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Bot8 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Bot8 , LOONY )
SET_CHAR_GRAPHIC_TYPE ( Bot8 , GANG_GRAPHIC , 45 )
ADD_GROUP_TO_CHARACTER ( Bot8 , 3 )
GIVE_WEAPON ( Bot8 , PISTOL )
POINT_ARROW_AT ( Bot8Arrow , Bot8 )
MAKE_CHAR_DO_NOTHING ( Bot8 )
ENDIF

IF ( HAS_CHARACTER_DIED ( Bot9 ) )
REMOVE_ARROW ( Bot9Arrow )
DELETE_ITEM ( Bot9 )
Bot9 = CREATE_CHAR ( 51.0 , 241.5 , 1.0 ) 45 0 CRIMINAL END
SET_CHAR_THREAT_SEARCH ( Bot9 , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_REACTION ( Bot9 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Bot9 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Bot9 , LOONY )
SET_CHAR_GRAPHIC_TYPE ( Bot9 , GANG_GRAPHIC , 45 )
ADD_GROUP_TO_CHARACTER ( Bot9 , 3 )
GIVE_WEAPON ( Bot9 , PISTOL )
POINT_ARROW_AT ( Bot9Arrow , Bot9 )
MAKE_CHAR_DO_NOTHING ( Bot9 )
ENDIF

IF ( HAS_CHARACTER_DIED ( Bot10 ) )
REMOVE_ARROW ( Bot10Arrow )
DELETE_ITEM ( Bot10 )
Bot10 = CREATE_CHAR ( 133.5 , 124.5 , 2.0 ) 0 0 POLICE END
SET_CHAR_THREAT_SEARCH ( Bot10 , AREA_PLAYER_ONLY )
SET_CHAR_THREAT_REACTION ( Bot10 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Bot10 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Bot10 , LOONY )
SET_CHAR_GRAPHIC_TYPE ( Bot10 , EMERG_GRAPHIC , 0 )
GIVE_WEAPON ( Bot10 , MACHINE_GUN )
POINT_ARROW_AT ( Bot10Arrow , Bot10 )
ADD_PATROL_POINT ( Bot10 , 133.5 , 132.5 , 2.0 )
ADD_PATROL_POINT ( Bot10 , 124.5 , 132.5 , 2.0 )
ADD_PATROL_POINT ( Bot10 , 133.5 , 132.5 , 2.0 )
ADD_PATROL_POINT ( Bot10 , 133.5 , 124.5 , 2.0 )
ENDIF

IF ( HAS_CHARACTER_DIED ( Chr1 ) )
DELETE_ITEM ( Chr1 )
Chr1 = CREATE_CHAR ( 207.5 , 127.5 , 1.0 ) 12 90 ELVIS END
SET_CHAR_THREAT_SEARCH ( Chr1 , AREA )
SET_CHAR_THREAT_REACTION ( Chr1 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Chr1 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Chr1 , LOONY )
GIVE_WEAPON ( Chr1 , SHOTGUN )
ADD_PATROL_POINT ( Chr1 , 208.5 , 127.5 , 1.0 )
ADD_PATROL_POINT ( Chr1 , 208.5 , 125.5 , 1.0 )
ADD_PATROL_POINT ( Chr1 , 208.5 , 127.5 , 1.0 )
ADD_PATROL_POINT ( Chr1 , 207.5 , 127.5 , 1.0 )
ENDIF

IF ( HAS_CHARACTER_DIED ( Chr2 ) )
DELETE_ITEM ( Chr2 )
Chr2 = CREATE_CHAR ( 38.5 , 122.5 , 1.0 ) 40 90 PSYCHO END
SET_CHAR_THREAT_SEARCH ( Chr2 , AREA )
SET_CHAR_THREAT_REACTION ( Chr2 , REACT_AS_NORMAL )
SET_CHAR_SHOOTING_SKILL ( Chr2 , CRACK_SHOT )
SET_CHAR_BRAVERY_LEVEL ( Chr2 , LOONY )
GIVE_WEAPON ( Chr2 , DUAL_PISTOL )
ADD_PATROL_POINT ( Chr2 , 40.5 , 122.5 , 1.0 )
ADD_PATROL_POINT ( Chr2 , 40.5 , 123.5 , 1.0 )
ADD_PATROL_POINT ( Chr2 , 38.5 , 123.5 , 1.0 )
ADD_PATROL_POINT ( Chr2 , 38.5 , 122.5 , 1.0 )
ENDIF

ENDWHILE

LEVELEND