// Tiny Face Off Army Lite - Map and Script by Elypter

//{ //Declares

//{ //player

//{ //p1
PLAYER_PED p1 = (53.5, 198.8, 255.0) 5 135
COUNTER p1_wantedlevel = 0
COUNTER p1_trg_ic=1
CAR_DATA p1_v
COUNTER p1_tmr_swat = 150
COUNTER p1_tmp_wantedlevel = 0
COUNTER p1_expunch = 0
COUNTER p1_trg_punched = 0
CHAR_DATA p1_punched
COUNTER p1_armor = 0
CAR_DATA p1_armor_v
CAR_DATA p1_ffield1
COUNTER p1_nocol = 0
CAR_DATA p1_nocol_v
CAR_DATA p1_ffield2
COUNTER p1_blackbox = 0
COUNTER p1_trg_horn = 0
COUNTER p1_carinvis = 0
CHAR_DATA p1_blackbox_bot
COUNTER p1_incar = 0
CAR_DATA p1_nocon_v = (1.0, 1.0, 0.0) 27 90 BUG
COUNTER p1_doorlock = 0
//}

//{ //p2
PLAYER_PED p2 = (55.5, 198.8, 255.0) 7 225
COUNTER p2_wantedlevel = 0
COUNTER p2_trg_ic=1
CAR_DATA p2_v
COUNTER p2_tmr_swat = 150
COUNTER p2_tmp_wantedlevel = 0
COUNTER p2_expunch = 0
COUNTER p2_trg_punched = 0
CHAR_DATA p2_punched
COUNTER p2_armor = 0
CAR_DATA p2_armor_v
CAR_DATA p2_ffield1
COUNTER p2_nocol = 0
CAR_DATA p2_nocol_v
CAR_DATA p2_ffield2
COUNTER p2_blackbox = 0
COUNTER p2_trg_horn = 0
COUNTER p2_carinvis = 0
CHAR_DATA p2_blackbox_bot
COUNTER p2_incar = 0
CAR_DATA p2_nocon_v = (1.0, 1.0, 0.0) 27 90 BUG
COUNTER p2_doorlock = 0
//}

//{ //p3
PLAYER_PED p3 = (53.5, 197.2, 255.0) 8 45
COUNTER p3_wantedlevel = 0
COUNTER p3_trg_ic=1
CAR_DATA p3_v
COUNTER p3_tmr_swat = 150
COUNTER p3_tmp_wantedlevel = 0
COUNTER p3_expunch = 0
COUNTER p3_trg_punched = 0
CHAR_DATA p3_punched
COUNTER p3_armor = 0
CAR_DATA p3_armor_v
CAR_DATA p3_ffield1
COUNTER p3_nocol = 0
CAR_DATA p3_nocol_v
CAR_DATA p3_ffield2
COUNTER p3_blackbox = 0
COUNTER p3_trg_horn = 0
COUNTER p3_carinvis = 0
CHAR_DATA p3_blackbox_bot
COUNTER p3_incar = 0
CAR_DATA p3_nocon_v = (1.0, 1.0, 0.0) 27 90 BUG
COUNTER p3_doorlock = 0
//}

//{ //p4
PLAYER_PED p4 = (55.5, 197.2, 255.0) 11 315
COUNTER p4_wantedlevel = 0
COUNTER p4_trg_ic=1
CAR_DATA p4_v
COUNTER p4_tmr_swat = 150
COUNTER p4_tmp_wantedlevel = 0
COUNTER p4_expunch = 0
COUNTER p4_trg_punched = 0
CHAR_DATA p4_punched
COUNTER p4_armor = 0
CAR_DATA p4_armor_v
CAR_DATA p4_ffield1
COUNTER p4_nocol = 0
CAR_DATA p4_nocol_v
CAR_DATA p4_ffield2
COUNTER p4_blackbox = 0
COUNTER p4_trg_horn = 0
COUNTER p4_carinvis = 0
CHAR_DATA p4_blackbox_bot
COUNTER p4_incar = 0
CAR_DATA p4_nocon_v = (1.0, 1.0, 0.0) 27 90 BUG
COUNTER p4_doorlock = 0
//}

//{ //p5
PLAYER_PED p5 = (53.2, 198.0, 255.0) 13 90
COUNTER p5_wantedlevel = 0
COUNTER p5_trg_ic=1
CAR_DATA p5_v
COUNTER p5_tmr_swat = 150
COUNTER p5_tmp_wantedlevel = 0
COUNTER p5_expunch = 0
COUNTER p5_trg_punched = 0
CHAR_DATA p5_punched
COUNTER p5_armor = 0
CAR_DATA p5_armor_v
CAR_DATA p5_ffield1
COUNTER p5_nocol = 0
CAR_DATA p5_nocol_v
CAR_DATA p5_ffield2
COUNTER p5_blackbox = 0
COUNTER p5_trg_horn = 0
COUNTER p5_carinvis = 0
CHAR_DATA p5_blackbox_bot
COUNTER p5_incar = 0
CAR_DATA p5_nocon_v = (1.0, 1.0, 0.0) 27 90 BUG
COUNTER p5_doorlock = 0
//}

//{ //p6
PLAYER_PED p6 = (55.8, 198.0, 255.0) 10 270
COUNTER p6_wantedlevel = 0
COUNTER p6_trg_ic=1
CAR_DATA p6_v
COUNTER p6_tmr_swat = 150
COUNTER p6_tmp_wantedlevel = 0
COUNTER p6_expunch = 0
COUNTER p6_trg_punched = 0
CHAR_DATA p6_punched
COUNTER p6_armor = 0
CAR_DATA p6_armor_v
CAR_DATA p6_ffield1
COUNTER p6_nocol = 0
CAR_DATA p6_nocol_v
CAR_DATA p6_ffield2
COUNTER p6_blackbox = 0
COUNTER p6_trg_horn = 0
COUNTER p6_carinvis = 0
CHAR_DATA p6_blackbox_bot
COUNTER p6_incar = 0
CAR_DATA p6_nocon_v = (1.0, 1.0, 0.0) 27 90 BUG
COUNTER p6_doorlock = 0
//}

//}

//{ //Collectibles
// Weapons
GENERATOR shotgun1 = (54.5, 198.0) 0 COLLECT_06 0 0 99
GENERATOR shotgun2 = (35.5, 227.5) 0 COLLECT_06 0 0 99
GENERATOR molotov1 = (75.5, 198.5) 0 COLLECT_04 0 0 99
GENERATOR molotov2 = (26.5, 198.5) 0 COLLECT_04 0 0 99
GENERATOR molotov3 = (86.5, 229.5) 0 COLLECT_04 0 0 99
GENERATOR molotov4 = (28.5, 229.5) 0 COLLECT_04 0 0 99
GENERATOR molotov5 = (66.5, 224.5) 0 COLLECT_04 0 0 99
GENERATOR molotov6 = (101.5, 217.5) 0 COLLECT_04 0 0 99
GENERATOR electro1 = (94.5, 216.5) 0 COLLECT_03 2000 2000 5
GENERATOR electro2 = (25.0, 196.5) 0 COLLECT_03 2000 2000 5
GENERATOR electro3 = (67.5, 197.5) 0 COLLECT_03 2000 2000 5
GENERATOR rocket1 = (66.0, 193.5) 0 COLLECT_02 2000 2000 10
GENERATOR rocket2 = (91.5, 226.5) 0 COLLECT_02 2000 2000 10
GENERATOR rocket3 = (26.5, 214.5) 0 COLLECT_02 2000 2000 10

GENERATOR smg1 = (49.5, 199.5) 0 COLLECT_09 9999 9999 99
GENERATOR smg2 = (33.0, 222.5) 0 COLLECT_09 0 0 99
GENERATOR pistol1 = (28.5, 221.5) 0 COLLECT_00 0 0 99
GENERATOR dualpistol1 = (29.5, 231.5) 0 COLLECT_10 0 0 99
GENERATOR grenades1 = (34.0, 224.9) 0 COLLECT_05 0 0 99

GENERATOR armor = (57.5, 196.5) 0 COLLECT_31 9999 9999 -1
GENERATOR ddamage1 = (41.5, 209.5) 0 COLLECT_35 250 250 -1
GENERATOR ddamage2 = (100.0, 200.5) 0 COLLECT_35 250 250 -1
GENERATOR ddamage3 = (52.5, 196.5) 0 COLLECT_35 9999 9999 -1
GENERATOR ddamage4 = (31.0, 190.5) 0 COLLECT_35 250 250 -1
GENERATOR ddamage5 = (26.5, 224.5) 0 COLLECT_35 250 250 -1
GENERATOR fastr1 = (26.5, 213.5) 0 COLLECT_36 250 250 -1
GENERATOR fastr2 = (74.5, 202.5) 0 COLLECT_36 250 250 -1
GENERATOR fastr3 = (57.5, 199.5) 0 COLLECT_36 250 250 -1
GENERATOR fastr4 = (32.0, 190.5) 0 COLLECT_36 250 250 -1
GENERATOR fastr5 = (26.5, 225.5) 0 COLLECT_36 250 250 -1
GENERATOR health1 = (90.5, 207.5) 0 COLLECT_30 250 250 -1
GENERATOR health2 = (33.5, 221.0) 0 COLLECT_30 250 250 -1
GENERATOR health3 = (47.5, 209.5) 0 COLLECT_30 250 250 -1
GENERATOR fingers1 = (54.5, 214.5) 0 COLLECT_37 250 250 -1
GENERATOR fingers2 = (52.5, 199.5) 0 COLLECT_37 250 250 -1
GENERATOR bribe1 = (26.5, 226.5) 0 COLLECT_33 250 250 -1 // doesnt work in bankvan
GENERATOR igang1 = (64.0, 229.0) 0 COLLECT_40 250 250 -1
GENERATOR igang2 = (54.0, 229.0) 0 COLLECT_40 250 250 -1
GENERATOR igang3 = (68.0, 202.5) 0 COLLECT_40 250 250 -1
GENERATOR igang4 = (78.5, 202.5) 0 COLLECT_40 250 250 -1

GENERATOR vmg2 = (70.5, 231.5) 0 COLLECT_18 800 800 10
GENERATOR vmg3 = (73.5, 202.5) 0 COLLECT_18 800 800 10
GENERATOR vbomb1 = (65.5, 213.5) 0 COLLECT_15 250 250 1
GENERATOR vbomb2 = (87.0, 226.5) 0 COLLECT_15 250 250 1
GENERATOR vbomb3 = (34.5, 196.5) 0 COLLECT_15 250 250 1
GENERATOR ibomb1 = (63.0, 220.5) 0 COLLECT_23 250 250 1
GENERATOR vmines1 = (63.5, 199.5) 0 COLLECT_17 800 800 10
GENERATOR vmines2 = (46.5, 224.5) 0 COLLECT_17 800 800 10
GENERATOR voil1 = (87.5, 193.5) 0 COLLECT_16 800 800 10
GENERATOR voil2 = (31.5, 229.5, 2.0) 0 COLLECT_16 800 800 10


GENERATOR flamer01 = (49.5, 190.5) 0 COLLECT_08 800 800 20
GENERATOR flamer02 = (90.5, 199.5) 0 COLLECT_08 800 800 20
GENERATOR flamer03 = (52.5, 209.5) 0 COLLECT_08 800 800 20
GENERATOR flamer04 = (75.0, 225.0) 0 COLLECT_08 800 800 20
GENERATOR flamer05 = (51.5, 224.5) 0 COLLECT_08 800 800 20
GENERATOR flamer06 = (83.5, 207.5) 0 COLLECT_08 800 800 20
GENERATOR flamer07 = (65.0, 208.0) 0 COLLECT_08 800 800 20
GENERATOR flamer08 = (40.5, 203.0) 0 COLLECT_08 800 800 20
GENERATOR flamer09 = (94.0, 235.0) 0 COLLECT_08 800 800 20
GENERATOR flamer10 = (94.0, 226.0) 0 COLLECT_08 800 800 20

GENERATOR xmg01 = (41.5, 194.5) 0 COLLECT_01 0 0 99
GENERATOR xam01 = (41.5, 193.5) 0 COLLECT_31 0 0 -1
GENERATOR xmg02 = (26.5, 231.5) 0 COLLECT_01 0 0 99
GENERATOR xam02 = (26.5, 230.5) 0 COLLECT_31 0 0 -1
GENERATOR xmg03 = (59.5, 225.5) 0 COLLECT_01 0 0 99
GENERATOR xam03 = (59.5, 224.5) 0 COLLECT_31 0 0 -1
GENERATOR xmg04 = (96.5, 231.5) 0 COLLECT_01 0 0 99
GENERATOR xam04 = (96.5, 230.5) 0 COLLECT_31 0 0 -1
GENERATOR xmg05 = (85.5, 226.5, 2.0) 0 COLLECT_01 0 0 99
GENERATOR xam05 = (85.5, 225.5) 0 COLLECT_31 0 0 -1
GENERATOR xmg06 = (75.5, 208.5) 0 COLLECT_01 0 0 99
GENERATOR xam06 = (75.5, 207.5) 0 COLLECT_31 0 0 -1
GENERATOR xmg07 = (58.5, 208.5) 0 COLLECT_01 0 0 99
GENERATOR xam07 = (58.5, 207.5) 0 COLLECT_31 0 0 -1
GENERATOR xmg08 = (41.5, 229.5) 0 COLLECT_01 0 0 99
GENERATOR xam08 = (41.5, 228.5) 0 COLLECT_31 0 0 -1
GENERATOR xmg09 = (68.5, 229.5) 0 COLLECT_01 0 0 99
GENERATOR xam09 = (68.5, 228.5) 0 COLLECT_31 0 0 -1
GENERATOR xmg10 = (90.4, 206.5) 0 COLLECT_01 0 0 99
GENERATOR xam10 = (90.5, 205.5) 0 COLLECT_31 0 0 -1
GENERATOR xmg11 = (80.5, 197.5) 0 COLLECT_01 0 0 99
GENERATOR xam11 = (80.5, 196.5) 0 COLLECT_31 0 0 -1
GENERATOR xmg12 = (58.5, 190.5) 0 COLLECT_01 0 0 99
GENERATOR xam12 = (58.5, 189.6) 0 COLLECT_31 0 0 -1
GENERATOR xmg13 = (26.5, 191.5) 0 COLLECT_01 0 0 99
GENERATOR xam13 = (26.5, 190.5) 0 COLLECT_31 0 0 -1
GENERATOR xmg14 = (44.5, 208.5) 0 COLLECT_01 0 0 99
GENERATOR xam14 = (44.5, 207.5) 0 COLLECT_31 0 0 -1
GENERATOR xmg15 = (69.4, 199.6) 0 COLLECT_01 0 0 99
GENERATOR xam15 = (69.5, 198.5) 0 COLLECT_31 0 0 -1
GENERATOR xmg16 = (30.5, 208.5) 0 COLLECT_01 0 0 99
GENERATOR xam16 = (30.5, 207.5) 0 COLLECT_31 0 0 -1
GENERATOR xmg17 = (97.5, 200.5) 0 COLLECT_01 0 0 99
GENERATOR xam17 = (97.5, 199.5) 0 COLLECT_31 0 0 -1
GENERATOR xmg18 = (90.5, 212.5) 0 COLLECT_01 0 0 99
GENERATOR xam18 = (90.5, 211.5) 0 COLLECT_31 0 0 -1

//}

//{ //Staic Cars

CAR_DATA car1 = (31.6, 239.4) 27 85 PICKUP
CAR_DATA car2 = (30.8, 222.3, 2.0) -1 75 TOWTRUCK
CAR_DATA car3 = (48.8, 210.5) 37 295 BANKVAN
CAR_DATA car4 = (23.6, 224.6, 2.0) 18 100 ALFA

CAR_DATA car5 = (64.9, 220.6) 10 90 GTRUCK
CAR_DATA car6 = (89.0, 235.0) -1 90 TANK
CAR_DATA car7 = (29.0, 236.5, 3.5) 27 120 SWATVAN
CAR_DATA car8 = (93.0, 199.5, 2.0) 27 265 FIRETRUK
CAR_DATA car9 = (79.5, 172.5) -1 270 APC
//CAR_DATA car10 = (62.0, 200.5) -1 90 JEEP

//CAR_DATA car11 = (52.0, 233.0) -1 90 GUNJEEP
//CAR_DATA car12 = (23.6, 190.5) -1 100 COPCAR
//CAR_DATA car13 = (83.0, 200.5) -1 90 EDSELFBI
//CAR_DATA car14 = (28.7, 210.6) -1 30 MEDICAR

CAR_DATA trailer = (57.5, 231.5) 2 275 TRUKTRNS
CAR_DATA cab = (55.9, 231.4) 2 255 TRUKCAB1

//}

//{ //Towers
OBJ_DATA tower01 = (55.2, 195.2, 6.0) 0 TOWER
OBJ_DATA tower02 = (64.8, 195.2, 5.0) 0 TOWER
OBJ_DATA tower03 = (64.2, 195.2, 5.0) 0 TOWER
OBJ_DATA tower04 = (79.5, 218.5, 5.0) 0 TOWER
OBJ_DATA tower05 = (74.5, 218.5, 5.0) 0 TOWER
OBJ_DATA tower06 = (53.8, 195.2, 6.0) 0 TOWER
OBJ_DATA tower07 = (64.8, 194.8, 5.0) 0 TOWER
OBJ_DATA tower08 = (64.2, 194.8, 5.0) 0 TOWER
OBJ_DATA tower09 = (64.5, 194.8, 5.0) 0 TOWER
OBJ_DATA tower10 = (52.2, 231.2, 3.0) 0 TOWER

