//{ // header
//tiny tiny town - army

//Usefull things:
//ORDER_CHAR_TO_BACKDOOR (  charname  ,  carname  )
//FOLLOW_CAR_IN_CAR
//MAKE_CHAR_DO_NOTHING
//SET_CAR_EMERG_LIGHTS
//SET_CHAR_TO_STAY_IN_CAR
//}

//{ // Declares

//{ // Players

//{ // p1
PLAYER_PED p1 = (57.5, 131.5, 255.0) 10 180
CAR_DATA p1_v

COUNTER p1_deaths = 0
COUNTER p1_incar = 0
COUNTER p1_cream = 0
COUNTER p1_indog = 0
COUNTER p1_infire = 0
COUNTER p1_lastfire=0
COUNTER p1_inmedi = 0
COUNTER p1_lastmedi=0
COUNTER p1_lastlimo=0
COUNTER p1_trg_ic=1
COUNTER p1_tmr_swat = 1
COUNTER p1_tmr_cream = 0
COUNTER p1_noburn = 0
COUNTER p1_noelectro = 0
COUNTER p1_explode_punch = 0
COUNTER p1_death_punch = 0
COUNTER p1_wantedlevel = 0
COUNTER p1_tmp_wantedlevel = 0
CHAR_DATA p1_punched
COUNTER p1_trg_punched = 0
COUNTER p1_tmr_bus = 0
COUNTER p1_tmrm_bus = 0
CHAR_DATA p1_bus_expbot
COUNTER p1_trg_horn = 0

//gangs
COUNTER p1_gangtype = 0
CHAR_DATA p1_gangbot1
CHAR_DATA p1_gangbot2
CHAR_DATA p1_gangbot3
CHAR_DATA p1_gangbot4
CHAR_DATA p1_gangbot5
//}

//{ // p2
PLAYER_PED p2 = (73.5, 115.5, 255.0) 13 180
CAR_DATA p2_v

COUNTER p2_deaths = 0
COUNTER p2_incar = 0
COUNTER p2_cream = 0
COUNTER p2_indog = 0
COUNTER p2_infire = 0
COUNTER p2_lastfire=0
COUNTER p2_inmedi = 0
COUNTER p2_lastmedi=0
COUNTER p2_lastlimo=0
COUNTER p2_trg_ic=1
COUNTER p2_tmr_swat = 1
COUNTER p2_tmr_cream = 0
COUNTER p2_noburn = 0
COUNTER p2_noelectro = 0
COUNTER p2_explode_punch = 0
COUNTER p2_death_punch = 0
COUNTER p2_wantedlevel = 0
COUNTER p2_tmp_wantedlevel = 0
CHAR_DATA p2_punched
COUNTER p2_trg_punched = 0

//gangs
COUNTER p2_gangtype = 0
CHAR_DATA p2_gangbot1
CHAR_DATA p2_gangbot2
CHAR_DATA p2_gangbot3
CHAR_DATA p2_gangbot4
CHAR_DATA p2_gangbot5
//}

//{ // p3
PLAYER_PED p3 = (92.5, 115.5, 255.0) 7 270
CAR_DATA p3_v

COUNTER p3_deaths = 0
COUNTER p3_incar = 0
COUNTER p3_cream = 0
COUNTER p3_indog = 0
COUNTER p3_infire = 0
COUNTER p3_lastfire=0
COUNTER p3_inmedi = 0
COUNTER p3_lastmedi=0
COUNTER p3_lastlimo=0
COUNTER p3_trg_ic=1
COUNTER p3_tmr_swat = 1
COUNTER p3_tmr_cream = 0
COUNTER p3_noburn = 0
COUNTER p3_noelectro = 0
COUNTER p3_explode_punch = 0
COUNTER p3_death_punch = 0
COUNTER p3_wantedlevel = 0
COUNTER p3_tmp_wantedlevel = 0
CHAR_DATA p3_punched
COUNTER p3_trg_punched = 0

//gangs
COUNTER p3_gangtype = 0
CHAR_DATA p3_gangbot1
CHAR_DATA p3_gangbot2
CHAR_DATA p3_gangbot3
CHAR_DATA p3_gangbot4
CHAR_DATA p3_gangbot5
//}

//{ // p4
PLAYER_PED p4 = (52.0, 118.0, 255.0) 11 270
CAR_DATA p4_v

COUNTER p4_deaths = 0
COUNTER p4_incar = 0
COUNTER p4_cream = 0
COUNTER p4_indog = 0
COUNTER p4_infire = 0
COUNTER p4_lastfire=0
COUNTER p4_inmedi = 0
COUNTER p4_lastmedi=0
COUNTER p4_lastlimo=0
COUNTER p4_trg_ic=1
COUNTER p4_tmr_swat = 1
COUNTER p4_tmr_cream = 0
COUNTER p4_noburn = 0
COUNTER p4_noelectro = 0
COUNTER p4_explode_punch = 0
COUNTER p4_death_punch = 0
COUNTER p4_wantedlevel = 0
COUNTER p4_tmp_wantedlevel = 0
CHAR_DATA p4_punched
COUNTER p4_trg_punched = 0

//gangs
COUNTER p4_gangtype = 0
CHAR_DATA p4_gangbot1
CHAR_DATA p4_gangbot2
CHAR_DATA p4_gangbot3
CHAR_DATA p4_gangbot4
CHAR_DATA p4_gangbot5
//}

//{ // p5
PLAYER_PED p5 = (63.5, 115.5, 255.0) 9 180
CAR_DATA p5_v

COUNTER p5_deaths = 0
COUNTER p5_incar = 0
COUNTER p5_cream = 0
COUNTER p5_indog = 0
COUNTER p5_infire = 0
COUNTER p5_lastfire=0
COUNTER p5_inmedi = 0
COUNTER p5_lastmedi=0
COUNTER p5_lastlimo=0
COUNTER p5_trg_ic=1
COUNTER p5_tmr_swat = 1
COUNTER p5_tmr_cream = 0
COUNTER p5_noburn = 0
COUNTER p5_noelectro = 0
COUNTER p5_explode_punch = 0
COUNTER p5_death_punch = 0
COUNTER p5_wantedlevel = 0
COUNTER p5_tmp_wantedlevel = 0
CHAR_DATA p5_punched
COUNTER p5_trg_punched = 0

//gangs
COUNTER p5_gangtype = 0
CHAR_DATA p5_gangbot1
CHAR_DATA p5_gangbot2
CHAR_DATA p5_gangbot3
CHAR_DATA p5_gangbot4
CHAR_DATA p5_gangbot5
//}

//{ // p6
PLAYER_PED p6 = (76.5, 128.5, 255.0) 0 90
CAR_DATA p6_v

COUNTER p6_deaths = 0
COUNTER p6_incar = 0
COUNTER p6_cream = 0
COUNTER p6_indog = 0
COUNTER p6_infire = 0
COUNTER p6_lastfire=0
COUNTER p6_inmedi = 0
COUNTER p6_lastmedi=0
COUNTER p6_lastlimo=0
COUNTER p6_trg_ic=1
COUNTER p6_tmr_swat = 1
COUNTER p6_tmr_cream = 0
COUNTER p6_noburn = 0
COUNTER p6_noelectro = 0
COUNTER p6_explode_punch = 0
COUNTER p6_death_punch = 0
COUNTER p6_wantedlevel = 0
COUNTER p6_tmp_wantedlevel = 0
CHAR_DATA p6_punched
COUNTER p6_trg_punched = 0

//gangs
COUNTER p6_gangtype = 0
CHAR_DATA p6_gangbot1
CHAR_DATA p6_gangbot2
CHAR_DATA p6_gangbot3
CHAR_DATA p6_gangbot4
CHAR_DATA p6_gangbot5
//}

//}

//{ // Cars
//CAR_DATA carinv1 = (76.5, 122.9) 0 180 APC
CAR_DATA carinv1
CAR_DATA antenna
CAR_DATA carinv2 = (72.0, 122.6) 27 90 GUNJEEP
CAR_DATA carrok1 = (87.3, 130.5) 2 270 TANK
CAR_DATA carrok2 = (88.5, 130.5) 0 180 JEEP

CAR_DATA parkednuke = (50.5, 112.0) 0 0 KRSNABUS

 //Testcars
 /*



CAR_DATA test4 = (55.8, 128.5) 15 90 HOTDOG

CAR_DATA test6 = (55.8, 126.5) 15 90 TOWTRUCK
CAR_DATA test7 = (59.8, 128.5) 15 90 MESSER
CAR_DATA test8 = (59.8, 127.5) 15 90 ISETTA
CAR_DATA test9 = (59.8, 126.5) 15 90 GUNJEEP

//CAR_DATA test11 = (61.8, 127.5) 15 90 JEEP
CAR_DATA test12 = (61.8, 126.5) 15 90 PICKUP


CAR_DATA test15 = (61.8, 123.5) 15 90 STYPE
CAR_DATA test16 = (62.8, 128.5) 15 90 RTYPE

//CAR_DATA test18 = (62.8, 127.5) 15 90 ZCX5 ZCX5
CAR_DATA test19 = (67.8, 129.5) 15 280 TOWTRUCK
CAR_DATA test20 = (67.8, 131.5) 15 250 VAN
//CAR_DATA test21 = (65.8, 131.5) 15 90 VAN




*/

CAR_DATA test3 = (61.5, 108.8) 15 0 ICECREAM
CAR_DATA test5 = (71.7, 117.6) 15 280 TANKER
CAR_DATA test17 = (75.3, 117.6) 15 80 TRUKTRNS
//DELETED// CAR_DATA test16 = (61.5, 129.5) 15 90 JEFFREY
//DELETED// CAR_DATA test13 = (61.8, 125.5) 15 90 MONSTER
CAR_DATA test10 = (69.5, 122.0) 1 0 LIMO2
//DELETED// CAR_DATA test6 = (55.5, 127.5) 15 90 TRUKCAB1
//DELETED// CAR_DATA test14 = (61.8, 124.5) 15 90 BANKVAN

CAR_DATA test21 = (94.0, 115.2) 7 80 GTRUCK
CAR_DATA test2 = (56.2, 117.7) 15 300 MEDICAR
CAR_DATA test11 = (56.5, 130.5) 12 180 BUS
CAR_DATA test1 = (72.5, 123.4) 15 90 FIRETRUK
//}

//{ // ARMY BOTS
FORWARD apcbots:
DESTRUCTOR apcdes
CHAR_DATA apcbot1
CHAR_DATA apcbot2
CAR_DATA botapc
FORWARD nukebots:
DESTRUCTOR nukedes
CHAR_DATA nukebot1
CAR_DATA botnuke
//}

//{ // TANKER
	FORWARD tanker1:
	DESTRUCTOR tanker1des
	CHAR_DATA tanker1bot
	CHAR_DATA tanker1expbot
	CAR_DATA tanker1cab
	CAR_DATA tanker1trailer
	CAR_DATA tanker1expcar

	CAR_DATA tanker1covcar

	COUNTER create_tanker1=1
	COUNTER tanker1_exp_trg = 0
//}

//{ // DOORS
	DECLARE_DOOR_INFO ( 32 , 35 , 2 )
	DOOR_DATA door_1 = SINGLE (62, 130, 1) (65.0, 130.5, 1.0, 2.0, 1.0) RIGHT 0 ANY_PLAYER CLOSE_WHEN_OPEN_RULE_FAILS 0 FLIP_RIGHT NOT_REVERSED
//}

//{ // Collectibles
GENERATOR coctail1 = (70.5, 124.5) 0 COLLECT_04 6000 6000 20
GENERATOR rocket2 = (60.0, 125.0) 0 COLLECT_02 6000 6000 10
//DELETED// GENERATOR coctail2 = (49.9, 115.8) 305 COLLECT_04 6000 6000 20
GENERATOR rocket = (93.5, 129.5) 0 COLLECT_02 6000 6000 10
GENERATOR doubled = (57.5, 115.5) 0 MOVING_COLLECT_35 6000 6000 1
GENERATOR fast = (57.5, 117.5) 0 MOVING_COLLECT_36 6000 6000 1
GENERATOR grenade = (81.5, 125.5) 0 COLLECT_05 6000 6000 12
GENERATOR mg1 = (84.5, 117.5, 2.0) 0 COLLECT_01 6000 6000 20
GENERATOR electro = (80.5, 108.5) 0 COLLECT_03 6000 6000 2
GENERATOR flamer = (56.5, 125.0) 0 COLLECT_08 6000 6000 10
GENERATOR coctail3 = (49.5, 116.0) 0 COLLECT_04 6000 6000 20
GENERATOR oil = (55.5, 117.5) 0 COLLECT_16 6000 6000 5
GENERATOR mines = (66.5, 120.5) 0 COLLECT_17 6000 6000 5
GENERATOR vmg = (95.5, 119.5) 0 COLLECT_18 6000 6000 10
GENERATOR amour = (84.5, 116.5, 2.0) 0 COLLECT_31 6000 6000 1
GENERATOR health = (76.5, 124.5) 0 MOVING_COLLECT_30 0 0 1
GENERATOR fingers = (75.5, 124.5) 0 MOVING_COLLECT_37 6000 6000 1
GENERATOR bomb = (58.5, 123.5) 0 MOVING_COLLECT_15 6000 6000 1
GENERATOR bribe = (60.5, 108.5, 2.4) 0 MOVING_COLLECT_33 6000 6000 1

GENERATOR xmg1 = (57.5, 129.5) 0 MOVING_COLLECT_01 0 0 99
GENERATOR xmg2 = (66.5, 128.5) 0 MOVING_COLLECT_01 0 0 99
GENERATOR xmg3 = (78.5, 128.5) 0 MOVING_COLLECT_01 0 0 99
GENERATOR xmg4 = (51.0, 118.5) 0 MOVING_COLLECT_01 0 0 99
GENERATOR xmg5 = (64.5, 114.5) 0 MOVING_COLLECT_01 0 0 99
GENERATOR xmg6 = (73.0, 114.5) 0 MOVING_COLLECT_01 0 0 99
GENERATOR xmg7 = (90.5, 115.5) 0 MOVING_COLLECT_01 0 0 99
GENERATOR xmg8 = (89.5, 125.5) 0 MOVING_COLLECT_01 0 0 99

GENERATOR xamour1 = (57.5, 130.5) 0 COLLECT_31 0 0 1
GENERATOR xamour2 = (67.5, 128.5, 2.3) 0 COLLECT_31 0 0 1
GENERATOR xamour3 = (77.5, 128.5) 0 COLLECT_31 0 0 1
GENERATOR xamour4 = (51.0, 117.5) 0 COLLECT_31 0 0 1
GENERATOR xamour5 = (62.5, 114.5) 0 COLLECT_31 0 0 1
GENERATOR xamour6 = (74.0, 114.5) 0 COLLECT_31 0 0 1
GENERATOR xamour7 = (91.5, 115.5) 0 COLLECT_31 0 0 1
GENERATOR xamour8 = (90.5, 125.5) 0 COLLECT_31 0 0 1

GENERATOR xgren1 = (51.5, 130.5) 0 COLLECT_05 6000 6000 5
GENERATOR xgren2 = (63.5, 126.5, 2.0) 0 COLLECT_05 6000 6000 5
GENERATOR xgren3 = (73.5, 128.5) 0 COLLECT_05 6000 6000 5
GENERATOR xgren4 = (51.5, 111.5) 0 COLLECT_05 6000 6000 5
GENERATOR xgren5 = (63.0, 109.0, 1.0) 0 COLLECT_05 6000 6000 5
GENERATOR xgren6 = (78.5, 118.5) 0 COLLECT_05 6000 6000 5
GENERATOR xgren7 = (90.5, 111.5) 0 COLLECT_05 6000 6000 5
GENERATOR xgren8 = (97.5, 121.5) 0 COLLECT_05 6000 6000 5
//}

//{ // static objects
OBJ_DATA del_mine
OBJ_DATA del_oil
OBJ_DATA tower1 = (55.1, 114.8, 2.6) 0 TOWER
OBJ_DATA tower2 = (55.4, 114.8, 2.6) 0 TOWER
OBJ_DATA tower3 = (55.7, 114.8, 2.6) 0 TOWER
OBJ_DATA tower4 = (56.0, 114.8, 2.6) 0 TOWER
OBJ_DATA tower5 = (56.3, 114.8, 2.6) 0 TOWER
OBJ_DATA tower6 = (56.6, 114.8, 2.6) 0 TOWER
OBJ_DATA tower7 = (56.9, 114.8, 2.6) 0 TOWER
OBJ_DATA tower8 = (57.2, 114.8, 3.0) 0 TOWER
OBJ_DATA tower10 = (57.8, 114.8, 3.0) 0 TOWER
OBJ_DATA tower9 = (57.5, 114.8, 3.0) 0 TOWER
OBJ_DATA tower11 = (58.1, 114.8, 2.6) 0 TOWER
OBJ_DATA tower12 = (58.4, 114.8, 2.6) 0 TOWER
OBJ_DATA tower13 = (58.7, 114.8, 2.6) 0 TOWER
OBJ_DATA tower14 = (59.0, 114.8, 2.6) 0 TOWER

OBJ_DATA towerb1 = (55.1, 114.8, 3.6) 0 TOWER
OBJ_DATA towerb2 = (55.4, 114.8, 3.6) 0 TOWER
OBJ_DATA towerb3 = (55.7, 114.8, 3.6) 0 TOWER
OBJ_DATA towerb4 = (56.0, 114.8, 3.6) 0 TOWER
OBJ_DATA towerb5 = (56.3, 114.8, 3.6) 0 TOWER
OBJ_DATA towerb6 = (56.6, 114.8, 3.6) 0 TOWER
OBJ_DATA towerb7 = (56.9, 114.8, 3.6) 0 TOWER
//DELETED// OBJ_DATA towerb8 = (57.2, 114.8, 3.6) 0 TOWER
//DELETED// OBJ_DATA towerb9 = (57.5, 114.8, 3.6) 0 TOWER
//DELETED// OBJ_DATA towerb10 = (57.8, 114.8, 3.6) 0 TOWER
OBJ_DATA towerb11 = (58.1, 114.8, 3.6) 0 TOWER
OBJ_DATA towerb12 = (58.4, 114.8, 3.6) 0 TOWER
OBJ_DATA towerb13 = (58.7, 114.8, 3.6) 0 TOWER
//DELETED// OBJ_DATA towerb14 = (59.0, 114.8, 3.6) 0 TOWER

OBJ_DATA towera1 = (86.5, 121.5, 5.1) 0 TOWER
OBJ_DATA towera2 = (83.5, 115.5, 5.1) 0 TOWER
OBJ_DATA towera3 = (85.5, 115.5, 5.1) 0 TOWER


//}

//{ // SUPERTANK

