PLAYER_PED Player1 = ( 119.5 , 128.5 , 3.0 ) 5 90
//PLAYER_PED Player2 = ( 128.5 , 119.5 , 3.0 ) 6 0
//PLAYER_PED Player3 = ( 137.5 , 128.5 , 3.0 ) 37 270
//PLAYER_PED Player4 = ( 128.5 , 137.5 , 3.0 ) 38 180

GENERATOR Gen1 = ( 128.5 , 128.5 , 3.0 ) 0 COLLECT_02 0 0 99
GENERATOR Gen2 = ( 125.5 , 125.5 , 3.0 ) 0 COLLECT_04 0 0 99
GENERATOR Gen3 = ( 131.5 , 125.5 , 3.0 ) 0 COLLECT_04 0 0 99
GENERATOR Gen4 = ( 125.5 , 131.5 , 3.0 ) 0 COLLECT_04 0 0 99
GENERATOR Gen5 = ( 131.5 , 131.5 , 3.0 ) 0 COLLECT_04 0 0 99

CHAR_DATA Bot1
CHAR_DATA Bot2
CHAR_DATA Bot3

DECLARE_POLICELEVEL ( 0 )

COUNTER Loop = 1
COUNTER Target = 1

LEVELSTART

MAP_ZONE Gladiator_Arena = ( 0 , 0 , 0 , 0 , 1000 , 20 , 20 , 20 , 0 , 0 , 0 )

SWITCH_GENERATOR ( Gen1 , ON )
SWITCH_GENERATOR ( Gen2 , ON )
SWITCH_GENERATOR ( Gen3 , ON )
SWITCH_GENERATOR ( Gen4 , ON )
SWITCH_GENERATOR ( Gen5 , ON )

Bot1 = CREATE_CHAR ( 128.5 , 119.5 , 3.0 ) 6 0 PSYCHO 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 )
GIVE_WEAPON ( Bot1 , ROCKET_LAUNCHER )

Bot2 = CREATE_CHAR ( 137.5 , 128.5 , 3.0 ) 37 270 PSYCHO 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 )
GIVE_WEAPON ( Bot2 , ROCKET_LAUNCHER )

Bot3 = CREATE_CHAR ( 128.5 , 137.5 , 3.0 ) 38 180 ANY_GANG_MEMBER 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 )
GIVE_WEAPON ( Bot3 , ROCKET_LAUNCHER )

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 , Bot2 ) 
SET Target = 3
ENDIF
IF ( Target = 3 )
SET_CHAR_OBJECTIVE ( Bot1 , KILL_CHAR_ANY_MEANS , Bot3 )  
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 , Bot1 ) 
SET Target = 3
ENDIF
IF ( Target = 3 )
SET_CHAR_OBJECTIVE ( Bot2 , KILL_CHAR_ANY_MEANS , Bot3 )  
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 , Bot1 ) 
SET Target = 3
ENDIF
IF ( Target = 3 )
SET_CHAR_OBJECTIVE ( Bot3 , KILL_CHAR_ANY_MEANS , Bot2 )  
SET Target = 1
ENDIF
ENDIF

IF ( HAS_CHARACTER_DIED ( Bot1 ) )
DELETE_ITEM ( Bot1 )
Bot1 = CREATE_CHAR ( 128.5 , 119.5 , 3.0 ) 6 0 PSYCHO 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 )
GIVE_WEAPON ( Bot1 , ROCKET_LAUNCHER )
ENDIF

IF ( HAS_CHARACTER_DIED ( Bot2 ) )
DELETE_ITEM ( Bot2 )
Bot2 = CREATE_CHAR ( 137.5 , 128.5 , 3.0 ) 37 270 PSYCHO 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 )
GIVE_WEAPON ( Bot2 , ROCKET_LAUNCHER )
ENDIF

IF ( HAS_CHARACTER_DIED ( Bot3 ) )
DELETE_ITEM ( Bot3 )
Bot3 = CREATE_CHAR ( 128.5 , 137.5 , 3.0 ) 38 180 ANY_GANG_MEMBER 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 )
GIVE_WEAPON ( Bot3 , ROCKET_LAUNCHER )
ENDIF

ENDWHILE

LEVELEND