OBJ_DATA tower11 = (52.5, 231.2, 3.0) 0 TOWER
OBJ_DATA tower12 = (52.8, 231.2, 3.0) 0 TOWER
OBJ_DATA tower13 = (53.1, 231.2, 3.0) 0 TOWER
OBJ_DATA tower14 = (53.4, 231.2, 3.0) 0 TOWER
OBJ_DATA tower15 = (53.7, 231.2, 3.0) 0 TOWER
OBJ_DATA tower16 = (64.5, 195.2, 5.0) 0 TOWER

OBJ_DATA tower17 = (43.2, 197.2, 3.1) 0 TOWER

OBJ_DATA tower20 = (71.2, 186.8, 7.1) 0 TOWER
OBJ_DATA tower21 = (73.9, 186.8, 7.1) 0 TOWER
OBJ_DATA tower22 = (73.6, 186.8, 7.1) 0 TOWER
OBJ_DATA tower23 = (73.3, 186.8, 7.1) 0 TOWER
OBJ_DATA tower24 = (73.0, 186.8, 7.1) 0 TOWER
OBJ_DATA tower25 = (72.7, 186.8, 7.1) 0 TOWER
OBJ_DATA tower26 = (72.4, 186.8, 7.1) 0 TOWER
OBJ_DATA tower27 = (72.1, 186.8, 7.1) 0 TOWER
OBJ_DATA tower28 = (71.8, 186.8, 7.1) 0 TOWER
OBJ_DATA tower29 = (71.5, 186.8, 7.1) 0 TOWER

OBJ_DATA tower30 = (74.2, 185.8, 7.1) 0 TOWER
OBJ_DATA tower31 = (76.9, 185.8, 7.1) 0 TOWER
OBJ_DATA tower32 = (76.6, 185.8, 7.1) 0 TOWER
OBJ_DATA tower33 = (76.3, 185.8, 7.1) 0 TOWER
OBJ_DATA tower34 = (76.0, 185.8, 7.1) 0 TOWER
OBJ_DATA tower35 = (75.7, 185.8, 7.1) 0 TOWER
OBJ_DATA tower36 = (75.4, 185.8, 7.1) 0 TOWER
OBJ_DATA tower37 = (75.1, 185.8, 7.1) 0 TOWER
OBJ_DATA tower38 = (74.8, 185.8, 7.1) 0 TOWER
OBJ_DATA tower39 = (74.5, 185.8, 7.1) 0 TOWER

OBJ_DATA tower40 = (68.2, 185.8, 7.1) 0 TOWER
OBJ_DATA tower41 = (70.9, 185.8, 7.1) 0 TOWER
OBJ_DATA tower42 = (70.6, 185.8, 7.1) 0 TOWER
OBJ_DATA tower43 = (70.3, 185.8, 7.1) 0 TOWER
OBJ_DATA tower44 = (70.0, 185.8, 7.1) 0 TOWER
OBJ_DATA tower45 = (69.7, 185.8, 7.1) 0 TOWER
OBJ_DATA tower46 = (69.4, 185.8, 7.1) 0 TOWER
OBJ_DATA tower47 = (69.1, 185.8, 7.1) 0 TOWER
OBJ_DATA tower48 = (68.8, 185.8, 7.1) 0 TOWER
OBJ_DATA tower49 = (68.5, 185.8, 7.1) 0 TOWER

OBJ_DATA tower50 = (77.2, 188.8, 7.1) 0 TOWER
OBJ_DATA tower51 = (79.9, 188.8, 7.1) 0 TOWER
OBJ_DATA tower52 = (79.6, 188.8, 7.1) 0 TOWER
OBJ_DATA tower53 = (79.3, 188.8, 7.1) 0 TOWER
OBJ_DATA tower54 = (79.0, 188.8, 7.1) 0 TOWER
OBJ_DATA tower55 = (78.7, 188.8, 7.1) 0 TOWER
OBJ_DATA tower56 = (78.4, 188.8, 7.1) 0 TOWER
OBJ_DATA tower57 = (78.1, 188.8, 7.1) 0 TOWER
OBJ_DATA tower58 = (77.8, 188.8, 7.1) 0 TOWER
OBJ_DATA tower59 = (77.5, 188.8, 7.1) 0 TOWER

OBJ_DATA tower60 = (81.2, 188.8, 7.1) 0 TOWER
OBJ_DATA tower61 = (83.9, 188.8, 7.1) 0 TOWER
OBJ_DATA tower62 = (83.6, 188.8, 7.1) 0 TOWER
OBJ_DATA tower63 = (83.3, 188.8, 7.1) 0 TOWER
OBJ_DATA tower64 = (83.0, 188.8, 7.1) 0 TOWER
OBJ_DATA tower65 = (82.7, 188.8, 7.1) 0 TOWER
OBJ_DATA tower66 = (82.4, 188.8, 7.1) 0 TOWER
OBJ_DATA tower67 = (82.1, 188.8, 7.1) 0 TOWER
OBJ_DATA tower68 = (81.8, 188.8, 7.1) 0 TOWER
OBJ_DATA tower69 = (81.5, 188.8, 7.1) 0 TOWER

//}

//{ //Static Objects

// Radio Stations
RADIO_STATION rockstar = STATION_RESIDENTIAL (212.5, 22.5)
RADIO_STATION futuro = STATION_ZAIBATSU (54.5, 195.0)
RADIO_STATION rebel = STATION_REDNECK (29.5, 226.5)
RADIO_STATION osmosis = STATION_SCIENTIST (93.5, 210.5)

//SW Corner
OBJ_DATA sw00 = (26.2, 227.5) 0 BUSH
OBJ_DATA sw01 = (31.3, 226.8) 0 CONE
OBJ_DATA sw02 = (34.0, 222.2) 5 CRATE
OBJ_DATA sw03 = (28.8, 224.7) 340 RUBBISH
OBJ_DATA sw04 = (37.6, 240.7) 0 OILDRUM
OBJ_DATA sw051 = (33.8, 224.4) 290 BOXES
OBJ_DATA sw05 = (31.4, 225.7) 0 HARDBOX
OBJ_DATA sw06 = (33.7, 222.0) 0 OIL
OBJ_DATA sw07 = (31.7, 226.6) 0 MOVING_CONE
OBJ_DATA sw08 = (32.0, 222.1) 0 MOVING_BIN_LID
OBJ_DATA sw09 = (27.3, 221.2) 0 TYRE

OBJ_DATA sw10 = (26.8, 227.8) 90 BUSH
OBJ_DATA sw11 = (31.9, 228.6, 2.0) 0 CONE
OBJ_DATA sw12 = (25.3, 231.4) 355 CRATE
OBJ_DATA sw13 = (28.3, 227.7, 2.0) 335 RUBBISH
OBJ_DATA sw14 = (26.2, 227.2) 0 OILDRUM
OBJ_DATA sw15 = (25.6, 231.7) 0 BOXES
OBJ_DATA sw151 = (25.7, 231.0) 0 HARDBOX
OBJ_DATA sw16 = (28.7, 221.3) 0 OIL
OBJ_DATA sw17 = (31.6, 226.8) 305 MOVING_CONE
OBJ_DATA sw18 = (30.4, 221.5, 2.1) 0 MOVING_BIN_LID
OBJ_DATA sw19 = (27.2, 221.8) 0 TYRE

OBJ_DATA sw20 = (26.5, 227.8) 0 BUSH
OBJ_DATA sw21 = (31.6, 228.3, 2.0) 0 CONE
OBJ_DATA sw22 = (29.6, 221.3) 0 CRATE
OBJ_DATA sw23 = (33.1, 229.6) 315 RUBBISH
OBJ_DATA sw24 = (27.8, 221.3) 0 OILDRUM
OBJ_DATA sw25 = (29.0, 240.7) 0 BOXES
OBJ_DATA sw251 = (33.4, 236.1) 70 HARDBOX
OBJ_DATA sw26 = (29.7, 222.3) 0 OIL
OBJ_DATA sw27 = (31.8, 226.1) 155 MOVING_CONE
OBJ_DATA sw28 = (33.8, 229.2, 2.0) 0 MOVING_BIN_LID
OBJ_DATA sw29 = (27.5, 221.3) 0 TYRE

OBJ_DATA sw30 = (26.2, 227.8) 270 BUSH
OBJ_DATA sw31 = (31.2, 228.2, 2.0) 0 CONE
OBJ_DATA sw32 = (33.4, 234.9) 345 CRATE
OBJ_DATA sw33 = (27.8, 222.3) 50 RUBBISH
OBJ_DATA sw34 = (31.2, 225.2) 0 OILDRUM
OBJ_DATA sw35 = (34.5, 222.6) 345 BOXES
OBJ_DATA sw351 = (33.4, 234.0) 0 HARDBOX
OBJ_DATA sw36 = (29.0, 225.2, 2.0) 0 OIL
OBJ_DATA sw37 = (31.4, 226.3) 70 MOVING_CONE
OBJ_DATA sw38 = (28.3, 239.5) 0 MOVING_BIN_LID
OBJ_DATA sw39 = (27.2, 221.5) 0 TYRE

OBJ_DATA swx01 = (23.1, 227.2, 3.0) 0 BUSH
OBJ_DATA swx02 = (21.8, 228.5) 0 BUSH
OBJ_DATA swx03 = (21.8, 227.9) 180 BUSH
OBJ_DATA swx04 = (21.8, 227.3) 0 BUSH
OBJ_DATA swx05 = (23.5, 228.7) 0 BUSH
OBJ_DATA swx06 = (23.5, 228.2) 270 BUSH
OBJ_DATA swx07 = (23.5, 227.7, 3.0) 0 BUSH
OBJ_DATA swx08 = (23.5, 227.2, 3.0) 90 BUSH

OBJ_DATA bnc01 = (69.9, 197.1, 3.0) 90 BUSH
OBJ_DATA bnc02 = (70.7, 197.9, 3.0) 0 BUSH
OBJ_DATA bnc03 = (69.9, 197.9, 3.0) 180 BUSH
OBJ_DATA bnc04 = (69.2, 197.1, 3.0) 90 BUSH
OBJ_DATA bnc05 = (71.6, 196.01, 3.0) 0 BUSH
OBJ_DATA bnc06 = (71.2, 196.01, 3.0) 270 BUSH
OBJ_DATA bnc07 = (70.7, 197.1, 3.0) 90 BUSH
OBJ_DATA bnc08 = (69.2, 197.9, 3.0) 0 BUSH

//Cones
OBJ_DATA cwc01 = (36.1, 213.0) 0 CONE
OBJ_DATA cwc03 = (36.1, 214.0) 0 CONE
OBJ_DATA cwc042 = (36.1, 215.0) 0 CONE
OBJ_DATA cwc06 = (77.9, 217.0) 0 CONE
OBJ_DATA cwc08 = (77.9, 216.0) 0 CONE
OBJ_DATA cwc11 = (77.9, 215.0) 0 CONE
OBJ_DATA cwc14 = (76.1, 217.0) 0 CONE
OBJ_DATA cwc16 = (76.1, 216.0) 0 CONE
OBJ_DATA cwc18 = (76.1, 215.0) 0 CONE

OBJ_DATA cec01 = (37.9, 217.0, 2.0) 0 CONE
OBJ_DATA cec03 = (37.9, 216.0) 0 CONE
OBJ_DATA cec05 = (37.9, 215.0) 0 CONE
OBJ_DATA cec07 = (37.9, 214.0) 0 CONE
OBJ_DATA cec09 = (37.9, 213.0) 0 CONE
OBJ_DATA cec11 = (36.1, 217.0, 2.0) 0 CONE
OBJ_DATA cec13 = (36.1, 216.0) 0 CONE

OBJ_DATA css02 = (82.5, 212.0, 2.0) 0 CONE
OBJ_DATA css03 = (80.5, 212.0, 2.0) 0 CONE
OBJ_DATA css04 = (78.5, 212.0) 0 CONE
OBJ_DATA css05 = (79.5, 211.0) 0 CONE
OBJ_DATA css07 = (83.5, 211.0) 0 CONE
OBJ_DATA css08 = (80.0, 212.0, 2.0) 0 CONE
OBJ_DATA css10 = (79.0, 211.0) 0 CONE
OBJ_DATA css11 = (83.5, 212.0) 0 CONE
OBJ_DATA css12 = (83.0, 211.0) 0 CONE
OBJ_DATA css13 = (79.5, 212.0) 0 CONE
OBJ_DATA css14 = (80.5, 211.0) 0 CONE
OBJ_DATA css15 = (78.5, 211.0) 0 CONE
OBJ_DATA css16 = (83.0, 212.0) 0 CONE
OBJ_DATA css17 = (82.5, 211.0) 0 CONE
OBJ_DATA css18 = (79.0, 212.0) 0 CONE
OBJ_DATA css19 = (80.0, 211.0) 0 CONE



OBJ_DATA bench01 = (61.5, 190.2) 0 BENCH
OBJ_DATA bench02 = (60.4, 190.2) 0 BENCH
OBJ_DATA bench03 = (90.7, 204.1) 270 BENCH
OBJ_DATA bench04 = (74.0, 207.7) 180 BENCH
OBJ_DATA bench05 = (46.5, 207.7) 180 BENCH
OBJ_DATA bench06 = (29.1, 190.3) 0 BENCH
OBJ_DATA bench07 = (28.3, 190.3) 0 BENCH
OBJ_DATA bench08 = (44.0, 193.7) 180 BENCH
OBJ_DATA bench09 = (29.5, 207.7) 180 BENCH
OBJ_DATA bench10 = (101.7, 201.4) 270 BENCH
OBJ_DATA bench11 = (100.5, 198.4) 0 BENCH
OBJ_DATA bench12 = (101.7, 199.6) 270 BENCH
OBJ_DATA bench13 = (101.7, 200.5) 270 BENCH
OBJ_DATA bench14 = (88.5, 212.3) 0 BENCH
OBJ_DATA bench15 = (89.3, 212.3) 0 BENCH
OBJ_DATA bench16 = (97.7, 203.5) 270 BENCH
OBJ_DATA bench17 = (88.7, 225.7) 180 BENCH
OBJ_DATA bench18 = (43.3, 228.8) 180 BENCH

OBJ_DATA bin01 = (31.7, 222.3) 0 BIN

//}

//{ //Conveyor,Cranes,Trains,Gangs

CONVEYOR belt_north4 = (72.5, 205.5, 4.0) (1.0, 33.0) 0 -1
CONVEYOR belt_south0 = (65.5, 221.5, 4.0) (13.0, 1.0) 1 0
CONVEYOR belt_south1 = (59.0, 221.5, 3.0) (6.0, 1.0) 1 0
CONVEYOR belt_rocket1 = (79.5, 223.5, 3.0) (1.0, 3.0) 0 1
CONVEYOR belt_rocket2 = (84.5, 226.5, 4.0) (3.0, 1.0) 1 0
CONVEYOR belt_rocket3 = (90.5, 231.5) (1.0, 3.0) 0 1

CONVEYOR belt_north5 = (72.5, 178.0) (1.0, 20.0) 0 -1

CONVEYOR belt_jump1 = (74.5, 232.0, 4.5) (8.0, 1.5) 0 -3
CONVEYOR belt_jump12 = (74.5, 229.0, 4.5) (8.0, 4.0) 0 -1
CONVEYOR belt_jump2 = (74.5, 232.0, 5.0) (8.0, 1.5) 0 -3
CONVEYOR belt_jump22 = (74.5, 229.0, 5.0) (8.0, 4.0) 0 0
CONVEYOR belt_jump3 = (74.5, 232.0, 5.5) (8.0, 1.5) 0 -3
CONVEYOR belt_jump32 = (74.5, 229.0, 5.5) (8.0, 4.0) 0 -1
CONVEYOR belt_jump4 = (74.5, 232.0, 6.0) (8.0, 1.5) 0 -3
CONVEYOR belt_jump42 = (74.5, 229.0, 6.0) (8.0, 4.0) 0 -1

CRUSHER crush2 = (63.0, 221.5)

CRANE_DATA crane1 = (58.5, 224.5) 40 NO_HOMECRANE FIRST (58.5, 221.5) 270
CRANE_DATA crane2 = (26.5, 242.5) 350 NO_HOMECRANE FIRST (30.5, 245.7) 270
CRANE_DATA crane3 = (59.5, 230.5) 200 NO_HOMECRANE
CRANE_DATA crane4 = (30.5, 241.5) 200 NO_HOMECRANE FIRST (35.4, 241.5) 270
DESTRUCTOR destr1 = (72.5, 221.5, 4.0) (1.0, 1.0)
DESTRUCTOR destr2 = (72.5, 189.5, 4.0) (1.0, 1.0)

SET_STATION_INFO (trak01, 1, 2, 1)
//SET_STATION_INFO (trak00, 1, 1, 0)
//SET_STATION_INFO (trak02, 1, 0, 2)

