PLAYER_PED p1 = (62.50, 193.50, 2.00) 15 0
PLAYER_PED p2 = (83.50, 179.50, 2.00) 1 90
PLAYER_PED p3 = (115.50, 169.50, 2.00) 2 270
PLAYER_PED p4 = (53.50, 164.50, 2.00) 6 0
PLAYER_PED p5 = (77.50, 170.50, 2.00) 11 90
PLAYER_PED p6 = (84.50, 192.50, 2.00) 7 270

MAP_ZONE cityinfo = ( 1000 , 200, 0, 100 , 1000 , 50 , 50 , 50, 700 , 50, 500 )

//MAP_ZONE copgang = ( 1000 , 0 , 0 , 0 , 1000 , 0 , 0 , 0 , 1000 , 0 , 1000 )
//MAP_ZONE redgang = ( 1000 , 0 , 0 , 0 , 1000 , 0 , 0 , 0 , 1000 , 0 , 1000 )
//MAP_ZONE russiangang = ( 1000 , 0 , 0 , 0 , 1000 , 0 , 0 , 0 , 1000 , 0 , 1000 )
//MAP_ZONE elvisgang = ( 1000 , 0 , 0 , 0 , 1000 , 0 , 0 , 0 , 1000 , 0 , 1000 )
//MAP_ZONE psychogang = ( 1000 , 0 , 0 , 0 , 1000 , 0 , 0 , 0 , 1000 , 0 , 1000 )


CHAR_DATA p
CHAR_DATA char

counter stage=1

counter currentPlayer =1

counter p_botSpawnTime=0
counter p_died=0

counter p1_botSpawnTime=0
counter p1_died=0

counter p2_botSpawnTime=0
counter p2_died=0

counter p3_botSpawnTime=0
counter p3_died=0

counter p4_botSpawnTime=0
counter p4_died=0

counter p5_botSpawnTime=0
counter p5_died=0

counter p6_botSpawnTime=0
counter p6_died=0

CHAR_DATA botgroup

PARKED_CAR_DATA auto1 = (82.60, 183.50, 255.00) 20 90 TRUKCONT
PARKED_CAR_DATA auto2 = (81.90, 182.50, 255.00) 1 90 GUNJEEP
PARKED_CAR_DATA auto3 = (81.90, 181.50, 255.00) 0 90 JEEP
PARKED_CAR_DATA auto4 = (88.40, 182.60, 255.00) 5 180 BUS
PARKED_CAR_DATA auto5 = (103.50, 193.60, 255.00) 34 0 MORGAN
PARKED_CAR_DATA auto6 = (105.50, 193.60, 255.00) 25 0 BMW
PARKED_CAR_DATA auto7 = (104.50, 196.40, 255.00) 26 180 TRANCEAM
PARKED_CAR_DATA auto8 = (106.50, 196.40, 255.00) 27 180 SPIDER

PARKED_CAR_DATA auto9 =  (96.9, 175.5, 2.0) 29 270 TRUKCAB2

PARKED_CAR_DATA auto10 =  (65.6, 158.5, 3.0) 26 90 GT24640

PARKED_CAR_DATA auto11 =  (47.7, 195.8, 5.0) 26 180 TANK

PARKED_CAR_DATA auto12 = (82.5, 197.5, 2.0) 0 270 TRUKCAB2 
PARKED_CAR_DATA auto13 = (84.5, 197.5, 2.0) 0 270 TANKER

 
PARKED_CAR_DATA auto14 = (70.0, 173.5, 3.0) 16 90 TRUKTRNS
PARKED_CAR_DATA auto15 = (2.0, 2.5, 3.0) 22 90 TANK