/*
OBJ_DATA itarget_2 = (107.0, 95.0, 1.0) 0 INVISIBLE_TARGET
OBJ_DATA itarget_3 = (72.0, 95.0) 0 INVISIBLE_TARGET
OBJ_DATA itarget_4 = (44.0, 95.0) 0 INVISIBLE_TARGET
OBJ_DATA itarget_5 = (44.0, 119.5) 0 INVISIBLE_TARGET
OBJ_DATA itarget_6 = (44.0, 136.9) 0 INVISIBLE_TARGET
OBJ_DATA itarget_7 = (69.0, 137.0, 5.0) 0 INVISIBLE_TARGET
OBJ_DATA itarget_10 = (107.0, 137.0, 5.0) 0 INVISIBLE_TARGET
OBJ_DATA itarget_11 = (107.0, 122.0, 5.0) 0 INVISIBLE_TARGET

PARKED_CAR_DATA trailer = (65.8, 119.2) 19 270 APC
PARKED_CAR_DATA tank1 = (67.5, 118.5) 19 0 TANK
PARKED_CAR_DATA tank2 = (67.5, 118.5) 19 0 TANK
PARKED_CAR_DATA tank3 = (67.5, 118.5) 19 0 TANK
PARKED_CAR_DATA tank4 = (67.5, 118.5) 19 0 TANK
PARKED_CAR_DATA tank5 = (67.5, 118.5) 19 0 TANK
PARKED_CAR_DATA tank6 = (67.5, 118.5) 19 0 TANK
PARKED_CAR_DATA tank7 = (67.5, 118.5) 19 0 TANK
PARKED_CAR_DATA tank8 = (67.5, 118.5) 19 0 TANK

PARKED_CAR_DATA jeep9 = (75.0, 118.5) 19 0 GUNJEEP
PARKED_CAR_DATA jeep10 = (76.5, 118.5) 19 0 GUNJEEP
PARKED_CAR_DATA jeep11 = (78.0, 118.5) 19 0 GUNJEEP

CHAR_DATA stankbot0
CHAR_DATA stankbot1
CHAR_DATA stankbot2
CHAR_DATA stankbot3
CHAR_DATA stankbot4
CHAR_DATA stankbot5
CHAR_DATA stankbot6
CHAR_DATA stankbot7
CHAR_DATA stankbot8

CHAR_DATA stankbot9
CHAR_DATA stankbot10
CHAR_DATA stankbot11
CHAR_DATA ped

COUNTER subloop = 1
COUNTER peds
COUNTER loadtank = 1

COUNTER stshoot = 0

FORWARD supertank:
*/
//}

//{ // Counter
COUNTER mainloop = 1
COUNTER loop = 1
COUNTER tmr =0
COUNTER tmr2 = 0

COUNTER wantedcounter = 40
COUNTER wantedlevel = 0
COUNTER wantedlevel6 = 1
COUNTER wantedlevel7 = 1
COUNTER wantedlevel8 = 1

ONSCREEN_COUNTER wantedlevel_screen
ONSCREEN_COUNTER dummy_osc

COUNTER  tmr_nocol = 1
COUNTER  col_nocol = 0
OBJ_DATA obj_nocol

COUNTER  tmr_repair = 1
COUNTER  col_repair = 0
OBJ_DATA obj_repair

COUNTER  tmr_abribe = 1
COUNTER  col_abribe = 0
OBJ_DATA obj_abribe
SOUND snd_abribe

COUNTER  tmr_expunch = 1
COUNTER  col_expunch = 0
OBJ_DATA obj_expunch
//}

//{ // DECLARE Commands
DECLARE_POLICELEVEL (6)
//SET_GANG_INFO ( tanker  , 12 , molotov , molotov , molotov , 5 , 60.5 , 109.5 , 2.0 , 1 , TRUKCAB1 , 1 )

// MAP ZONE INFO #################################################produces crash after quitting the game
//MAP_ZONE area = ( 1000 , 800 , 0 , 100 , 1000 , 15 , 15 , 600 , 0 , 100 , 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)

CAR_DATA garbage

//}

//}

LEVELSTART // to LEVELEND

//{ // SETUP Commands

SET_GANG_INFO (gng0, 0, PISTOL, SHOTGUN, MACHINE_GUN, 5, 0.0, 0.0, 0.0, 0, APC, 30)

MAKE_DOOR_MANUAL  ( door_1 )
OPEN_DOOR ( door_1 )

SET_AMBIENT_LEVEL (0.7, 0)

GIVE_WEAPON (parkednuke , CAR_BOMB_INSTANT  )

ADD_ONSCREEN_COUNTER  (   dummy_osc  ,  p1_tmr_bus )

carinv1 = CREATE_GANG_CAR (76.3, 123.0) 0 180 APC END
//antenna = CREATE_CAR (75.5, 122.9) 0 180 APC END //MINI_CAR END
SET_CAR_NO_COLLIDE ( carinv1 )
SET_CAR_BULLETPROOF  (  carinv1   ,  ON  )
//SET_CAR_ROCKETPROOF  (  carinv1   ,  ON  )
GIVE_WEAPON (carinv1 , CAR_MINE    )
GIVE_WEAPON (carinv1 , CAR_MACHINE_GUN  )
//PUT_CAR_ON_TRAILER (antenna,carinv1)

//}

LAUNCH_MISSION (load.mis)

//{ // TANKER
	//GOSUB tanker1:
//}

//{ // SUPERTANK
	//GOSUB supertank:
//}

WHILE_EXEC ( mainloop = 1 ) // or WHILE_EXEC ? -> then wanted level reset to 4 doesnt work anymore and EXPLODE_LARGE(tanker1expbot) crashes

//EXPLODE_SMALL (p1)
SET tmr = (tmr + 1 )

IF (tmr=350) //on screen counters
	ADD_ONSCREEN_COUNTER  (   wantedlevel_screen  ,  wantedlevel )
ENDIF

IF (tmr2 > 0)
	SET tmr2 = ( tmr2 - 1)
ENDIF
IF (tmr2 = 0)
	SET tmr2 = 50
	del_mine = CREATE_OBJ (0.0, 0.0, 1.0) 0 MINE END
	del_oil = CREATE_OBJ (0.0, 0.0, 1.0) 0 OIL END
ENDIF


SET wantedlevel = 0

//{ // PLAYER Checks
//electro protection

IF (CHECK_CHARACTER_HEALTH(p1, 0))

	IF ( HAS_CHARACTER_DIED ( p1 ))
		//IF ( NOT ( delay (60) ))
			++p1_deaths
		//ENDIF

		SET p1_tmr_swat = 150
		SET p1_explode_punch = 0
	ENDIF

	//{ // WANTED_LEVEL READ
	IF (NOT((p1_trg_ic=0) AND (CHECK_CAR_MODEL (  p1_v  ,  BANKVAN ))))

		IF(CHECK_HEADS_GREATER  ( p1  , 0  ))
			SET p1_wantedlevel = 1
			IF(CHECK_HEADS_GREATER  ( p1  , 1  ))
				SET p1_wantedlevel = 2
				IF(CHECK_HEADS_GREATER  ( p1  , 2  ))
					SET p1_wantedlevel = 3
					IF(CHECK_HEADS_GREATER  ( p1  , 3  ))
						SET p1_wantedlevel = 4
						IF(CHECK_HEADS_GREATER  ( p1  , 4  ))
							SET p1_wantedlevel = 5
							IF(CHECK_HEADS_GREATER  ( p1  , 5  ))
								SET p1_wantedlevel = 6
							ENDIF
						ENDIF
					ENDIF
				ENDIF
			ENDIF
		ENDIF
	ENDIF

	IF( p1_wantedlevel >= wantedlevel )
		SET wantedlevel = (p1_wantedlevel + 0)
	ENDIF

	//}

	IF (CHECK_NUMBER_ALIVE_IN_GROUP  ( p1 , 1 ))
		IF (p1_gangtype=1)
			SET_CHAR_INVINCIBLE( p1 , ON )
			SET_CHAR_GRAPHIC_TYPE ( p1 , GANG_GRAPHIC , 16 )
		ENDIF
		IF (p1_gangtype=2)
			SET_CHAR_GRAPHIC_TYPE ( p1 , GANG_GRAPHIC , 14 )

			IF (CHECK_CHARACTER_HEALTH(p1_gangbot1, 0))
				SET_CHAR_INVINCIBLE( p1_gangbot1 , OFF )
			ENDIF
			IF (CHECK_CHARACTER_HEALTH(p1_gangbot1, 0))
				SET_CHAR_INVINCIBLE( p1_gangbot2 , OFF )
			ENDIF
			IF (CHECK_CHARACTER_HEALTH(p1_gangbot1, 0))
				SET_CHAR_INVINCIBLE( p1_gangbot3 , OFF )
			ENDIF
			IF (CHECK_CHARACTER_HEALTH(p1_gangbot1, 0))
				SET_CHAR_INVINCIBLE( p1_gangbot4 , OFF )
			ENDIF


			IF (IS_CHAR_ON_FIRE  ( p1 ) )
				SET_CHAR_INVINCIBLE( p1 , ON )
			ENDIF
			IF ((CHECK_CHARACTER_HEALTH(p1_gangbot1, 0))AND(IS_CHAR_ON_FIRE  ( p1_gangbot1 ) ))
				SET_CHAR_INVINCIBLE( p1_gangbot1 , ON )
				//SET_CHAR_INVINCIBLE( p1_gangbot1 , OFF )
			ENDIF
			IF ((CHECK_CHARACTER_HEALTH(p1_gangbot1, 0))AND(IS_CHAR_ON_FIRE  ( p1_gangbot2 ) ))
				SET_CHAR_INVINCIBLE( p1_gangbot2 , ON )
				//SET_CHAR_INVINCIBLE( p1_gangbot2 , OFF )
			ENDIF
			IF ((CHECK_CHARACTER_HEALTH(p1_gangbot1, 0))AND(IS_CHAR_ON_FIRE  ( p1_gangbot3 ) ))
				SET_CHAR_INVINCIBLE( p1_gangbot3 , ON )
				//SET_CHAR_INVINCIBLE( p1_gangbot3 , OFF )
			ENDIF
			IF ((CHECK_CHARACTER_HEALTH(p1_gangbot1, 0))AND(IS_CHAR_ON_FIRE  ( p1_gangbot4 ) ))
				SET_CHAR_INVINCIBLE( p1_gangbot4 , ON )
				//SET_CHAR_INVINCIBLE( p1_gangbot4 , OFF )
			ENDIF
		ENDIF
		IF (p1_gangtype=3)
			SET_CHAR_GRAPHIC_TYPE ( p1 , GANG_GRAPHIC , 5 )
		ENDIF
		IF (p1_gangtype=4)
			SET_CHAR_GRAPHIC_TYPE ( p1 , GANG_GRAPHIC , 12 )
		ENDIF
	ENDIF
	IF (NOT(CHECK_NUMBER_ALIVE_IN_GROUP  ( p1 , 1 )))
		SET_CHAR_INVINCIBLE( p1 , OFF)
		SET p1_gangtype = 0
		SET_CHAR_GRAPHIC_TYPE ( p1 , GANG_GRAPHIC , 10 )
	ENDIF

	IF ( ( HAS_CHAR_PUNCHED_SOMEONE ( p1 ) ) AND ( p1_trg_punched = 0 ) )
		STORE_LAST_CHAR_PUNCHED ( p1 , p1_punched )
		SET p1_trg_punched = 1
	ENDIF
	IF (( p1_trg_punched = 1 ) AND ( p1_explode_punch = 1))
		IF ( NOT ( DELAY ( 60 ) ) )
			EXPLODE_SMALL (p1_punched)
			SET p1_trg_punched = 0
	ENDIF
ENDIF

	//{ // CARMODEL CHECK
	IF (CHECK_CHARACTER_HEALTH(p1, 0)) //dummy test to check if there is a playerX
	IF (IS_CHARACTER_IN_ANY_CAR  ( p1  ) )
		IF (p1_trg_ic=1)
			SET p1_trg_ic=0
			IF (NOT(IS_CHARACTER_IN_CAR  (  p1  ,  p1_v  )))
				STORE_CAR_CHARACTER_IS_IN ( p1  ,  p1_v  )
				IF (CHECK_CAR_MODEL (  p1_v  ,  ICECREAM ))
					//EXPLODE_LARGE(tanker1trailer) ?????????
					//EXPLODE_LARGE(tanker1cab)

					DISPLAY_MESSAGE (5050) //CHOCTASTIC!

					SET p1_tmr_cream = 100

					//DELAY_HERE(50)
					//EXPLODE_SMALL (p1_v)
					//DELAY_HERE(50)
					//DISPLAY_MESSAGE (5063) //TASTE MY WRATH, ICE-CREAM BOY!
				ENDIF
				IF (CHECK_CAR_MODEL (  p1_v  ,  HOTDOG ))
					//IF (NOT(HAS_CAR_GOT_WEAPON( p1_v, CAR_BOMB )))
					DISPLAY_MESSAGE (5054) //DEATH TO ICE-CREAM VANS!
					//ENDIF
					GIVE_WEAPON ( p1_v , CAR_BOMB, 1 )
					GIVE_WEAPON ( p1_v , CAR_MACHINE_GUN, 20 )
				ENDIF
				IF (CHECK_CAR_MODEL (  p1_v  ,  FIRETRUK ))
					GIVE_WEAPON ( p1_v , CAR_FLAMETHROWER )
					GIVE_WEAPON ( p1 , FLAME_THROWER, 5)
					SET_CAR_FLAMEPROOF ( p1_v, ON )
					//p1_firegang
				ENDIF
				IF (CHECK_CAR_MODEL (  p1_v  ,  MEDICAR ))
					GIVE_WEAPON ( p1 , ELECTRO_GUN, 2 )
				ENDIF
				IF ((CHECK_CAR_MODEL (  p1_v  ,  LIMO )) OR (CHECK_CAR_MODEL (  p1_v  ,  LIMO2 )) )
					GIVE_WEAPON ( p1 , MOLOTOV , 10)
				ENDIF
				IF (CHECK_CAR_MODEL (  p1_v  ,  MESSER ) )
					SET_CAR_ROCKETPROOF ( p1_v, ON )
					SET_CAR_FLAMEPROOF ( p1_v, ON )
				ENDIF
				IF (CHECK_CAR_MODEL (  p1_v  ,  EDSELFBI ) )
					SET_CAR_BULLETPROOF ( p1_v, ON )
				ENDIF
				IF (((CHECK_CAR_MODEL (  p1_v  ,  BOXTRUCK )) OR (CHECK_CAR_MODEL (  p1_v  ,  TOWTRUCK ))) OR ((CHECK_CAR_MODEL (  p1_v  ,  TRUKCAB1 )) OR (CHECK_CAR_MODEL (  p1_v  ,  TRUKCAB2 ) )) )
					GIVE_WEAPON ( p1_v , CAR_MINE, 5 )
					GIVE_WEAPON ( p1_v , CAR_BOMB, 1 )
				ENDIF
				IF (CHECK_CAR_MODEL (  p1_v  ,  GTRUCK ) )
					DO_NOWT
				ENDIF
				IF (CHECK_CAR_MODEL (  p1_v  ,  Bus ) )
					SET_CAR_JAMMED_ACCELERATOR  ( p1_v  ,  ON  )
					//hooligan
				ENDIF
				IF ( ( CHECK_CAR_MODEL (  p1_v  ,  TAXI ) ) OR ( CHECK_CAR_MODEL (  p1_v  ,  STYPECAB )  ))
					DO_NOWT
					//angry or helpful passenger
				ENDIF
				IF (CHECK_CAR_MODEL (  p1_v  ,  JEEP ) )
					GIVE_WEAPON ( p1_v , CAR_MACHINE_GUN ,10 )
					//superjeep like supertank if possible
				ENDIF
				IF (CHECK_CAR_MODEL (  p1_v  ,  TANK ) )
					GIVE_WEAPON ( p1 , ROCKET_LAUNCHER ,5 )
				ENDIF
				IF (CHECK_CAR_MODEL (  p1_v  ,  APC ) )
					SET_CAR_BULLETPROOF ( p1_v, ON )
				ENDIF
				IF (CHECK_CAR_MODEL (  p1_v  ,  BANKVAN ) )
					SET p1_tmp_wantedlevel=p1_wantedlevel
				ENDIF
			ENDIF

			STORE_CAR_CHARACTER_IS_IN ( p1  ,  p1_v  )
			IF (CHECK_CAR_MODEL (  p1_v  ,  FIRETRUK ) )
				//DELAY_HERE(20)

				KILL_ALL_PASSENGERS  (  p1_v  )
				DELETE_ITEM(p1_gangbot1)
				DELETE_ITEM(p1_gangbot2)
				DELETE_ITEM(p1_gangbot3)
				DELETE_ITEM(p1_gangbot4)
				DELETE_ITEM(p1_gangbot5)
			ENDIF
			IF (CHECK_CAR_MODEL (  p1_v  ,  GTRUCK ) )
				//DELAY_HERE(20)

				KILL_ALL_PASSENGERS  (  p1_v  )
				DELETE_ITEM(p1_gangbot1)
				DELETE_ITEM(p1_gangbot2)
				DELETE_ITEM(p1_gangbot3)
				DELETE_ITEM(p1_gangbot4)
				DELETE_ITEM(p1_gangbot5)
			ENDIF
			IF (CHECK_CAR_MODEL (  p1_v  ,  MEDICAR ))
				//DELAY_HERE(20)

				KILL_ALL_PASSENGERS  (  p1_v  )
				DELETE_ITEM(p1_gangbot1)
				DELETE_ITEM(p1_gangbot2)
				DELETE_ITEM(p1_gangbot3)
				DELETE_ITEM(p1_gangbot4)
				DELETE_ITEM(p1_gangbot5)
			ENDIF
			IF ((CHECK_CAR_MODEL (  p1_v  ,  LIMO )) OR (CHECK_CAR_MODEL (  p1_v  ,  LIMO2 )) )
				//DELAY_HERE(20)

				KILL_ALL_PASSENGERS  (  p1_v  )
				DELETE_ITEM(p1_gangbot1)
				DELETE_ITEM(p1_gangbot2)
				DELETE_ITEM(p1_gangbot3)
				DELETE_ITEM(p1_gangbot4)
				DELETE_ITEM(p1_gangbot5)
			ENDIF
			IF (CHECK_CAR_MODEL (  p1_v  ,  BUS ))
				SET p1_tmrm_bus = 100
			ENDIF
		ENDIF
		DO_NOWT
	ELSE
		IF (p1_trg_ic=0)
			IF ((CHECK_CAR_MODEL (  p1_v  ,  LIMO )) OR (CHECK_CAR_MODEL (  p1_v  ,  LIMO2 )) )
				LAUNCH_MISSION (p1_gang4.mis)
			ENDIF

			IF (CHECK_CAR_MODEL (  p1_v  ,  FIRETRUK ))
				LAUNCH_MISSION (p1_gang2.mis) //firegang
			ENDIF

			IF (CHECK_CAR_MODEL (  p1_v  ,  MEDICAR ))
				LAUNCH_MISSION (p1_gang1.mis) //medigang
			ENDIF

			IF (CHECK_CAR_MODEL (  p1_v  ,  GTRUCK ))
				LAUNCH_MISSION (p1_gang3.mis) //garbage gang
			ENDIF

			IF (CHECK_CAR_MODEL (  p1_v  ,  BUS ))
				p1_bus_expbot = CREATE_CHAR_INSIDE_CAR ( p1_v ) 0 DRIVER END
				SET_CHAR_DRIVE_AGGRESSION ( p1_bus_expbot  ,  ON  )
				SET p1_tmrm_bus = 3
			ENDIF

			IF (CHECK_CAR_MODEL (  p1_v  ,  BANKVAN ) )
				LAUNCH_MISSION (p1_rwl.mis) //Restore wanted level
			ENDIF

			If (ARE_EMERG_LIGHTS_ON(p1_v))
				ORDER_CHAR_TO_DRIVE_CAR( p1 , p1_v )
			ENDIF
		ENDIF
		SET p1_trg_ic=1
		SET p1_incar = 0
	ENDIF

	IF (p1_trg_ic=0)
		IF (CHECK_CAR_MODEL (  p1_v  ,  BANKVAN ) )
			ADD_SCORE ( p1, 10 )
			ALTER_WANTED_LEVEL (p1, 0)
		ENDIF
		IF (CHECK_CAR_MODEL (  p1_v  ,  SWATVAN ) )
			SET_CAR_NO_COLLIDE ( p1_v )
		ENDIF
	ENDIF

	IF (CHECK_CAR_MODEL (  p1_v  ,  BUS ) )
		IF (CHECK_CAR_SPEED  (  p1_v  ,  1000  ) )
			SET p1_tmr_bus = (p1_tmrm_bus + 0)
		ENDIF
	ENDIF

	ENDIF