OBJ_DATA tun01 = (93.5, 190.5, 3.5) 270 TUNNEL_BLOCKER
OBJ_DATA tun02 = (37.5, 196.5, 2.2) 270 TUNNEL_BLOCKER
OBJ_DATA tun03 = (67.5, 233.5, 3.5) 270 TUNNEL_BLOCKER
OBJ_DATA tun04 = (92.5, 206.5, 3.6) 180 TUNNEL_BLOCKER
OBJ_DATA tun05 = (92.5, 190.5, 3.6) 0 TUNNEL_BLOCKER
OBJ_DATA tun06 = (54.5, 189.5, 2.6) 0 TUNNEL_BLOCKER
OBJ_DATA tun07 = (31.5, 196.5, 2.0) 90 TUNNEL_BLOCKER
OBJ_DATA tun08 = (23.5, 196.5, 1.5) 90 TUNNEL_BLOCKER
OBJ_DATA tun09 = (23.5, 209.5, 4.6) 90 TUNNEL_BLOCKER
OBJ_DATA tun10 = (29.0, 233.5, 5.0) 90 TUNNEL_BLOCKER
OBJ_DATA tun11 = (29.0, 234.5, 5.0) 90 TUNNEL_BLOCKER
OBJ_DATA tun12 = (29.0, 232.5, 5.0) 90 TUNNEL_BLOCKER

OBJ_DATA tun13 = (76.5, 188.5, 3.6) 90 TUNNEL_BLOCKER
OBJ_DATA tun14 = (76.5, 187.5, 3.6) 90 TUNNEL_BLOCKER
OBJ_DATA tun15 = (90.5, 188.4, 3.6) 270 TUNNEL_BLOCKER
OBJ_DATA tun16 = (90.5, 187.5, 3.6) 270 TUNNEL_BLOCKER

//}

//{ //Sounds
//}

//{ //Scripting
COUNTER firstrun=1
COUNTER mainloop = 1
COUNTER tmploop=0
COUNTER temp = 0
COUNTER temp2 =0
COUNTER rand = 0
COUNTER tmr = 0

OBJ_DATA del_mine
OBJ_DATA del_oil
COUNTER mineoil_tmr =0

ONSCREEN_COUNTER dummy_osc

COUNTER wantedlevel =0
COUNTER max_wantedlevel = 5

//Scripted Collectibles
COUNTER color = 0
SOUND snd_item
COUNTER armor_ani = 0 //animation runs faster when 2 players have it
COUNTER nocol_ani = 0 //animation runs faster when 2 players have it

COUNTER msg_sunday = 0

COUNTER tmr_armor = 1
COUNTER col_armor = 1
COUNTER res_armor = 250
OBJ_DATA obj_armor
COUNTER tmr_nocol = 1
COUNTER col_nocol = 1
COUNTER res_nocol = 250
OBJ_DATA obj_nocol
COUNTER tmr_repair = 1
COUNTER col_repair = 1
COUNTER res_repair = 10
OBJ_DATA obj_repair
COUNTER tmr_abribe = 1
COUNTER col_abribe = 1
COUNTER res_abribe = 250
OBJ_DATA obj_abribe
COUNTER tmr_expunch = 1
COUNTER col_expunch = 1
COUNTER res_expunch = 250
OBJ_DATA obj_expunch
COUNTER tmr_carflamer = 1
COUNTER col_carflamer = 1
COUNTER res_carflamer = 800
OBJ_DATA obj_carflamer
COUNTER tmr_tankgun = 1
COUNTER col_tankgun = 1
COUNTER res_tankgun = 800
OBJ_DATA obj_tankgun
COUNTER tmr_jeepgun = 1
COUNTER col_jeepgun = 1
COUNTER res_jeepgun = 800
OBJ_DATA obj_jeepgun
COUNTER tmr_blackbox = 1
COUNTER col_blackbox = 1
COUNTER res_blackbox = 250
OBJ_DATA obj_blackbox
COUNTER tmr_carinvis = 1
COUNTER col_carinvis = 1
COUNTER res_carinvis = 250
OBJ_DATA obj_carinvis
COUNTER tmr_doorlock = 1
COUNTER col_doorlock = 1
COUNTER res_doorlock = 250
OBJ_DATA obj_doorlock

//}

//}

LEVELSTART
WHILE_EXEC(mainloop=1)
IF (firstrun=1)

//ADD_ONSCREEN_COUNTER  (   dummy_osc  ,  p1_trg_ic )

// Environment
SET_SHADING_LEVEL  (27)
SET_AMBIENT_LEVEL  (1.0, 0)
DECLARE_POLICELEVEL (6)
SET_GANG_INFO (nocol, 1, MACHINE_GUN, ROCKET_LAUNCHER, ROCKET_LAUNCHER, 5, 0.0, 0.0, 0.0, 0, APC, 30)

SWITCH_GENERATOR (shotgun1, ON)
SWITCH_GENERATOR (armor , ON)
SWITCH_GENERATOR (smg1 , ON)
SWITCH_GENERATOR (ddamage3 , ON)
SWITCH_GENERATOR (fastr3 , ON)
SWITCH_GENERATOR (fingers2 , ON)

LAUNCH_MISSION (load.mis)
SET firstrun=0

ENDIF

++tmr
++rand

//{ // Player Checks

IF (CHECK_CHARACTER_HEALTH(p1, 0))
	STORE_CAR_CHARACTER_IS_IN ( p1  ,  p1_v  )

	IF (((IS_CHARACTER_IN_ANY_CAR(p1))AND(CHECK_WEAPON_TYPE_HIT_CAR  ( p1_v  , BY_WATER_CANNON ) )) AND (NOT (CHECK_WEAPON_TYPE_HIT_CAR  ( p1_nocon_v  , BY_WATER_CANNON ))))
		ORDER_CHAR_TO_BACKDOOR(p1,p1_v)
		SET_ENTER_CONTROL_STATUS (   p1  ,  OFF   )
		p1_nocon_v = CREATE_CAR (1.0, 1.0, 0.0) 27 90 BUG END
		STORE_CAR_CHARACTER_IS_IN ( p1  ,  p1_nocon_v  )
	ENDIF

	IF(( LOCATE_CHARACTER_ANY_MEANS ( p1, 83.5 , 106.5, 2.0, 0.8, 0.8 )) OR ( LOCATE_CHARACTER_ANY_MEANS ( p1, 33.5 , 221.0, 4.5, 0.8, 0.8 )))
		SET_CHAR_INVINCIBLE( p1 , OFF )
		IF (IS_CHAR_ON_FIRE  ( p1 ) )
			SET_CHAR_INVINCIBLE( p1 , ON )
		ENDIF
	ENDIF
	IF(LOCATE_CHARACTER_ANY_MEANS (p1, 47.5, 209.5, 4.0, 0.8, 0.8))
	SET_CHAR_INVINCIBLE( p1 , OFF )
		IF (IS_CHAR_ON_FIRE  ( p1 ) )
			SET_CHAR_INVINCIBLE( p1 , ON )
		ENDIF
	ENDIF

	IF ( HAS_CHARACTER_DIED ( p1 ))
		SET_ENTER_CONTROL_STATUS (   p1  ,  ON   )

		SET p1_tmr_swat = 150
		ALTER_WANTED_LEVEL (p1, 0)
		SET max_wantedlevel = 5

		SET p1_expunch = 0
		SET p1_blackbox = 0

		//SUNDAY DRIVER
		IF (IS_CHARACTER_IN_ANY_CAR  ( p1  ))
			SET msg_sunday=3
		ENDIF

		SET temp = ( rand / 3 )
		SET temp = ( temp * 3 )
		SET rand= ( rand - temp )
	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 > max_wantedlevel )
		SET p1_wantedlevel = (max_wantedlevel + 0)
		ALTER_WANTED_LEVEL (p1, 5) //should be ALTER_WANTED_LEVEL (p1, max_wantedlevel) but works for this map that way too
	ENDIF
	IF( p1_wantedlevel > wantedlevel )
		SET wantedlevel = (p1_wantedlevel + 0)
	ENDIF

	//}

	//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

	//{ //Powerups
		IF ((LOCATE_CHARACTER_BY_CAR ( p1 , 68.0, 199.5, 7.0 , 0.8 , 0.8 ))AND(col_armor = 0))
			SET tmr_armor = (res_armor + 0)
			SET col_armor = 1
			IF (p1_armor > 1)
				SET_CAR_NUMBER_GRAPHIC ( p1_ffield1 , 8 )
				SET_CAR_BULLETPROOF ( p1_armor_v, OFF )
				SET_CAR_ROCKETPROOF ( p1_armor_v, OFF )
				SET_CAR_FLAMEPROOF ( p1_armor_v, OFF )
			ENDIF
			SET armor_ani = -3
			SET p1_armor = 200
			STORE_CAR_CHARACTER_IS_IN ( p1  ,  p1_armor_v  )
			p1_ffield1 = CREATE_CAR (1.0, 1.0, 0.0) 27 90 AMDB4 END
			PUT_CAR_ON_TRAILER ( p1_ffield1 , p1_armor_v )
			DELETE_ITEM ( obj_armor )
			snd_item = CREATE_SOUND (68.0, 199.5, 7.0) GARAGE_CLOSE PLAY_INSTANT END
			DELETE_ITEM ( obj_armor )
			ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p1 , 38.5, 222.5, 2.0 , 0.8 , 0.8 ))AND(col_nocol = 0))
			SET tmr_nocol = (res_nocol + 0)
			SET col_nocol = 1
			IF (p1_nocol > 1)
				SET_CAR_NUMBER_GRAPHIC ( p1_ffield2 , 8 )
				CLEAR_CAR_NO_COLLIDE ( p1_nocol_v )
			ENDIF
			SET nocol_ani = -3
			SET p1_nocol = 9999
			STORE_CAR_CHARACTER_IS_IN ( p1  ,  p1_nocol_v  )
			p1_ffield2 = CREATE_CAR (1.0, 1.0, 0.0) 27 90 AMDB4 END
			PUT_CAR_ON_TRAILER ( p1_ffield2 , p1_nocol_v )
			DELETE_ITEM ( obj_nocol )
			CHANGE_GANG_CHAR_RESPECT  ( nocol  ,  p1 , -1 )
			//obj_nocol = CREATE_OBJ (38.5, 222.5, 2.0) 0 BLASTER END
			//DELETE_ITEM ( obj_nocol )
		ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p1 , 81.5, 211.5, 2.0 , 0.8 , 0.8 ))AND(col_repair = 0))
			SET p1_tmp_wantedlevel=(p1_wantedlevel+0)
			ADD_SCORE (p1,5000)
			LAUNCH_MISSION(repair.mis)
			LAUNCH_MISSION(p1_rwl.mis)
		ENDIF

		IF ((LOCATE_CHARACTER_ANY_MEANS ( p1 , 45.0, 224.0, 5.0 , 0.8 , 0.8 ))AND(col_abribe = 0))
			SET tmr_abribe = (res_abribe + 0)
			SET col_abribe = 1
			SET p1_wantedlevel = 6
			SET p1_tmp_wantedlevel=6
			SET max_wantedlevel = 6
			ALTER_WANTED_LEVEL (p1, 6)
			DELETE_ITEM ( obj_abribe )
			snd_item = CREATE_SOUND (45.0, 224.0, 5.0) SCREAM PLAY_INSTANT END
		ENDIF

		IF ((LOCATE_CHARACTER_ANY_MEANS ( p1 , 46.5, 209.5, 4.0 , 0.8 , 0.8 ))AND(col_expunch = 0))
			SET tmr_expunch = (res_expunch + 0)
			SET col_expunch = 1
			SET p1_expunch = 1
			DELETE_ITEM ( obj_expunch )
			obj_nocol = CREATE_OBJ (46.5, 209.5, 4.0) 0 RUBBISH END
			DELETE_ITEM ( obj_nocol )
		ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p1 , 58.5, 232.0, 3.0 , 0.8 , 0.8 ))AND(col_carflamer = 0))
		IF ((CHECK_CAR_MODEL (  p1_v  ,  FIRETRUK )) OR (CHECK_CAR_MODEL (  p1_v  ,  GUNJEEP )))
			SET tmr_carflamer = (res_carflamer + 0)
			SET col_carflamer = 1
			GIVE_WEAPON (p1_v, CAR_FLAMETHROWER, 99)
			GIVE_WEAPON (p1_v, CAR_FLAMETHROWER, 99)
			DELETE_ITEM ( obj_carflamer )
			obj_carflamer = CREATE_OBJ (58.5, 232.0, 3.0) 0 BONUS_TOKEN END
			DELETE_ITEM ( obj_carflamer )
		ENDIF
		ENDIF

		IF (((LOCATE_CHARACTER_BY_CAR ( p1 , 85.1, 200.9, 2.0 , 0.8 , 0.8 ))AND(col_tankgun = 0)) AND (CHECK_CAR_MODEL (  p1_v  ,  TANK ) ))
			SET tmr_tankgun = (res_tankgun + 0)
			SET col_tankgun = 1
			GIVE_WEAPON (p1_v, TANK_GUN, 99)
			GIVE_WEAPON (p1_v, TANK_GUN, 99)
			DELETE_ITEM ( obj_tankgun )
			obj_tankgun = CREATE_OBJ (85.1, 200.9) 320 BONUS_TOKEN END
			DELETE_ITEM ( obj_tankgun )
		ENDIF

		IF (((LOCATE_CHARACTER_BY_CAR ( p1 , 60.5, 232.0, 3.0 , 0.8 , 0.8 ))AND(col_jeepgun = 0)) AND (CHECK_CAR_MODEL (  p1_v  ,  GUNJEEP )) )
			SET tmr_jeepgun = (res_jeepgun + 0)
			SET col_jeepgun = 1
			GIVE_WEAPON (p1_v, JEEP_GUN, 99)
			GIVE_WEAPON (p1_v, JEEP_GUN, 99)
			DELETE_ITEM ( obj_jeepgun )
			obj_jeepgun = CREATE_OBJ (60.5, 232.0) 0 BONUS_TOKEN END
			DELETE_ITEM ( obj_jeepgun )
		ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p1 , 99.0, 207.0, 6.0 , 0.8 , 0.8 ))AND(col_blackbox = 0))
			SET tmr_blackbox = (res_blackbox + 0)
			SET col_blackbox = 1
			SET p1_blackbox = 1
			DELETE_ITEM ( obj_blackbox )
			//obj_blackbox = CREATE_OBJ (46.5, 209.5, 4.0) 0 RUBBISH END
			//DELETE_ITEM ( obj_blackbox )
		ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p1 , 29.5, 240.0, 2.0 , 0.8 , 0.8 ))AND(col_carinvis = 0))
			SET tmr_carinvis = (res_carinvis + 0)
			SET col_carinvis = 1
			SET_CAR_NUMBER_GRAPHIC ( p1_v , 8 )
			DELETE_ITEM ( obj_carinvis )
		ENDIF
		IF ((LOCATE_CHARACTER_ON_FOOT ( p1 , 29.5, 240.0, 2.0 , 0.8 , 0.8 ))AND(col_carinvis = 0))
			SET tmr_carinvis = (res_carinvis + 0)
			SET col_carinvis = 1
			DELETE_ITEM ( obj_carinvis )
		ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p1 , 75.0, 193.5, 3.0 , 0.8 , 0.8 ))AND(col_doorlock = 0))
			SET tmr_doorlock = (res_doorlock + 0)
			SET col_doorlock = 1
			SET p1_doorlock = 1
			DELETE_ITEM ( obj_doorlock )
			obj_doorlock = CREATE_OBJ (75.0, 193.5, 3.0) 0 BLASTER END
			DELETE_ITEM ( obj_doorlock )
		ENDIF

	//}

	//{ //Armor
		IF ( p1_armor > 1 )
			SET_CAR_BULLETPROOF ( p1_armor_v, ON )
			SET_CAR_ROCKETPROOF ( p1_armor_v, ON )
			SET_CAR_FLAMEPROOF ( p1_armor_v, ON )
			++armor_ani
			IF ( armor_ani = 3 )
				SET_CAR_NUMBER_GRAPHIC ( p1_ffield1 , 0 )
			ENDIF
			IF ( armor_ani = 6 )
				SET_CAR_NUMBER_GRAPHIC ( p1_ffield1 , 1 )
			ENDIF
			IF ( armor_ani = 9 )
				SET_CAR_NUMBER_GRAPHIC ( p1_ffield1 , 2 )
			ENDIF
			IF ( armor_ani = 12 )
				SET_CAR_NUMBER_GRAPHIC ( p1_ffield1 , 3 )
				SET armor_ani = 0
				--p1_armor
			ENDIF
		ENDIF
		IF ( p1_armor = 1 )
			SET_CAR_NUMBER_GRAPHIC ( p1_ffield1 , 8 )
			SET_CAR_BULLETPROOF ( p1_armor_v, OFF )
			SET_CAR_ROCKETPROOF ( p1_armor_v, OFF )
			SET_CAR_FLAMEPROOF ( p1_armor_v, OFF )
		ENDIF

	//}

	//{ //Nocol
		IF ( p1_nocol > 1 )
			SET_CAR_NO_COLLIDE ( p1_nocol_v )
			++nocol_ani
			IF ( nocol_ani = 3 )
				SET_CAR_NUMBER_GRAPHIC ( p1_ffield2 , 4 )
			ENDIF
			IF ( nocol_ani = 6 )
				SET_CAR_NUMBER_GRAPHIC ( p1_ffield2 , 5 )
			ENDIF
			IF ( nocol_ani = 9 )
				SET_CAR_NUMBER_GRAPHIC ( p1_ffield2 , 6 )
			ENDIF
			IF ( nocol_ani = 12 )
				SET_CAR_NUMBER_GRAPHIC ( p1_ffield2 , 7 )
				SET nocol_ani = 0
				--p1_nocol
			ENDIF
		ENDIF
		IF ( p1_nocol = 1 )
			SET_CAR_NUMBER_GRAPHIC ( p1_ffield2 , 8 )
			CLEAR_CAR_NO_COLLIDE ( p1_nocol_v )
		ENDIF
	//}

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

	IF ( p1_blackbox=1 )
		IF (IS_CHAR_PRESSING_HORN  ( p1 ) ) //Player pressing HORN
			IF (p1_trg_horn=0)
				SET p1_trg_horn=1
			ENDIF
		ENDIF
		IF (NOT(IS_CHAR_PRESSING_HORN  ( p1 ) ))
			IF (p1_trg_horn=1)
				ORDER_CHAR_TO_BACKDOOR(p1,p1_v)
				p1_blackbox_bot = CREATE_CHAR_INSIDE_CAR ( p1_v ) 0 DRIVER END
				SET p1_blackbox=0
			ENDIF
			SET p1_trg_horn=0
		ENDIF
	ENDIF

	IF((NOT(IS_CHARACTER_IN_ANY_CAR( p1 )))OR(NOT(CHECK_CAR_MODEL(p1_v  , TRAIN   ))))
		IF (( LOCATE_CHARACTER_ANY_MEANS ( p1, 56.0, 188.0, 1.0, 88.0, 40.0 )) OR ( LOCATE_CHARACTER_ANY_MEANS ( p1, 90.5 , 203.5, 1.0, 31.0, 23.0 )) )
			//CONVEYOR belt_north4 = (55.5, 186.0, 1.0) (87.0, 44.0) 0 -1
			//CONVEYOR belt_north4 = (82.0, 203.0, 1.0) (48.0, 22.0) 0 -1
			WARP_FROM_CAR_TO_POINT ( p1, 54.5, 197.5, 5.0, 0 )
		ENDIF
		IF ( LOCATE_CHARACTER_ANY_MEANS ( p1, 54.5 , 229.5, 1.0, 85.0, 13.0 ))
			//CONVEYOR belt_north4 = (54.5, 229.5, 1.0) (85.0, 13.0) 0 -1
			WARP_FROM_CAR_TO_POINT ( p1, 54.5, 197.5, 5.0, 0 )
		ENDIF
	ENDIF

	//{ // CARMODEL CHECK

	IF (IS_CHARACTER_IN_ANY_CAR  ( p1  ) )
		IF (p1_trg_ic=1)
			SET p1_trg_ic=0
			LAUNCH_MISSION(p1_cmc.mis)
		ENDIF
	ENDIF
	IF (NOT(IS_CHARACTER_IN_ANY_CAR  ( p1  ) ))
		IF (p1_trg_ic=0)

			IF (CHECK_CAR_MODEL (  p1_v  ,  BANKVAN ) )
				LAUNCH_MISSION (p1_rwl.mis) //Restore wanted level
			ENDIF
			CHANGE_CAR_LOCK  (  p1_v   , UNLOCKED )
		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(p1_doorlock=1)
			CHANGE_CAR_LOCK  (  p1_v   , LOCKED )
		ENDIF
	ENDIF
	//}