GENERATOR gen1 = (59.90, 186.50, 4.00) 0 COLLECT_08 1800 1800 10
GENERATOR gen2 = (73.50, 179.50, 5.00) 0 COLLECT_17 1800 1800 4
GENERATOR gen3 = (71.50, 170.50, 3.00) 0 COLLECT_01 1800 1800 10
GENERATOR gen4 = (118.50, 177.50, 2.00) 0 COLLECT_18 8000 8000 10
GENERATOR gen5 = (113.90, 195.00, 2.00) 0 COLLECT_02 1800 1800 5
GENERATOR gen6 = (89.50, 185.50, 2.00) 0 COLLECT_34 1800 1800 4
GENERATOR gen7 = (60.90, 195.00, 2.00) 0 COLLECT_00 1800 1800 40
GENERATOR gen8 = (100.50, 172.50, 2.00) 0 COLLECT_31 1800 1800 3
GENERATOR gen9 = (97.90, 158.90, 2.00) 0 COLLECT_03 1800 1800 6
GENERATOR gen10 = (49.90, 176.90, 2.00) 0 COLLECT_10 1800 1800 30
GENERATOR gen11 = (111.50, 170.50, 2.00) 0 COLLECT_01 1800 1800 10
GENERATOR gen12 = (50.50, 172.50, 4.00) 0 COLLECT_04 1800 1800 8
GENERATOR gen13 = (63.0, 184.0, 3.0) 0 COLLECT_15 1800 1800 1
GENERATOR gen14 = (78.50, 192.50, 2.00) 0 COLLECT_06 1800 1800 12
GENERATOR gen15 = (92.50, 176.50, 2.00) 0 COLLECT_00 1800 1800 40
GENERATOR gen16 = (98.50, 188.50, 2.00) 0 COLLECT_05 1800 1800 12
GENERATOR gen17 = (61.50, 175.50, 2.00) 0 COLLECT_16 1800 1800 6
GENERATOR gen18 = (68.00, 194.50, 4.00) 0 COLLECT_04 1800 1800 8
GENERATOR gen19 = (62.50, 171.50, 4.00) 0 COLLECT_30 1800 1800 3
GENERATOR gen20 = (69.8, 160.6, 3.1) 0	COLLECT_02 1800 1800 5
GENERATOR gen21 = (72.4, 175.5, 3.0) 0 COLLECT_29 1800 1800 1
GENERATOR gen22 = (123.7, 177.5, 2.0) 0 COLLECT_33 1800 1800
GENERATOR gen23 = (58.6, 180.7, 5.0) 0 COLLECT_35 1800 1800
GENERATOR gen24 = (51.9, 195.2, 2.0) 0 COLLECT_36 1800 1800
GENERATOR gen25 = (103.5, 180.5, 2.0) 0 COLLECT_09 1800 1800 10

GENERATOR gen26 = (79.9, 183.0, 4.0) 0 COLLECT_39 3000 3000




OBJ_DATA obj = (58.0, 188.5, 2.0) 0 CONE
OBJ_DATA obj1 = (57.4, 188.3, 2.0) 0 CONE
OBJ_DATA obj2 = (57.3, 188.8, 2.0) 0 CONE
OBJ_DATA obj4 = (57.6, 188.4, 2.0) 0 FOOTY
OBJ_DATA obj3 = (67.3, 182.0, 2.0) 0 BUSH
OBJ_DATA obj5 = (67.3, 180.0, 2.0) 0 BUSH
OBJ_DATA obj6 = (51.2, 181.5, 2.0) 90 NEWSDIS


OBJ_DATA obj7 = (52.4, 163.7, 2.0) 90 BLASTER



OBJ_DATA obj8 = (82.2, 175.9, 2.0) 90 BOXES
OBJ_DATA obj9 = (78.6, 173.4, 2.0) 90 BOXES

OBJ_DATA obj10 = (74.6, 163.2, 2.0) 90 TYRE
OBJ_DATA obj11 = (74.2, 163.2, 2.0) 90 TYRE



OBJ_DATA obj12 = (114.0, 168.8, 2.0) 90 RUBBISH
OBJ_DATA obj13 = (112.0, 168.8, 2.0) 90 ROADBLOCK
OBJ_DATA obj14 = (117.0, 169.8, 2.0) 0 ROADBLOCK

OBJ_DATA obj15 = (123.2, 170.8, 2.0) 0 BIN
OBJ_DATA obj16 = (123.6, 170.2, 2.0) 0 BIN

OBJ_DATA obj17 = (98.5, 180.3, 2.0) 0 TYRE

OBJ_DATA obj18 = (92.2, 185.7, 2.0) 0 POWERGEN

OBJ_DATA obj_army
COUNTER timer_obj_army=1
SOUND snd_army

OBJ_DATA obj_respect
COUNTER timer_obj_respect=1
SOUND snd_respect

counter enoughRespect=-1