//}
	IF (IS_CHAR_PRESSING_HORN  ( p1 ) ) //Player pressing HORN
		IF (p1_trg_horn=1)
			//EXPLODE_LARGE(p1)
			IF ((CHECK_CAR_MODEL (  p1_v  ,  TAXI ) )OR(CHECK_CAR_MODEL (  p1_v  ,  STYPECAB ) ))
				ORDER_CHAR_TO_BACKDOOR(p1,p1_v)
				p1_bus_expbot = CREATE_CHAR_INSIDE_CAR ( p1_v ) 0 DRIVER END
				SET_CHAR_DRIVE_AGGRESSION ( p1_bus_expbot  ,  ON  )
				MAKE_CAR_DRIVE_AWAY ( p1_v)
			ENDIF
			SET p1_trg_horn=0
		ENDIF
	ENDIF
	IF (NOT(IS_CHAR_PRESSING_HORN  ( p1 ) ))
		SET p1_trg_horn=1
	ENDIF

	IF((CHECK_WEAPON_TYPE_HIT_CHAR ( p1 , BY_ELECTRO_WEAPON ) ) AND (p1_noelectro=1)) // electro protection
		IF ((IS_CHAR_FIRING_ONSCREEN  (  p2  )) AND (CHECK_CHAR_CURR_WEAPON (  p2  ,  ELECTRO_GUN )))
			//has to be a timer event
			SET_CHAR_INVINCIBLE ( p2  ,  ON   )
			EXPLODE_SMALL (p2)
			DELAY_HERE(50)
			SET_CHAR_INVINCIBLE ( p2  ,  OFF   )
		ENDIF
	ENDIF

	//{ // Timer Events
		//SWAT
		IF (p1_tmr_swat > 1)
			SET p1_tmr_swat = ( p1_tmr_swat - 1)
		ENDIF
		IF (p1_tmr_swat = 1)
			SET p1_tmr_swat = 0
			ALTER_WANTED_LEVEL (p1, 4) //SWAT
		ENDIF

		//BUS EXPLODE
		IF (p1_tmr_bus > 1)
			SET p1_tmr_bus = ( p1_tmr_bus - 1)
		ENDIF
		IF (p1_tmr_bus = 4)
			ORDER_DRIVER_OUT_CAR  (  p1  )
			p1_bus_expbot = CREATE_CHAR_INSIDE_CAR ( p1_v ) 0 DRIVER END
			SET_CHAR_DRIVE_AGGRESSION ( p1_bus_expbot  ,  ON  )
		ENDIF
		IF (p1_tmr_bus = 1)
			SET p1_tmr_bus = 0
			EXPLODE_LARGE (p1_bus_expbot)
		ENDIF


		//Icecream
		IF (p1_tmr_cream > 1)
			SET p1_tmr_cream = ( p1_tmr_cream - 1)
		ENDIF
		IF (p1_tmr_cream = 50)
			EXPLODE_SMALL (p1_v)
		ENDIF
		IF (p1_tmr_cream = 1)
			SET p1_tmr_cream = 0
			DISPLAY_MESSAGE (5063) //TASTE MY WRATH, ICE-CREAM BOY!
		ENDIF
	//}

	//{ //Powerups
		IF ((LOCATE_CHARACTER_BY_CAR ( p1 , 61.5, 130.5 , 3.0 , 0.8 , 0.8 ))AND(col_nocol = 0))
			SET tmr_nocol = 6000
			SET col_nocol = 1
			SET_CAR_NO_COLLIDE ( p1_v )
			DELETE_ITEM ( obj_nocol )
			obj_nocol = CREATE_OBJ (61.5, 130.5, 3.0) 0 BLASTER END
			DELETE_ITEM ( obj_nocol )
		ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p1 , 63.5, 117.5, 4.0 , 0.8 , 0.8 ))AND(col_repair = 0))
			SET tmr_repair = 6000
			SET col_repair = 1
			SET p1_tmp_wantedlevel=p1_wantedlevel
			ADD_SCORE (p1,5000)
			obj_repair = CREATE_OBJ (63.5, 117.5, 4.0) 0 CAR_SHOP 28 END
			DELETE_ITEM ( obj_repair )
			LAUNCH_MISSION(p1_rwl.mis)
		ENDIF

		IF ((LOCATE_CHARACTER_ANY_MEANS ( p1 , 57.5, 110.5, 3.0 , 0.8 , 0.8 ))AND(col_abribe = 0))
			SET tmr_abribe = 6000
			SET col_abribe = 1
			SET p1_wantedlevel = 6
			ALTER_WANTED_LEVEL (p1, 6)
			DELETE_ITEM ( obj_abribe )
			snd_abribe = CREATE_SOUND (57.5, 110.5, 3.0) SCREAM PLAY_INSTANT END
		ENDIF

		IF ((LOCATE_CHARACTER_ANY_MEANS ( p1 , 77.5, 126.5 , 4.0 , 0.8 , 0.8 ))AND(col_expunch = 0))
			SET tmr_expunch = 6000
			SET col_expunch = 1
			SET p1_explode_punch = 1
			DELETE_ITEM ( obj_expunch )
			obj_nocol = CREATE_OBJ (77.5, 126.5, 4.0) 0 RUBBISH END
			DELETE_ITEM ( obj_nocol )
		ENDIF
	//}
ENDIF

IF (CHECK_CHARACTER_HEALTH(p2, 0))

	IF ( HAS_CHARACTER_DIED ( p2 ))
		//IF ( NOT ( delay (60) ))
			++p2_deaths
		//ENDIF

		SET p2_tmr_swat = 150
		SET p2_explode_punch = 0
	ENDIF

	//{ // WANTED_LEVEL READ
	IF (NOT((p2_trg_ic=0) AND (CHECK_CAR_MODEL (  p2_v  ,  BANKVAN ))))

		IF(CHECK_HEADS_GREATER  ( p2  , 0  ))
			SET p2_wantedlevel = 1
			IF(CHECK_HEADS_GREATER  ( p2  , 1  ))
				SET p2_wantedlevel = 2
				IF(CHECK_HEADS_GREATER  ( p2  , 2  ))
					SET p2_wantedlevel = 3
					IF(CHECK_HEADS_GREATER  ( p2  , 3  ))
						SET p2_wantedlevel = 4
						IF(CHECK_HEADS_GREATER  ( p2  , 4  ))
							SET p2_wantedlevel = 5
							IF(CHECK_HEADS_GREATER  ( p2  , 5  ))
								SET p2_wantedlevel = 6
							ENDIF
						ENDIF
					ENDIF
				ENDIF
			ENDIF
		ENDIF
	ENDIF

	IF( p2_wantedlevel >= wantedlevel )
		SET wantedlevel = (p2_wantedlevel + 0)
	ENDIF

	//}

	IF (CHECK_NUMBER_ALIVE_IN_GROUP  ( p2 , 1 ))
		IF (p2_gangtype=1)
			SET_CHAR_INVINCIBLE( p2 , ON )
			SET_CHAR_GRAPHIC_TYPE ( p2 , GANG_GRAPHIC , 16 )
		ENDIF
		IF (p2_gangtype=2)
			SET_CHAR_GRAPHIC_TYPE ( p2 , GANG_GRAPHIC , 14 )

			IF (CHECK_CHARACTER_HEALTH(p2_gangbot1, 0))
				SET_CHAR_INVINCIBLE( p2_gangbot1 , OFF )
			ENDIF
			IF (CHECK_CHARACTER_HEALTH(p2_gangbot1, 0))
				SET_CHAR_INVINCIBLE( p2_gangbot2 , OFF )
			ENDIF
			IF (CHECK_CHARACTER_HEALTH(p2_gangbot1, 0))
				SET_CHAR_INVINCIBLE( p2_gangbot3 , OFF )
			ENDIF
			IF (CHECK_CHARACTER_HEALTH(p2_gangbot1, 0))
				SET_CHAR_INVINCIBLE( p2_gangbot4 , OFF )
			ENDIF


			IF (IS_CHAR_ON_FIRE  ( p2 ) )
				SET_CHAR_INVINCIBLE( p2 , ON )
			ENDIF
			IF ((CHECK_CHARACTER_HEALTH(p2_gangbot1, 0))AND(IS_CHAR_ON_FIRE  ( p2_gangbot1 ) ))
				SET_CHAR_INVINCIBLE( p2_gangbot1 , ON )
				//SET_CHAR_INVINCIBLE( p2_gangbot1 , OFF )
			ENDIF
			IF ((CHECK_CHARACTER_HEALTH(p2_gangbot1, 0))AND(IS_CHAR_ON_FIRE  ( p2_gangbot2 ) ))
				SET_CHAR_INVINCIBLE( p2_gangbot2 , ON )
				//SET_CHAR_INVINCIBLE( p2_gangbot2 , OFF )
			ENDIF
			IF ((CHECK_CHARACTER_HEALTH(p2_gangbot1, 0))AND(IS_CHAR_ON_FIRE  ( p2_gangbot3 ) ))
				SET_CHAR_INVINCIBLE( p2_gangbot3 , ON )
				//SET_CHAR_INVINCIBLE( p2_gangbot3 , OFF )
			ENDIF
			IF ((CHECK_CHARACTER_HEALTH(p2_gangbot1, 0))AND(IS_CHAR_ON_FIRE  ( p2_gangbot4 ) ))
				SET_CHAR_INVINCIBLE( p2_gangbot4 , ON )
				//SET_CHAR_INVINCIBLE( p2_gangbot4 , OFF )
			ENDIF
		ENDIF
		IF (p2_gangtype=3)
			SET_CHAR_GRAPHIC_TYPE ( p2 , GANG_GRAPHIC , 5 )
		ENDIF
		IF (p2_gangtype=4)
			SET_CHAR_GRAPHIC_TYPE ( p2 , GANG_GRAPHIC , 12 )
		ENDIF
	ENDIF
	IF (NOT(CHECK_NUMBER_ALIVE_IN_GROUP  ( p2 , 1 )))
		SET_CHAR_INVINCIBLE( p2 , OFF)
		SET p2_gangtype = 0
		SET_CHAR_GRAPHIC_TYPE ( p2 , GANG_GRAPHIC , 13 )
	ENDIF

	IF ( ( HAS_CHAR_PUNCHED_SOMEONE ( p2 ) ) AND ( p2_trg_punched = 0 ) )
		STORE_LAST_CHAR_PUNCHED ( p2 , p2_punched )
		SET p2_trg_punched = 1
	ENDIF
	IF (( p2_trg_punched = 1 ) AND ( p2_explode_punch = 1))
		IF ( NOT ( DELAY ( 60 ) ) )
			EXPLODE_SMALL (p2_punched)
			SET p2_trg_punched = 0
	ENDIF
ENDIF

	//{ // CARMODEL CHECK
	IF (CHECK_CHARACTER_HEALTH(p2, 0)) //dummy test to check if there is a playerX
	IF (IS_CHARACTER_IN_ANY_CAR  ( p2  ) )
		IF (p2_trg_ic=1)
			SET p2_trg_ic=0
			IF (NOT(IS_CHARACTER_IN_CAR  (  p2  ,  p2_v  )))
				STORE_CAR_CHARACTER_IS_IN ( p2  ,  p2_v  )
				IF (CHECK_CAR_MODEL (  p2_v  ,  ICECREAM ))
					//EXPLODE_LARGE(tanker1trailer) ?????????
					//EXPLODE_LARGE(tanker1cab)

					DISPLAY_MESSAGE (5050) //CHOCTASTIC!

					SET p2_tmr_cream = 100

					//DELAY_HERE(50)
					//EXPLODE_SMALL (p2_v)
					//DELAY_HERE(50)
					//DISPLAY_MESSAGE (5063) //TASTE MY WRATH, ICE-CREAM BOY!
				ENDIF
				IF (CHECK_CAR_MODEL (  p2_v  ,  HOTDOG ))
					//IF (NOT(HAS_CAR_GOT_WEAPON( p2_v, CAR_BOMB )))
					DISPLAY_MESSAGE (5054) //DEATH TO ICE-CREAM VANS!
					//ENDIF
					GIVE_WEAPON ( p2_v , CAR_BOMB, 1 )
					GIVE_WEAPON ( p2_v , CAR_MACHINE_GUN, 20 )
				ENDIF
				IF (CHECK_CAR_MODEL (  p2_v  ,  FIRETRUK ))
					GIVE_WEAPON ( p2_v , CAR_FLAMETHROWER )
					GIVE_WEAPON ( p2 , FLAME_THROWER, 5)
					SET_CAR_FLAMEPROOF ( p2_v, ON )
					//p2_firegang
				ENDIF
				IF (CHECK_CAR_MODEL (  p2_v  ,  MEDICAR ))
					GIVE_WEAPON ( p2 , ELECTRO_GUN, 2 )
				ENDIF
				IF ((CHECK_CAR_MODEL (  p2_v  ,  LIMO )) OR (CHECK_CAR_MODEL (  p2_v  ,  LIMO2 )) )
					GIVE_WEAPON ( p2 , MOLOTOV , 10)
				ENDIF
				IF (CHECK_CAR_MODEL (  p2_v  ,  MESSER ) )
					SET_CAR_ROCKETPROOF ( p2_v, ON )
					SET_CAR_FLAMEPROOF ( p2_v, ON )
				ENDIF
				IF (CHECK_CAR_MODEL (  p2_v  ,  EDSELFBI ) )
					SET_CAR_BULLETPROOF ( p2_v, ON )
				ENDIF
				IF (((CHECK_CAR_MODEL (  p2_v  ,  BOXTRUCK )) OR (CHECK_CAR_MODEL (  p2_v  ,  TOWTRUCK ))) OR ((CHECK_CAR_MODEL (  p2_v  ,  TRUKCAB1 )) OR (CHECK_CAR_MODEL (  p2_v  ,  TRUKCAB2 ) )) )
					GIVE_WEAPON ( p2_v , CAR_MINE, 5 )
					GIVE_WEAPON ( p2_v , CAR_BOMB, 1 )
				ENDIF
				IF (CHECK_CAR_MODEL (  p2_v  ,  GTRUCK ) )
					DO_NOWT
				ENDIF
				IF (CHECK_CAR_MODEL (  p2_v  ,  Bus ) )
					SET_CAR_JAMMED_ACCELERATOR  ( p2_v  ,  ON  )
					//hooligan
				ENDIF
				IF ( ( CHECK_CAR_MODEL (  p2_v  ,  TAXI ) ) OR ( CHECK_CAR_MODEL (  p2_v  ,  STYPECAB )  ))
					DO_NOWT
					//angry or helpful passenger
				ENDIF
				IF (CHECK_CAR_MODEL (  p2_v  ,  JEEP ) )
					GIVE_WEAPON ( p2_v , CAR_MACHINE_GUN ,10 )
					//superjeep like supertank if possible
				ENDIF
				IF (CHECK_CAR_MODEL (  p2_v  ,  TANK ) )
					GIVE_WEAPON ( p2 , ROCKET_LAUNCHER ,5 )
				ENDIF
				IF (CHECK_CAR_MODEL (  p2_v  ,  APC ) )
					SET_CAR_BULLETPROOF ( p2_v, ON )
				ENDIF
				IF (CHECK_CAR_MODEL (  p2_v  ,  BANKVAN ) )
					SET p2_tmp_wantedlevel=p2_wantedlevel
				ENDIF
			ENDIF

			STORE_CAR_CHARACTER_IS_IN ( p2  ,  p2_v  )
			IF (CHECK_CAR_MODEL (  p2_v  ,  FIRETRUK ) )
				//DELAY_HERE(20)

				KILL_ALL_PASSENGERS  (  p2_v  )
				DELETE_ITEM(p2_gangbot1)
				DELETE_ITEM(p2_gangbot2)
				DELETE_ITEM(p2_gangbot3)
				DELETE_ITEM(p2_gangbot4)
				DELETE_ITEM(p2_gangbot5)
			ENDIF
			IF (CHECK_CAR_MODEL (  p2_v  ,  GTRUCK ) )
				//DELAY_HERE(20)

				KILL_ALL_PASSENGERS  (  p2_v  )
				DELETE_ITEM(p2_gangbot1)
				DELETE_ITEM(p2_gangbot2)
				DELETE_ITEM(p2_gangbot3)
				DELETE_ITEM(p2_gangbot4)
				DELETE_ITEM(p2_gangbot5)
			ENDIF
			IF (CHECK_CAR_MODEL (  p2_v  ,  MEDICAR ))
				//DELAY_HERE(20)

				KILL_ALL_PASSENGERS  (  p2_v  )
				DELETE_ITEM(p2_gangbot1)
				DELETE_ITEM(p2_gangbot2)
				DELETE_ITEM(p2_gangbot3)
				DELETE_ITEM(p2_gangbot4)
				DELETE_ITEM(p2_gangbot5)
			ENDIF
			IF ((CHECK_CAR_MODEL (  p2_v  ,  LIMO )) OR (CHECK_CAR_MODEL (  p2_v  ,  LIMO2 )) )
				//DELAY_HERE(20)

				KILL_ALL_PASSENGERS  (  p2_v  )
				DELETE_ITEM(p2_gangbot1)
				DELETE_ITEM(p2_gangbot2)
				DELETE_ITEM(p2_gangbot3)
				DELETE_ITEM(p2_gangbot4)
				DELETE_ITEM(p2_gangbot5)
			ENDIF


		ENDIF
		DO_NOWT
	ELSE
		IF (p2_trg_ic=0)
			IF ((CHECK_CAR_MODEL (  p2_v  ,  LIMO )) OR (CHECK_CAR_MODEL (  p2_v  ,  LIMO2 )) )
				LAUNCH_MISSION (p2_gang4.mis)
			ENDIF

			IF (CHECK_CAR_MODEL (  p2_v  ,  FIRETRUK ))
				LAUNCH_MISSION (p2_gang2.mis) //firegang
			ENDIF

			IF (CHECK_CAR_MODEL (  p2_v  ,  MEDICAR ))
				LAUNCH_MISSION (p2_gang1.mis) //medigang
			ENDIF

			IF (CHECK_CAR_MODEL (  p2_v  ,  GTRUCK ))
				LAUNCH_MISSION (p2_gang3.mis) //garbage gang
			ENDIF

			IF (CHECK_CAR_MODEL (  p2_v  ,  BANKVAN ) )
				LAUNCH_MISSION (p2_rwl.mis) //Restore wanted level
			ENDIF

			If (ARE_EMERG_LIGHTS_ON(p2_v))
				ORDER_CHAR_TO_DRIVE_CAR( p2 , p2_v )
			ENDIF
		ENDIF
		SET p2_trg_ic=1
		SET p2_incar = 0
	ENDIF

	IF (p2_trg_ic=0)
		IF (CHECK_CAR_MODEL (  p2_v  ,  BANKVAN ) )
			ADD_SCORE ( p2, 10 )
			ALTER_WANTED_LEVEL (p2, 0)
		ENDIF
		IF (CHECK_CAR_MODEL (  p2_v  ,  BUS ) )
			IF (NOT (CHECK_CAR_SPEED  (  p2_v  ,  100  ) ))
				DISPLAY_MESSAGE ( 5015 )
			ENDIF
		ENDIF
		IF (CHECK_CAR_MODEL (  p2_v  ,  SWATVAN ) )
			SET_CAR_NO_COLLIDE ( p2_v )
		ENDIF
	ENDIF

	ENDIF