ENDIF

IF (CHECK_CHARACTER_HEALTH(p2, 0))
	STORE_CAR_CHARACTER_IS_IN ( p2  ,  p2_v  )

	IF (((IS_CHARACTER_IN_ANY_CAR(p2))AND(CHECK_WEAPON_TYPE_HIT_CAR  ( p2_v  , BY_WATER_CANNON ) )) AND (NOT (CHECK_WEAPON_TYPE_HIT_CAR  ( p2_nocon_v  , BY_WATER_CANNON ))))
		ORDER_CHAR_TO_BACKDOOR(p2,p2_v)
		SET_ENTER_CONTROL_STATUS (   p2  ,  OFF   )
		p2_nocon_v = CREATE_CAR (1.0, 1.0, 0.0) 27 90 BUG END
		STORE_CAR_CHARACTER_IS_IN ( p2  ,  p2_nocon_v  )
	ENDIF

	IF(( LOCATE_CHARACTER_ANY_MEANS ( p2, 83.5 , 106.5, 2.0, 0.8, 0.8 )) OR ( LOCATE_CHARACTER_ANY_MEANS ( p2, 33.5 , 221.0, 4.5, 0.8, 0.8 )))
		SET_CHAR_INVINCIBLE( p2 , OFF )
		IF (IS_CHAR_ON_FIRE  ( p2 ) )
			SET_CHAR_INVINCIBLE( p2 , ON )
		ENDIF
	ENDIF
	IF(LOCATE_CHARACTER_ANY_MEANS (p2, 47.5, 209.5, 4.0, 0.8, 0.8))
	SET_CHAR_INVINCIBLE( p2 , OFF )
		IF (IS_CHAR_ON_FIRE  ( p2 ) )
			SET_CHAR_INVINCIBLE( p2 , ON )
		ENDIF
	ENDIF

	IF ( HAS_CHARACTER_DIED ( p2 ))
		SET_ENTER_CONTROL_STATUS (   p2  ,  ON   )

		SET p2_tmr_swat = 150
		ALTER_WANTED_LEVEL (p2, 0)
		SET max_wantedlevel = 5

		SET p2_expunch = 0
		SET p2_blackbox = 0

		//SUNDAY DRIVER
		IF (IS_CHARACTER_IN_ANY_CAR  ( p2  ))
			SET msg_sunday=3
		ENDIF

		SET temp = ( rand / 3 )
		SET temp = ( temp * 3 )
		SET rand= ( rand - temp )
	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 > max_wantedlevel )
		SET p2_wantedlevel = (max_wantedlevel + 0)
		ALTER_WANTED_LEVEL (p2, 5) //should be ALTER_WANTED_LEVEL (p2, max_wantedlevel) but works for this map that way too
	ENDIF
	IF( p2_wantedlevel > wantedlevel )
		SET wantedlevel = (p2_wantedlevel + 0)
	ENDIF

	//}

	//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

	//{ //Powerups
		IF ((LOCATE_CHARACTER_BY_CAR ( p2 , 68.0, 199.5, 7.0 , 0.8 , 0.8 ))AND(col_armor = 0))
			SET tmr_armor = (res_armor + 0)
			SET col_armor = 1
			IF (p2_armor > 1)
				SET_CAR_NUMBER_GRAPHIC ( p2_ffield1 , 8 )
				SET_CAR_BULLETPROOF ( p2_armor_v, OFF )
				SET_CAR_ROCKETPROOF ( p2_armor_v, OFF )
				SET_CAR_FLAMEPROOF ( p2_armor_v, OFF )
			ENDIF
			SET armor_ani = -3
			SET p2_armor = 200
			STORE_CAR_CHARACTER_IS_IN ( p2  ,  p2_armor_v  )
			p2_ffield1 = CREATE_CAR (1.0, 1.0, 0.0) 27 90 AMDB4 END
			PUT_CAR_ON_TRAILER ( p2_ffield1 , p2_armor_v )
			DELETE_ITEM ( obj_armor )
			snd_item = CREATE_SOUND (68.0, 199.5, 7.0) GARAGE_CLOSE PLAY_INSTANT END
			DELETE_ITEM ( obj_armor )
			ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p2 , 38.5, 222.5, 2.0 , 0.8 , 0.8 ))AND(col_nocol = 0))
			SET tmr_nocol = (res_nocol + 0)
			SET col_nocol = 1
			IF (p2_nocol > 1)
				SET_CAR_NUMBER_GRAPHIC ( p2_ffield2 , 8 )
				CLEAR_CAR_NO_COLLIDE ( p2_nocol_v )
			ENDIF
			SET nocol_ani = -3
			SET p2_nocol = 9999
			STORE_CAR_CHARACTER_IS_IN ( p2  ,  p2_nocol_v  )
			p2_ffield2 = CREATE_CAR (1.0, 1.0, 0.0) 27 90 AMDB4 END
			PUT_CAR_ON_TRAILER ( p2_ffield2 , p2_nocol_v )
			DELETE_ITEM ( obj_nocol )
			CHANGE_GANG_CHAR_RESPECT  ( nocol  ,  p2 , -1 )
			//obj_nocol = CREATE_OBJ (38.5, 222.5, 2.0) 0 BLASTER END
			//DELETE_ITEM ( obj_nocol )
		ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p2 , 81.5, 211.5, 2.0 , 0.8 , 0.8 ))AND(col_repair = 0))
			SET p2_tmp_wantedlevel=(p2_wantedlevel+0)
			ADD_SCORE (p2,5000)
			LAUNCH_MISSION(repair.mis)
			LAUNCH_MISSION(p2_rwl.mis)
		ENDIF

		IF ((LOCATE_CHARACTER_ANY_MEANS ( p2 , 45.0, 224.0, 5.0 , 0.8 , 0.8 ))AND(col_abribe = 0))
			SET tmr_abribe = (res_abribe + 0)
			SET col_abribe = 1
			SET p2_wantedlevel = 6
			SET p2_tmp_wantedlevel=6
			SET max_wantedlevel = 6
			ALTER_WANTED_LEVEL (p2, 6)
			DELETE_ITEM ( obj_abribe )
			snd_item = CREATE_SOUND (45.0, 224.0, 5.0) SCREAM PLAY_INSTANT END
		ENDIF

		IF ((LOCATE_CHARACTER_ANY_MEANS ( p2 , 46.5, 209.5, 4.0 , 0.8 , 0.8 ))AND(col_expunch = 0))
			SET tmr_expunch = (res_expunch + 0)
			SET col_expunch = 1
			SET p2_expunch = 1
			DELETE_ITEM ( obj_expunch )
			obj_nocol = CREATE_OBJ (46.5, 209.5, 4.0) 0 RUBBISH END
			DELETE_ITEM ( obj_nocol )
		ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p2 , 58.5, 232.0, 3.0 , 0.8 , 0.8 ))AND(col_carflamer = 0))
		IF ((CHECK_CAR_MODEL (  p2_v  ,  FIRETRUK )) OR (CHECK_CAR_MODEL (  p2_v  ,  GUNJEEP )))
			SET tmr_carflamer = (res_carflamer + 0)
			SET col_carflamer = 1
			GIVE_WEAPON (p2_v, CAR_FLAMETHROWER, 99)
			GIVE_WEAPON (p2_v, CAR_FLAMETHROWER, 99)
			DELETE_ITEM ( obj_carflamer )
			obj_carflamer = CREATE_OBJ (58.5, 232.0, 3.0) 0 BONUS_TOKEN END
			DELETE_ITEM ( obj_carflamer )
		ENDIF
		ENDIF

		IF (((LOCATE_CHARACTER_BY_CAR ( p2 , 85.1, 200.9, 2.0 , 0.8 , 0.8 ))AND(col_tankgun = 0)) AND (CHECK_CAR_MODEL (  p2_v  ,  TANK ) ))
			SET tmr_tankgun = (res_tankgun + 0)
			SET col_tankgun = 1
			GIVE_WEAPON (p2_v, TANK_GUN, 99)
			GIVE_WEAPON (p2_v, TANK_GUN, 99)
			DELETE_ITEM ( obj_tankgun )
			obj_tankgun = CREATE_OBJ (85.1, 200.9) 320 BONUS_TOKEN END
			DELETE_ITEM ( obj_tankgun )
		ENDIF

		IF (((LOCATE_CHARACTER_BY_CAR ( p2 , 60.5, 232.0, 3.0 , 0.8 , 0.8 ))AND(col_jeepgun = 0)) AND (CHECK_CAR_MODEL (  p2_v  ,  GUNJEEP )) )
			SET tmr_jeepgun = (res_jeepgun + 0)
			SET col_jeepgun = 1
			GIVE_WEAPON (p2_v, JEEP_GUN, 99)
			GIVE_WEAPON (p2_v, JEEP_GUN, 99)
			DELETE_ITEM ( obj_jeepgun )
			obj_jeepgun = CREATE_OBJ (60.5, 232.0) 0 BONUS_TOKEN END
			DELETE_ITEM ( obj_jeepgun )
		ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p2 , 99.0, 207.0, 6.0 , 0.8 , 0.8 ))AND(col_blackbox = 0))
			SET tmr_blackbox = (res_blackbox + 0)
			SET col_blackbox = 1
			SET p2_blackbox = 1
			DELETE_ITEM ( obj_blackbox )
			//obj_blackbox = CREATE_OBJ (46.5, 209.5, 4.0) 0 RUBBISH END
			//DELETE_ITEM ( obj_blackbox )
		ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p2 , 29.5, 240.0, 2.0 , 0.8 , 0.8 ))AND(col_carinvis = 0))
			SET tmr_carinvis = (res_carinvis + 0)
			SET col_carinvis = 1
			SET_CAR_NUMBER_GRAPHIC ( p2_v , 8 )
			DELETE_ITEM ( obj_carinvis )
		ENDIF
		IF ((LOCATE_CHARACTER_ON_FOOT ( p2 , 29.5, 240.0, 2.0 , 0.8 , 0.8 ))AND(col_carinvis = 0))
			SET tmr_carinvis = (res_carinvis + 0)
			SET col_carinvis = 1
			DELETE_ITEM ( obj_carinvis )
		ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p2 , 75.0, 193.5, 3.0 , 0.8 , 0.8 ))AND(col_doorlock = 0))
			SET tmr_doorlock = (res_doorlock + 0)
			SET col_doorlock = 1
			SET p2_doorlock = 1
			DELETE_ITEM ( obj_doorlock )
			obj_doorlock = CREATE_OBJ (75.0, 193.5, 3.0) 0 BLASTER END
			DELETE_ITEM ( obj_doorlock )
		ENDIF

	//}

	//{ //Armor
		IF ( p2_armor > 1 )
			SET_CAR_BULLETPROOF ( p2_armor_v, ON )
			SET_CAR_ROCKETPROOF ( p2_armor_v, ON )
			SET_CAR_FLAMEPROOF ( p2_armor_v, ON )
			++armor_ani
			IF ( armor_ani = 3 )
				SET_CAR_NUMBER_GRAPHIC ( p2_ffield1 , 0 )
			ENDIF
			IF ( armor_ani = 6 )
				SET_CAR_NUMBER_GRAPHIC ( p2_ffield1 , 1 )
			ENDIF
			IF ( armor_ani = 9 )
				SET_CAR_NUMBER_GRAPHIC ( p2_ffield1 , 2 )
			ENDIF
			IF ( armor_ani = 12 )
				SET_CAR_NUMBER_GRAPHIC ( p2_ffield1 , 3 )
				SET armor_ani = 0
				--p2_armor
			ENDIF
		ENDIF
		IF ( p2_armor = 1 )
			SET_CAR_NUMBER_GRAPHIC ( p2_ffield1 , 8 )
			SET_CAR_BULLETPROOF ( p2_armor_v, OFF )
			SET_CAR_ROCKETPROOF ( p2_armor_v, OFF )
			SET_CAR_FLAMEPROOF ( p2_armor_v, OFF )
		ENDIF

	//}

	//{ //Nocol
		IF ( p2_nocol > 1 )
			SET_CAR_NO_COLLIDE ( p2_nocol_v )
			++nocol_ani
			IF ( nocol_ani = 3 )
				SET_CAR_NUMBER_GRAPHIC ( p2_ffield2 , 4 )
			ENDIF
			IF ( nocol_ani = 6 )
				SET_CAR_NUMBER_GRAPHIC ( p2_ffield2 , 5 )
			ENDIF
			IF ( nocol_ani = 9 )
				SET_CAR_NUMBER_GRAPHIC ( p2_ffield2 , 6 )
			ENDIF
			IF ( nocol_ani = 12 )
				SET_CAR_NUMBER_GRAPHIC ( p2_ffield2 , 7 )
				SET nocol_ani = 0
				--p2_nocol
			ENDIF
		ENDIF
		IF ( p2_nocol = 1 )
			SET_CAR_NUMBER_GRAPHIC ( p2_ffield2 , 8 )
			CLEAR_CAR_NO_COLLIDE ( p2_nocol_v )
		ENDIF
	//}

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

	IF ( p2_blackbox=1 )
		IF (IS_CHAR_PRESSING_HORN  ( p2 ) ) //Player pressing HORN
			IF (p2_trg_horn=0)
				SET p2_trg_horn=1
			ENDIF
		ENDIF
		IF (NOT(IS_CHAR_PRESSING_HORN  ( p2 ) ))
			IF (p2_trg_horn=1)
				ORDER_CHAR_TO_BACKDOOR(p2,p2_v)
				p2_blackbox_bot = CREATE_CHAR_INSIDE_CAR ( p2_v ) 0 DRIVER END
				SET p2_blackbox=0
			ENDIF
			SET p2_trg_horn=0
		ENDIF
	ENDIF

	IF((NOT(IS_CHARACTER_IN_ANY_CAR( p2 )))OR(NOT(CHECK_CAR_MODEL(p2_v  , TRAIN   ))))
		IF (( LOCATE_CHARACTER_ANY_MEANS ( p2, 56.0, 188.0, 1.0, 88.0, 40.0 )) OR ( LOCATE_CHARACTER_ANY_MEANS ( p2, 90.5 , 203.5, 1.0, 31.0, 23.0 )) )
			//CONVEYOR belt_north4 = (55.5, 186.0, 1.0) (87.0, 44.0) 0 -1
			//CONVEYOR belt_north4 = (82.0, 203.0, 1.0) (48.0, 22.0) 0 -1
			WARP_FROM_CAR_TO_POINT ( p2, 54.5, 197.5, 5.0, 0 )
		ENDIF
		IF ( LOCATE_CHARACTER_ANY_MEANS ( p2, 54.5 , 229.5, 1.0, 85.0, 13.0 ))
			//CONVEYOR belt_north4 = (54.5, 229.5, 1.0) (85.0, 13.0) 0 -1
			WARP_FROM_CAR_TO_POINT ( p2, 54.5, 197.5, 5.0, 0 )
		ENDIF
	ENDIF

	//{ // CARMODEL CHECK

	IF (IS_CHARACTER_IN_ANY_CAR  ( p2  ) )
		IF (p2_trg_ic=1)
			SET p2_trg_ic=0
			LAUNCH_MISSION(p2_cmc.mis)
		ENDIF
	ENDIF
	IF (NOT(IS_CHARACTER_IN_ANY_CAR  ( p2  ) ))
		IF (p2_trg_ic=0)

			IF (CHECK_CAR_MODEL (  p2_v  ,  BANKVAN ) )
				LAUNCH_MISSION (p2_rwl.mis) //Restore wanted level
			ENDIF
			CHANGE_CAR_LOCK  (  p2_v   , UNLOCKED )
		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(p2_doorlock=1)
			CHANGE_CAR_LOCK  (  p2_v   , LOCKED )
		ENDIF
	ENDIF
	//}