//Cranes
CRANE_DATA crane1 = (46.50, 180.50) 270 NO_HOMECRANE FIRST (46.50, 178.50) 180
CRUSHER crusher1 = (46.50, 178.50)
CRANE_DATA crane2 = (46.50, 176.50) 270 crane1 SECOND (43.50, 176.50) 180
GENERATOR gen27 = (47.50, 181.50, 4.00) 0 COLLECT_06 1 2 5
DECLARE_CRANE_POWERUP (crane1, gen27, 46, 178, 5)
DECLARE_POWERUP_CARLIST (ALFA, DART, EDSEL, FIAT, GRAHAM, JEFFREY, JEFFREY, MORGAN, MORRIS, SPIDER, STINGRAY, STYPE, STYPECAB, VESPA, WBTWIN, XK120, MIURA, EDSELFBI,ISETTA)

CRANE_DATA crane3 = (116.5, 176.5) 220 NO_HOMECRANE FIRST ( 118.50, 177.50) 180

LEVELSTART
     PUT_CAR_ON_TRAILER (auto15, auto14)
	 
	 	SET_AMBIENT_LEVEL (0.30, 20)
		DECLARE_POLICELEVEL (6)

		SET_GANG_INFO (copgang,3,MACHINE_GUN,MACHINE_GUN,MACHINE_GUN,5, 0.0,0.0,0.0,2,	ISETTA,19)
		SET_GANG_INFO (redgang, 5,SHOTGUN ,SHOTGUN ,SHOTGUN ,4, 0.0,0.0,0.0,2,PICKUP,31)
		SET_GANG_INFO (russiangang, 4,GRENADE,GRENADE,GRENADE,7, 0.0,0.0,0.0,2,BUS,5)
		SET_GANG_INFO (elvisgang, 12,ELECTRO_BATON,ELECTRO_BATON,ELECTRO_BATON, 6, 0.0,0.0,0.0, 2,ICECREAM,26)
		SET_GANG_INFO (psychogang, 26,ROCKET_LAUNCHER,ROCKET_LAUNCHER,ROCKET_LAUNCHER, 1, 0.0,0.0,0.0, 2,HOTDOG,36)

		SET_GANG_KILL_REACTION (russiangang, russiangang, 2)
		SET_GANG_KILL_REACTION (russiangang, elvisgang, 1)
		SET_GANG_KILL_REACTION (russiangang, redgang, 1)
		SET_GANG_KILL_REACTION (russiangang, psychogang, 1)
		SET_GANG_KILL_REACTION (russiangang, copgang, 1)

		SET_GANG_KILL_REACTION (elvisgang, elvisgang, 2)
		SET_GANG_KILL_REACTION (elvisgang, russiangang, 1)
		SET_GANG_KILL_REACTION (elvisgang, redgang, 1)
		SET_GANG_KILL_REACTION (elvisgang, psychogang, 1)
		SET_GANG_KILL_REACTION (elvisgang, copgang, 1)

		SET_GANG_KILL_REACTION (redgang, redgang, 2)
		SET_GANG_KILL_REACTION (redgang, elvisgang, 1)
		SET_GANG_KILL_REACTION (redgang, russiangang, 1)
		SET_GANG_KILL_REACTION (redgang, psychogang, 1)
		SET_GANG_KILL_REACTION (redgang, copgang, 1)

		SET_GANG_KILL_REACTION (copgang, copgang, 2)
		SET_GANG_KILL_REACTION (copgang, elvisgang, 1)
		SET_GANG_KILL_REACTION (copgang, redgang, 1)
		SET_GANG_KILL_REACTION (copgang, psychogang, 1)
		SET_GANG_KILL_REACTION (copgang, russiangang, 1)
          
		SET_GANG_KILL_REACTION (psychogang, psychogang, 2)
		SET_GANG_KILL_REACTION (psychogang, elvisgang, 1)
		SET_GANG_KILL_REACTION (psychogang, redgang, 1)
		SET_GANG_KILL_REACTION (psychogang, copgang, 1)
		SET_GANG_KILL_REACTION (psychogang, russiangang, 1)

		IF ( CHECK_CHARACTER_HEALTH ( p1 , 0 ))
			ADD_GROUP_TO_CHARACTER(p1, 0)
			GIVE_WEAPON(p1,MACHINE_GUN)
		ENDIF
		IF ( CHECK_CHARACTER_HEALTH ( p2 , 0 ))
			ADD_GROUP_TO_CHARACTER(p2, 0)
			GIVE_WEAPON(p2,MACHINE_GUN)
		ENDIF
		IF ( CHECK_CHARACTER_HEALTH ( p3 , 0 ))
			ADD_GROUP_TO_CHARACTER(p3, 0)
			GIVE_WEAPON(p3,MACHINE_GUN)
		ENDIF
		IF ( CHECK_CHARACTER_HEALTH ( p4 , 0 ))
			ADD_GROUP_TO_CHARACTER(p4, 0)
			GIVE_WEAPON(p4,MACHINE_GUN)
		ENDIF
		IF ( CHECK_CHARACTER_HEALTH ( p5 , 0 ))
			ADD_GROUP_TO_CHARACTER(p5, 0)
			GIVE_WEAPON(p5,MACHINE_GUN)
		ENDIF
		IF ( CHECK_CHARACTER_HEALTH ( p6 , 0 ))
			ADD_GROUP_TO_CHARACTER(p6, 0)
			GIVE_WEAPON(p6,MACHINE_GUN)
		ENDIF


		GIVE_WEAPON(auto2, 	CAR_FLAMETHROWER)
		GIVE_WEAPON(auto10, 	CAR_BOMB_INSTANT)

	EXEC
		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)
		SWITCH_GENERATOR (gen17, ON)
		SWITCH_GENERATOR (gen18, ON)
		SWITCH_GENERATOR (gen19, ON)
		SWITCH_GENERATOR (gen20, ON)
		SWITCH_GENERATOR (gen21, ON)
		SWITCH_GENERATOR (gen22, ON)
		SWITCH_GENERATOR (gen23, ON)
		SWITCH_GENERATOR (gen24, ON)
		SWITCH_GENERATOR (gen25, ON)
		SWITCH_GENERATOR (gen26, ON)

	ENDEXEC

	WHILE_EXEC(stage=1)
	
	
		//Instant army
		IF(timer_obj_army>1)
			--timer_obj_army
		ENDIF
		
		IF(timer_obj_army=1)
			SET timer_obj_army=0
			obj_army = CREATE_OBJ (61.3, 170.5, 6.0) 0 KILL_FRENZY END
		ENDIF
	
		//Instant respect
		IF(timer_obj_respect>1)
			--timer_obj_respect
		ENDIF
		IF(timer_obj_respect=1)
			SET timer_obj_respect=0
			obj_respect = CREATE_OBJ (60.9, 162.0, 5.0) 0	COLLECT_38 END
		ENDIF
	
		SET currentPlayer=1
		WHILE_EXEC(currentPlayer<7)

			IF(currentPlayer=1)
				SET p=(p1+0)
				SET p_died=(p1_died+0)
				SET p_botSpawnTime=(p1_botSpawnTime+0)
			ENDIF
			IF(currentPlayer=2)
				SET p=(p2+0)
				SET p_died=(p2_died+0)
				SET p_botSpawnTime=(p2_botSpawnTime+0)
			ENDIF
			IF(currentPlayer=3)
				SET p=(p3+0)
				SET p_died=(p3_died+0)
				SET p_botSpawnTime=(p3_botSpawnTime+0)
			ENDIF
			IF(currentPlayer=4)
				SET p=(p4+0)
				SET p_died=(p4_died+0)
				SET p_botSpawnTime=(p4_botSpawnTime+0)
			ENDIF
			IF(currentPlayer=5)
				SET p=(p5+0)
				SET p_died=(p5_died+0)
				SET p_botSpawnTime=(p5_botSpawnTime+0)
			ENDIF
			IF(currentPlayer=6)
				SET p=(p6+0)
				SET p_died=(p6_died+0)
				SET p_botSpawnTime=(p6_botSpawnTime+0)
			ENDIF

			IF ( CHECK_CHARACTER_HEALTH ( p , 0 ))
				IF((HAS_CHARACTER_DIED(p))OR(HAS_CHAR_BEEN_ARRESTED(p)))
					SET p_died=2
					SET p_botSpawnTime=0
                    ENDIF
				
				IF( NOT(HAS_CHARACTER_DIED(p)))
				IF( NOT(HAS_CHAR_BEEN_ARRESTED(p)) )
                    
                              IF(p_died=2)
                                   GIVE_WEAPON(p,MACHINE_GUN)
                                   SET p_died=1
                              ENDIF
				
						IF ((LOCATE_CHARACTER_ANY_MEANS ( p , 61.3, 170.5, 6.0 , 0.8 , 0.8 ))AND(timer_obj_army=0))
							SET timer_obj_army = 3000
							DELETE_ITEM ( obj_army )
							ALTER_WANTED_LEVEL (p, 6)
							snd_army = CREATE_SOUND (57.5, 110.5, 3.0) SCREAM PLAY_INSTANT END
						ENDIF


						IF ((LOCATE_CHARACTER_ANY_MEANS ( p , 60.9, 162.0, 5.0, 0.8 , 0.8 ))AND(timer_obj_respect=0))
							SET timer_obj_respect = 3000
							DELETE_ITEM ( obj_respect )
							CHANGE_GANG_CHAR_RESPECT(copgang,p,5)
							CHANGE_GANG_CHAR_RESPECT(russiangang,p,5)
							CHANGE_GANG_CHAR_RESPECT(elvisgang,p,5)
							CHANGE_GANG_CHAR_RESPECT(redgang,p,5)
							CHANGE_GANG_CHAR_RESPECT(psychogang,p,5)
                                   

							snd_respect = CREATE_SOUND (60.9, 162.0, 5.0) YEEHA_BOMB PLAY_INSTANT END
						ENDIF


						//Instant Gang spawning
						++p_botSpawnTime
						
						IF(p_botSpawnTime>=100)
							IF(NOT(CHECK_NUMBER_ALIVE_IN_GROUP (p,9)) )
								SET enoughRespect=0

								IF(CHECK_RESPECT_GREATER(p,copgang,0))
								IF( IS_CHAR_IN_GANGZONE(p,copgang))
                                    IF(currentPlayer=1)
									     botgroup = CREATE_CHAR ( 59.5, 198.5, 2.5 ) 3 0 CRIMINAL END
                                    ENDIF
                                    IF(currentPlayer=2)
									     botgroup = CREATE_CHAR ( 60.5, 198.5, 2.5 ) 3 0 CRIMINAL END
                                    ENDIF
                                    IF(currentPlayer=3)
									     botgroup = CREATE_CHAR ( 61.5, 198.5, 2.5 ) 3 0 CRIMINAL END
                                    ENDIF
                                    IF(currentPlayer=4)
									     botgroup = CREATE_CHAR ( 62.5, 198.5, 2.5 ) 3 0 CRIMINAL END
                                    ENDIF
                                    IF(currentPlayer=5)
									     botgroup = CREATE_CHAR ( 59.5, 197.5, 2.5 ) 3 0 CRIMINAL END
                                    ENDIF
                                    IF(currentPlayer=6)
									     botgroup = CREATE_CHAR ( 62.7, 197.5, 2.5 ) 3 0 CRIMINAL END
                                    ENDIF
                                             
										SET enoughRespect=1
										IF(CHECK_RESPECT_GREATER(p,copgang,1))
											SET enoughRespect=2
											IF(CHECK_RESPECT_GREATER(p,copgang,2))
												SET enoughRespect=3
												IF(CHECK_RESPECT_GREATER(p,copgang,3))
													SET enoughRespect=4
													IF(CHECK_RESPECT_GREATER(p,copgang,4))
														SET enoughRespect=5
													ENDIF
												ENDIF
											ENDIF
										ENDIF
								ENDIF
								ENDIF
								IF(CHECK_RESPECT_GREATER(p,russiangang,0))
								IF( IS_CHAR_IN_GANGZONE(p,russiangang) )
                                    IF(currentPlayer=1)
									     botgroup = CREATE_CHAR ( 87.5, 185.5, 2.5 ) 4 0 CRIMINAL END
                                    ENDIF
                                    IF(currentPlayer=2)
									     botgroup = CREATE_CHAR ( 88.5, 185.5, 2.5 ) 4 0 CRIMINAL END
                                    ENDIF
                                    IF(currentPlayer=3)
									     botgroup = CREATE_CHAR ( 89.5, 185.5, 2.5 ) 4 0 CRIMINAL END
                                    ENDIF
                                    IF(currentPlayer=4)
									     botgroup = CREATE_CHAR ( 86.5, 184.5, 2.5 ) 4 0 CRIMINAL END
                                    ENDIF
                                    IF(currentPlayer=5)
									     botgroup = CREATE_CHAR ( 87.5, 184.5, 2.5 ) 4 0 CRIMINAL END
                                    ENDIF
                                    IF(currentPlayer=6)
									     botgroup = CREATE_CHAR ( 88.5, 184.5, 2.5 ) 4 0 CRIMINAL END
                                    ENDIF
									
										SET enoughRespect=1
										IF(CHECK_RESPECT_GREATER(p,russiangang,1))
											SET enoughRespect=2
											IF(CHECK_RESPECT_GREATER(p,russiangang,2))
												SET enoughRespect=3
												IF(CHECK_RESPECT_GREATER(p,russiangang,3))
													SET enoughRespect=4
													IF(CHECK_RESPECT_GREATER(p,russiangang,4))
														SET enoughRespect=5
													ENDIF
												ENDIF
											ENDIF
										ENDIF
								ENDIF
								ENDIF
								IF(CHECK_RESPECT_GREATER(p,redgang,0))
								IF( IS_CHAR_IN_GANGZONE(p,redgang) )
                                    IF(currentPlayer=1)
									     botgroup = CREATE_CHAR ( 113.5, 168.5, 2.5 ) 5 0 CRIMINAL END
                                    ENDIF
                                    IF(currentPlayer=2)
									     botgroup = CREATE_CHAR ( 114.5, 168.5, 2.5 ) 5 0 CRIMINAL END
                                    ENDIF
                                    IF(currentPlayer=3)
									     botgroup = CREATE_CHAR ( 115.5, 168.5, 2.5 ) 5 0 CRIMINAL END
                                    ENDIF
                                    IF(currentPlayer=4)
									     botgroup = CREATE_CHAR ( 116.5, 168.5, 2.5 ) 5 0 CRIMINAL END
                                    ENDIF
                                    IF(currentPlayer=5)
									     botgroup = CREATE_CHAR ( 117.5, 168.5, 2.5 ) 5 0 CRIMINAL END
                                    ENDIF
                                    IF(currentPlayer=6)
									     botgroup = CREATE_CHAR ( 118.5, 168.5, 2.5 ) 5 0 CRIMINAL END
                                    ENDIF
									
										SET enoughRespect=1
										IF(CHECK_RESPECT_GREATER(p,redgang,1))
											SET enoughRespect=2
											IF(CHECK_RESPECT_GREATER(p,redgang,2))
												SET enoughRespect=3
												IF(CHECK_RESPECT_GREATER(p,redgang,3))
													SET enoughRespect=4
													IF(CHECK_RESPECT_GREATER(p,redgang,4))
														SET enoughRespect=5
													ENDIF
												ENDIF
											ENDIF
										ENDIF
								ENDIF
								ENDIF
								IF(CHECK_RESPECT_GREATER(p,elvisgang,0))
								IF( IS_CHAR_IN_GANGZONE(p,elvisgang) )
                                    IF(currentPlayer=1)
									     botgroup = CREATE_CHAR ( 51.5, 165.5, 2.5 ) 12 0 CRIMINAL END
                                             ENDIF
                                    IF(currentPlayer=2)
									     botgroup = CREATE_CHAR ( 52.5, 165.5, 2.5 ) 12 0 CRIMINAL END
                                             ENDIF
                                    IF(currentPlayer=3)
									     botgroup = CREATE_CHAR ( 52.5, 164.5, 2.5 ) 12 0 CRIMINAL END
                                             ENDIF
                                    IF(currentPlayer=4)
									     botgroup = CREATE_CHAR ( 52.5, 163.5, 2.5 ) 12 0 CRIMINAL END
                                             ENDIF
                                    IF(currentPlayer=5)
									     botgroup = CREATE_CHAR ( 53.5, 163.5, 2.5 ) 12 0 CRIMINAL END
                                             ENDIF
                                    IF(currentPlayer=6)
									     botgroup = CREATE_CHAR ( 51.5, 166.5, 2.5 ) 12 0 CRIMINAL END
                                             ENDIF
											 
										SET enoughRespect=1
										IF(CHECK_RESPECT_GREATER(p,elvisgang,1))
											SET enoughRespect=2
											IF(CHECK_RESPECT_GREATER(p,elvisgang,2))
												SET enoughRespect=3
												IF(CHECK_RESPECT_GREATER(p,elvisgang,3))
													SET enoughRespect=4
													IF(CHECK_RESPECT_GREATER(p,elvisgang,4))
														SET enoughRespect=5
													ENDIF
												ENDIF
											ENDIF
										ENDIF
								ENDIF
								ENDIF
								IF(CHECK_RESPECT_GREATER(p,psychogang,0))
								IF(IS_CHAR_IN_GANGZONE(p,psychogang))
                                    IF(currentPlayer=1)
                                                  botgroup = CREATE_CHAR ( 89.5, 191.5, 2.5 ) 26 0 CRIMINAL END
                                             ENDIF
                                    IF(currentPlayer=2)
									     botgroup = CREATE_CHAR ( 90.5, 191.5, 2.5 ) 26 0 CRIMINAL END
                                             ENDIF
                                    IF(currentPlayer=3)
									     botgroup = CREATE_CHAR ( 91.5, 191.5, 2.5 ) 26 0 CRIMINAL END
                                             ENDIF
                                    IF(currentPlayer=4)
									     botgroup = CREATE_CHAR ( 93.5, 189.5, 2.5 ) 26 0 CRIMINAL END
                                             ENDIF
                                    IF(currentPlayer=5)
									     botgroup = CREATE_CHAR ( 93.5, 188.5, 2.5 ) 26 0 CRIMINAL END
                                             ENDIF
                                    IF(currentPlayer=6)
									     botgroup = CREATE_CHAR ( 93.5, 187.5, 2.5 ) 26 0 CRIMINAL END
                                             ENDIF
											 
										SET enoughRespect=1
										IF(CHECK_RESPECT_GREATER(p,psychogang,1))
											SET enoughRespect=2
											IF(CHECK_RESPECT_GREATER(p,psychogang,2))
												SET enoughRespect=3
												IF(CHECK_RESPECT_GREATER(p,psychogang,3))
													SET enoughRespect=4
													IF(CHECK_RESPECT_GREATER(p,psychogang,4))
														SET enoughRespect=5
													ENDIF
												ENDIF
											ENDIF
										ENDIF
								ENDIF
								ENDIF

								IF(enoughRespect>0)
									
									IF(p_died=1)
										ADD_GROUP_TO_CHARACTER(p, 0)
										SET p_died=0
									ENDIF
									
									ADD_EXISTING_CHAR_TO_GROUP (p, botgroup)
									
									IF(enoughRespect=1)
										GIVE_WEAPON(botgroup,MOLOTOV)
									ENDIF
									IF(enoughRespect=2)
										GIVE_WEAPON(botgroup,ELECTRO_BATON  )
									ENDIF
									IF(enoughRespect=3)
										GIVE_WEAPON(botgroup,SILENCED_MACHINE_GUN  )
									ENDIF
									IF(enoughRespect=4)
										GIVE_WEAPON(botgroup,FLAME_THROWER )
									ENDIF
									IF(enoughRespect=5)
										GIVE_WEAPON(botgroup,ROCKET_LAUNCHER )
									ENDIF
								ENDIF
								
							SET p_botSpawnTime=0
						ENDIF
                       
					ENDIF       
                
					
				
				ENDIF
				ENDIF
					
			ENDIF

			IF(currentPlayer=1)
				SET p1_died=(p_died+0)
				SET p1_botSpawnTime=(p_botSpawnTime+0)
			ENDIF
			IF(currentPlayer=2)
				SET p2_died=(p_died+0)
				SET p2_botSpawnTime=(p_botSpawnTime+0)
			ENDIF
			IF(currentPlayer=3)
				SET p3_died=(p_died+0)
				SET p3_botSpawnTime=(p_botSpawnTime+0)
			ENDIF
			IF(currentPlayer=4)
				SET p4_died=(p_died+0)
				SET p4_botSpawnTime=(p_botSpawnTime+0)
			ENDIF
			IF(currentPlayer=5)
				SET p5_died=(p_died+0)
				SET p5_botSpawnTime=(p_botSpawnTime+0)
			ENDIF
			IF(currentPlayer=6)
				SET p6_died=(p_died+0)
				SET p6_botSpawnTime=(p_botSpawnTime+0)
			ENDIF

			++currentPlayer
		ENDWHILE



	ENDWHILE

LEVELEND