//}



	IF((CHECK_WEAPON_TYPE_HIT_CHAR ( p2 , BY_ELECTRO_WEAPON ) ) AND (p2_noelectro=1)) // electro protection
		IF ((IS_CHAR_FIRING_ONSCREEN  (  p2  )) AND (CHECK_CHAR_CURR_WEAPON (  p2  ,  ELECTRO_GUN )))
			//has to be a timer event
			SET_CHAR_INVINCIBLE ( p2  ,  ON   )
			EXPLODE_SMALL (p2)
			DELAY_HERE(50)
			SET_CHAR_INVINCIBLE ( p2  ,  OFF   )
		ENDIF
	ENDIF

	//{ // Timer Events
		//SWAT
		IF (p2_tmr_swat > 1)
			SET p2_tmr_swat = ( p2_tmr_swat - 1)
		ENDIF
		IF (p2_tmr_swat = 1)
			SET p2_tmr_swat = 0
			ALTER_WANTED_LEVEL (p2, 4) //SWAT
		ENDIF

		//Icecream
		IF (p2_tmr_cream > 1)
			SET p2_tmr_cream = ( p2_tmr_cream - 1)
		ENDIF
		IF (p2_tmr_cream = 50)
			EXPLODE_SMALL (p2_v)
		ENDIF
		IF (p2_tmr_cream = 1)
			SET p2_tmr_cream = 0
			DISPLAY_MESSAGE (5063) //TASTE MY WRATH, ICE-CREAM BOY!
		ENDIF
	//}

	//{ //Powerups
		IF ((LOCATE_CHARACTER_BY_CAR ( p2 , 61.5, 130.5 , 3.0 , 0.8 , 0.8 ))AND(col_nocol = 0))
			SET tmr_nocol = 6000
			SET col_nocol = 1
			SET_CAR_NO_COLLIDE ( p2_v )
			DELETE_ITEM ( obj_nocol )
			obj_nocol = CREATE_OBJ (61.5, 130.5, 3.0) 0 BLASTER END
			DELETE_ITEM ( obj_nocol )
		ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p2 , 63.5, 117.5, 4.0 , 0.8 , 0.8 ))AND(col_repair = 0))
			SET tmr_repair = 6000
			SET col_repair = 1
			SET p2_tmp_wantedlevel=p2_wantedlevel
			ADD_SCORE (p2,5000)
			obj_repair = CREATE_OBJ (63.5, 117.5, 4.0) 0 CAR_SHOP 28 END
			DELETE_ITEM ( obj_repair )
			LAUNCH_MISSION(p2_rwl.mis)
		ENDIF

		IF ((LOCATE_CHARACTER_ANY_MEANS ( p2 , 57.5, 110.5, 3.0 , 0.8 , 0.8 ))AND(col_abribe = 0))
			SET tmr_abribe = 6000
			SET col_abribe = 1
			SET p2_wantedlevel = 6
			ALTER_WANTED_LEVEL (p2, 6)
			DELETE_ITEM ( obj_abribe )
			snd_abribe = CREATE_SOUND (57.5, 110.5, 3.0) SCREAM PLAY_INSTANT END
		ENDIF

		IF ((LOCATE_CHARACTER_ANY_MEANS ( p2 , 77.5, 126.5 , 4.0 , 0.8 , 0.8 ))AND(col_expunch = 0))
			SET tmr_expunch = 6000
			SET col_expunch = 1
			SET p2_explode_punch = 1
			DELETE_ITEM ( obj_expunch )
			obj_nocol = CREATE_OBJ (77.5, 126.5, 4.0) 0 RUBBISH END
			DELETE_ITEM ( obj_nocol )
		ENDIF
	//}
ENDIF

IF (CHECK_CHARACTER_HEALTH(p3, 0))

	IF ( HAS_CHARACTER_DIED ( p3 ))
		//IF ( NOT ( delay (60) ))
			++p3_deaths
		//ENDIF

		SET p3_tmr_swat = 150
		SET p3_explode_punch = 0
	ENDIF

	//{ // WANTED_LEVEL READ
	IF (NOT((p3_trg_ic=0) AND (CHECK_CAR_MODEL (  p3_v  ,  BANKVAN ))))

		IF(CHECK_HEADS_GREATER  ( p3  , 0  ))
			SET p3_wantedlevel = 1
			IF(CHECK_HEADS_GREATER  ( p3  , 1  ))
				SET p3_wantedlevel = 2
				IF(CHECK_HEADS_GREATER  ( p3  , 2  ))
					SET p3_wantedlevel = 3
					IF(CHECK_HEADS_GREATER  ( p3  , 3  ))
						SET p3_wantedlevel = 4
						IF(CHECK_HEADS_GREATER  ( p3  , 4  ))
							SET p3_wantedlevel = 5
							IF(CHECK_HEADS_GREATER  ( p3  , 5  ))
								SET p3_wantedlevel = 6
							ENDIF
						ENDIF
					ENDIF
				ENDIF
			ENDIF
		ENDIF
	ENDIF

	IF( p3_wantedlevel >= wantedlevel )
		SET wantedlevel = (p3_wantedlevel + 0)
	ENDIF

	//}

	IF (CHECK_NUMBER_ALIVE_IN_GROUP  ( p3 , 1 ))
		IF (p3_gangtype=1)
			SET_CHAR_INVINCIBLE( p3 , ON )
			SET_CHAR_GRAPHIC_TYPE ( p3 , GANG_GRAPHIC , 16 )
		ENDIF
		IF (p3_gangtype=2)
			SET_CHAR_GRAPHIC_TYPE ( p3 , GANG_GRAPHIC , 14 )

			IF (CHECK_CHARACTER_HEALTH(p3_gangbot1, 0))
				SET_CHAR_INVINCIBLE( p3_gangbot1 , OFF )
			ENDIF
			IF (CHECK_CHARACTER_HEALTH(p3_gangbot1, 0))
				SET_CHAR_INVINCIBLE( p3_gangbot2 , OFF )
			ENDIF
			IF (CHECK_CHARACTER_HEALTH(p3_gangbot1, 0))
				SET_CHAR_INVINCIBLE( p3_gangbot3 , OFF )
			ENDIF
			IF (CHECK_CHARACTER_HEALTH(p3_gangbot1, 0))
				SET_CHAR_INVINCIBLE( p3_gangbot4 , OFF )
			ENDIF


			IF (IS_CHAR_ON_FIRE  ( p3 ) )
				SET_CHAR_INVINCIBLE( p3 , ON )
			ENDIF
			IF ((CHECK_CHARACTER_HEALTH(p3_gangbot1, 0))AND(IS_CHAR_ON_FIRE  ( p3_gangbot1 ) ))
				SET_CHAR_INVINCIBLE( p3_gangbot1 , ON )
				//SET_CHAR_INVINCIBLE( p3_gangbot1 , OFF )
			ENDIF
			IF ((CHECK_CHARACTER_HEALTH(p3_gangbot1, 0))AND(IS_CHAR_ON_FIRE  ( p3_gangbot2 ) ))
				SET_CHAR_INVINCIBLE( p3_gangbot2 , ON )
				//SET_CHAR_INVINCIBLE( p3_gangbot2 , OFF )
			ENDIF
			IF ((CHECK_CHARACTER_HEALTH(p3_gangbot1, 0))AND(IS_CHAR_ON_FIRE  ( p3_gangbot3 ) ))
				SET_CHAR_INVINCIBLE( p3_gangbot3 , ON )
				//SET_CHAR_INVINCIBLE( p3_gangbot3 , OFF )
			ENDIF
			IF ((CHECK_CHARACTER_HEALTH(p3_gangbot1, 0))AND(IS_CHAR_ON_FIRE  ( p3_gangbot4 ) ))
				SET_CHAR_INVINCIBLE( p3_gangbot4 , ON )
				//SET_CHAR_INVINCIBLE( p3_gangbot4 , OFF )
			ENDIF
		ENDIF
		IF (p3_gangtype=3)
			SET_CHAR_GRAPHIC_TYPE ( p3 , GANG_GRAPHIC , 5 )
		ENDIF
		IF (p3_gangtype=4)
			SET_CHAR_GRAPHIC_TYPE ( p3 , GANG_GRAPHIC , 12 )
		ENDIF
	ENDIF
	IF (NOT(CHECK_NUMBER_ALIVE_IN_GROUP  ( p3 , 1 )))
		SET_CHAR_INVINCIBLE( p3 , OFF)
		SET p3_gangtype = 0
		SET_CHAR_GRAPHIC_TYPE ( p3 , GANG_GRAPHIC , 7 )
	ENDIF

	IF ( ( HAS_CHAR_PUNCHED_SOMEONE ( p3 ) ) AND ( p3_trg_punched = 0 ) )
		STORE_LAST_CHAR_PUNCHED ( p3 , p3_punched )
		SET p3_trg_punched = 1
	ENDIF
	IF (( p3_trg_punched = 1 ) AND ( p3_explode_punch = 1))
		IF ( NOT ( DELAY ( 60 ) ) )
			EXPLODE_SMALL (p3_punched)
			SET p3_trg_punched = 0
	ENDIF
ENDIF

	//{ // CARMODEL CHECK
	IF (CHECK_CHARACTER_HEALTH(p3, 0)) //dummy test to check if there is a playerX
	IF (IS_CHARACTER_IN_ANY_CAR  ( p3  ) )
		IF (p3_trg_ic=1)
			SET p3_trg_ic=0
			IF (NOT(IS_CHARACTER_IN_CAR  (  p3  ,  p3_v  )))
				STORE_CAR_CHARACTER_IS_IN ( p3  ,  p3_v  )
				IF (CHECK_CAR_MODEL (  p3_v  ,  ICECREAM ))
					//EXPLODE_LARGE(tanker1trailer) ?????????
					//EXPLODE_LARGE(tanker1cab)

					DISPLAY_MESSAGE (5050) //CHOCTASTIC!

					SET p3_tmr_cream = 100

					//DELAY_HERE(50)
					//EXPLODE_SMALL (p3_v)
					//DELAY_HERE(50)
					//DISPLAY_MESSAGE (5063) //TASTE MY WRATH, ICE-CREAM BOY!
				ENDIF
				IF (CHECK_CAR_MODEL (  p3_v  ,  HOTDOG ))
					//IF (NOT(HAS_CAR_GOT_WEAPON( p3_v, CAR_BOMB )))
					DISPLAY_MESSAGE (5054) //DEATH TO ICE-CREAM VANS!
					//ENDIF
					GIVE_WEAPON ( p3_v , CAR_BOMB, 1 )
					GIVE_WEAPON ( p3_v , CAR_MACHINE_GUN, 20 )
				ENDIF
				IF (CHECK_CAR_MODEL (  p3_v  ,  FIRETRUK ))
					GIVE_WEAPON ( p3_v , CAR_FLAMETHROWER )
					GIVE_WEAPON ( p3 , FLAME_THROWER, 5)
					SET_CAR_FLAMEPROOF ( p3_v, ON )
					//p3_firegang
				ENDIF
				IF (CHECK_CAR_MODEL (  p3_v  ,  MEDICAR ))
					GIVE_WEAPON ( p3 , ELECTRO_GUN, 2 )
				ENDIF
				IF ((CHECK_CAR_MODEL (  p3_v  ,  LIMO )) OR (CHECK_CAR_MODEL (  p3_v  ,  LIMO2 )) )
					GIVE_WEAPON ( p3 , MOLOTOV , 10)
				ENDIF
				IF (CHECK_CAR_MODEL (  p3_v  ,  MESSER ) )
					SET_CAR_ROCKETPROOF ( p3_v, ON )
					SET_CAR_FLAMEPROOF ( p3_v, ON )
				ENDIF
				IF (CHECK_CAR_MODEL (  p3_v  ,  EDSELFBI ) )
					SET_CAR_BULLETPROOF ( p3_v, ON )
				ENDIF
				IF (((CHECK_CAR_MODEL (  p3_v  ,  BOXTRUCK )) OR (CHECK_CAR_MODEL (  p3_v  ,  TOWTRUCK ))) OR ((CHECK_CAR_MODEL (  p3_v  ,  TRUKCAB1 )) OR (CHECK_CAR_MODEL (  p3_v  ,  TRUKCAB2 ) )) )
					GIVE_WEAPON ( p3_v , CAR_MINE, 5 )
					GIVE_WEAPON ( p3_v , CAR_BOMB, 1 )
				ENDIF
				IF (CHECK_CAR_MODEL (  p3_v  ,  GTRUCK ) )
					DO_NOWT
				ENDIF
				IF (CHECK_CAR_MODEL (  p3_v  ,  Bus ) )
					SET_CAR_JAMMED_ACCELERATOR  ( p3_v  ,  ON  )
					//hooligan
				ENDIF
				IF ( ( CHECK_CAR_MODEL (  p3_v  ,  TAXI ) ) OR ( CHECK_CAR_MODEL (  p3_v  ,  STYPECAB )  ))
					DO_NOWT
					//angry or helpful passenger
				ENDIF
				IF (CHECK_CAR_MODEL (  p3_v  ,  JEEP ) )
					GIVE_WEAPON ( p3_v , CAR_MACHINE_GUN ,10 )
					//superjeep like supertank if possible
				ENDIF
				IF (CHECK_CAR_MODEL (  p3_v  ,  TANK ) )
					GIVE_WEAPON ( p3 , ROCKET_LAUNCHER ,5 )
				ENDIF
				IF (CHECK_CAR_MODEL (  p3_v  ,  APC ) )
					SET_CAR_BULLETPROOF ( p3_v, ON )
				ENDIF
				IF (CHECK_CAR_MODEL (  p3_v  ,  BANKVAN ) )
					SET p3_tmp_wantedlevel=p3_wantedlevel
				ENDIF
			ENDIF

			STORE_CAR_CHARACTER_IS_IN ( p3  ,  p3_v  )
			IF (CHECK_CAR_MODEL (  p3_v  ,  FIRETRUK ) )
				//DELAY_HERE(20)

				KILL_ALL_PASSENGERS  (  p3_v  )
				DELETE_ITEM(p3_gangbot1)
				DELETE_ITEM(p3_gangbot2)
				DELETE_ITEM(p3_gangbot3)
				DELETE_ITEM(p3_gangbot4)
				DELETE_ITEM(p3_gangbot5)
			ENDIF
			IF (CHECK_CAR_MODEL (  p3_v  ,  GTRUCK ) )
				//DELAY_HERE(20)

				KILL_ALL_PASSENGERS  (  p3_v  )
				DELETE_ITEM(p3_gangbot1)
				DELETE_ITEM(p3_gangbot2)
				DELETE_ITEM(p3_gangbot3)
				DELETE_ITEM(p3_gangbot4)
				DELETE_ITEM(p3_gangbot5)
			ENDIF
			IF (CHECK_CAR_MODEL (  p3_v  ,  MEDICAR ))
				//DELAY_HERE(20)

				KILL_ALL_PASSENGERS  (  p3_v  )
				DELETE_ITEM(p3_gangbot1)
				DELETE_ITEM(p3_gangbot2)
				DELETE_ITEM(p3_gangbot3)
				DELETE_ITEM(p3_gangbot4)
				DELETE_ITEM(p3_gangbot5)
			ENDIF
			IF ((CHECK_CAR_MODEL (  p3_v  ,  LIMO )) OR (CHECK_CAR_MODEL (  p3_v  ,  LIMO2 )) )
				//DELAY_HERE(20)

				KILL_ALL_PASSENGERS  (  p3_v  )
				DELETE_ITEM(p3_gangbot1)
				DELETE_ITEM(p3_gangbot2)
				DELETE_ITEM(p3_gangbot3)
				DELETE_ITEM(p3_gangbot4)
				DELETE_ITEM(p3_gangbot5)
			ENDIF


		ENDIF
		DO_NOWT
	ELSE
		IF (p3_trg_ic=0)
			IF ((CHECK_CAR_MODEL (  p3_v  ,  LIMO )) OR (CHECK_CAR_MODEL (  p3_v  ,  LIMO2 )) )
				LAUNCH_MISSION (p3_gang4.mis)
			ENDIF

			IF (CHECK_CAR_MODEL (  p3_v  ,  FIRETRUK ))
				LAUNCH_MISSION (p3_gang2.mis) //firegang
			ENDIF

			IF (CHECK_CAR_MODEL (  p3_v  ,  MEDICAR ))
				LAUNCH_MISSION (p3_gang1.mis) //medigang
			ENDIF

			IF (CHECK_CAR_MODEL (  p3_v  ,  GTRUCK ))
				LAUNCH_MISSION (p3_gang3.mis) //garbage gang
			ENDIF

			IF (CHECK_CAR_MODEL (  p3_v  ,  BANKVAN ) )
				LAUNCH_MISSION (p3_rwl.mis) //Restore wanted level
			ENDIF

			If (ARE_EMERG_LIGHTS_ON(p3_v))
				ORDER_CHAR_TO_DRIVE_CAR( p3 , p3_v )
			ENDIF
		ENDIF
		SET p3_trg_ic=1
		SET p3_incar = 0
	ENDIF

	IF (p3_trg_ic=0)
		IF (CHECK_CAR_MODEL (  p3_v  ,  BANKVAN ) )
			ADD_SCORE ( p3, 10 )
			ALTER_WANTED_LEVEL (p3, 0)
		ENDIF
		IF (CHECK_CAR_MODEL (  p3_v  ,  BUS ) )
			IF (NOT (CHECK_CAR_SPEED  (  p3_v  ,  100  ) ))
				DISPLAY_MESSAGE ( 5015 )
			ENDIF
		ENDIF
		IF (CHECK_CAR_MODEL (  p3_v  ,  SWATVAN ) )
			SET_CAR_NO_COLLIDE ( p3_v )
		ENDIF
	ENDIF

	ENDIF