ENDIF

IF (CHECK_CHARACTER_HEALTH(p3, 0))
	STORE_CAR_CHARACTER_IS_IN ( p3  ,  p3_v  )

	IF (((IS_CHARACTER_IN_ANY_CAR(p3))AND(CHECK_WEAPON_TYPE_HIT_CAR  ( p3_v  , BY_WATER_CANNON ) )) AND (NOT (CHECK_WEAPON_TYPE_HIT_CAR  ( p3_nocon_v  , BY_WATER_CANNON ))))
		ORDER_CHAR_TO_BACKDOOR(p3,p3_v)
		SET_ENTER_CONTROL_STATUS (   p3  ,  OFF   )
		p3_nocon_v = CREATE_CAR (1.0, 1.0, 0.0) 27 90 BUG END
		STORE_CAR_CHARACTER_IS_IN ( p3  ,  p3_nocon_v  )
	ENDIF

	IF(( LOCATE_CHARACTER_ANY_MEANS ( p3, 83.5 , 106.5, 2.0, 0.8, 0.8 )) OR ( LOCATE_CHARACTER_ANY_MEANS ( p3, 33.5 , 221.0, 4.5, 0.8, 0.8 )))
		SET_CHAR_INVINCIBLE( p3 , OFF )
		IF (IS_CHAR_ON_FIRE  ( p3 ) )
			SET_CHAR_INVINCIBLE( p3 , ON )
		ENDIF
	ENDIF
	IF(LOCATE_CHARACTER_ANY_MEANS (p3, 47.5, 209.5, 4.0, 0.8, 0.8))
	SET_CHAR_INVINCIBLE( p3 , OFF )
		IF (IS_CHAR_ON_FIRE  ( p3 ) )
			SET_CHAR_INVINCIBLE( p3 , ON )
		ENDIF
	ENDIF

	IF ( HAS_CHARACTER_DIED ( p3 ))
		SET_ENTER_CONTROL_STATUS (   p3  ,  ON   )

		SET p3_tmr_swat = 150
		ALTER_WANTED_LEVEL (p3, 0)
		SET max_wantedlevel = 5

		SET p3_expunch = 0
		SET p3_blackbox = 0

		//SUNDAY DRIVER
		IF (IS_CHARACTER_IN_ANY_CAR  ( p3  ))
			SET msg_sunday=3
		ENDIF

		SET temp = ( rand / 3 )
		SET temp = ( temp * 3 )
		SET rand= ( rand - temp )
	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 > max_wantedlevel )
		SET p3_wantedlevel = (max_wantedlevel + 0)
		ALTER_WANTED_LEVEL (p3, 5) //should be ALTER_WANTED_LEVEL (p3, max_wantedlevel) but works for this map that way too
	ENDIF
	IF( p3_wantedlevel > wantedlevel )
		SET wantedlevel = (p3_wantedlevel + 0)
	ENDIF

	//}

	//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

	//{ //Powerups
		IF ((LOCATE_CHARACTER_BY_CAR ( p3 , 68.0, 199.5, 7.0 , 0.8 , 0.8 ))AND(col_armor = 0))
			SET tmr_armor = (res_armor + 0)
			SET col_armor = 1
			IF (p3_armor > 1)
				SET_CAR_NUMBER_GRAPHIC ( p3_ffield1 , 8 )
				SET_CAR_BULLETPROOF ( p3_armor_v, OFF )
				SET_CAR_ROCKETPROOF ( p3_armor_v, OFF )
				SET_CAR_FLAMEPROOF ( p3_armor_v, OFF )
			ENDIF
			SET armor_ani = -3
			SET p3_armor = 200
			STORE_CAR_CHARACTER_IS_IN ( p3  ,  p3_armor_v  )
			p3_ffield1 = CREATE_CAR (1.0, 1.0, 0.0) 27 90 AMDB4 END
			PUT_CAR_ON_TRAILER ( p3_ffield1 , p3_armor_v )
			DELETE_ITEM ( obj_armor )
			snd_item = CREATE_SOUND (68.0, 199.5, 7.0) GARAGE_CLOSE PLAY_INSTANT END
			DELETE_ITEM ( obj_armor )
			ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p3 , 38.5, 222.5, 2.0 , 0.8 , 0.8 ))AND(col_nocol = 0))
			SET tmr_nocol = (res_nocol + 0)
			SET col_nocol = 1
			IF (p3_nocol > 1)
				SET_CAR_NUMBER_GRAPHIC ( p3_ffield2 , 8 )
				CLEAR_CAR_NO_COLLIDE ( p3_nocol_v )
			ENDIF
			SET nocol_ani = -3
			SET p3_nocol = 9999
			STORE_CAR_CHARACTER_IS_IN ( p3  ,  p3_nocol_v  )
			p3_ffield2 = CREATE_CAR (1.0, 1.0, 0.0) 27 90 AMDB4 END
			PUT_CAR_ON_TRAILER ( p3_ffield2 , p3_nocol_v )
			DELETE_ITEM ( obj_nocol )
			CHANGE_GANG_CHAR_RESPECT  ( nocol  ,  p3 , -1 )
			//obj_nocol = CREATE_OBJ (38.5, 222.5, 2.0) 0 BLASTER END
			//DELETE_ITEM ( obj_nocol )
		ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p3 , 81.5, 211.5, 2.0 , 0.8 , 0.8 ))AND(col_repair = 0))
			SET p3_tmp_wantedlevel=(p3_wantedlevel+0)
			ADD_SCORE (p3,5000)
			LAUNCH_MISSION(repair.mis)
			LAUNCH_MISSION(p3_rwl.mis)
		ENDIF

		IF ((LOCATE_CHARACTER_ANY_MEANS ( p3 , 45.0, 224.0, 5.0 , 0.8 , 0.8 ))AND(col_abribe = 0))
			SET tmr_abribe = (res_abribe + 0)
			SET col_abribe = 1
			SET p3_wantedlevel = 6
			SET p3_tmp_wantedlevel=6
			SET max_wantedlevel = 6
			ALTER_WANTED_LEVEL (p3, 6)
			DELETE_ITEM ( obj_abribe )
			snd_item = CREATE_SOUND (45.0, 224.0, 5.0) SCREAM PLAY_INSTANT END
		ENDIF

		IF ((LOCATE_CHARACTER_ANY_MEANS ( p3 , 46.5, 209.5, 4.0 , 0.8 , 0.8 ))AND(col_expunch = 0))
			SET tmr_expunch = (res_expunch + 0)
			SET col_expunch = 1
			SET p3_expunch = 1
			DELETE_ITEM ( obj_expunch )
			obj_nocol = CREATE_OBJ (46.5, 209.5, 4.0) 0 RUBBISH END
			DELETE_ITEM ( obj_nocol )
		ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p3 , 58.5, 232.0, 3.0 , 0.8 , 0.8 ))AND(col_carflamer = 0))
		IF ((CHECK_CAR_MODEL (  p3_v  ,  FIRETRUK )) OR (CHECK_CAR_MODEL (  p3_v  ,  GUNJEEP )))
			SET tmr_carflamer = (res_carflamer + 0)
			SET col_carflamer = 1
			GIVE_WEAPON (p3_v, CAR_FLAMETHROWER, 99)
			GIVE_WEAPON (p3_v, CAR_FLAMETHROWER, 99)
			DELETE_ITEM ( obj_carflamer )
			obj_carflamer = CREATE_OBJ (58.5, 232.0, 3.0) 0 BONUS_TOKEN END
			DELETE_ITEM ( obj_carflamer )
		ENDIF
		ENDIF

		IF (((LOCATE_CHARACTER_BY_CAR ( p3 , 85.1, 200.9, 2.0 , 0.8 , 0.8 ))AND(col_tankgun = 0)) AND (CHECK_CAR_MODEL (  p3_v  ,  TANK ) ))
			SET tmr_tankgun = (res_tankgun + 0)
			SET col_tankgun = 1
			GIVE_WEAPON (p3_v, TANK_GUN, 99)
			GIVE_WEAPON (p3_v, TANK_GUN, 99)
			DELETE_ITEM ( obj_tankgun )
			obj_tankgun = CREATE_OBJ (85.1, 200.9) 320 BONUS_TOKEN END
			DELETE_ITEM ( obj_tankgun )
		ENDIF

		IF (((LOCATE_CHARACTER_BY_CAR ( p3 , 60.5, 232.0, 3.0 , 0.8 , 0.8 ))AND(col_jeepgun = 0)) AND (CHECK_CAR_MODEL (  p3_v  ,  GUNJEEP )) )
			SET tmr_jeepgun = (res_jeepgun + 0)
			SET col_jeepgun = 1
			GIVE_WEAPON (p3_v, JEEP_GUN, 99)
			GIVE_WEAPON (p3_v, JEEP_GUN, 99)
			DELETE_ITEM ( obj_jeepgun )
			obj_jeepgun = CREATE_OBJ (60.5, 232.0) 0 BONUS_TOKEN END
			DELETE_ITEM ( obj_jeepgun )
		ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p3 , 99.0, 207.0, 6.0 , 0.8 , 0.8 ))AND(col_blackbox = 0))
			SET tmr_blackbox = (res_blackbox + 0)
			SET col_blackbox = 1
			SET p3_blackbox = 1
			DELETE_ITEM ( obj_blackbox )
			//obj_blackbox = CREATE_OBJ (46.5, 209.5, 4.0) 0 RUBBISH END
			//DELETE_ITEM ( obj_blackbox )
		ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p3 , 29.5, 240.0, 2.0 , 0.8 , 0.8 ))AND(col_carinvis = 0))
			SET tmr_carinvis = (res_carinvis + 0)
			SET col_carinvis = 1
			SET_CAR_NUMBER_GRAPHIC ( p3_v , 8 )
			DELETE_ITEM ( obj_carinvis )
		ENDIF
		IF ((LOCATE_CHARACTER_ON_FOOT ( p3 , 29.5, 240.0, 2.0 , 0.8 , 0.8 ))AND(col_carinvis = 0))
			SET tmr_carinvis = (res_carinvis + 0)
			SET col_carinvis = 1
			DELETE_ITEM ( obj_carinvis )
		ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p3 , 75.0, 193.5, 3.0 , 0.8 , 0.8 ))AND(col_doorlock = 0))
			SET tmr_doorlock = (res_doorlock + 0)
			SET col_doorlock = 1
			SET p3_doorlock = 1
			DELETE_ITEM ( obj_doorlock )
			obj_doorlock = CREATE_OBJ (75.0, 193.5, 3.0) 0 BLASTER END
			DELETE_ITEM ( obj_doorlock )
		ENDIF

	//}

	//{ //Armor
		IF ( p3_armor > 1 )
			SET_CAR_BULLETPROOF ( p3_armor_v, ON )
			SET_CAR_ROCKETPROOF ( p3_armor_v, ON )
			SET_CAR_FLAMEPROOF ( p3_armor_v, ON )
			++armor_ani
			IF ( armor_ani = 3 )
				SET_CAR_NUMBER_GRAPHIC ( p3_ffield1 , 0 )
			ENDIF
			IF ( armor_ani = 6 )
				SET_CAR_NUMBER_GRAPHIC ( p3_ffield1 , 1 )
			ENDIF
			IF ( armor_ani = 9 )
				SET_CAR_NUMBER_GRAPHIC ( p3_ffield1 , 2 )
			ENDIF
			IF ( armor_ani = 12 )
				SET_CAR_NUMBER_GRAPHIC ( p3_ffield1 , 3 )
				SET armor_ani = 0
				--p3_armor
			ENDIF
		ENDIF
		IF ( p3_armor = 1 )
			SET_CAR_NUMBER_GRAPHIC ( p3_ffield1 , 8 )
			SET_CAR_BULLETPROOF ( p3_armor_v, OFF )
			SET_CAR_ROCKETPROOF ( p3_armor_v, OFF )
			SET_CAR_FLAMEPROOF ( p3_armor_v, OFF )
		ENDIF

	//}

	//{ //Nocol
		IF ( p3_nocol > 1 )
			SET_CAR_NO_COLLIDE ( p3_nocol_v )
			++nocol_ani
			IF ( nocol_ani = 3 )
				SET_CAR_NUMBER_GRAPHIC ( p3_ffield2 , 4 )
			ENDIF
			IF ( nocol_ani = 6 )
				SET_CAR_NUMBER_GRAPHIC ( p3_ffield2 , 5 )
			ENDIF
			IF ( nocol_ani = 9 )
				SET_CAR_NUMBER_GRAPHIC ( p3_ffield2 , 6 )
			ENDIF
			IF ( nocol_ani = 12 )
				SET_CAR_NUMBER_GRAPHIC ( p3_ffield2 , 7 )
				SET nocol_ani = 0
				--p3_nocol
			ENDIF
		ENDIF
		IF ( p3_nocol = 1 )
			SET_CAR_NUMBER_GRAPHIC ( p3_ffield2 , 8 )
			CLEAR_CAR_NO_COLLIDE ( p3_nocol_v )
		ENDIF
	//}

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

	IF ( p3_blackbox=1 )
		IF (IS_CHAR_PRESSING_HORN  ( p3 ) ) //Player pressing HORN
			IF (p3_trg_horn=0)
				SET p3_trg_horn=1
			ENDIF
		ENDIF
		IF (NOT(IS_CHAR_PRESSING_HORN  ( p3 ) ))
			IF (p3_trg_horn=1)
				ORDER_CHAR_TO_BACKDOOR(p3,p3_v)
				p3_blackbox_bot = CREATE_CHAR_INSIDE_CAR ( p3_v ) 0 DRIVER END
				SET p3_blackbox=0
			ENDIF
			SET p3_trg_horn=0
		ENDIF
	ENDIF

	IF((NOT(IS_CHARACTER_IN_ANY_CAR( p3 )))OR(NOT(CHECK_CAR_MODEL(p3_v  , TRAIN   ))))
		IF (( LOCATE_CHARACTER_ANY_MEANS ( p3, 56.0, 188.0, 1.0, 88.0, 40.0 )) OR ( LOCATE_CHARACTER_ANY_MEANS ( p3, 90.5 , 203.5, 1.0, 31.0, 23.0 )) )
			//CONVEYOR belt_north4 = (55.5, 186.0, 1.0) (87.0, 44.0) 0 -1
			//CONVEYOR belt_north4 = (82.0, 203.0, 1.0) (48.0, 22.0) 0 -1
			WARP_FROM_CAR_TO_POINT ( p3, 54.5, 197.5, 5.0, 0 )
		ENDIF
		IF ( LOCATE_CHARACTER_ANY_MEANS ( p3, 54.5 , 229.5, 1.0, 85.0, 13.0 ))
			//CONVEYOR belt_north4 = (54.5, 229.5, 1.0) (85.0, 13.0) 0 -1
			WARP_FROM_CAR_TO_POINT ( p3, 54.5, 197.5, 5.0, 0 )
		ENDIF
	ENDIF

	//{ // CARMODEL CHECK

	IF (IS_CHARACTER_IN_ANY_CAR  ( p3  ) )
		IF (p3_trg_ic=1)
			SET p3_trg_ic=0
			LAUNCH_MISSION(p3_cmc.mis)
		ENDIF
	ENDIF
	IF (NOT(IS_CHARACTER_IN_ANY_CAR  ( p3  ) ))
		IF (p3_trg_ic=0)

			IF (CHECK_CAR_MODEL (  p3_v  ,  BANKVAN ) )
				LAUNCH_MISSION (p3_rwl.mis) //Restore wanted level
			ENDIF
			CHANGE_CAR_LOCK  (  p3_v   , UNLOCKED )
		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(p3_doorlock=1)
			CHANGE_CAR_LOCK  (  p3_v   , LOCKED )
		ENDIF
	ENDIF
	//}