//}



	IF((CHECK_WEAPON_TYPE_HIT_CHAR ( p3 , BY_ELECTRO_WEAPON ) ) AND (p3_noelectro=1)) // electro protection
		IF ((IS_CHAR_FIRING_ONSCREEN  (  p2  )) AND (CHECK_CHAR_CURR_WEAPON (  p2  ,  ELECTRO_GUN )))
			//has to be a timer event
			SET_CHAR_INVINCIBLE ( p2  ,  ON   )
			EXPLODE_SMALL (p2)
			DELAY_HERE(50)
			SET_CHAR_INVINCIBLE ( p2  ,  OFF   )
		ENDIF
	ENDIF

	//{ // Timer Events
		//SWAT
		IF (p3_tmr_swat > 1)
			SET p3_tmr_swat = ( p3_tmr_swat - 1)
		ENDIF
		IF (p3_tmr_swat = 1)
			SET p3_tmr_swat = 0
			ALTER_WANTED_LEVEL (p3, 4) //SWAT
		ENDIF

		//Icecream
		IF (p3_tmr_cream > 1)
			SET p3_tmr_cream = ( p3_tmr_cream - 1)
		ENDIF
		IF (p3_tmr_cream = 50)
			EXPLODE_SMALL (p3_v)
		ENDIF
		IF (p3_tmr_cream = 1)
			SET p3_tmr_cream = 0
			DISPLAY_MESSAGE (5063) //TASTE MY WRATH, ICE-CREAM BOY!
		ENDIF
	//}

	//{ //Powerups
		IF ((LOCATE_CHARACTER_BY_CAR ( p3 , 61.5, 130.5 , 3.0 , 0.8 , 0.8 ))AND(col_nocol = 0))
			SET tmr_nocol = 6000
			SET col_nocol = 1
			SET_CAR_NO_COLLIDE ( p3_v )
			DELETE_ITEM ( obj_nocol )
			obj_nocol = CREATE_OBJ (61.5, 130.5, 3.0) 0 BLASTER END
			DELETE_ITEM ( obj_nocol )
		ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p3 , 63.5, 117.5, 4.0 , 0.8 , 0.8 ))AND(col_repair = 0))
			SET tmr_repair = 6000
			SET col_repair = 1
			SET p3_tmp_wantedlevel=p3_wantedlevel
			ADD_SCORE (p3,5000)
			obj_repair = CREATE_OBJ (63.5, 117.5, 4.0) 0 CAR_SHOP 28 END
			DELETE_ITEM ( obj_repair )
			LAUNCH_MISSION(p3_rwl.mis)
		ENDIF

		IF ((LOCATE_CHARACTER_ANY_MEANS ( p3 , 57.5, 110.5, 3.0 , 0.8 , 0.8 ))AND(col_abribe = 0))
			SET tmr_abribe = 6000
			SET col_abribe = 1
			SET p3_wantedlevel = 6
			ALTER_WANTED_LEVEL (p3, 6)
			DELETE_ITEM ( obj_abribe )
			snd_abribe = CREATE_SOUND (57.5, 110.5, 3.0) SCREAM PLAY_INSTANT END
		ENDIF

		IF ((LOCATE_CHARACTER_ANY_MEANS ( p3 , 77.5, 126.5 , 4.0 , 0.8 , 0.8 ))AND(col_expunch = 0))
			SET tmr_expunch = 6000
			SET col_expunch = 1
			SET p3_explode_punch = 1
			DELETE_ITEM ( obj_expunch )
			obj_nocol = CREATE_OBJ (77.5, 126.5, 4.0) 0 RUBBISH END
			DELETE_ITEM ( obj_nocol )
		ENDIF
	//}
ENDIF

IF (CHECK_CHARACTER_HEALTH(p4, 0))

	IF ( HAS_CHARACTER_DIED ( p4 ))
		//IF ( NOT ( delay (60) ))
			++p4_deaths
		//ENDIF

		SET p4_tmr_swat = 150
		SET p4_explode_punch = 0
	ENDIF

	//{ // WANTED_LEVEL READ
	IF (NOT((p4_trg_ic=0) AND (CHECK_CAR_MODEL (  p4_v  ,  BANKVAN ))))

		IF(CHECK_HEADS_GREATER  ( p4  , 0  ))
			SET p4_wantedlevel = 1
			IF(CHECK_HEADS_GREATER  ( p4  , 1  ))
				SET p4_wantedlevel = 2
				IF(CHECK_HEADS_GREATER  ( p4  , 2  ))
					SET p4_wantedlevel = 3
					IF(CHECK_HEADS_GREATER  ( p4  , 3  ))
						SET p4_wantedlevel = 4
						IF(CHECK_HEADS_GREATER  ( p4  , 4  ))
							SET p4_wantedlevel = 5
							IF(CHECK_HEADS_GREATER  ( p4  , 5  ))
								SET p4_wantedlevel = 6
							ENDIF
						ENDIF
					ENDIF
				ENDIF
			ENDIF
		ENDIF
	ENDIF

	IF( p4_wantedlevel >= wantedlevel )
		SET wantedlevel = (p4_wantedlevel + 0)
	ENDIF

	//}

	IF (CHECK_NUMBER_ALIVE_IN_GROUP  ( p4 , 1 ))
		IF (p4_gangtype=1)
			SET_CHAR_INVINCIBLE( p4 , ON )
			SET_CHAR_GRAPHIC_TYPE ( p4 , GANG_GRAPHIC , 16 )
		ENDIF
		IF (p4_gangtype=2)
			SET_CHAR_GRAPHIC_TYPE ( p4 , GANG_GRAPHIC , 14 )

			IF (CHECK_CHARACTER_HEALTH(p4_gangbot1, 0))
				SET_CHAR_INVINCIBLE( p4_gangbot1 , OFF )
			ENDIF
			IF (CHECK_CHARACTER_HEALTH(p4_gangbot1, 0))
				SET_CHAR_INVINCIBLE( p4_gangbot2 , OFF )
			ENDIF
			IF (CHECK_CHARACTER_HEALTH(p4_gangbot1, 0))
				SET_CHAR_INVINCIBLE( p4_gangbot3 , OFF )
			ENDIF
			IF (CHECK_CHARACTER_HEALTH(p4_gangbot1, 0))
				SET_CHAR_INVINCIBLE( p4_gangbot4 , OFF )
			ENDIF


			IF (IS_CHAR_ON_FIRE  ( p4 ) )
				SET_CHAR_INVINCIBLE( p4 , ON )
			ENDIF
			IF ((CHECK_CHARACTER_HEALTH(p4_gangbot1, 0))AND(IS_CHAR_ON_FIRE  ( p4_gangbot1 ) ))
				SET_CHAR_INVINCIBLE( p4_gangbot1 , ON )
				//SET_CHAR_INVINCIBLE( p4_gangbot1 , OFF )
			ENDIF
			IF ((CHECK_CHARACTER_HEALTH(p4_gangbot1, 0))AND(IS_CHAR_ON_FIRE  ( p4_gangbot2 ) ))
				SET_CHAR_INVINCIBLE( p4_gangbot2 , ON )
				//SET_CHAR_INVINCIBLE( p4_gangbot2 , OFF )
			ENDIF
			IF ((CHECK_CHARACTER_HEALTH(p4_gangbot1, 0))AND(IS_CHAR_ON_FIRE  ( p4_gangbot3 ) ))
				SET_CHAR_INVINCIBLE( p4_gangbot3 , ON )
				//SET_CHAR_INVINCIBLE( p4_gangbot3 , OFF )
			ENDIF
			IF ((CHECK_CHARACTER_HEALTH(p4_gangbot1, 0))AND(IS_CHAR_ON_FIRE  ( p4_gangbot4 ) ))
				SET_CHAR_INVINCIBLE( p4_gangbot4 , ON )
				//SET_CHAR_INVINCIBLE( p4_gangbot4 , OFF )
			ENDIF
		ENDIF
		IF (p4_gangtype=3)
			SET_CHAR_GRAPHIC_TYPE ( p4 , GANG_GRAPHIC , 5 )
		ENDIF
		IF (p4_gangtype=4)
			SET_CHAR_GRAPHIC_TYPE ( p4 , GANG_GRAPHIC , 12 )
		ENDIF
	ENDIF
	IF (NOT(CHECK_NUMBER_ALIVE_IN_GROUP  ( p4 , 1 )))
		SET_CHAR_INVINCIBLE( p4 , OFF)
		SET p4_gangtype = 0
		SET_CHAR_GRAPHIC_TYPE ( p4 , GANG_GRAPHIC , 11 )
	ENDIF

	IF ( ( HAS_CHAR_PUNCHED_SOMEONE ( p4 ) ) AND ( p4_trg_punched = 0 ) )
		STORE_LAST_CHAR_PUNCHED ( p4 , p4_punched )
		SET p4_trg_punched = 1
	ENDIF
	IF (( p4_trg_punched = 1 ) AND ( p4_explode_punch = 1))
		IF ( NOT ( DELAY ( 60 ) ) )
			EXPLODE_SMALL (p4_punched)
			SET p4_trg_punched = 0
	ENDIF
ENDIF

	//{ // CARMODEL CHECK
	IF (CHECK_CHARACTER_HEALTH(p4, 0)) //dummy test to check if there is a playerX
	IF (IS_CHARACTER_IN_ANY_CAR  ( p4  ) )
		IF (p4_trg_ic=1)
			SET p4_trg_ic=0
			IF (NOT(IS_CHARACTER_IN_CAR  (  p4  ,  p4_v  )))
				STORE_CAR_CHARACTER_IS_IN ( p4  ,  p4_v  )
				IF (CHECK_CAR_MODEL (  p4_v  ,  ICECREAM ))
					//EXPLODE_LARGE(tanker1trailer) ?????????
					//EXPLODE_LARGE(tanker1cab)

					DISPLAY_MESSAGE (5050) //CHOCTASTIC!

					SET p4_tmr_cream = 100

					//DELAY_HERE(50)
					//EXPLODE_SMALL (p4_v)
					//DELAY_HERE(50)
					//DISPLAY_MESSAGE (5063) //TASTE MY WRATH, ICE-CREAM BOY!
				ENDIF
				IF (CHECK_CAR_MODEL (  p4_v  ,  HOTDOG ))
					//IF (NOT(HAS_CAR_GOT_WEAPON( p4_v, CAR_BOMB )))
					DISPLAY_MESSAGE (5054) //DEATH TO ICE-CREAM VANS!
					//ENDIF
					GIVE_WEAPON ( p4_v , CAR_BOMB, 1 )
					GIVE_WEAPON ( p4_v , CAR_MACHINE_GUN, 20 )
				ENDIF
				IF (CHECK_CAR_MODEL (  p4_v  ,  FIRETRUK ))
					GIVE_WEAPON ( p4_v , CAR_FLAMETHROWER )
					GIVE_WEAPON ( p4 , FLAME_THROWER, 5)
					SET_CAR_FLAMEPROOF ( p4_v, ON )
					//p4_firegang
				ENDIF
				IF (CHECK_CAR_MODEL (  p4_v  ,  MEDICAR ))
					GIVE_WEAPON ( p4 , ELECTRO_GUN, 2 )
				ENDIF
				IF ((CHECK_CAR_MODEL (  p4_v  ,  LIMO )) OR (CHECK_CAR_MODEL (  p4_v  ,  LIMO2 )) )
					GIVE_WEAPON ( p4 , MOLOTOV , 10)
				ENDIF
				IF (CHECK_CAR_MODEL (  p4_v  ,  MESSER ) )
					SET_CAR_ROCKETPROOF ( p4_v, ON )
					SET_CAR_FLAMEPROOF ( p4_v, ON )
				ENDIF
				IF (CHECK_CAR_MODEL (  p4_v  ,  EDSELFBI ) )
					SET_CAR_BULLETPROOF ( p4_v, ON )
				ENDIF
				IF (((CHECK_CAR_MODEL (  p4_v  ,  BOXTRUCK )) OR (CHECK_CAR_MODEL (  p4_v  ,  TOWTRUCK ))) OR ((CHECK_CAR_MODEL (  p4_v  ,  TRUKCAB1 )) OR (CHECK_CAR_MODEL (  p4_v  ,  TRUKCAB2 ) )) )
					GIVE_WEAPON ( p4_v , CAR_MINE, 5 )
					GIVE_WEAPON ( p4_v , CAR_BOMB, 1 )
				ENDIF
				IF (CHECK_CAR_MODEL (  p4_v  ,  GTRUCK ) )
					DO_NOWT
				ENDIF
				IF (CHECK_CAR_MODEL (  p4_v  ,  Bus ) )
					SET_CAR_JAMMED_ACCELERATOR  ( p4_v  ,  ON  )
					//hooligan
				ENDIF
				IF ( ( CHECK_CAR_MODEL (  p4_v  ,  TAXI ) ) OR ( CHECK_CAR_MODEL (  p4_v  ,  STYPECAB )  ))
					DO_NOWT
					//angry or helpful passenger
				ENDIF
				IF (CHECK_CAR_MODEL (  p4_v  ,  JEEP ) )
					GIVE_WEAPON ( p4_v , CAR_MACHINE_GUN ,10 )
					//superjeep like supertank if possible
				ENDIF
				IF (CHECK_CAR_MODEL (  p4_v  ,  TANK ) )
					GIVE_WEAPON ( p4 , ROCKET_LAUNCHER ,5 )
				ENDIF
				IF (CHECK_CAR_MODEL (  p4_v  ,  APC ) )
					SET_CAR_BULLETPROOF ( p4_v, ON )
				ENDIF
				IF (CHECK_CAR_MODEL (  p4_v  ,  BANKVAN ) )
					SET p4_tmp_wantedlevel=p4_wantedlevel
				ENDIF
			ENDIF

			STORE_CAR_CHARACTER_IS_IN ( p4  ,  p4_v  )
			IF (CHECK_CAR_MODEL (  p4_v  ,  FIRETRUK ) )
				//DELAY_HERE(20)

				KILL_ALL_PASSENGERS  (  p4_v  )
				DELETE_ITEM(p4_gangbot1)
				DELETE_ITEM(p4_gangbot2)
				DELETE_ITEM(p4_gangbot3)
				DELETE_ITEM(p4_gangbot4)
				DELETE_ITEM(p4_gangbot5)
			ENDIF
			IF (CHECK_CAR_MODEL (  p4_v  ,  GTRUCK ) )
				//DELAY_HERE(20)

				KILL_ALL_PASSENGERS  (  p4_v  )
				DELETE_ITEM(p4_gangbot1)
				DELETE_ITEM(p4_gangbot2)
				DELETE_ITEM(p4_gangbot3)
				DELETE_ITEM(p4_gangbot4)
				DELETE_ITEM(p4_gangbot5)
			ENDIF
			IF (CHECK_CAR_MODEL (  p4_v  ,  MEDICAR ))
				//DELAY_HERE(20)

				KILL_ALL_PASSENGERS  (  p4_v  )
				DELETE_ITEM(p4_gangbot1)
				DELETE_ITEM(p4_gangbot2)
				DELETE_ITEM(p4_gangbot3)
				DELETE_ITEM(p4_gangbot4)
				DELETE_ITEM(p4_gangbot5)
			ENDIF
			IF ((CHECK_CAR_MODEL (  p4_v  ,  LIMO )) OR (CHECK_CAR_MODEL (  p4_v  ,  LIMO2 )) )
				//DELAY_HERE(20)

				KILL_ALL_PASSENGERS  (  p4_v  )
				DELETE_ITEM(p4_gangbot1)
				DELETE_ITEM(p4_gangbot2)
				DELETE_ITEM(p4_gangbot3)
				DELETE_ITEM(p4_gangbot4)
				DELETE_ITEM(p4_gangbot5)
			ENDIF


		ENDIF
		DO_NOWT
	ELSE
		IF (p4_trg_ic=0)
			IF ((CHECK_CAR_MODEL (  p4_v  ,  LIMO )) OR (CHECK_CAR_MODEL (  p4_v  ,  LIMO2 )) )
				LAUNCH_MISSION (p4_gang4.mis)
			ENDIF

			IF (CHECK_CAR_MODEL (  p4_v  ,  FIRETRUK ))
				LAUNCH_MISSION (p4_gang2.mis) //firegang
			ENDIF

			IF (CHECK_CAR_MODEL (  p4_v  ,  MEDICAR ))
				LAUNCH_MISSION (p4_gang1.mis) //medigang
			ENDIF

			IF (CHECK_CAR_MODEL (  p4_v  ,  GTRUCK ))
				LAUNCH_MISSION (p4_gang3.mis) //garbage gang
			ENDIF

			IF (CHECK_CAR_MODEL (  p4_v  ,  BANKVAN ) )
				LAUNCH_MISSION (p4_rwl.mis) //Restore wanted level
			ENDIF

			If (ARE_EMERG_LIGHTS_ON(p4_v))
				ORDER_CHAR_TO_DRIVE_CAR( p4 , p4_v )
			ENDIF
		ENDIF
		SET p4_trg_ic=1
		SET p4_incar = 0
	ENDIF

	IF (p4_trg_ic=0)
		IF (CHECK_CAR_MODEL (  p4_v  ,  BANKVAN ) )
			ADD_SCORE ( p4, 10 )
			ALTER_WANTED_LEVEL (p4, 0)
		ENDIF
		IF (CHECK_CAR_MODEL (  p4_v  ,  BUS ) )
			IF (NOT (CHECK_CAR_SPEED  (  p4_v  ,  100  ) ))
				DISPLAY_MESSAGE ( 5015 )
			ENDIF
		ENDIF
		IF (CHECK_CAR_MODEL (  p4_v  ,  SWATVAN ) )
			SET_CAR_NO_COLLIDE ( p4_v )
		ENDIF
	ENDIF

	ENDIF