ENDIF

IF (CHECK_CHARACTER_HEALTH(p4, 0))
	STORE_CAR_CHARACTER_IS_IN ( p4  ,  p4_v  )

	IF (((IS_CHARACTER_IN_ANY_CAR(p4))AND(CHECK_WEAPON_TYPE_HIT_CAR  ( p4_v  , BY_WATER_CANNON ) )) AND (NOT (CHECK_WEAPON_TYPE_HIT_CAR  ( p4_nocon_v  , BY_WATER_CANNON ))))
		ORDER_CHAR_TO_BACKDOOR(p4,p4_v)
		SET_ENTER_CONTROL_STATUS (   p4  ,  OFF   )
		p4_nocon_v = CREATE_CAR (1.0, 1.0, 0.0) 27 90 BUG END
		STORE_CAR_CHARACTER_IS_IN ( p4  ,  p4_nocon_v  )
	ENDIF

	IF(( LOCATE_CHARACTER_ANY_MEANS ( p4, 83.5 , 106.5, 2.0, 0.8, 0.8 )) OR ( LOCATE_CHARACTER_ANY_MEANS ( p4, 33.5 , 221.0, 4.5, 0.8, 0.8 )))
		SET_CHAR_INVINCIBLE( p4 , OFF )
		IF (IS_CHAR_ON_FIRE  ( p4 ) )
			SET_CHAR_INVINCIBLE( p4 , ON )
		ENDIF
	ENDIF
	IF(LOCATE_CHARACTER_ANY_MEANS (p4, 47.5, 209.5, 4.0, 0.8, 0.8))
	SET_CHAR_INVINCIBLE( p4 , OFF )
		IF (IS_CHAR_ON_FIRE  ( p4 ) )
			SET_CHAR_INVINCIBLE( p4 , ON )
		ENDIF
	ENDIF

	IF ( HAS_CHARACTER_DIED ( p4 ))
		SET_ENTER_CONTROL_STATUS (   p4  ,  ON   )

		SET p4_tmr_swat = 150
		ALTER_WANTED_LEVEL (p4, 0)
		SET max_wantedlevel = 5

		SET p4_expunch = 0
		SET p4_blackbox = 0

		//SUNDAY DRIVER
		IF (IS_CHARACTER_IN_ANY_CAR  ( p4  ))
			SET msg_sunday=3
		ENDIF

		SET temp = ( rand / 3 )
		SET temp = ( temp * 3 )
		SET rand= ( rand - temp )
	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 > max_wantedlevel )
		SET p4_wantedlevel = (max_wantedlevel + 0)
		ALTER_WANTED_LEVEL (p4, 5) //should be ALTER_WANTED_LEVEL (p4, max_wantedlevel) but works for this map that way too
	ENDIF
	IF( p4_wantedlevel > wantedlevel )
		SET wantedlevel = (p4_wantedlevel + 0)
	ENDIF

	//}

	//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

	//{ //Powerups
		IF ((LOCATE_CHARACTER_BY_CAR ( p4 , 68.0, 199.5, 7.0 , 0.8 , 0.8 ))AND(col_armor = 0))
			SET tmr_armor = (res_armor + 0)
			SET col_armor = 1
			IF (p4_armor > 1)
				SET_CAR_NUMBER_GRAPHIC ( p4_ffield1 , 8 )
				SET_CAR_BULLETPROOF ( p4_armor_v, OFF )
				SET_CAR_ROCKETPROOF ( p4_armor_v, OFF )
				SET_CAR_FLAMEPROOF ( p4_armor_v, OFF )
			ENDIF
			SET armor_ani = -3
			SET p4_armor = 200
			STORE_CAR_CHARACTER_IS_IN ( p4  ,  p4_armor_v  )
			p4_ffield1 = CREATE_CAR (1.0, 1.0, 0.0) 27 90 AMDB4 END
			PUT_CAR_ON_TRAILER ( p4_ffield1 , p4_armor_v )
			DELETE_ITEM ( obj_armor )
			snd_item = CREATE_SOUND (68.0, 199.5, 7.0) GARAGE_CLOSE PLAY_INSTANT END
			DELETE_ITEM ( obj_armor )
			ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p4 , 38.5, 222.5, 2.0 , 0.8 , 0.8 ))AND(col_nocol = 0))
			SET tmr_nocol = (res_nocol + 0)
			SET col_nocol = 1
			IF (p4_nocol > 1)
				SET_CAR_NUMBER_GRAPHIC ( p4_ffield2 , 8 )
				CLEAR_CAR_NO_COLLIDE ( p4_nocol_v )
			ENDIF
			SET nocol_ani = -3
			SET p4_nocol = 9999
			STORE_CAR_CHARACTER_IS_IN ( p4  ,  p4_nocol_v  )
			p4_ffield2 = CREATE_CAR (1.0, 1.0, 0.0) 27 90 AMDB4 END
			PUT_CAR_ON_TRAILER ( p4_ffield2 , p4_nocol_v )
			DELETE_ITEM ( obj_nocol )
			CHANGE_GANG_CHAR_RESPECT  ( nocol  ,  p4 , -1 )
			//obj_nocol = CREATE_OBJ (38.5, 222.5, 2.0) 0 BLASTER END
			//DELETE_ITEM ( obj_nocol )
		ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p4 , 81.5, 211.5, 2.0 , 0.8 , 0.8 ))AND(col_repair = 0))
			SET p4_tmp_wantedlevel=(p4_wantedlevel+0)
			ADD_SCORE (p4,5000)
			LAUNCH_MISSION(repair.mis)
			LAUNCH_MISSION(p4_rwl.mis)
		ENDIF

		IF ((LOCATE_CHARACTER_ANY_MEANS ( p4 , 45.0, 224.0, 5.0 , 0.8 , 0.8 ))AND(col_abribe = 0))
			SET tmr_abribe = (res_abribe + 0)
			SET col_abribe = 1
			SET p4_wantedlevel = 6
			SET p4_tmp_wantedlevel=6
			SET max_wantedlevel = 6
			ALTER_WANTED_LEVEL (p4, 6)
			DELETE_ITEM ( obj_abribe )
			snd_item = CREATE_SOUND (45.0, 224.0, 5.0) SCREAM PLAY_INSTANT END
		ENDIF

		IF ((LOCATE_CHARACTER_ANY_MEANS ( p4 , 46.5, 209.5, 4.0 , 0.8 , 0.8 ))AND(col_expunch = 0))
			SET tmr_expunch = (res_expunch + 0)
			SET col_expunch = 1
			SET p4_expunch = 1
			DELETE_ITEM ( obj_expunch )
			obj_nocol = CREATE_OBJ (46.5, 209.5, 4.0) 0 RUBBISH END
			DELETE_ITEM ( obj_nocol )
		ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p4 , 58.5, 232.0, 3.0 , 0.8 , 0.8 ))AND(col_carflamer = 0))
		IF ((CHECK_CAR_MODEL (  p4_v  ,  FIRETRUK )) OR (CHECK_CAR_MODEL (  p4_v  ,  GUNJEEP )))
			SET tmr_carflamer = (res_carflamer + 0)
			SET col_carflamer = 1
			GIVE_WEAPON (p4_v, CAR_FLAMETHROWER, 99)
			GIVE_WEAPON (p4_v, CAR_FLAMETHROWER, 99)
			DELETE_ITEM ( obj_carflamer )
			obj_carflamer = CREATE_OBJ (58.5, 232.0, 3.0) 0 BONUS_TOKEN END
			DELETE_ITEM ( obj_carflamer )
		ENDIF
		ENDIF

		IF (((LOCATE_CHARACTER_BY_CAR ( p4 , 85.1, 200.9, 2.0 , 0.8 , 0.8 ))AND(col_tankgun = 0)) AND (CHECK_CAR_MODEL (  p4_v  ,  TANK ) ))
			SET tmr_tankgun = (res_tankgun + 0)
			SET col_tankgun = 1
			GIVE_WEAPON (p4_v, TANK_GUN, 99)
			GIVE_WEAPON (p4_v, TANK_GUN, 99)
			DELETE_ITEM ( obj_tankgun )
			obj_tankgun = CREATE_OBJ (85.1, 200.9) 320 BONUS_TOKEN END
			DELETE_ITEM ( obj_tankgun )
		ENDIF

		IF (((LOCATE_CHARACTER_BY_CAR ( p4 , 60.5, 232.0, 3.0 , 0.8 , 0.8 ))AND(col_jeepgun = 0)) AND (CHECK_CAR_MODEL (  p4_v  ,  GUNJEEP )) )
			SET tmr_jeepgun = (res_jeepgun + 0)
			SET col_jeepgun = 1
			GIVE_WEAPON (p4_v, JEEP_GUN, 99)
			GIVE_WEAPON (p4_v, JEEP_GUN, 99)
			DELETE_ITEM ( obj_jeepgun )
			obj_jeepgun = CREATE_OBJ (60.5, 232.0) 0 BONUS_TOKEN END
			DELETE_ITEM ( obj_jeepgun )
		ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p4 , 99.0, 207.0, 6.0 , 0.8 , 0.8 ))AND(col_blackbox = 0))
			SET tmr_blackbox = (res_blackbox + 0)
			SET col_blackbox = 1
			SET p4_blackbox = 1
			DELETE_ITEM ( obj_blackbox )
			//obj_blackbox = CREATE_OBJ (46.5, 209.5, 4.0) 0 RUBBISH END
			//DELETE_ITEM ( obj_blackbox )
		ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p4 , 29.5, 240.0, 2.0 , 0.8 , 0.8 ))AND(col_carinvis = 0))
			SET tmr_carinvis = (res_carinvis + 0)
			SET col_carinvis = 1
			SET_CAR_NUMBER_GRAPHIC ( p4_v , 8 )
			DELETE_ITEM ( obj_carinvis )
		ENDIF
		IF ((LOCATE_CHARACTER_ON_FOOT ( p4 , 29.5, 240.0, 2.0 , 0.8 , 0.8 ))AND(col_carinvis = 0))
			SET tmr_carinvis = (res_carinvis + 0)
			SET col_carinvis = 1
			DELETE_ITEM ( obj_carinvis )
		ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p4 , 75.0, 193.5, 3.0 , 0.8 , 0.8 ))AND(col_doorlock = 0))
			SET tmr_doorlock = (res_doorlock + 0)
			SET col_doorlock = 1
			SET p4_doorlock = 1
			DELETE_ITEM ( obj_doorlock )
			obj_doorlock = CREATE_OBJ (75.0, 193.5, 3.0) 0 BLASTER END
			DELETE_ITEM ( obj_doorlock )
		ENDIF

	//}

	//{ //Armor
		IF ( p4_armor > 1 )
			SET_CAR_BULLETPROOF ( p4_armor_v, ON )
			SET_CAR_ROCKETPROOF ( p4_armor_v, ON )
			SET_CAR_FLAMEPROOF ( p4_armor_v, ON )
			++armor_ani
			IF ( armor_ani = 3 )
				SET_CAR_NUMBER_GRAPHIC ( p4_ffield1 , 0 )
			ENDIF
			IF ( armor_ani = 6 )
				SET_CAR_NUMBER_GRAPHIC ( p4_ffield1 , 1 )
			ENDIF
			IF ( armor_ani = 9 )
				SET_CAR_NUMBER_GRAPHIC ( p4_ffield1 , 2 )
			ENDIF
			IF ( armor_ani = 12 )
				SET_CAR_NUMBER_GRAPHIC ( p4_ffield1 , 3 )
				SET armor_ani = 0
				--p4_armor
			ENDIF
		ENDIF
		IF ( p4_armor = 1 )
			SET_CAR_NUMBER_GRAPHIC ( p4_ffield1 , 8 )
			SET_CAR_BULLETPROOF ( p4_armor_v, OFF )
			SET_CAR_ROCKETPROOF ( p4_armor_v, OFF )
			SET_CAR_FLAMEPROOF ( p4_armor_v, OFF )
		ENDIF

	//}

	//{ //Nocol
		IF ( p4_nocol > 1 )
			SET_CAR_NO_COLLIDE ( p4_nocol_v )
			++nocol_ani
			IF ( nocol_ani = 3 )
				SET_CAR_NUMBER_GRAPHIC ( p4_ffield2 , 4 )
			ENDIF
			IF ( nocol_ani = 6 )
				SET_CAR_NUMBER_GRAPHIC ( p4_ffield2 , 5 )
			ENDIF
			IF ( nocol_ani = 9 )
				SET_CAR_NUMBER_GRAPHIC ( p4_ffield2 , 6 )
			ENDIF
			IF ( nocol_ani = 12 )
				SET_CAR_NUMBER_GRAPHIC ( p4_ffield2 , 7 )
				SET nocol_ani = 0
				--p4_nocol
			ENDIF
		ENDIF
		IF ( p4_nocol = 1 )
			SET_CAR_NUMBER_GRAPHIC ( p4_ffield2 , 8 )
			CLEAR_CAR_NO_COLLIDE ( p4_nocol_v )
		ENDIF
	//}

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

	IF ( p4_blackbox=1 )
		IF (IS_CHAR_PRESSING_HORN  ( p4 ) ) //Player pressing HORN
			IF (p4_trg_horn=0)
				SET p4_trg_horn=1
			ENDIF
		ENDIF
		IF (NOT(IS_CHAR_PRESSING_HORN  ( p4 ) ))
			IF (p4_trg_horn=1)
				ORDER_CHAR_TO_BACKDOOR(p4,p4_v)
				p4_blackbox_bot = CREATE_CHAR_INSIDE_CAR ( p4_v ) 0 DRIVER END
				SET p4_blackbox=0
			ENDIF
			SET p4_trg_horn=0
		ENDIF
	ENDIF

	IF((NOT(IS_CHARACTER_IN_ANY_CAR( p4 )))OR(NOT(CHECK_CAR_MODEL(p4_v  , TRAIN   ))))
		IF (( LOCATE_CHARACTER_ANY_MEANS ( p4, 56.0, 188.0, 1.0, 88.0, 40.0 )) OR ( LOCATE_CHARACTER_ANY_MEANS ( p4, 90.5 , 203.5, 1.0, 31.0, 23.0 )) )
			//CONVEYOR belt_north4 = (55.5, 186.0, 1.0) (87.0, 44.0) 0 -1
			//CONVEYOR belt_north4 = (82.0, 203.0, 1.0) (48.0, 22.0) 0 -1
			WARP_FROM_CAR_TO_POINT ( p4, 54.5, 197.5, 5.0, 0 )
		ENDIF
		IF ( LOCATE_CHARACTER_ANY_MEANS ( p4, 54.5 , 229.5, 1.0, 85.0, 13.0 ))
			//CONVEYOR belt_north4 = (54.5, 229.5, 1.0) (85.0, 13.0) 0 -1
			WARP_FROM_CAR_TO_POINT ( p4, 54.5, 197.5, 5.0, 0 )
		ENDIF
	ENDIF

	//{ // CARMODEL CHECK

	IF (IS_CHARACTER_IN_ANY_CAR  ( p4  ) )
		IF (p4_trg_ic=1)
			SET p4_trg_ic=0
			LAUNCH_MISSION(p4_cmc.mis)
		ENDIF
	ENDIF
	IF (NOT(IS_CHARACTER_IN_ANY_CAR  ( p4  ) ))
		IF (p4_trg_ic=0)

			IF (CHECK_CAR_MODEL (  p4_v  ,  BANKVAN ) )
				LAUNCH_MISSION (p4_rwl.mis) //Restore wanted level
			ENDIF
			CHANGE_CAR_LOCK  (  p4_v   , UNLOCKED )
		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(p4_doorlock=1)
			CHANGE_CAR_LOCK  (  p4_v   , LOCKED )
		ENDIF
	ENDIF
	//}

ENDIF