//}



	IF((CHECK_WEAPON_TYPE_HIT_CHAR ( p4 , BY_ELECTRO_WEAPON ) ) AND (p4_noelectro=1)) // electro protection
		IF ((IS_CHAR_FIRING_ONSCREEN  (  p2  )) AND (CHECK_CHAR_CURR_WEAPON (  p2  ,  ELECTRO_GUN )))
			//has to be a timer event
			SET_CHAR_INVINCIBLE ( p2  ,  ON   )
			EXPLODE_SMALL (p2)
			DELAY_HERE(50)
			SET_CHAR_INVINCIBLE ( p2  ,  OFF   )
		ENDIF
	ENDIF

	//{ // Timer Events
		//SWAT
		IF (p4_tmr_swat > 1)
			SET p4_tmr_swat = ( p4_tmr_swat - 1)
		ENDIF
		IF (p4_tmr_swat = 1)
			SET p4_tmr_swat = 0
			ALTER_WANTED_LEVEL (p4, 4) //SWAT
		ENDIF

		//Icecream
		IF (p4_tmr_cream > 1)
			SET p4_tmr_cream = ( p4_tmr_cream - 1)
		ENDIF
		IF (p4_tmr_cream = 50)
			EXPLODE_SMALL (p4_v)
		ENDIF
		IF (p4_tmr_cream = 1)
			SET p4_tmr_cream = 0
			DISPLAY_MESSAGE (5063) //TASTE MY WRATH, ICE-CREAM BOY!
		ENDIF
	//}

	//{ //Powerups
		IF ((LOCATE_CHARACTER_BY_CAR ( p4 , 61.5, 130.5 , 3.0 , 0.8 , 0.8 ))AND(col_nocol = 0))
			SET tmr_nocol = 6000
			SET col_nocol = 1
			SET_CAR_NO_COLLIDE ( p4_v )
			DELETE_ITEM ( obj_nocol )
			obj_nocol = CREATE_OBJ (61.5, 130.5, 3.0) 0 BLASTER END
			DELETE_ITEM ( obj_nocol )
		ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p4 , 63.5, 117.5, 4.0 , 0.8 , 0.8 ))AND(col_repair = 0))
			SET tmr_repair = 6000
			SET col_repair = 1
			SET p4_tmp_wantedlevel=p4_wantedlevel
			ADD_SCORE (p4,5000)
			obj_repair = CREATE_OBJ (63.5, 117.5, 4.0) 0 CAR_SHOP 28 END
			DELETE_ITEM ( obj_repair )
			LAUNCH_MISSION(p4_rwl.mis)
		ENDIF

		IF ((LOCATE_CHARACTER_ANY_MEANS ( p4 , 57.5, 110.5, 3.0 , 0.8 , 0.8 ))AND(col_abribe = 0))
			SET tmr_abribe = 6000
			SET col_abribe = 1
			SET p4_wantedlevel = 6
			ALTER_WANTED_LEVEL (p4, 6)
			DELETE_ITEM ( obj_abribe )
			snd_abribe = CREATE_SOUND (57.5, 110.5, 3.0) SCREAM PLAY_INSTANT END
		ENDIF

		IF ((LOCATE_CHARACTER_ANY_MEANS ( p4 , 77.5, 126.5 , 4.0 , 0.8 , 0.8 ))AND(col_expunch = 0))
			SET tmr_expunch = 6000
			SET col_expunch = 1
			SET p4_explode_punch = 1
			DELETE_ITEM ( obj_expunch )
			obj_nocol = CREATE_OBJ (77.5, 126.5, 4.0) 0 RUBBISH END
			DELETE_ITEM ( obj_nocol )
		ENDIF
	//}
ENDIF

IF (CHECK_CHARACTER_HEALTH(p5, 0))

	IF ( HAS_CHARACTER_DIED ( p5 ))
		//IF ( NOT ( delay (60) ))
			++p5_deaths
		//ENDIF

		SET p5_tmr_swat = 150
		SET p5_explode_punch = 0
	ENDIF

	//{ // WANTED_LEVEL READ
	IF (NOT((p5_trg_ic=0) AND (CHECK_CAR_MODEL (  p5_v  ,  BANKVAN ))))

		IF(CHECK_HEADS_GREATER  ( p5  , 0  ))
			SET p5_wantedlevel = 1
			IF(CHECK_HEADS_GREATER  ( p5  , 1  ))
				SET p5_wantedlevel = 2
				IF(CHECK_HEADS_GREATER  ( p5  , 2  ))
					SET p5_wantedlevel = 3
					IF(CHECK_HEADS_GREATER  ( p5  , 3  ))
						SET p5_wantedlevel = 4
						IF(CHECK_HEADS_GREATER  ( p5  , 4  ))
							SET p5_wantedlevel = 5
							IF(CHECK_HEADS_GREATER  ( p5  , 5  ))
								SET p5_wantedlevel = 6
							ENDIF
						ENDIF
					ENDIF
				ENDIF
			ENDIF
		ENDIF
	ENDIF

	IF( p5_wantedlevel >= wantedlevel )
		SET wantedlevel = (p5_wantedlevel + 0)
	ENDIF

	//}

	IF (CHECK_NUMBER_ALIVE_IN_GROUP  ( p5 , 1 ))
		IF (p5_gangtype=1)
			SET_CHAR_INVINCIBLE( p5 , ON )
			SET_CHAR_GRAPHIC_TYPE ( p5 , GANG_GRAPHIC , 16 )
		ENDIF
		IF (p5_gangtype=2)
			SET_CHAR_GRAPHIC_TYPE ( p5 , GANG_GRAPHIC , 14 )

			IF (CHECK_CHARACTER_HEALTH(p5_gangbot1, 0))
				SET_CHAR_INVINCIBLE( p5_gangbot1 , OFF )
			ENDIF
			IF (CHECK_CHARACTER_HEALTH(p5_gangbot1, 0))
				SET_CHAR_INVINCIBLE( p5_gangbot2 , OFF )
			ENDIF
			IF (CHECK_CHARACTER_HEALTH(p5_gangbot1, 0))
				SET_CHAR_INVINCIBLE( p5_gangbot3 , OFF )
			ENDIF
			IF (CHECK_CHARACTER_HEALTH(p5_gangbot1, 0))
				SET_CHAR_INVINCIBLE( p5_gangbot4 , OFF )
			ENDIF


			IF (IS_CHAR_ON_FIRE  ( p5 ) )
				SET_CHAR_INVINCIBLE( p5 , ON )
			ENDIF
			IF ((CHECK_CHARACTER_HEALTH(p5_gangbot1, 0))AND(IS_CHAR_ON_FIRE  ( p5_gangbot1 ) ))
				SET_CHAR_INVINCIBLE( p5_gangbot1 , ON )
				//SET_CHAR_INVINCIBLE( p5_gangbot1 , OFF )
			ENDIF
			IF ((CHECK_CHARACTER_HEALTH(p5_gangbot1, 0))AND(IS_CHAR_ON_FIRE  ( p5_gangbot2 ) ))
				SET_CHAR_INVINCIBLE( p5_gangbot2 , ON )
				//SET_CHAR_INVINCIBLE( p5_gangbot2 , OFF )
			ENDIF
			IF ((CHECK_CHARACTER_HEALTH(p5_gangbot1, 0))AND(IS_CHAR_ON_FIRE  ( p5_gangbot3 ) ))
				SET_CHAR_INVINCIBLE( p5_gangbot3 , ON )
				//SET_CHAR_INVINCIBLE( p5_gangbot3 , OFF )
			ENDIF
			IF ((CHECK_CHARACTER_HEALTH(p5_gangbot1, 0))AND(IS_CHAR_ON_FIRE  ( p5_gangbot4 ) ))
				SET_CHAR_INVINCIBLE( p5_gangbot4 , ON )
				//SET_CHAR_INVINCIBLE( p5_gangbot4 , OFF )
			ENDIF
		ENDIF
		IF (p5_gangtype=3)
			SET_CHAR_GRAPHIC_TYPE ( p5 , GANG_GRAPHIC , 5 )
		ENDIF
		IF (p5_gangtype=4)
			SET_CHAR_GRAPHIC_TYPE ( p5 , GANG_GRAPHIC , 12 )
		ENDIF
	ENDIF
	IF (NOT(CHECK_NUMBER_ALIVE_IN_GROUP  ( p5 , 1 )))
		SET_CHAR_INVINCIBLE( p5 , OFF)
		SET p5_gangtype = 0
		SET_CHAR_GRAPHIC_TYPE ( p5 , GANG_GRAPHIC , 9 )
	ENDIF

	IF ( ( HAS_CHAR_PUNCHED_SOMEONE ( p5 ) ) AND ( p5_trg_punched = 0 ) )
		STORE_LAST_CHAR_PUNCHED ( p5 , p5_punched )
		SET p5_trg_punched = 1
	ENDIF
	IF (( p5_trg_punched = 1 ) AND ( p5_explode_punch = 1))
		IF ( NOT ( DELAY ( 60 ) ) )
			EXPLODE_SMALL (p5_punched)
			SET p5_trg_punched = 0
	ENDIF
ENDIF

	//{ // CARMODEL CHECK
	IF (CHECK_CHARACTER_HEALTH(p5, 0)) //dummy test to check if there is a playerX
	IF (IS_CHARACTER_IN_ANY_CAR  ( p5  ) )
		IF (p5_trg_ic=1)
			SET p5_trg_ic=0
			IF (NOT(IS_CHARACTER_IN_CAR  (  p5  ,  p5_v  )))
				STORE_CAR_CHARACTER_IS_IN ( p5  ,  p5_v  )
				IF (CHECK_CAR_MODEL (  p5_v  ,  ICECREAM ))
					//EXPLODE_LARGE(tanker1trailer) ?????????
					//EXPLODE_LARGE(tanker1cab)

					DISPLAY_MESSAGE (5050) //CHOCTASTIC!

					SET p5_tmr_cream = 100

					//DELAY_HERE(50)
					//EXPLODE_SMALL (p5_v)
					//DELAY_HERE(50)
					//DISPLAY_MESSAGE (5063) //TASTE MY WRATH, ICE-CREAM BOY!
				ENDIF
				IF (CHECK_CAR_MODEL (  p5_v  ,  HOTDOG ))
					//IF (NOT(HAS_CAR_GOT_WEAPON( p5_v, CAR_BOMB )))
					DISPLAY_MESSAGE (5054) //DEATH TO ICE-CREAM VANS!
					//ENDIF
					GIVE_WEAPON ( p5_v , CAR_BOMB, 1 )
					GIVE_WEAPON ( p5_v , CAR_MACHINE_GUN, 20 )
				ENDIF
				IF (CHECK_CAR_MODEL (  p5_v  ,  FIRETRUK ))
					GIVE_WEAPON ( p5_v , CAR_FLAMETHROWER )
					GIVE_WEAPON ( p5 , FLAME_THROWER, 5)
					SET_CAR_FLAMEPROOF ( p5_v, ON )
					//p5_firegang
				ENDIF
				IF (CHECK_CAR_MODEL (  p5_v  ,  MEDICAR ))
					GIVE_WEAPON ( p5 , ELECTRO_GUN, 2 )
				ENDIF
				IF ((CHECK_CAR_MODEL (  p5_v  ,  LIMO )) OR (CHECK_CAR_MODEL (  p5_v  ,  LIMO2 )) )
					GIVE_WEAPON ( p5 , MOLOTOV , 10)
				ENDIF
				IF (CHECK_CAR_MODEL (  p5_v  ,  MESSER ) )
					SET_CAR_ROCKETPROOF ( p5_v, ON )
					SET_CAR_FLAMEPROOF ( p5_v, ON )
				ENDIF
				IF (CHECK_CAR_MODEL (  p5_v  ,  EDSELFBI ) )
					SET_CAR_BULLETPROOF ( p5_v, ON )
				ENDIF
				IF (((CHECK_CAR_MODEL (  p5_v  ,  BOXTRUCK )) OR (CHECK_CAR_MODEL (  p5_v  ,  TOWTRUCK ))) OR ((CHECK_CAR_MODEL (  p5_v  ,  TRUKCAB1 )) OR (CHECK_CAR_MODEL (  p5_v  ,  TRUKCAB2 ) )) )
					GIVE_WEAPON ( p5_v , CAR_MINE, 5 )
					GIVE_WEAPON ( p5_v , CAR_BOMB, 1 )
				ENDIF
				IF (CHECK_CAR_MODEL (  p5_v  ,  GTRUCK ) )
					DO_NOWT
				ENDIF
				IF (CHECK_CAR_MODEL (  p5_v  ,  Bus ) )
					SET_CAR_JAMMED_ACCELERATOR  ( p5_v  ,  ON  )
					//hooligan
				ENDIF
				IF ( ( CHECK_CAR_MODEL (  p5_v  ,  TAXI ) ) OR ( CHECK_CAR_MODEL (  p5_v  ,  STYPECAB )  ))
					DO_NOWT
					//angry or helpful passenger
				ENDIF
				IF (CHECK_CAR_MODEL (  p5_v  ,  JEEP ) )
					GIVE_WEAPON ( p5_v , CAR_MACHINE_GUN ,10 )
					//superjeep like supertank if possible
				ENDIF
				IF (CHECK_CAR_MODEL (  p5_v  ,  TANK ) )
					GIVE_WEAPON ( p5 , ROCKET_LAUNCHER ,5 )
				ENDIF
				IF (CHECK_CAR_MODEL (  p5_v  ,  APC ) )
					SET_CAR_BULLETPROOF ( p5_v, ON )
				ENDIF
				IF (CHECK_CAR_MODEL (  p5_v  ,  BANKVAN ) )
					SET p5_tmp_wantedlevel=p5_wantedlevel
				ENDIF
			ENDIF

			STORE_CAR_CHARACTER_IS_IN ( p5  ,  p5_v  )
			IF (CHECK_CAR_MODEL (  p5_v  ,  FIRETRUK ) )
				//DELAY_HERE(20)

				KILL_ALL_PASSENGERS  (  p5_v  )
				DELETE_ITEM(p5_gangbot1)
				DELETE_ITEM(p5_gangbot2)
				DELETE_ITEM(p5_gangbot3)
				DELETE_ITEM(p5_gangbot4)
				DELETE_ITEM(p5_gangbot5)
			ENDIF
			IF (CHECK_CAR_MODEL (  p5_v  ,  GTRUCK ) )
				//DELAY_HERE(20)

				KILL_ALL_PASSENGERS  (  p5_v  )
				DELETE_ITEM(p5_gangbot1)
				DELETE_ITEM(p5_gangbot2)
				DELETE_ITEM(p5_gangbot3)
				DELETE_ITEM(p5_gangbot4)
				DELETE_ITEM(p5_gangbot5)
			ENDIF
			IF (CHECK_CAR_MODEL (  p5_v  ,  MEDICAR ))
				//DELAY_HERE(20)

				KILL_ALL_PASSENGERS  (  p5_v  )
				DELETE_ITEM(p5_gangbot1)
				DELETE_ITEM(p5_gangbot2)
				DELETE_ITEM(p5_gangbot3)
				DELETE_ITEM(p5_gangbot4)
				DELETE_ITEM(p5_gangbot5)
			ENDIF
			IF ((CHECK_CAR_MODEL (  p5_v  ,  LIMO )) OR (CHECK_CAR_MODEL (  p5_v  ,  LIMO2 )) )
				//DELAY_HERE(20)

				KILL_ALL_PASSENGERS  (  p5_v  )
				DELETE_ITEM(p5_gangbot1)
				DELETE_ITEM(p5_gangbot2)
				DELETE_ITEM(p5_gangbot3)
				DELETE_ITEM(p5_gangbot4)
				DELETE_ITEM(p5_gangbot5)
			ENDIF


		ENDIF
		DO_NOWT
	ELSE
		IF (p5_trg_ic=0)
			IF ((CHECK_CAR_MODEL (  p5_v  ,  LIMO )) OR (CHECK_CAR_MODEL (  p5_v  ,  LIMO2 )) )
				LAUNCH_MISSION (p5_gang4.mis)
			ENDIF

			IF (CHECK_CAR_MODEL (  p5_v  ,  FIRETRUK ))
				LAUNCH_MISSION (p5_gang2.mis) //firegang
			ENDIF

			IF (CHECK_CAR_MODEL (  p5_v  ,  MEDICAR ))
				LAUNCH_MISSION (p5_gang1.mis) //medigang
			ENDIF

			IF (CHECK_CAR_MODEL (  p5_v  ,  GTRUCK ))
				LAUNCH_MISSION (p5_gang3.mis) //garbage gang
			ENDIF

			IF (CHECK_CAR_MODEL (  p5_v  ,  BANKVAN ) )
				LAUNCH_MISSION (p5_rwl.mis) //Restore wanted level
			ENDIF

			If (ARE_EMERG_LIGHTS_ON(p5_v))
				ORDER_CHAR_TO_DRIVE_CAR( p5 , p5_v )
			ENDIF
		ENDIF
		SET p5_trg_ic=1
		SET p5_incar = 0
	ENDIF

	IF (p5_trg_ic=0)
		IF (CHECK_CAR_MODEL (  p5_v  ,  BANKVAN ) )
			ADD_SCORE ( p5, 10 )
			ALTER_WANTED_LEVEL (p5, 0)
		ENDIF
		IF (CHECK_CAR_MODEL (  p5_v  ,  BUS ) )
			IF (NOT (CHECK_CAR_SPEED  (  p5_v  ,  100  ) ))
				DISPLAY_MESSAGE ( 5015 )
			ENDIF
		ENDIF
		IF (CHECK_CAR_MODEL (  p5_v  ,  SWATVAN ) )
			SET_CAR_NO_COLLIDE ( p5_v )
		ENDIF
	ENDIF

	ENDIF
//}



	IF((CHECK_WEAPON_TYPE_HIT_CHAR ( p5 , BY_ELECTRO_WEAPON ) ) AND (p5_noelectro=1)) // electro protection
		IF ((IS_CHAR_FIRING_ONSCREEN  (  p2  )) AND (CHECK_CHAR_CURR_WEAPON (  p2  ,  ELECTRO_GUN )))
			//has to be a timer event
			SET_CHAR_INVINCIBLE ( p2  ,  ON   )
			EXPLODE_SMALL (p2)
			DELAY_HERE(50)
			SET_CHAR_INVINCIBLE ( p2  ,  OFF   )
		ENDIF
	ENDIF

	//{ // Timer Events
		//SWAT
		IF (p5_tmr_swat > 1)
			SET p5_tmr_swat = ( p5_tmr_swat - 1)
		ENDIF
		IF (p5_tmr_swat = 1)
			SET p5_tmr_swat = 0
			ALTER_WANTED_LEVEL (p5, 4) //SWAT
		ENDIF

		//Icecream
		IF (p5_tmr_cream > 1)
			SET p5_tmr_cream = ( p5_tmr_cream - 1)
		ENDIF
		IF (p5_tmr_cream = 50)
			EXPLODE_SMALL (p5_v)
		ENDIF
		IF (p5_tmr_cream = 1)
			SET p5_tmr_cream = 0
			DISPLAY_MESSAGE (5063) //TASTE MY WRATH, ICE-CREAM BOY!
		ENDIF
	//}

	//{ //Powerups
		IF ((LOCATE_CHARACTER_BY_CAR ( p5 , 61.5, 130.5 , 3.0 , 0.8 , 0.8 ))AND(col_nocol = 0))
			SET tmr_nocol = 6000
			SET col_nocol = 1
			SET_CAR_NO_COLLIDE ( p5_v )
			DELETE_ITEM ( obj_nocol )
			obj_nocol = CREATE_OBJ (61.5, 130.5, 3.0) 0 BLASTER END
			DELETE_ITEM ( obj_nocol )
		ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p5 , 63.5, 117.5, 4.0 , 0.8 , 0.8 ))AND(col_repair = 0))
			SET tmr_repair = 6000
			SET col_repair = 1
			SET p5_tmp_wantedlevel=p5_wantedlevel
			ADD_SCORE (p5,5000)
			obj_repair = CREATE_OBJ (63.5, 117.5, 4.0) 0 CAR_SHOP 28 END
			DELETE_ITEM ( obj_repair )
			LAUNCH_MISSION(p5_rwl.mis)
		ENDIF

		IF ((LOCATE_CHARACTER_ANY_MEANS ( p5 , 57.5, 110.5, 3.0 , 0.8 , 0.8 ))AND(col_abribe = 0))
			SET tmr_abribe = 6000
			SET col_abribe = 1
			SET p5_wantedlevel = 6
			ALTER_WANTED_LEVEL (p5, 6)
			DELETE_ITEM ( obj_abribe )
			snd_abribe = CREATE_SOUND (57.5, 110.5, 3.0) SCREAM PLAY_INSTANT END
		ENDIF

		IF ((LOCATE_CHARACTER_ANY_MEANS ( p5 , 77.5, 126.5 , 4.0 , 0.8 , 0.8 ))AND(col_expunch = 0))
			SET tmr_expunch = 6000
			SET col_expunch = 1
			SET p5_explode_punch = 1
			DELETE_ITEM ( obj_expunch )
			obj_nocol = CREATE_OBJ (77.5, 126.5, 4.0) 0 RUBBISH END
			DELETE_ITEM ( obj_nocol )
		ENDIF
	//}
ENDIF

IF (CHECK_CHARACTER_HEALTH(p6, 0))

	IF ( HAS_CHARACTER_DIED ( p6 ))
		//IF ( NOT ( delay (60) ))
			++p6_deaths
		//ENDIF

		SET p6_tmr_swat = 150
		SET p6_explode_punch = 0
	ENDIF

	//{ // WANTED_LEVEL READ
	IF (NOT((p6_trg_ic=0) AND (CHECK_CAR_MODEL (  p6_v  ,  BANKVAN ))))

		IF(CHECK_HEADS_GREATER  ( p6  , 0  ))
			SET p6_wantedlevel = 1
			IF(CHECK_HEADS_GREATER  ( p6  , 1  ))
				SET p6_wantedlevel = 2
				IF(CHECK_HEADS_GREATER  ( p6  , 2  ))
					SET p6_wantedlevel = 3
					IF(CHECK_HEADS_GREATER  ( p6  , 3  ))
						SET p6_wantedlevel = 4
						IF(CHECK_HEADS_GREATER  ( p6  , 4  ))
							SET p6_wantedlevel = 5
							IF(CHECK_HEADS_GREATER  ( p6  , 5  ))
								SET p6_wantedlevel = 6
							ENDIF
						ENDIF
					ENDIF
				ENDIF
			ENDIF
		ENDIF
	ENDIF

	IF( p6_wantedlevel >= wantedlevel )
		SET wantedlevel = (p6_wantedlevel + 0)
	ENDIF

	//}

	IF (CHECK_NUMBER_ALIVE_IN_GROUP  ( p6 , 1 ))
		IF (p6_gangtype=1)
			SET_CHAR_INVINCIBLE( p6 , ON )
			SET_CHAR_GRAPHIC_TYPE ( p6 , GANG_GRAPHIC , 16 )
		ENDIF
		IF (p6_gangtype=2)
			SET_CHAR_GRAPHIC_TYPE ( p6 , GANG_GRAPHIC , 14 )

			IF (CHECK_CHARACTER_HEALTH(p6_gangbot1, 0))
				SET_CHAR_INVINCIBLE( p6_gangbot1 , OFF )
			ENDIF
			IF (CHECK_CHARACTER_HEALTH(p6_gangbot1, 0))
				SET_CHAR_INVINCIBLE( p6_gangbot2 , OFF )
			ENDIF
			IF (CHECK_CHARACTER_HEALTH(p6_gangbot1, 0))
				SET_CHAR_INVINCIBLE( p6_gangbot3 , OFF )
			ENDIF
			IF (CHECK_CHARACTER_HEALTH(p6_gangbot1, 0))
				SET_CHAR_INVINCIBLE( p6_gangbot4 , OFF )
			ENDIF


			IF (IS_CHAR_ON_FIRE  ( p6 ) )
				SET_CHAR_INVINCIBLE( p6 , ON )
			ENDIF
			IF ((CHECK_CHARACTER_HEALTH(p6_gangbot1, 0))AND(IS_CHAR_ON_FIRE  ( p6_gangbot1 ) ))
				SET_CHAR_INVINCIBLE( p6_gangbot1 , ON )
				//SET_CHAR_INVINCIBLE( p6_gangbot1 , OFF )
			ENDIF
			IF ((CHECK_CHARACTER_HEALTH(p6_gangbot1, 0))AND(IS_CHAR_ON_FIRE  ( p6_gangbot2 ) ))
				SET_CHAR_INVINCIBLE( p6_gangbot2 , ON )
				//SET_CHAR_INVINCIBLE( p6_gangbot2 , OFF )
			ENDIF
			IF ((CHECK_CHARACTER_HEALTH(p6_gangbot1, 0))AND(IS_CHAR_ON_FIRE  ( p6_gangbot3 ) ))
				SET_CHAR_INVINCIBLE( p6_gangbot3 , ON )
				//SET_CHAR_INVINCIBLE( p6_gangbot3 , OFF )
			ENDIF
			IF ((CHECK_CHARACTER_HEALTH(p6_gangbot1, 0))AND(IS_CHAR_ON_FIRE  ( p6_gangbot4 ) ))
				SET_CHAR_INVINCIBLE( p6_gangbot4 , ON )
				//SET_CHAR_INVINCIBLE( p6_gangbot4 , OFF )
			ENDIF
		ENDIF
		IF (p6_gangtype=3)
			SET_CHAR_GRAPHIC_TYPE ( p6 , GANG_GRAPHIC , 5 )
		ENDIF
		IF (p6_gangtype=4)
			SET_CHAR_GRAPHIC_TYPE ( p6 , GANG_GRAPHIC , 12 )
		ENDIF
	ENDIF
	IF (NOT(CHECK_NUMBER_ALIVE_IN_GROUP  ( p6 , 1 )))
		SET_CHAR_INVINCIBLE( p6 , OFF)
		SET p6_gangtype = 0
		SET_CHAR_GRAPHIC_TYPE ( p6 , GANG_GRAPHIC , 0 )
	ENDIF

	IF ( ( HAS_CHAR_PUNCHED_SOMEONE ( p6 ) ) AND ( p6_trg_punched = 0 ) )
		STORE_LAST_CHAR_PUNCHED ( p6 , p6_punched )
		SET p6_trg_punched = 1
	ENDIF
	IF (( p6_trg_punched = 1 ) AND ( p6_explode_punch = 1))
		IF ( NOT ( DELAY ( 60 ) ) )
			EXPLODE_SMALL (p6_punched)
			SET p6_trg_punched = 0
	ENDIF
ENDIF

	//{ // CARMODEL CHECK
	IF (CHECK_CHARACTER_HEALTH(p6, 0)) //dummy test to check if there is a playerX
	IF (IS_CHARACTER_IN_ANY_CAR  ( p6  ) )
		IF (p6_trg_ic=1)
			SET p6_trg_ic=0
			IF (NOT(IS_CHARACTER_IN_CAR  (  p6  ,  p6_v  )))
				STORE_CAR_CHARACTER_IS_IN ( p6  ,  p6_v  )
				IF (CHECK_CAR_MODEL (  p6_v  ,  ICECREAM ))
					//EXPLODE_LARGE(tanker1trailer) ?????????
					//EXPLODE_LARGE(tanker1cab)

					DISPLAY_MESSAGE (5050) //CHOCTASTIC!

					SET p6_tmr_cream = 100

					//DELAY_HERE(50)
					//EXPLODE_SMALL (p6_v)
					//DELAY_HERE(50)
					//DISPLAY_MESSAGE (5063) //TASTE MY WRATH, ICE-CREAM BOY!
				ENDIF
				IF (CHECK_CAR_MODEL (  p6_v  ,  HOTDOG ))
					//IF (NOT(HAS_CAR_GOT_WEAPON( p6_v, CAR_BOMB )))
					DISPLAY_MESSAGE (5054) //DEATH TO ICE-CREAM VANS!
					//ENDIF
					GIVE_WEAPON ( p6_v , CAR_BOMB, 1 )
					GIVE_WEAPON ( p6_v , CAR_MACHINE_GUN, 20 )
				ENDIF
				IF (CHECK_CAR_MODEL (  p6_v  ,  FIRETRUK ))
					GIVE_WEAPON ( p6_v , CAR_FLAMETHROWER )
					GIVE_WEAPON ( p6 , FLAME_THROWER, 5)
					SET_CAR_FLAMEPROOF ( p6_v, ON )
					//p6_firegang
				ENDIF
				IF (CHECK_CAR_MODEL (  p6_v  ,  MEDICAR ))
					GIVE_WEAPON ( p6 , ELECTRO_GUN, 2 )
				ENDIF
				IF ((CHECK_CAR_MODEL (  p6_v  ,  LIMO )) OR (CHECK_CAR_MODEL (  p6_v  ,  LIMO2 )) )
					GIVE_WEAPON ( p6 , MOLOTOV , 10)
				ENDIF
				IF (CHECK_CAR_MODEL (  p6_v  ,  MESSER ) )
					SET_CAR_ROCKETPROOF ( p6_v, ON )
					SET_CAR_FLAMEPROOF ( p6_v, ON )
				ENDIF
				IF (CHECK_CAR_MODEL (  p6_v  ,  EDSELFBI ) )
					SET_CAR_BULLETPROOF ( p6_v, ON )
				ENDIF
				IF (((CHECK_CAR_MODEL (  p6_v  ,  BOXTRUCK )) OR (CHECK_CAR_MODEL (  p6_v  ,  TOWTRUCK ))) OR ((CHECK_CAR_MODEL (  p6_v  ,  TRUKCAB1 )) OR (CHECK_CAR_MODEL (  p6_v  ,  TRUKCAB2 ) )) )
					GIVE_WEAPON ( p6_v , CAR_MINE, 5 )
					GIVE_WEAPON ( p6_v , CAR_BOMB, 1 )
				ENDIF
				IF (CHECK_CAR_MODEL (  p6_v  ,  GTRUCK ) )
					DO_NOWT
				ENDIF
				IF (CHECK_CAR_MODEL (  p6_v  ,  Bus ) )
					SET_CAR_JAMMED_ACCELERATOR  ( p6_v  ,  ON  )
					//hooligan
				ENDIF
				IF ( ( CHECK_CAR_MODEL (  p6_v  ,  TAXI ) ) OR ( CHECK_CAR_MODEL (  p6_v  ,  STYPECAB )  ))
					DO_NOWT
					//angry or helpful passenger
				ENDIF
				IF (CHECK_CAR_MODEL (  p6_v  ,  JEEP ) )
					GIVE_WEAPON ( p6_v , CAR_MACHINE_GUN ,10 )
					//superjeep like supertank if possible
				ENDIF
				IF (CHECK_CAR_MODEL (  p6_v  ,  TANK ) )
					GIVE_WEAPON ( p6 , ROCKET_LAUNCHER ,5 )
				ENDIF
				IF (CHECK_CAR_MODEL (  p6_v  ,  APC ) )
					SET_CAR_BULLETPROOF ( p6_v, ON )
				ENDIF
				IF (CHECK_CAR_MODEL (  p6_v  ,  BANKVAN ) )
					SET p6_tmp_wantedlevel=p6_wantedlevel
				ENDIF
			ENDIF

			STORE_CAR_CHARACTER_IS_IN ( p6  ,  p6_v  )
			IF (CHECK_CAR_MODEL (  p6_v  ,  FIRETRUK ) )
				//DELAY_HERE(20)

				KILL_ALL_PASSENGERS  (  p6_v  )
				DELETE_ITEM(p6_gangbot1)
				DELETE_ITEM(p6_gangbot2)
				DELETE_ITEM(p6_gangbot3)
				DELETE_ITEM(p6_gangbot4)
				DELETE_ITEM(p6_gangbot5)
			ENDIF
			IF (CHECK_CAR_MODEL (  p6_v  ,  GTRUCK ) )
				//DELAY_HERE(20)

				KILL_ALL_PASSENGERS  (  p6_v  )
				DELETE_ITEM(p6_gangbot1)
				DELETE_ITEM(p6_gangbot2)
				DELETE_ITEM(p6_gangbot3)
				DELETE_ITEM(p6_gangbot4)
				DELETE_ITEM(p6_gangbot5)
			ENDIF
			IF (CHECK_CAR_MODEL (  p6_v  ,  MEDICAR ))
				//DELAY_HERE(20)

				KILL_ALL_PASSENGERS  (  p6_v  )
				DELETE_ITEM(p6_gangbot1)
				DELETE_ITEM(p6_gangbot2)
				DELETE_ITEM(p6_gangbot3)
				DELETE_ITEM(p6_gangbot4)
				DELETE_ITEM(p6_gangbot5)
			ENDIF
			IF ((CHECK_CAR_MODEL (  p6_v  ,  LIMO )) OR (CHECK_CAR_MODEL (  p6_v  ,  LIMO2 )) )
				//DELAY_HERE(20)

				KILL_ALL_PASSENGERS  (  p6_v  )
				DELETE_ITEM(p6_gangbot1)
				DELETE_ITEM(p6_gangbot2)
				DELETE_ITEM(p6_gangbot3)
				DELETE_ITEM(p6_gangbot4)
				DELETE_ITEM(p6_gangbot5)
			ENDIF


		ENDIF
		DO_NOWT
	ELSE
		IF (p6_trg_ic=0)
			IF ((CHECK_CAR_MODEL (  p6_v  ,  LIMO )) OR (CHECK_CAR_MODEL (  p6_v  ,  LIMO2 )) )
				LAUNCH_MISSION (p6_gang4.mis)
			ENDIF

			IF (CHECK_CAR_MODEL (  p6_v  ,  FIRETRUK ))
				LAUNCH_MISSION (p6_gang2.mis) //firegang
			ENDIF

			IF (CHECK_CAR_MODEL (  p6_v  ,  MEDICAR ))
				LAUNCH_MISSION (p6_gang1.mis) //medigang
			ENDIF

			IF (CHECK_CAR_MODEL (  p6_v  ,  GTRUCK ))
				LAUNCH_MISSION (p6_gang3.mis) //garbage gang
			ENDIF

			IF (CHECK_CAR_MODEL (  p6_v  ,  BANKVAN ) )
				LAUNCH_MISSION (p6_rwl.mis) //Restore wanted level
			ENDIF

			If (ARE_EMERG_LIGHTS_ON(p6_v))
				ORDER_CHAR_TO_DRIVE_CAR( p6 , p6_v )
			ENDIF
		ENDIF
		SET p6_trg_ic=1
		SET p6_incar = 0
	ENDIF

	IF (p6_trg_ic=0)
		IF (CHECK_CAR_MODEL (  p6_v  ,  BANKVAN ) )
			ADD_SCORE ( p6, 10 )
			ALTER_WANTED_LEVEL (p6, 0)
		ENDIF
		IF (CHECK_CAR_MODEL (  p6_v  ,  BUS ) )
			IF (NOT (CHECK_CAR_SPEED  (  p6_v  ,  100  ) ))
				DISPLAY_MESSAGE ( 5015 )
			ENDIF
		ENDIF
		IF (CHECK_CAR_MODEL (  p6_v  ,  SWATVAN ) )
			SET_CAR_NO_COLLIDE ( p6_v )
		ENDIF
	ENDIF

	ENDIF
//}



	IF((CHECK_WEAPON_TYPE_HIT_CHAR ( p6 , BY_ELECTRO_WEAPON ) ) AND (p6_noelectro=1)) // electro protection
		IF ((IS_CHAR_FIRING_ONSCREEN  (  p2  )) AND (CHECK_CHAR_CURR_WEAPON (  p2  ,  ELECTRO_GUN )))
			//has to be a timer event
			SET_CHAR_INVINCIBLE ( p2  ,  ON   )
			EXPLODE_SMALL (p2)
			DELAY_HERE(50)
			SET_CHAR_INVINCIBLE ( p2  ,  OFF   )
		ENDIF
	ENDIF

	//{ // Timer Events
		//SWAT
		IF (p6_tmr_swat > 1)
			SET p6_tmr_swat = ( p6_tmr_swat - 1)
		ENDIF
		IF (p6_tmr_swat = 1)
			SET p6_tmr_swat = 0
			ALTER_WANTED_LEVEL (p6, 4) //SWAT
		ENDIF

		//Icecream
		IF (p6_tmr_cream > 1)
			SET p6_tmr_cream = ( p6_tmr_cream - 1)
		ENDIF
		IF (p6_tmr_cream = 50)
			EXPLODE_SMALL (p6_v)
		ENDIF
		IF (p6_tmr_cream = 1)
			SET p6_tmr_cream = 0
			DISPLAY_MESSAGE (5063) //TASTE MY WRATH, ICE-CREAM BOY!
		ENDIF
	//}

	//{ //Powerups
		IF ((LOCATE_CHARACTER_BY_CAR ( p6 , 61.5, 130.5 , 3.0 , 0.8 , 0.8 ))AND(col_nocol = 0))
			SET tmr_nocol = 6000
			SET col_nocol = 1
			SET_CAR_NO_COLLIDE ( p6_v )
			DELETE_ITEM ( obj_nocol )
			obj_nocol = CREATE_OBJ (61.5, 130.5, 3.0) 0 BLASTER END
			DELETE_ITEM ( obj_nocol )
		ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p6 , 63.5, 117.5, 4.0 , 0.8 , 0.8 ))AND(col_repair = 0))
			SET tmr_repair = 6000
			SET col_repair = 1
			SET p6_tmp_wantedlevel=p6_wantedlevel
			ADD_SCORE (p6,5000)
			obj_repair = CREATE_OBJ (63.5, 117.5, 4.0) 0 CAR_SHOP 28 END
			DELETE_ITEM ( obj_repair )
			LAUNCH_MISSION(p6_rwl.mis)
		ENDIF

		IF ((LOCATE_CHARACTER_ANY_MEANS ( p6 , 57.5, 110.5, 3.0 , 0.8 , 0.8 ))AND(col_abribe = 0))
			SET tmr_abribe = 6000
			SET col_abribe = 1
			SET p6_wantedlevel = 6
			ALTER_WANTED_LEVEL (p6, 6)
			DELETE_ITEM ( obj_abribe )
			snd_abribe = CREATE_SOUND (57.5, 110.5, 3.0) SCREAM PLAY_INSTANT END
		ENDIF

		IF ((LOCATE_CHARACTER_ANY_MEANS ( p6 , 77.5, 126.5 , 4.0 , 0.8 , 0.8 ))AND(col_expunch = 0))
			SET tmr_expunch = 6000
			SET col_expunch = 1
			SET p6_explode_punch = 1
			DELETE_ITEM ( obj_expunch )
			obj_nocol = CREATE_OBJ (77.5, 126.5, 4.0) 0 RUBBISH END
			DELETE_ITEM ( obj_nocol )
		ENDIF
	//}