IF (CHECK_CHARACTER_HEALTH(p5, 0))
	STORE_CAR_CHARACTER_IS_IN ( p5  ,  p5_v  )

	IF (((IS_CHARACTER_IN_ANY_CAR(p5))AND(CHECK_WEAPON_TYPE_HIT_CAR  ( p5_v  , BY_WATER_CANNON ) )) AND (NOT (CHECK_WEAPON_TYPE_HIT_CAR  ( p5_nocon_v  , BY_WATER_CANNON ))))
		ORDER_CHAR_TO_BACKDOOR(p5,p5_v)
		SET_ENTER_CONTROL_STATUS (   p5  ,  OFF   )
		p5_nocon_v = CREATE_CAR (1.0, 1.0, 0.0) 27 90 BUG END
		STORE_CAR_CHARACTER_IS_IN ( p5  ,  p5_nocon_v  )
	ENDIF

	IF(( LOCATE_CHARACTER_ANY_MEANS ( p5, 83.5 , 106.5, 2.0, 0.8, 0.8 )) OR ( LOCATE_CHARACTER_ANY_MEANS ( p5, 33.5 , 221.0, 4.5, 0.8, 0.8 )))
		SET_CHAR_INVINCIBLE( p5 , OFF )
		IF (IS_CHAR_ON_FIRE  ( p5 ) )
			SET_CHAR_INVINCIBLE( p5 , ON )
		ENDIF
	ENDIF
	IF(LOCATE_CHARACTER_ANY_MEANS (p5, 47.5, 209.5, 4.0, 0.8, 0.8))
	SET_CHAR_INVINCIBLE( p5 , OFF )
		IF (IS_CHAR_ON_FIRE  ( p5 ) )
			SET_CHAR_INVINCIBLE( p5 , ON )
		ENDIF
	ENDIF

	IF ( HAS_CHARACTER_DIED ( p5 ))
		SET_ENTER_CONTROL_STATUS (   p5  ,  ON   )

		SET p5_tmr_swat = 150
		ALTER_WANTED_LEVEL (p5, 0)
		SET max_wantedlevel = 5

		SET p5_expunch = 0
		SET p5_blackbox = 0

		//SUNDAY DRIVER
		IF (IS_CHARACTER_IN_ANY_CAR  ( p5  ))
			SET msg_sunday=3
		ENDIF

		SET temp = ( rand / 3 )
		SET temp = ( temp * 3 )
		SET rand= ( rand - temp )
	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 > max_wantedlevel )
		SET p5_wantedlevel = (max_wantedlevel + 0)
		ALTER_WANTED_LEVEL (p5, 5) //should be ALTER_WANTED_LEVEL (p5, max_wantedlevel) but works for this map that way too
	ENDIF
	IF( p5_wantedlevel > wantedlevel )
		SET wantedlevel = (p5_wantedlevel + 0)
	ENDIF

	//}

	//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

	//{ //Powerups
		IF ((LOCATE_CHARACTER_BY_CAR ( p5 , 68.0, 199.5, 7.0 , 0.8 , 0.8 ))AND(col_armor = 0))
			SET tmr_armor = (res_armor + 0)
			SET col_armor = 1
			IF (p5_armor > 1)
				SET_CAR_NUMBER_GRAPHIC ( p5_ffield1 , 8 )
				SET_CAR_BULLETPROOF ( p5_armor_v, OFF )
				SET_CAR_ROCKETPROOF ( p5_armor_v, OFF )
				SET_CAR_FLAMEPROOF ( p5_armor_v, OFF )
			ENDIF
			SET armor_ani = -3
			SET p5_armor = 200
			STORE_CAR_CHARACTER_IS_IN ( p5  ,  p5_armor_v  )
			p5_ffield1 = CREATE_CAR (1.0, 1.0, 0.0) 27 90 AMDB4 END
			PUT_CAR_ON_TRAILER ( p5_ffield1 , p5_armor_v )
			DELETE_ITEM ( obj_armor )
			snd_item = CREATE_SOUND (68.0, 199.5, 7.0) GARAGE_CLOSE PLAY_INSTANT END
			DELETE_ITEM ( obj_armor )
			ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p5 , 38.5, 222.5, 2.0 , 0.8 , 0.8 ))AND(col_nocol = 0))
			SET tmr_nocol = (res_nocol + 0)
			SET col_nocol = 1
			IF (p5_nocol > 1)
				SET_CAR_NUMBER_GRAPHIC ( p5_ffield2 , 8 )
				CLEAR_CAR_NO_COLLIDE ( p5_nocol_v )
			ENDIF
			SET nocol_ani = -3
			SET p5_nocol = 9999
			STORE_CAR_CHARACTER_IS_IN ( p5  ,  p5_nocol_v  )
			p5_ffield2 = CREATE_CAR (1.0, 1.0, 0.0) 27 90 AMDB4 END
			PUT_CAR_ON_TRAILER ( p5_ffield2 , p5_nocol_v )
			DELETE_ITEM ( obj_nocol )
			CHANGE_GANG_CHAR_RESPECT  ( nocol  ,  p5 , -1 )
			//obj_nocol = CREATE_OBJ (38.5, 222.5, 2.0) 0 BLASTER END
			//DELETE_ITEM ( obj_nocol )
		ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p5 , 81.5, 211.5, 2.0 , 0.8 , 0.8 ))AND(col_repair = 0))
			SET p5_tmp_wantedlevel=(p5_wantedlevel+0)
			ADD_SCORE (p5,5000)
			LAUNCH_MISSION(repair.mis)
			LAUNCH_MISSION(p5_rwl.mis)
		ENDIF

		IF ((LOCATE_CHARACTER_ANY_MEANS ( p5 , 45.0, 224.0, 5.0 , 0.8 , 0.8 ))AND(col_abribe = 0))
			SET tmr_abribe = (res_abribe + 0)
			SET col_abribe = 1
			SET p5_wantedlevel = 6
			SET p5_tmp_wantedlevel=6
			SET max_wantedlevel = 6
			ALTER_WANTED_LEVEL (p5, 6)
			DELETE_ITEM ( obj_abribe )
			snd_item = CREATE_SOUND (45.0, 224.0, 5.0) SCREAM PLAY_INSTANT END
		ENDIF

		IF ((LOCATE_CHARACTER_ANY_MEANS ( p5 , 46.5, 209.5, 4.0 , 0.8 , 0.8 ))AND(col_expunch = 0))
			SET tmr_expunch = (res_expunch + 0)
			SET col_expunch = 1
			SET p5_expunch = 1
			DELETE_ITEM ( obj_expunch )
			obj_nocol = CREATE_OBJ (46.5, 209.5, 4.0) 0 RUBBISH END
			DELETE_ITEM ( obj_nocol )
		ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p5 , 58.5, 232.0, 3.0 , 0.8 , 0.8 ))AND(col_carflamer = 0))
		IF ((CHECK_CAR_MODEL (  p5_v  ,  FIRETRUK )) OR (CHECK_CAR_MODEL (  p5_v  ,  GUNJEEP )))
			SET tmr_carflamer = (res_carflamer + 0)
			SET col_carflamer = 1
			GIVE_WEAPON (p5_v, CAR_FLAMETHROWER, 99)
			GIVE_WEAPON (p5_v, CAR_FLAMETHROWER, 99)
			DELETE_ITEM ( obj_carflamer )
			obj_carflamer = CREATE_OBJ (58.5, 232.0, 3.0) 0 BONUS_TOKEN END
			DELETE_ITEM ( obj_carflamer )
		ENDIF
		ENDIF

		IF (((LOCATE_CHARACTER_BY_CAR ( p5 , 85.1, 200.9, 2.0 , 0.8 , 0.8 ))AND(col_tankgun = 0)) AND (CHECK_CAR_MODEL (  p5_v  ,  TANK ) ))
			SET tmr_tankgun = (res_tankgun + 0)
			SET col_tankgun = 1
			GIVE_WEAPON (p5_v, TANK_GUN, 99)
			GIVE_WEAPON (p5_v, TANK_GUN, 99)
			DELETE_ITEM ( obj_tankgun )
			obj_tankgun = CREATE_OBJ (85.1, 200.9) 320 BONUS_TOKEN END
			DELETE_ITEM ( obj_tankgun )
		ENDIF

		IF (((LOCATE_CHARACTER_BY_CAR ( p5 , 60.5, 232.0, 3.0 , 0.8 , 0.8 ))AND(col_jeepgun = 0)) AND (CHECK_CAR_MODEL (  p5_v  ,  GUNJEEP )) )
			SET tmr_jeepgun = (res_jeepgun + 0)
			SET col_jeepgun = 1
			GIVE_WEAPON (p5_v, JEEP_GUN, 99)
			GIVE_WEAPON (p5_v, JEEP_GUN, 99)
			DELETE_ITEM ( obj_jeepgun )
			obj_jeepgun = CREATE_OBJ (60.5, 232.0) 0 BONUS_TOKEN END
			DELETE_ITEM ( obj_jeepgun )
		ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p5 , 99.0, 207.0, 6.0 , 0.8 , 0.8 ))AND(col_blackbox = 0))
			SET tmr_blackbox = (res_blackbox + 0)
			SET col_blackbox = 1
			SET p5_blackbox = 1
			DELETE_ITEM ( obj_blackbox )
			//obj_blackbox = CREATE_OBJ (46.5, 209.5, 4.0) 0 RUBBISH END
			//DELETE_ITEM ( obj_blackbox )
		ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p5 , 29.5, 240.0, 2.0 , 0.8 , 0.8 ))AND(col_carinvis = 0))
			SET tmr_carinvis = (res_carinvis + 0)
			SET col_carinvis = 1
			SET_CAR_NUMBER_GRAPHIC ( p5_v , 8 )
			DELETE_ITEM ( obj_carinvis )
		ENDIF
		IF ((LOCATE_CHARACTER_ON_FOOT ( p5 , 29.5, 240.0, 2.0 , 0.8 , 0.8 ))AND(col_carinvis = 0))
			SET tmr_carinvis = (res_carinvis + 0)
			SET col_carinvis = 1
			DELETE_ITEM ( obj_carinvis )
		ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p5 , 75.0, 193.5, 3.0 , 0.8 , 0.8 ))AND(col_doorlock = 0))
			SET tmr_doorlock = (res_doorlock + 0)
			SET col_doorlock = 1
			SET p5_doorlock = 1
			DELETE_ITEM ( obj_doorlock )
			obj_doorlock = CREATE_OBJ (75.0, 193.5, 3.0) 0 BLASTER END
			DELETE_ITEM ( obj_doorlock )
		ENDIF

	//}

	//{ //Armor
		IF ( p5_armor > 1 )
			SET_CAR_BULLETPROOF ( p5_armor_v, ON )
			SET_CAR_ROCKETPROOF ( p5_armor_v, ON )
			SET_CAR_FLAMEPROOF ( p5_armor_v, ON )
			++armor_ani
			IF ( armor_ani = 3 )
				SET_CAR_NUMBER_GRAPHIC ( p5_ffield1 , 0 )
			ENDIF
			IF ( armor_ani = 6 )
				SET_CAR_NUMBER_GRAPHIC ( p5_ffield1 , 1 )
			ENDIF
			IF ( armor_ani = 9 )
				SET_CAR_NUMBER_GRAPHIC ( p5_ffield1 , 2 )
			ENDIF
			IF ( armor_ani = 12 )
				SET_CAR_NUMBER_GRAPHIC ( p5_ffield1 , 3 )
				SET armor_ani = 0
				--p5_armor
			ENDIF
		ENDIF
		IF ( p5_armor = 1 )
			SET_CAR_NUMBER_GRAPHIC ( p5_ffield1 , 8 )
			SET_CAR_BULLETPROOF ( p5_armor_v, OFF )
			SET_CAR_ROCKETPROOF ( p5_armor_v, OFF )
			SET_CAR_FLAMEPROOF ( p5_armor_v, OFF )
		ENDIF

	//}

	//{ //Nocol
		IF ( p5_nocol > 1 )
			SET_CAR_NO_COLLIDE ( p5_nocol_v )
			++nocol_ani
			IF ( nocol_ani = 3 )
				SET_CAR_NUMBER_GRAPHIC ( p5_ffield2 , 4 )
			ENDIF
			IF ( nocol_ani = 6 )
				SET_CAR_NUMBER_GRAPHIC ( p5_ffield2 , 5 )
			ENDIF
			IF ( nocol_ani = 9 )
				SET_CAR_NUMBER_GRAPHIC ( p5_ffield2 , 6 )
			ENDIF
			IF ( nocol_ani = 12 )
				SET_CAR_NUMBER_GRAPHIC ( p5_ffield2 , 7 )
				SET nocol_ani = 0
				--p5_nocol
			ENDIF
		ENDIF
		IF ( p5_nocol = 1 )
			SET_CAR_NUMBER_GRAPHIC ( p5_ffield2 , 8 )
			CLEAR_CAR_NO_COLLIDE ( p5_nocol_v )
		ENDIF
	//}

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

	IF ( p5_blackbox=1 )
		IF (IS_CHAR_PRESSING_HORN  ( p5 ) ) //Player pressing HORN
			IF (p5_trg_horn=0)
				SET p5_trg_horn=1
			ENDIF
		ENDIF
		IF (NOT(IS_CHAR_PRESSING_HORN  ( p5 ) ))
			IF (p5_trg_horn=1)
				ORDER_CHAR_TO_BACKDOOR(p5,p5_v)
				p5_blackbox_bot = CREATE_CHAR_INSIDE_CAR ( p5_v ) 0 DRIVER END
				SET p5_blackbox=0
			ENDIF
			SET p5_trg_horn=0
		ENDIF
	ENDIF

	IF((NOT(IS_CHARACTER_IN_ANY_CAR( p5 )))OR(NOT(CHECK_CAR_MODEL(p5_v  , TRAIN   ))))
		IF (( LOCATE_CHARACTER_ANY_MEANS ( p5, 56.0, 188.0, 1.0, 88.0, 40.0 )) OR ( LOCATE_CHARACTER_ANY_MEANS ( p5, 90.5 , 203.5, 1.0, 31.0, 23.0 )) )
			//CONVEYOR belt_north4 = (55.5, 186.0, 1.0) (87.0, 44.0) 0 -1
			//CONVEYOR belt_north4 = (82.0, 203.0, 1.0) (48.0, 22.0) 0 -1
			WARP_FROM_CAR_TO_POINT ( p5, 54.5, 197.5, 5.0, 0 )
		ENDIF
		IF ( LOCATE_CHARACTER_ANY_MEANS ( p5, 54.5 , 229.5, 1.0, 85.0, 13.0 ))
			//CONVEYOR belt_north4 = (54.5, 229.5, 1.0) (85.0, 13.0) 0 -1
			WARP_FROM_CAR_TO_POINT ( p5, 54.5, 197.5, 5.0, 0 )
		ENDIF
	ENDIF

	//{ // CARMODEL CHECK

	IF (IS_CHARACTER_IN_ANY_CAR  ( p5  ) )
		IF (p5_trg_ic=1)
			SET p5_trg_ic=0
			LAUNCH_MISSION(p5_cmc.mis)
		ENDIF
	ENDIF
	IF (NOT(IS_CHARACTER_IN_ANY_CAR  ( p5  ) ))
		IF (p5_trg_ic=0)

			IF (CHECK_CAR_MODEL (  p5_v  ,  BANKVAN ) )
				LAUNCH_MISSION (p5_rwl.mis) //Restore wanted level
			ENDIF
			CHANGE_CAR_LOCK  (  p5_v   , UNLOCKED )
		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(p5_doorlock=1)
			CHANGE_CAR_LOCK  (  p5_v   , LOCKED )
		ENDIF
	ENDIF
	//}

ENDIF

IF (CHECK_CHARACTER_HEALTH(p6, 0))
	STORE_CAR_CHARACTER_IS_IN ( p6  ,  p6_v  )

	IF (((IS_CHARACTER_IN_ANY_CAR(p6))AND(CHECK_WEAPON_TYPE_HIT_CAR  ( p6_v  , BY_WATER_CANNON ) )) AND (NOT (CHECK_WEAPON_TYPE_HIT_CAR  ( p6_nocon_v  , BY_WATER_CANNON ))))
		ORDER_CHAR_TO_BACKDOOR(p6,p6_v)
		SET_ENTER_CONTROL_STATUS (   p6  ,  OFF   )
		p6_nocon_v = CREATE_CAR (1.0, 1.0, 0.0) 27 90 BUG END
		STORE_CAR_CHARACTER_IS_IN ( p6  ,  p6_nocon_v  )
	ENDIF

	IF(( LOCATE_CHARACTER_ANY_MEANS ( p6, 83.5 , 106.5, 2.0, 0.8, 0.8 )) OR ( LOCATE_CHARACTER_ANY_MEANS ( p6, 33.5 , 221.0, 4.5, 0.8, 0.8 )))
		SET_CHAR_INVINCIBLE( p6 , OFF )
		IF (IS_CHAR_ON_FIRE  ( p6 ) )
			SET_CHAR_INVINCIBLE( p6 , ON )
		ENDIF
	ENDIF
	IF(LOCATE_CHARACTER_ANY_MEANS (p6, 47.5, 209.5, 4.0, 0.8, 0.8))
	SET_CHAR_INVINCIBLE( p6 , OFF )
		IF (IS_CHAR_ON_FIRE  ( p6 ) )
			SET_CHAR_INVINCIBLE( p6 , ON )
		ENDIF
	ENDIF

	IF ( HAS_CHARACTER_DIED ( p6 ))
		SET_ENTER_CONTROL_STATUS (   p6  ,  ON   )

		SET p6_tmr_swat = 150
		ALTER_WANTED_LEVEL (p6, 0)
		SET max_wantedlevel = 5

		SET p6_expunch = 0
		SET p6_blackbox = 0

		//SUNDAY DRIVER
		IF (IS_CHARACTER_IN_ANY_CAR  ( p6  ))
			SET msg_sunday=3
		ENDIF

		SET temp = ( rand / 3 )
		SET temp = ( temp * 3 )
		SET rand= ( rand - temp )
	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 > max_wantedlevel )
		SET p6_wantedlevel = (max_wantedlevel + 0)
		ALTER_WANTED_LEVEL (p6, 5) //should be ALTER_WANTED_LEVEL (p6, max_wantedlevel) but works for this map that way too
	ENDIF
	IF( p6_wantedlevel > wantedlevel )
		SET wantedlevel = (p6_wantedlevel + 0)
	ENDIF

	//}

	//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

	//{ //Powerups
		IF ((LOCATE_CHARACTER_BY_CAR ( p6 , 68.0, 199.5, 7.0 , 0.8 , 0.8 ))AND(col_armor = 0))
			SET tmr_armor = (res_armor + 0)
			SET col_armor = 1
			IF (p6_armor > 1)
				SET_CAR_NUMBER_GRAPHIC ( p6_ffield1 , 8 )
				SET_CAR_BULLETPROOF ( p6_armor_v, OFF )
				SET_CAR_ROCKETPROOF ( p6_armor_v, OFF )
				SET_CAR_FLAMEPROOF ( p6_armor_v, OFF )
			ENDIF
			SET armor_ani = -3
			SET p6_armor = 200
			STORE_CAR_CHARACTER_IS_IN ( p6  ,  p6_armor_v  )
			p6_ffield1 = CREATE_CAR (1.0, 1.0, 0.0) 27 90 AMDB4 END
			PUT_CAR_ON_TRAILER ( p6_ffield1 , p6_armor_v )
			DELETE_ITEM ( obj_armor )
			snd_item = CREATE_SOUND (68.0, 199.5, 7.0) GARAGE_CLOSE PLAY_INSTANT END
			DELETE_ITEM ( obj_armor )
			ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p6 , 38.5, 222.5, 2.0 , 0.8 , 0.8 ))AND(col_nocol = 0))
			SET tmr_nocol = (res_nocol + 0)
			SET col_nocol = 1
			IF (p6_nocol > 1)
				SET_CAR_NUMBER_GRAPHIC ( p6_ffield2 , 8 )
				CLEAR_CAR_NO_COLLIDE ( p6_nocol_v )
			ENDIF
			SET nocol_ani = -3
			SET p6_nocol = 9999
			STORE_CAR_CHARACTER_IS_IN ( p6  ,  p6_nocol_v  )
			p6_ffield2 = CREATE_CAR (1.0, 1.0, 0.0) 27 90 AMDB4 END
			PUT_CAR_ON_TRAILER ( p6_ffield2 , p6_nocol_v )
			DELETE_ITEM ( obj_nocol )
			CHANGE_GANG_CHAR_RESPECT  ( nocol  ,  p6 , -1 )
			//obj_nocol = CREATE_OBJ (38.5, 222.5, 2.0) 0 BLASTER END
			//DELETE_ITEM ( obj_nocol )
		ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p6 , 81.5, 211.5, 2.0 , 0.8 , 0.8 ))AND(col_repair = 0))
			SET p6_tmp_wantedlevel=(p6_wantedlevel+0)
			ADD_SCORE (p6,5000)
			LAUNCH_MISSION(repair.mis)
			LAUNCH_MISSION(p6_rwl.mis)
		ENDIF

		IF ((LOCATE_CHARACTER_ANY_MEANS ( p6 , 45.0, 224.0, 5.0 , 0.8 , 0.8 ))AND(col_abribe = 0))
			SET tmr_abribe = (res_abribe + 0)
			SET col_abribe = 1
			SET p6_wantedlevel = 6
			SET p6_tmp_wantedlevel=6
			SET max_wantedlevel = 6
			ALTER_WANTED_LEVEL (p6, 6)
			DELETE_ITEM ( obj_abribe )
			snd_item = CREATE_SOUND (45.0, 224.0, 5.0) SCREAM PLAY_INSTANT END
		ENDIF

		IF ((LOCATE_CHARACTER_ANY_MEANS ( p6 , 46.5, 209.5, 4.0 , 0.8 , 0.8 ))AND(col_expunch = 0))
			SET tmr_expunch = (res_expunch + 0)
			SET col_expunch = 1
			SET p6_expunch = 1
			DELETE_ITEM ( obj_expunch )
			obj_nocol = CREATE_OBJ (46.5, 209.5, 4.0) 0 RUBBISH END
			DELETE_ITEM ( obj_nocol )
		ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p6 , 58.5, 232.0, 3.0 , 0.8 , 0.8 ))AND(col_carflamer = 0))
		IF ((CHECK_CAR_MODEL (  p6_v  ,  FIRETRUK )) OR (CHECK_CAR_MODEL (  p6_v  ,  GUNJEEP )))
			SET tmr_carflamer = (res_carflamer + 0)
			SET col_carflamer = 1
			GIVE_WEAPON (p6_v, CAR_FLAMETHROWER, 99)
			GIVE_WEAPON (p6_v, CAR_FLAMETHROWER, 99)
			DELETE_ITEM ( obj_carflamer )
			obj_carflamer = CREATE_OBJ (58.5, 232.0, 3.0) 0 BONUS_TOKEN END
			DELETE_ITEM ( obj_carflamer )
		ENDIF
		ENDIF

		IF (((LOCATE_CHARACTER_BY_CAR ( p6 , 85.1, 200.9, 2.0 , 0.8 , 0.8 ))AND(col_tankgun = 0)) AND (CHECK_CAR_MODEL (  p6_v  ,  TANK ) ))
			SET tmr_tankgun = (res_tankgun + 0)
			SET col_tankgun = 1
			GIVE_WEAPON (p6_v, TANK_GUN, 99)
			GIVE_WEAPON (p6_v, TANK_GUN, 99)
			DELETE_ITEM ( obj_tankgun )
			obj_tankgun = CREATE_OBJ (85.1, 200.9) 320 BONUS_TOKEN END
			DELETE_ITEM ( obj_tankgun )
		ENDIF

		IF (((LOCATE_CHARACTER_BY_CAR ( p6 , 60.5, 232.0, 3.0 , 0.8 , 0.8 ))AND(col_jeepgun = 0)) AND (CHECK_CAR_MODEL (  p6_v  ,  GUNJEEP )) )
			SET tmr_jeepgun = (res_jeepgun + 0)
			SET col_jeepgun = 1
			GIVE_WEAPON (p6_v, JEEP_GUN, 99)
			GIVE_WEAPON (p6_v, JEEP_GUN, 99)
			DELETE_ITEM ( obj_jeepgun )
			obj_jeepgun = CREATE_OBJ (60.5, 232.0) 0 BONUS_TOKEN END
			DELETE_ITEM ( obj_jeepgun )
		ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p6 , 99.0, 207.0, 6.0 , 0.8 , 0.8 ))AND(col_blackbox = 0))
			SET tmr_blackbox = (res_blackbox + 0)
			SET col_blackbox = 1
			SET p6_blackbox = 1
			DELETE_ITEM ( obj_blackbox )
			//obj_blackbox = CREATE_OBJ (46.5, 209.5, 4.0) 0 RUBBISH END
			//DELETE_ITEM ( obj_blackbox )
		ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p6 , 29.5, 240.0, 2.0 , 0.8 , 0.8 ))AND(col_carinvis = 0))
			SET tmr_carinvis = (res_carinvis + 0)
			SET col_carinvis = 1
			SET_CAR_NUMBER_GRAPHIC ( p6_v , 8 )
			DELETE_ITEM ( obj_carinvis )
		ENDIF
		IF ((LOCATE_CHARACTER_ON_FOOT ( p6 , 29.5, 240.0, 2.0 , 0.8 , 0.8 ))AND(col_carinvis = 0))
			SET tmr_carinvis = (res_carinvis + 0)
			SET col_carinvis = 1
			DELETE_ITEM ( obj_carinvis )
		ENDIF

		IF ((LOCATE_CHARACTER_BY_CAR ( p6 , 75.0, 193.5, 3.0 , 0.8 , 0.8 ))AND(col_doorlock = 0))
			SET tmr_doorlock = (res_doorlock + 0)
			SET col_doorlock = 1
			SET p6_doorlock = 1
			DELETE_ITEM ( obj_doorlock )
			obj_doorlock = CREATE_OBJ (75.0, 193.5, 3.0) 0 BLASTER END
			DELETE_ITEM ( obj_doorlock )
		ENDIF

	//}

	//{ //Armor
		IF ( p6_armor > 1 )
			SET_CAR_BULLETPROOF ( p6_armor_v, ON )
			SET_CAR_ROCKETPROOF ( p6_armor_v, ON )
			SET_CAR_FLAMEPROOF ( p6_armor_v, ON )
			++armor_ani
			IF ( armor_ani = 3 )
				SET_CAR_NUMBER_GRAPHIC ( p6_ffield1 , 0 )
			ENDIF
			IF ( armor_ani = 6 )
				SET_CAR_NUMBER_GRAPHIC ( p6_ffield1 , 1 )
			ENDIF
			IF ( armor_ani = 9 )
				SET_CAR_NUMBER_GRAPHIC ( p6_ffield1 , 2 )
			ENDIF
			IF ( armor_ani = 12 )
				SET_CAR_NUMBER_GRAPHIC ( p6_ffield1 , 3 )
				SET armor_ani = 0
				--p6_armor
			ENDIF
		ENDIF
		IF ( p6_armor = 1 )
			SET_CAR_NUMBER_GRAPHIC ( p6_ffield1 , 8 )
			SET_CAR_BULLETPROOF ( p6_armor_v, OFF )
			SET_CAR_ROCKETPROOF ( p6_armor_v, OFF )
			SET_CAR_FLAMEPROOF ( p6_armor_v, OFF )
		ENDIF

	//}

	//{ //Nocol
		IF ( p6_nocol > 1 )
			SET_CAR_NO_COLLIDE ( p6_nocol_v )
			++nocol_ani
			IF ( nocol_ani = 3 )
				SET_CAR_NUMBER_GRAPHIC ( p6_ffield2 , 4 )
			ENDIF
			IF ( nocol_ani = 6 )
				SET_CAR_NUMBER_GRAPHIC ( p6_ffield2 , 5 )
			ENDIF
			IF ( nocol_ani = 9 )
				SET_CAR_NUMBER_GRAPHIC ( p6_ffield2 , 6 )
			ENDIF
			IF ( nocol_ani = 12 )
				SET_CAR_NUMBER_GRAPHIC ( p6_ffield2 , 7 )
				SET nocol_ani = 0
				--p6_nocol
			ENDIF
		ENDIF
		IF ( p6_nocol = 1 )
			SET_CAR_NUMBER_GRAPHIC ( p6_ffield2 , 8 )
			CLEAR_CAR_NO_COLLIDE ( p6_nocol_v )
		ENDIF
	//}

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

	IF ( p6_blackbox=1 )
		IF (IS_CHAR_PRESSING_HORN  ( p6 ) ) //Player pressing HORN
			IF (p6_trg_horn=0)
				SET p6_trg_horn=1
			ENDIF
		ENDIF
		IF (NOT(IS_CHAR_PRESSING_HORN  ( p6 ) ))
			IF (p6_trg_horn=1)
				ORDER_CHAR_TO_BACKDOOR(p6,p6_v)
				p6_blackbox_bot = CREATE_CHAR_INSIDE_CAR ( p6_v ) 0 DRIVER END
				SET p6_blackbox=0
			ENDIF
			SET p6_trg_horn=0
		ENDIF
	ENDIF

	IF((NOT(IS_CHARACTER_IN_ANY_CAR( p6 )))OR(NOT(CHECK_CAR_MODEL(p6_v  , TRAIN   ))))
		IF (( LOCATE_CHARACTER_ANY_MEANS ( p6, 56.0, 188.0, 1.0, 88.0, 40.0 )) OR ( LOCATE_CHARACTER_ANY_MEANS ( p6, 90.5 , 203.5, 1.0, 31.0, 23.0 )) )
			//CONVEYOR belt_north4 = (55.5, 186.0, 1.0) (87.0, 44.0) 0 -1
			//CONVEYOR belt_north4 = (82.0, 203.0, 1.0) (48.0, 22.0) 0 -1
			WARP_FROM_CAR_TO_POINT ( p6, 54.5, 197.5, 5.0, 0 )
		ENDIF
		IF ( LOCATE_CHARACTER_ANY_MEANS ( p6, 54.5 , 229.5, 1.0, 85.0, 13.0 ))
			//CONVEYOR belt_north4 = (54.5, 229.5, 1.0) (85.0, 13.0) 0 -1
			WARP_FROM_CAR_TO_POINT ( p6, 54.5, 197.5, 5.0, 0 )
		ENDIF
	ENDIF

	//{ // CARMODEL CHECK

	IF (IS_CHARACTER_IN_ANY_CAR  ( p6  ) )
		IF (p6_trg_ic=1)
			SET p6_trg_ic=0
			LAUNCH_MISSION(p6_cmc.mis)
		ENDIF
	ENDIF
	IF (NOT(IS_CHARACTER_IN_ANY_CAR  ( p6  ) ))
		IF (p6_trg_ic=0)

			IF (CHECK_CAR_MODEL (  p6_v  ,  BANKVAN ) )
				LAUNCH_MISSION (p6_rwl.mis) //Restore wanted level
			ENDIF
			CHANGE_CAR_LOCK  (  p6_v   , UNLOCKED )
		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(p6_doorlock=1)
			CHANGE_CAR_LOCK  (  p6_v   , LOCKED )
		ENDIF
	ENDIF
	//}

ENDIF

//}

//{ // Powerups

IF (tmr_armor>1)
	SET tmr_armor = ( tmr_armor - 1 )
ENDIF
IF (tmr_armor=1)
	SET col_armor = 0
	SET tmr_armor = 0
	obj_armor = CREATE_OBJ (68.0, 199.5, 7.5) 0 COLLECT_28 END
ENDIF

IF (tmr_nocol>1)
	SET tmr_nocol = ( tmr_nocol - 1 )
ENDIF
IF (tmr_nocol=1)
	SET col_nocol = 0
	SET tmr_nocol = 0
	obj_nocol = CREATE_OBJ (38.5, 222.5, 2.5) 0 COLLECT_38 END
ENDIF

IF (tmr_repair>1)
	SET tmr_repair = ( tmr_repair - 1 )
ENDIF
IF (tmr_repair=1)
	SET col_repair = 0
	SET tmr_repair = 0
	obj_repair = CREATE_OBJ (81.5, 211.5, 2.0) 0 TYRE END
ENDIF

IF (tmr_abribe>1)
	SET tmr_abribe = ( tmr_abribe - 1 )
ENDIF
IF (tmr_abribe=1)
	SET col_abribe = 0
	SET tmr_abribe = 0
	obj_abribe = CREATE_OBJ (45.0, 224.0) 0 KILL_FRENZY END
ENDIF

IF (tmr_expunch>1)
	SET tmr_expunch = ( tmr_expunch - 1 )
ENDIF
IF (tmr_expunch=1)
	SET col_expunch = 0
	SET tmr_expunch = 0
	obj_expunch = CREATE_OBJ (46.5, 209.5, 4.0) 0 BRIEFCASE END
ENDIF

IF (tmr_carflamer>1)
	SET tmr_carflamer = ( tmr_carflamer - 1 )
ENDIF
IF (tmr_carflamer=1)
	SET col_carflamer = 0
	SET tmr_carflamer = 0
	obj_carflamer = CREATE_OBJ (58.5, 232.0) 270 FIREJET END
ENDIF

IF (tmr_tankgun>1)
	SET tmr_tankgun = ( tmr_tankgun - 1 )
ENDIF
IF (tmr_tankgun=1)
	SET col_tankgun = 0
	SET tmr_tankgun = 0
	obj_tankgun = CREATE_OBJ (85.1, 200.9) 320 TANKTOP END
ENDIF

IF (tmr_jeepgun>1)
	SET tmr_jeepgun = ( tmr_jeepgun - 1 )
ENDIF
IF (tmr_jeepgun=1)
	SET col_jeepgun = 0
	SET tmr_jeepgun = 0
	obj_jeepgun = CREATE_OBJ (60.5, 232.0) 0 TRAFFIC_LIGHT END
ENDIF

IF (tmr_blackbox>1)
	SET tmr_blackbox = ( tmr_blackbox - 1 )
ENDIF
IF (tmr_blackbox=1)
	SET col_blackbox = 0
	SET tmr_blackbox = 0
	obj_blackbox = CREATE_OBJ (99.0, 207.0, 6.5) 0 COLLECT_29 END
ENDIF

IF (tmr_carinvis>1)
	SET tmr_carinvis = ( tmr_carinvis - 1 )
ENDIF
IF (tmr_carinvis=1)
	SET col_carinvis = 0
	SET tmr_carinvis = 0
	obj_carinvis = CREATE_OBJ (29.5, 240.0) 0 COLLECT_39 END
ENDIF

IF (tmr_doorlock>1)
	SET tmr_doorlock = ( tmr_doorlock - 1 )
ENDIF
IF (tmr_doorlock=1)
	SET col_doorlock = 0
	SET tmr_doorlock = 0
	obj_doorlock = CREATE_OBJ (75.0, 193.5, 3.5) 0 COLLECT_32 END
ENDIF

//}

//{ // cleanup
IF (mineoil_tmr > 0)
	SET mineoil_tmr = ( mineoil_tmr - 1)
ENDIF
IF (mineoil_tmr = 0)
	SET mineoil_tmr = 50
	del_mine = CREATE_OBJ (1.0, 1.0, 1.0) 0 MINE END
	del_oil = CREATE_OBJ (1.0, 1.0, 1.0) 0 OIL END
ENDIF
//}

//{ //SUNDAY DRIVER Message
	IF (msg_sunday>1)
		SET msg_sunday = ( msg_sunday - 1 )
	ENDIF
	IF (msg_sunday=1)
		DISPLAY_MESSAGE (5061) //DAMN SUNDAY DRIVERS!
		SET msg_sunday = 0
	ENDIF
	//}
ENDWHILE

LEVELEND