ENDIF

//}

//{ // Powerups
IF (tmr_nocol>1)
	SET tmr_nocol = ( tmr_nocol - 1 )
ENDIF
IF (tmr_nocol=1) //nocol
	SET col_nocol = 0
	SET tmr_nocol = 0
	obj_nocol = CREATE_OBJ (61.5, 130.5) 0 MOVING_COLLECT_38 END
ENDIF

IF (tmr_repair>1)
	SET tmr_repair = ( tmr_repair - 1 )
ENDIF
IF (tmr_repair=1) //repair
	SET col_repair = 0
	SET tmr_repair = 0
	obj_repair = CREATE_OBJ (63.5, 117.5, 4.3) 0 BONUS_TOKEN END
ENDIF

IF (tmr_abribe>1)
	SET tmr_abribe = ( tmr_abribe - 1 )
ENDIF
IF (tmr_abribe=1) //abribe
	SET col_abribe = 0
	SET tmr_abribe = 0
	obj_abribe = CREATE_OBJ (57.5, 110.5) 0 KILL_FRENZY END
ENDIF


IF (tmr_expunch>1)
	SET tmr_expunch = ( tmr_expunch - 1 )
ENDIF
IF (tmr_expunch=1) //expunch
	SET col_expunch = 0
	SET tmr_expunch = 0
	obj_expunch = CREATE_OBJ (77.5, 126.5) 0 BRIEFCASE END
ENDIF


//}

//{ // Wanted level

/*
IF( wantedlevel < 6 )
	SET wantedcounter = 40
	//SET wantedlevel6 = 1
	SET wantedlevel7 = 1
	SET wantedlevel8 = 1
ELSE
	//DISPLAY_MESSAGE (5032) //Nice work!
	SET wantedlevel=6
	SET wantedcounter = (wantedcounter - 1)
	IF (wantedcounter < 30)
		SET wantedlevel = 7
	ENDIF
	IF (wantedcounter < 20)
		SET wantedlevel = 8
	ENDIF
ENDIF

IF ((wantedlevel >= 7) AND (wantedlevel7=1))
	SET wantedlevel7 = 0
	DISPLAY_MESSAGE (5032) //Nice work!
	GOSUB apcbots:
ENDIF
IF ((wantedlevel >= 8) AND (wantedlevel8=1))
	SET wantedlevel8 = 0
	DISPLAY_MESSAGE (5032) //Nice work!
	GOSUB nukebots:
ENDIF

*/

//}

//{ // ARMY BOTS
/*
IF (wantedlevel >= 7)
	//CARS
	SET_CAR_NO_COLLIDE ( botapc )
	//Hunt players
	SET_CHAR_OBJECTIVE ( apcbot1 , KILL_CHAR_ANY_MEANS , p1 )


	//groupnumer alive check
	IF(NOT(CHECK_NUMBER_ALIVE_IN_GROUP  ( apcbot1 , 0 )))
		GOSUB apcbots:
	ENDIF

ENDIF
IF (wantedlevel >= 8)
	//CARS
	SET_CAR_NO_COLLIDE ( botnuke )
	//Hunt players
	SET_CHAR_OBJECTIVE ( nukebot1 , KILL_CHAR_ANY_MEANS , p1 )

	//Explode at player
	IF ( LOCATE_ANOTHER_CHARACTER_BY_CAR ( nukebot1 , p1 , 3.0 , 3.0 ) )
		EXPLODE_LARGE (nukebot1)
	ENDIF

	//Explode after destruction (doest work)
	//IF((CHECK_WEAPON_TYPE_HIT_CAR  (  botnuke , BY_ROCKET_LAUNCHER )) OR (CHECK_CAR_DAMAGE_LEVEL (  botnuke  ,  80  )) ) //BY_ROCKET_LAUNCHER
	IF((CHECK_ANY_WEAPON_TYPE_HIT_CAR  (  botnuke )) OR (CHECK_CAR_DAMAGE_LEVEL (  botnuke  ,  80  )) )
		EXPLODE_LARGE (nukebot1)
	ENDIF

	IF ( HAS_CHARACTER_DIED ( nukebot1 ) )
		GOSUB nukebots:
	ENDIF
ENDIF
*/
//}

//{ // TANKER

//IF (((CHECK_CAR_DAMAGE_LEVEL (  test5  ,  10  ))OR(CHECK_WEAPON_TYPE_HIT_CHAR(test5, BY_EXPLOSION )))AND(tanker1_exp_trg=0))
IF ((CHECK_CAR_DAMAGE_LEVEL (  test5  ,  10  ))AND(tanker1_exp_trg=0))
	tanker1expcar = CREATE_CAR (250.5, 253.5, 0.0) 0 90 ISETTA MINI_CAR END
	PUT_CAR_ON_TRAILER  ( tanker1expcar  ,  test5  )
	tanker1covcar = CREATE_CAR (250.5, 253.5, 0.0) 0 90 TANKER END
	PUT_CAR_ON_TRAILER  ( tanker1covcar  ,  tanker1expcar  )
	tanker1expbot = CREATE_CHAR_INSIDE_CAR ( tanker1expcar ) 0 DRIVER END
	SET tanker1_exp_trg=4
ENDIF
IF (tanker1_exp_trg > 1)
	SET tanker1_exp_trg = ( tanker1_exp_trg - 1)
ENDIF
IF (tanker1_exp_trg = 1)
	SET tanker1_exp_trg = -1
	EXPLODE_LARGE (tanker1expbot)
ENDIF



IF (IS_CAR_WRECKED(test5))
	IF (NOT (DELAY (100)))
		IF (NOT (IS_POINT_ONSCREEN(72.0, 117.5,1.0)))
			DELETE_ITEM (test5)
			test5 = CREATE_CAR (71.7, 117.6) 15 280 TANKER END
			SET tanker1_exp_trg=0
		ENDIF
	ENDIF
ENDIF
IF (IS_CAR_WRECKED(test17))
	IF (NOT (DELAY (100)))
		IF (NOT (IS_POINT_ONSCREEN(75.0, 117.5,1.0)))
			DELETE_ITEM (test17)
			test17 = CREATE_CAR (75.3, 117.6) 15 80 TRUKTRNS END
		ENDIF
	ENDIF
ENDIF


/*
IF (((CHECK_ANY_WEAPON_TYPE_HIT_CAR  (  tanker1trailer )) OR (CHECK_CAR_DAMAGE_LEVEL (  tanker1trailer  ,  40  )) ) AND(create_tanker1=0))
	if (NOT (IS_CAR_ON_TRAILER(tanker1expcar, tanker1trailer)))
		tanker1expcar = CREATE_CAR (250.5, 253.5, 0.0) 0 90 BUS END
		PUT_CAR_ON_TRAILER  ( tanker1expcar  ,  tanker1trailer  )
	ENDIF
	tanker1expbot = CREATE_CHAR_INSIDE_CAR ( tanker1expcar ) 0 DRIVER END
	EXPLODE_LARGE (tanker1expbot)

	SET create_tanker1=1
	//GOSUB tanker1:
ENDIF
IF (create_tanker1=1)
	IF (IS_POINT_ONSCREEN  (69.4, 130.5, 1.0) )
		GOSUB tanker1:
		SET create_tanker1=0
	ENDIF
ENDIF
*/
//}

//{ // SUPERTANK
/*
SET_CAR_NO_COLLIDE ( trailer )
IF ( (IS_CHAR_PRESSING_HORN ( p1 )) AND (IS_CHARACTER_IN_CAR  (  p1  ,  trailer  )) )
	IF ( STSHOOT=0 )
		DELAY_HERE(50)
		SET_CAR_EMERG_LIGHTS ( trailer , ON )
		SET_CHAR_OBJECTIVE ( stankbot2 , FIRE_AT_OBJECT_FROM_VEHICLE , itarget_10 )
		SET_CHAR_OBJECTIVE ( stankbot3 , FIRE_AT_OBJECT_FROM_VEHICLE , itarget_2 )
		SET_CHAR_OBJECTIVE ( stankbot4 , FIRE_AT_OBJECT_FROM_VEHICLE , itarget_3 )
		SET_CHAR_OBJECTIVE ( stankbot5 , FIRE_AT_OBJECT_FROM_VEHICLE , itarget_4 )
		SET_CHAR_OBJECTIVE ( stankbot6 , FIRE_AT_OBJECT_FROM_VEHICLE , itarget_5 )
		SET_CHAR_OBJECTIVE ( stankbot7 , FIRE_AT_OBJECT_FROM_VEHICLE , itarget_6 )
		SET_CHAR_OBJECTIVE ( stankbot8 , FIRE_AT_OBJECT_FROM_VEHICLE , itarget_7 )

		//SET_CHAR_OBJECTIVE ( stankbot9 , FIRE_AT_OBJECT_FROM_VEHICLE , itarget_9 )
		//SET_CHAR_OBJECTIVE ( stankbot10 , FIRE_AT_OBJECT_FROM_VEHICLE , itarget_10 )
		//SET_CHAR_OBJECTIVE ( stankbot11 , FIRE_AT_OBJECT_FROM_VEHICLE , itarget_11 )

		DELAY_HERE(50)
		SET STSHOOT=1
	ENDIF
	IF ( STSHOOT=1 )
		DELAY_HERE(50)
		SET_CAR_EMERG_LIGHTS ( trailer , OFF )
		MAKE_CHAR_DO_NOTHING ( stankbot2 )
		MAKE_CHAR_DO_NOTHING ( stankbot3 )
		MAKE_CHAR_DO_NOTHING ( stankbot4 )
		MAKE_CHAR_DO_NOTHING ( stankbot5 )
		MAKE_CHAR_DO_NOTHING ( stankbot6 )
		MAKE_CHAR_DO_NOTHING ( stankbot7 )
		MAKE_CHAR_DO_NOTHING ( stankbot8 )
		DELAY_HERE(50)
		SET STSHOOT=0
	ENDIF
ENDIF
*/
//}

ENDWHILE

LEVELEND

//{ // SUBS

//{ // TANKER

//: //tanker1
tanker1:
	//tanker1des = CREATE_DESTRUCTOR (78.5, 119.5) (3.0, 3.0) END
	DELAY_HERE (50)
	DELETE_ITEM ( tanker1des )

	DELETE_ITEM (tanker1expbot)
	DELETE_ITEM (tanker1expcar)
	DELETE_ITEM ( tanker1cab )
	DELETE_ITEM  ( tanker1bot )
	DELETE_ITEM ( tanker1trailer )

	DELAY_HERE (50)

	//The Truck and trailer must be in sight of player or they will be spawned incorrectly

	tanker1cab = CREATE_CAR (62.5, 130.5, 2.0) 15 90 TRUKCAB1 END
	tanker1trailer = CREATE_CAR (61.5, 130.5, 2.0) 15 90 TANKER END

	GIVE_WEAPON ( tanker1cab , CAR_MINE )
	GIVE_WEAPON ( tanker1cab , CAR_BOMB )
	tanker1bot = CREATE_CHAR_INSIDE_CAR ( tanker1cab ) 33 DRIVER END

	MAKE_CAR_DRIVE_AWAY ( tanker1cab )
RETURN

//}

//{ // Army bots

//: // apcbots
apcbots:
	apcdes = CREATE_DESTRUCTOR (79.0, 113.0) (3.0, 3.0) END
	DELAY (100)
	DELETE_ITEM ( apcdes )

	DELETE_ITEM ( botapc )
	botapc = CREATE_CAR (79.0, 113.5) 15 90 APC END
	GIVE_WEAPON ( botapc , CAR_MACHINE_GUN )
	SET_CAR_BULLETPROOF  (  botapc   ,  ON  )

	DELETE_ITEM  ( apcbot1 )
	apcbot1 = CREATE_CHAR_INSIDE_CAR ( botapc ) 4 POLICE END //ARMY
	//SET_CHAR_OBJECTIVE ( apcbot1 , ENTER_CAR_AS_DRIVER , botapc )
	SET_CHAR_SHOOTING_SKILL ( apcbot1 , CRACK_SHOT )
	SET_CHAR_THREAT_SEARCH ( apcbot1 , AREA )
	SET_CHAR_THREAT_REACTION ( apcbot1 , REACT_AS_NORMAL )
	//SET_CHAR_OBJECTIVE ( apcbot1 , KILL_CHAR_ANY_MEANS , p1 )
	SET_CHAR_TO_USE_CAR_WEAPON ( apcbot1 , ON )
	SET_FAVOURITE_MODEL ( apcbot1, APC )
	SET_CHAR_DRIVE_AGGRESSION ( apcbot1  ,  ON  )

	//Replacement for unstable code
	GIVE_WEAPON ( apcbot1 , FLAME_THROWER )
	//ADD_GROUP_TO_CHARACTER ( apcbot1 , 4 )
	//MAKE_NEW_LEADER_OF_GROUP  ( apcbot1  ,  apcbot1 )


	//maybe there is a bug in it that causes random crashes
	/*
	ADD_GROUP_TO_CHARACTER ( apcbot1 , 4 )
	SET_CHAR_OBJECTIVE ( apcbot1 , ENTER_CAR_AS_DRIVER , botapc )
	MAKE_NEW_LEADER_OF_GROUP  ( apcbot1  ,  apcbot1 )
	GIVE_WEAPON ( apcbot1 , ROCKET_LAUNCHER )
	ADD_GROUP_TO_CHARACTER ( apcbot1 , 4 )
	SET_CHAR_OBJECTIVE ( apcbot1 , ENTER_CAR_AS_DRIVER , botapc )
	GIVE_WEAPON ( apcbot1 , FLAME_THROWER )
	ADD_GROUP_TO_CHARACTER ( apcbot1 , 4 )
	SET_CHAR_OBJECTIVE ( apcbot1 , ENTER_CAR_AS_DRIVER , botapc )
	MAKE_NEW_LEADER_OF_GROUP  ( apcbot1  ,  apcbot1 )
	*/

RETURN

//: // nukebot
nukebots:
	nukedes = CREATE_DESTRUCTOR (82.5, 122.0) (4.0, 4.0) END
	DELAY_HERE(50)
	DELETE_ITEM (nukedes)

	DELETE_ITEM (botnuke)
	botnuke = CREATE_CAR (82.5, 123.5) 15 270 KRSNABUS END
	GIVE_WEAPON ( botnuke , CAR_BOMB_INSTANT )

	DELETE_ITEM  ( nukebot1 )
	nukebot1 = CREATE_CHAR_INSIDE_CAR ( botnuke ) 4 ARMY END
	SET_CHAR_TO_STAY_IN_CAR ( nukebot1 , ON )
	SET_CHAR_OBJECTIVE ( nukebot1 , ENTER_CAR_AS_DRIVER , botnuke )
	SET_CHAR_SHOOTING_SKILL ( nukebot1 , CRACK_SHOT )
	SET_CHAR_THREAT_SEARCH ( nukebot1 , AREA )
	SET_CHAR_THREAT_REACTION ( nukebot1 , REACT_AS_NORMAL )
	SET_CHAR_OBJECTIVE ( nukebot1 , KILL_CHAR_ANY_MEANS , p1 )
	SET_CHAR_TO_USE_CAR_WEAPON ( nukebot1 , ON )
	SET_FAVOURITE_MODEL ( nukebot1, KRSNABUS )
	SET_CHAR_DRIVE_AGGRESSION ( nukebot1  ,  ON  )

RETURN

//}

//: // supertank
/*
supertank:

SET_CAR_ROCKETPROOF ( tank1, ON )
SET_CAR_ROCKETPROOF ( tank2, ON )
SET_CAR_ROCKETPROOF ( tank3, ON )
SET_CAR_ROCKETPROOF ( tank4, ON )
SET_CAR_ROCKETPROOF ( tank5, ON )
SET_CAR_ROCKETPROOF ( tank6, ON )
SET_CAR_ROCKETPROOF ( tank7, ON )
SET_CAR_ROCKETPROOF ( tank8, ON )

SET_CAR_ROCKETPROOF ( jeep9, ON )
SET_CAR_ROCKETPROOF ( jeep10, ON )
SET_CAR_ROCKETPROOF ( jeep11, ON )

SET_CAR_BULLETPROOF ( jeep9, ON )
SET_CAR_BULLETPROOF ( jeep10, ON )
SET_CAR_BULLETPROOF ( jeep11, ON )

SET_CAR_ROCKETPROOF ( trailer, ON )
SET_CAR_BULLETPROOF ( trailer, ON )
//SET_CAR_FLAMEPROOF ( trailer, ON )

GIVE_WEAPON ( trailer , car_machine_gun )

stankbot2 = CREATE_CHAR_INSIDE_CAR ( tank2 ) 8 tank_driver END
stankbot3 = CREATE_CHAR_INSIDE_CAR ( tank3 ) 8 tank_driver END
stankbot4 = CREATE_CHAR_INSIDE_CAR ( tank4 ) 8 tank_driver END
stankbot5 = CREATE_CHAR_INSIDE_CAR ( tank5 ) 8 tank_driver END
stankbot6 = CREATE_CHAR_INSIDE_CAR ( tank6 ) 8 tank_driver END
stankbot7 = CREATE_CHAR_INSIDE_CAR ( tank7 ) 8 tank_driver END
stankbot8 = CREATE_CHAR_INSIDE_CAR ( tank8 ) 8 tank_driver END

stankbot9 = CREATE_CHAR_INSIDE_CAR ( jeep9 ) 8 CRIMINAL_TYPE2 END
stankbot10 = CREATE_CHAR_INSIDE_CAR ( jeep10 ) 8 CRIMINAL_TYPE2 END
stankbot11 = CREATE_CHAR_INSIDE_CAR ( jeep11 ) 8 CRIMINAL_TYPE2 END

PUT_CAR_ON_TRAILER ( tank1 , trailer )
PUT_CAR_ON_TRAILER ( tank2 , trailer )
PUT_CAR_ON_TRAILER ( tank3 , trailer )
PUT_CAR_ON_TRAILER ( tank4 , trailer )
PUT_CAR_ON_TRAILER ( tank5 , trailer )
PUT_CAR_ON_TRAILER ( tank6 , trailer )
PUT_CAR_ON_TRAILER ( tank7 , trailer )
PUT_CAR_ON_TRAILER ( tank8 , trailer )

PUT_CAR_ON_TRAILER ( jeep9 , trailer )
PUT_CAR_ON_TRAILER ( jeep10 , trailer )
PUT_CAR_ON_TRAILER ( jeep11 , trailer )

RETURN
*/
//}

//}
