// Water Slow Race http://gtamp.com/forum/viewtopic.php?f=5&t=283

PLAYER_PED p1 = (221.1, 251.5, 255.0) 10 90
PLAYER_PED p2 = (224.1, 251.5, 255.0) 9 90
PLAYER_PED p3 = (226.1, 251.5, 255.0) 7 90
PLAYER_PED p4 = (229.1, 251.5, 255.0) 11 90
PLAYER_PED p5 = (219.1, 251.5, 255.0) 13 90
PLAYER_PED p6 = (216.1, 251.5, 255.0) 8 90

DECLARE_POLICELEVEL (6)

PARKED_CAR_DATA trailer = (152.6, 21.5) 19 90 TRUKTRNS

car_data car07
car_data car08
car_data car09
car_data car10
car_data car11
car_data car12
car_data car13
car_data car14
car_data car15
car_data car16
car_data car17
car_data car18
car_data car19
car_data car20
car_data car21
car_data car22
car_data car23
car_data car24
car_data car25
car_data car26
car_data car27
car_data car28
car_data car29
car_data car30
car_data car31
car_data car32
car_data car33
car_data car34
car_data car35
car_data car36
car_data tank01
car_data tank02
car_data tank03
car_data tank04
car_data tank05
car_data tank06
car_data finaltank

GENERATOR ef01 = (177.5, 119.7, 3.0) 0 COLLECT_37 0 0 1
GENERATOR ef02 = (178.5, 119.7, 3.0) 0 COLLECT_37 0 0 1
GENERATOR kok1 = (186.5, 97.5, 3.0) 0 COLLECT_04 0 0 10
GENERATOR kok2 = (169.5, 97.5, 3.0) 0 COLLECT_04 0 0 10
GENERATOR kok3 = (104.5, 231.5, 7.0) 0 COLLECT_04 0 0 1

GENERATOR zooka1 = (176.5, 116.5, 3.0) 0 COLLECT_02 500 500 3
GENERATOR zooka2 = (179.5, 116.5, 3.0) 0 COLLECT_02 500 500 3
GENERATOR zooka3 = (176.5, 119.7, 3.0) 0 COLLECT_02 500 500 3
GENERATOR zooka4 = (179.5, 119.7, 3.0) 0 COLLECT_02 500 500 3
GENERATOR Bomb1 = (75.5, 23.5, 5.0) 0 COLLECT_15 0 0 10
GENERATOR Bomb2 = (75.5, 17.5, 5.0) 0 COLLECT_15 0 0 10

GENERATOR mine1 = (52.5, 231.6) 0 MINE 1000 1000 1
GENERATOR mine2 = (64.4, 231.2) 0 MINE 1000 1000 1
GENERATOR mine3 = (62.7, 232.2) 0 MINE 1000 1000 1
GENERATOR mine4 = (78.6, 232.2) 0 MINE 1000 1000 1
GENERATOR mine5 = (66.8, 231.8) 0 MINE 1000 1000 1
GENERATOR mine6 = (66.1, 230.5) 0 MINE 1000 1000 1
GENERATOR mine7 = (66.0, 232.5) 0 MINE 1000 1000 1
GENERATOR mine8 = (74.5, 230.5) 0 MINE 1000 1000 1
GENERATOR mine9 = (72.4, 232.0) 0 MINE 1000 1000 1
GENERATOR mine10 = (71.1, 230.5) 0 MINE 1000 1000 1
GENERATOR mine11 = (68.9, 231.5) 0 MINE 1000 1000 1
GENERATOR mine12 = (79.2, 231.1) 0 MINE 1000 1000 1
GENERATOR mine13 = (77.6, 230.9) 0 MINE 1000 1000 1
GENERATOR mine14 = (78.5, 231.4) 0 MINE 1000 1000 1
GENERATOR mine15 = (63.0, 230.5) 0 MINE 1000 1000 1
GENERATOR mine16 = (62.5, 232.8) 0 MINE 1000 1000 1
GENERATOR mine17 = (58.0, 231.9) 0 MINE 1000 1000 1
GENERATOR mine18 = (58.2, 231.3) 0 MINE 1000 1000 1
GENERATOR mine19 = (61.1, 231.4) 0 MINE 1000 1000 1
GENERATOR mine20 = (68.9, 232.6) 0 MINE 1000 1000 1
GENERATOR mine21 = (78.2, 232.7) 0 MINE 1000 1000 1
GENERATOR mine22 = (79.6, 230.5) 0 MINE 1000 1000 1
GENERATOR mine23 = (74.1, 232.4) 0 MINE 1000 1000 1
GENERATOR mine24 = (74.1, 231.9) 0 MINE 1000 1000 1
GENERATOR mine25 = (74.5, 231.3) 0 MINE 1000 1000 1
GENERATOR mine26 = (72.0, 232.6) 0 MINE 1000 1000 1
GENERATOR mine27 = (71.9, 231.3) 0 MINE 1000 1000 1
GENERATOR mine28 = (69.1, 230.5) 0 MINE 1000 1000 1
GENERATOR mine29 = (68.4, 230.8) 0 MINE 1000 1000 1
GENERATOR mine30 = (67.9, 230.9) 0 MINE 1000 1000 1
GENERATOR mine31 = (68.4, 232.3) 0 MINE 1000 1000 1
GENERATOR mine32 = (58.0, 230.6) 0 MINE 1000 1000 1
GENERATOR mine33 = (57.7, 232.4) 0 MINE 1000 1000 1
GENERATOR mine34 = (62.2, 230.9) 0 MINE 1000 1000 1
GENERATOR mine35 = (62.1, 231.5) 0 MINE 1000 1000 1
GENERATOR mine36 = (71.3, 231.2) 0 MINE 1000 1000 1
GENERATOR mine37 = (55.6, 231.1) 0 MINE 1000 1000 1
GENERATOR mine38 = (70.5, 232.0) 0 MINE 1000 1000 1
GENERATOR mine39 = (55.5, 232.7) 0 MINE 1000 1000 1
GENERATOR mine40 = (53.8, 231.2) 0 MINE 1000 1000 1

GENERATOR mine41 = (222.0, 190.7) 0 MINE 1000 1000 1
GENERATOR mine42 = (224.8, 191.7) 0 MINE 1000 1000 1
GENERATOR mine43 = (221.2, 191.6) 0 MINE 1000 1000 1
GENERATOR mine44 = (223.5, 168.1) 0 MINE 1000 1000 1
GENERATOR mine45 = (224.0, 173.9) 0 MINE 1000 1000 1
GENERATOR mine46 = (224.5, 166.5) 0 MINE 1000 1000 1
GENERATOR mine47 = (224.1, 187.6) 0 MINE 1000 1000 1
GENERATOR mine48 = (224.3, 190.6) 0 MINE 1000 1000 1
GENERATOR mine49 = (224.3, 190.6) 0 MINE 1000 1000 1
GENERATOR mine50 = (221.6, 164.7) 0 MINE 1000 1000 1
GENERATOR mine51 = (222.0, 167.6) 0 MINE 1000 1000 1
GENERATOR mine52 = (224.1, 180.5) 0 MINE 1000 1000 1
GENERATOR mine53 = (221.5, 173.4) 0 MINE 1000 1000 1
GENERATOR mine54 = (223.5, 186.5) 0 MINE 1000 1000 1
GENERATOR mine55 = (223.7, 178.5) 0 MINE 1000 1000 1
GENERATOR mine56 = (222.4, 177.8) 0 MINE 1000 1000 1
GENERATOR mine57 = (222.7, 171.4) 0 MINE 1000 1000 1
GENERATOR mine58 = (224.0, 170.2) 0 MINE 1000 1000 1
GENERATOR mine59 = (221.2, 169.3) 0 MINE 1000 1000 1
GENERATOR mine60 = (224.2, 176.0) 0 MINE 1000 1000 1
GENERATOR mine61 = (224.3, 160.6) 0 MINE 1000 1000 1
GENERATOR mine62 = (221.6, 176.4) 0 MINE 1000 1000 1
GENERATOR mine63 = (221.7, 180.5) 0 MINE 1000 1000 1
GENERATOR mine64 = (222.7, 181.3) 0 MINE 1000 1000 1
GENERATOR mine65 = (221.7, 183.1) 0 MINE 1000 1000 1
GENERATOR mine66 = (224.5, 184.5) 0 MINE 1000 1000 1
GENERATOR mine67 = (222.0, 185.6) 0 MINE 1000 1000 1
GENERATOR mine68 = (222.3, 188.7) 0 MINE 1000 1000 1
GENERATOR mine69 = (222.6, 190.1) 0 MINE 1000 1000 1

COUNTER gameloop = 1
COUNTER raceover = 0

OBJ_DATA blok1 = (157.5, 31.5, 5.0) 90 BOLLARD
OBJ_DATA blok2 = (157.5, 30.5, 5.0) 90 BOLLARD
OBJ_DATA blok3 = (157.5, 29.5, 5.0) 90 BOLLARD
OBJ_DATA blok4 = (157.5, 28.5, 5.0) 90 BOLLARD
OBJ_DATA blok5 = (157.5, 27.5, 5.0) 90 BOLLARD
OBJ_DATA blok6 = (157.5, 26.5, 5.0) 90 BOLLARD

OBJ_DATA blok7 = (157.5, 14.5, 5.0) 90 BOLLARD
OBJ_DATA blok8 = (157.5, 13.5, 5.0) 90 BOLLARD
OBJ_DATA blok9 = (157.5, 12.5, 5.0) 90 BOLLARD
OBJ_DATA blok10 = (157.5, 11.5, 5.0) 90 BOLLARD
OBJ_DATA blok11 = (157.5, 10.5, 5.0) 90 BOLLARD
OBJ_DATA blok12 = (157.5, 9.5, 5.0) 90 BOLLARD

OBJ_DATA blok13 = (35.5, 18.5, 3.0) 270 BOLLARD
OBJ_DATA blok14 = (35.5, 17.5, 3.0) 270 BOLLARD
OBJ_DATA blok15 = (35.5, 16.5, 3.0) 270 BOLLARD

OBJ_DATA blok16 = (39.5, 24.5, 3.0) 270 BOLLARD
OBJ_DATA blok17 = (39.5, 23.5, 3.0) 270 BOLLARD
OBJ_DATA blok18 = (39.5, 22.5, 3.0) 270 BOLLARD

OBJ_DATA blok21 = (183.5, 117.5, 3.0) 0 BOLLARD
OBJ_DATA blok22 = (182.5, 117.5, 3.0) 0 BOLLARD
OBJ_DATA blok23 = (181.5, 117.5, 3.0) 0 BOLLARD
OBJ_DATA blok24 = (180.5, 117.5, 3.0) 0 BOLLARD

OBJ_DATA blok25 = (175.5, 117.5, 3.0) 0 BOLLARD
OBJ_DATA blok26 = (174.5, 117.5, 3.0) 0 BOLLARD
OBJ_DATA blok27 = (173.5, 117.5, 3.0) 0 BOLLARD
OBJ_DATA blok28 = (172.5, 117.5, 3.0) 0 BOLLARD

CONVEYOR tas1 = (34.0, 48.5, 3.0) (2.0, 60.0) 0 4
CONVEYOR tas2 = (38.0, 54.5, 3.0) (2.0, 60.0) 0 4
CONVEYOR tas3 = (33.0, 48.5, 3.0) (2.0, 60.0) 0 4
CONVEYOR tas4 = (37.0, 54.5, 3.0) (2.0, 60.0) 0 4

OBJ_DATA start1 = (221.5, 250.5) 0 BOLLARD
OBJ_DATA start2 = (229.5, 250.5) 0 BOLLARD
OBJ_DATA start3 = (219.5, 250.5) 0 BOLLARD
OBJ_DATA start4 = (226.5, 250.5) 0 BOLLARD
OBJ_DATA start5 = (216.5, 250.5) 0 BOLLARD
OBJ_DATA start6 = (224.5, 250.5) 0 BOLLARD

COUNTER start_1
COUNTER start_count

COUNTER check01
COUNTER check02
COUNTER check03
COUNTER check04
COUNTER check05
COUNTER check06
COUNTER check07
COUNTER check
COUNTER p1warp
COUNTER p2warp
COUNTER p3warp
COUNTER p4warp
COUNTER p5warp
COUNTER p6warp
COUNTER p1flame
COUNTER p2flame
COUNTER p3flame
COUNTER p4flame
COUNTER p5flame
COUNTER p6flame

OBJ_DATA cone01 = (221.3, 124.7) 0 CONE
OBJ_DATA cone02 = (239.1, 94.3) 0 CONE
OBJ_DATA cone03 = (222.9, 104.7) 0 CONE
OBJ_DATA cone04 = (175.8, 12.0) 0 CONE
OBJ_DATA cone05 = (223.2, 104.4) 0 CONE
OBJ_DATA cone06 = (206.4, 94.3) 0 CONE
OBJ_DATA cone07 = (222.5, 104.5) 0 CONE
OBJ_DATA cone08 = (206.9, 94.4) 0 CONE
OBJ_DATA cone09 = (175.5, 12.5) 0 CONE
OBJ_DATA cone10 = (239.6, 94.3) 0 CONE
OBJ_DATA cone11 = (223.0, 115.5) 0 CONE
OBJ_DATA cone12 = (238.5, 94.4) 0 CONE
OBJ_DATA cone13 = (221.6, 124.5) 0 CONE
OBJ_DATA cone14 = (207.5, 94.4) 0 CONE
OBJ_DATA cone15 = (220.8, 124.7) 0 CONE
OBJ_DATA cone16 = (220.4, 124.5) 0 CONE
OBJ_DATA cone17 = (224.4, 124.5) 0 CONE
OBJ_DATA cone18 = (224.8, 124.6) 0 CONE
OBJ_DATA cone19 = (225.4, 124.6) 0 CONE
OBJ_DATA cone20 = (225.8, 124.5) 0 CONE
OBJ_DATA cone21 = (174.1, 229.7, 3.0) 0 CONE
OBJ_DATA cone22 = (174.1, 229.0, 3.0) 0 CONE
OBJ_DATA cone23 = (174.1, 228.3, 3.0) 0 CONE
OBJ_DATA cone24 = (174.1, 222.6, 3.0) 0 CONE
OBJ_DATA cone25 = (174.1, 222.1, 3.0) 0 CONE
OBJ_DATA cone26 = (174.1, 221.4, 3.0) 0 CONE

PARKED_CAR_DATA car01 = (216.5, 251.3) 9 180 VTYPE
PARKED_CAR_DATA car02 = (219.5, 251.3) 7 180 VTYPE
PARKED_CAR_DATA car03 = (221.5, 251.3) 1 180 VTYPE
PARKED_CAR_DATA car04 = (224.5, 251.3) 3 180 VTYPE
PARKED_CAR_DATA car05 = (226.5, 251.3) 12 180 VTYPE
PARKED_CAR_DATA car06 = (229.5, 251.3) 8 180 VTYPE

LEVELSTART

SET_AMBIENT_LEVEL  (0.44, 0)

car07 = CREATE_CAR (36.0, 84.0) 14 90 ZCX5 END
car08 = CREATE_CAR (40.1, 90.1) 7 90 ZCX5 END
car09 = CREATE_CAR (34.7, 84.6) 14 90 ZCX5 END
car10 = CREATE_CAR (38.7, 89.7) 7 90 ZCX5 END
car11 = CREATE_CAR (34.7, 83.8) 14 90 ZCX5 END
car12 = CREATE_CAR (38.7, 90.5) 7 90 ZCX5 END
car13 = CREATE_CAR (57.6, 174.3) 7 0 ZCX5 END
car14 = CREATE_CAR (58.6, 174.3) 7 0 ZCX5 END
car15 = CREATE_CAR (59.6, 174.3) 7 0 ZCX5 END
car16 = CREATE_CAR (41.6, 174.3) 14 0 ZCX5 END
car17 = CREATE_CAR (42.6, 174.3) 14 0 ZCX5 END
car18 = CREATE_CAR (43.6, 174.3) 14 0 ZCX5 END

car19 = CREATE_CAR (218.8, 120.0) 7 215 ZCX5 END
car20 = CREATE_CAR (217.1, 114.2) 7 105 ZCX5 END
car21 = CREATE_CAR (227.5, 114.1) 7 270 ZCX5 END
car22 = CREATE_CAR (227.0, 120.0) 14 200 ZCX5 END
car23 = CREATE_CAR (222.9, 117.7) 14 85 ZCX5 END
car24 = CREATE_CAR (222.8, 122.8) 14 180 ZCX5 END

car25 = CREATE_CAR (122.7, 230.5) 14 90 COPCAR END
car26 = CREATE_CAR (122.7, 231.5) 14 90 COPCAR END
car27 = CREATE_CAR (122.7, 232.5) 14 90 COPCAR END
car28 = CREATE_CAR (126.7, 230.5) 14 90 COPCAR END
car29 = CREATE_CAR (126.7, 231.5) 14 90 COPCAR END
car30 = CREATE_CAR (126.7, 232.5) 14 90 COPCAR END

car31 = CREATE_CAR (47.6, 227.5) 14 90 COPCAR END
car32 = CREATE_CAR (47.6, 228.5) 14 90 ZCX5 END
car33 = CREATE_CAR (47.6, 229.5) 14 90 COPCAR END
car34 = CREATE_CAR (47.6, 230.5) 14 90 ZCX5 END
car35 = CREATE_CAR (47.6, 231.5) 14 90 COPCAR END
car36 = CREATE_CAR (47.6, 232.5) 14 90 ZCX5 END

tank01 = CREATE_CAR (156.5, 28.6) -1 270 TANK END
tank02 = CREATE_CAR (156.5, 12.5) -1 270 TANK END
tank03 = CREATE_CAR (156.5, 29.7) -1 270 TANK END
tank04 = CREATE_CAR (156.5, 11.3) -1 270 TANK END
tank05 = CREATE_CAR (156.5, 27.5) -1 270 TANK END
tank06 = CREATE_CAR (156.5, 13.7) -1 270 TANK END
finaltank = CREATE_CAR (178.0, 107.8) -1 0 TANK END

SWITCH_GENERATOR ( ef01 , ON )
SWITCH_GENERATOR ( ef02 , ON )
SWITCH_GENERATOR ( kok1 , ON )
SWITCH_GENERATOR ( kok1 , ON )
SWITCH_GENERATOR ( kok2 , ON )
SWITCH_GENERATOR ( kok3 , ON )
SWITCH_GENERATOR ( zooka1 , ON )
SWITCH_GENERATOR ( zooka2 , ON )
SWITCH_GENERATOR ( zooka3 , ON )
SWITCH_GENERATOR ( zooka4 , ON )
SWITCH_GENERATOR ( bomb1 , ON )
SWITCH_GENERATOR ( bomb2 , ON )

DISPLAY_MESSAGE ( 5504 )

SWITCH_GENERATOR ( mine41 , ON )
SWITCH_GENERATOR ( mine42 , ON )
SWITCH_GENERATOR ( mine43 , ON )
SWITCH_GENERATOR ( mine44 , ON )
SWITCH_GENERATOR ( mine45 , ON )
SWITCH_GENERATOR ( mine46 , ON )
SWITCH_GENERATOR ( mine47 , ON )
SWITCH_GENERATOR ( mine48 , ON )
SWITCH_GENERATOR ( mine49 , ON )
SWITCH_GENERATOR ( mine50 , ON )
SWITCH_GENERATOR ( mine51 , ON )
SWITCH_GENERATOR ( mine52 , ON )
SWITCH_GENERATOR ( mine53 , ON )
SWITCH_GENERATOR ( mine54 , ON )
SWITCH_GENERATOR ( mine55 , ON )
SWITCH_GENERATOR ( mine56 , ON )
SWITCH_GENERATOR ( mine57 , ON )
SWITCH_GENERATOR ( mine58 , ON )
SWITCH_GENERATOR ( mine59 , ON )
SWITCH_GENERATOR ( mine60 , ON )
SWITCH_GENERATOR ( mine61 , ON )
SWITCH_GENERATOR ( mine62 , ON )
SWITCH_GENERATOR ( mine63 , ON )
SWITCH_GENERATOR ( mine64 , ON )
SWITCH_GENERATOR ( mine65 , ON )
SWITCH_GENERATOR ( mine66 , ON )
SWITCH_GENERATOR ( mine67 , ON )
SWITCH_GENERATOR ( mine68 , ON )
SWITCH_GENERATOR ( mine69 , ON )

SWITCH_GENERATOR ( mine1 , ON )
SWITCH_GENERATOR ( mine2 , ON )
SWITCH_GENERATOR ( mine3 , ON )
SWITCH_GENERATOR ( mine4 , ON )
SWITCH_GENERATOR ( mine5 , ON )
SWITCH_GENERATOR ( mine6 , ON )
SWITCH_GENERATOR ( mine7 , ON )
SWITCH_GENERATOR ( mine8 , ON )
SWITCH_GENERATOR ( mine9 , ON )
SWITCH_GENERATOR ( mine10 , ON )
SWITCH_GENERATOR ( mine11 , ON )
SWITCH_GENERATOR ( mine12 , ON )
SWITCH_GENERATOR ( mine13 , ON )
SWITCH_GENERATOR ( mine14 , ON )
SWITCH_GENERATOR ( mine15 , ON )
SWITCH_GENERATOR ( mine16 , ON )
SWITCH_GENERATOR ( mine17 , ON )
SWITCH_GENERATOR ( mine18 , ON )
SWITCH_GENERATOR ( mine19 , ON )
SWITCH_GENERATOR ( mine20 , ON )
SWITCH_GENERATOR ( mine21 , ON )
SWITCH_GENERATOR ( mine22 , ON )
SWITCH_GENERATOR ( mine23 , ON )
SWITCH_GENERATOR ( mine24 , ON )
SWITCH_GENERATOR ( mine25 , ON )
SWITCH_GENERATOR ( mine26 , ON )
SWITCH_GENERATOR ( mine27 , ON )
SWITCH_GENERATOR ( mine28 , ON )
SWITCH_GENERATOR ( mine29 , ON )
SWITCH_GENERATOR ( mine30 , ON )
SWITCH_GENERATOR ( mine31 , ON )
SWITCH_GENERATOR ( mine32 , ON )
SWITCH_GENERATOR ( mine33 , ON )
SWITCH_GENERATOR ( mine34 , ON )
SWITCH_GENERATOR ( mine35 , ON )
SWITCH_GENERATOR ( mine36 , ON )
SWITCH_GENERATOR ( mine37 , ON )
SWITCH_GENERATOR ( mine38 , ON )
SWITCH_GENERATOR ( mine39 , ON )
SWITCH_GENERATOR ( mine40 , ON )

WHILE_EXEC ( gameloop = 1 )

IF (check > 0)
SWITCH_GENERATOR ( mine41 , OFF )
SWITCH_GENERATOR ( mine42 , OFF )
SWITCH_GENERATOR ( mine43 , OFF )
SWITCH_GENERATOR ( mine44 , OFF )
SWITCH_GENERATOR ( mine45 , OFF )
SWITCH_GENERATOR ( mine46 , OFF )
SWITCH_GENERATOR ( mine47 , OFF )
SWITCH_GENERATOR ( mine48 , OFF )
SWITCH_GENERATOR ( mine49 , OFF )
SWITCH_GENERATOR ( mine50 , OFF )
SWITCH_GENERATOR ( mine51 , OFF )
SWITCH_GENERATOR ( mine52 , OFF )
SWITCH_GENERATOR ( mine53 , OFF )
SWITCH_GENERATOR ( mine54 , OFF )
SWITCH_GENERATOR ( mine55 , OFF )
SWITCH_GENERATOR ( mine56 , OFF )
SWITCH_GENERATOR ( mine57 , OFF )
SWITCH_GENERATOR ( mine58 , OFF )
SWITCH_GENERATOR ( mine59 , OFF )
SWITCH_GENERATOR ( mine60 , OFF )
SWITCH_GENERATOR ( mine61 , OFF )
SWITCH_GENERATOR ( mine62 , OFF )
SWITCH_GENERATOR ( mine63 , OFF )
SWITCH_GENERATOR ( mine64 , OFF )
SWITCH_GENERATOR ( mine65 , OFF )
SWITCH_GENERATOR ( mine66 , OFF )
SWITCH_GENERATOR ( mine67 , OFF )
SWITCH_GENERATOR ( mine68 , OFF )
SWITCH_GENERATOR ( mine69 , OFF )
ENDIF

IF (check > 5)
SWITCH_GENERATOR ( mine1 , OFF )
SWITCH_GENERATOR ( mine2 , OFF )
SWITCH_GENERATOR ( mine3 , OFF )
SWITCH_GENERATOR ( mine4 , OFF )
SWITCH_GENERATOR ( mine5 , OFF )
SWITCH_GENERATOR ( mine6 , OFF )
SWITCH_GENERATOR ( mine7 , OFF )
SWITCH_GENERATOR ( mine8 , OFF )
SWITCH_GENERATOR ( mine9 , OFF )
SWITCH_GENERATOR ( mine10 , OFF )
SWITCH_GENERATOR ( mine11 , OFF )
SWITCH_GENERATOR ( mine12 , OFF )
SWITCH_GENERATOR ( mine13 , OFF )
SWITCH_GENERATOR ( mine14 , OFF )
SWITCH_GENERATOR ( mine15 , OFF )
SWITCH_GENERATOR ( mine16 , OFF )
SWITCH_GENERATOR ( mine17 , OFF )
SWITCH_GENERATOR ( mine18 , OFF )
SWITCH_GENERATOR ( mine19 , OFF )
SWITCH_GENERATOR ( mine20 , OFF )
SWITCH_GENERATOR ( mine21 , OFF )
SWITCH_GENERATOR ( mine22 , OFF )
SWITCH_GENERATOR ( mine23 , OFF )
SWITCH_GENERATOR ( mine24 , OFF )
SWITCH_GENERATOR ( mine25 , OFF )
SWITCH_GENERATOR ( mine26 , OFF )
SWITCH_GENERATOR ( mine27 , OFF )
SWITCH_GENERATOR ( mine28 , OFF )
SWITCH_GENERATOR ( mine29 , OFF )
SWITCH_GENERATOR ( mine30 , OFF )
SWITCH_GENERATOR ( mine31 , OFF )
SWITCH_GENERATOR ( mine32 , OFF )
SWITCH_GENERATOR ( mine33 , OFF )
SWITCH_GENERATOR ( mine34 , OFF )
SWITCH_GENERATOR ( mine35 , OFF )
SWITCH_GENERATOR ( mine36 , OFF )
SWITCH_GENERATOR ( mine37 , OFF )
SWITCH_GENERATOR ( mine38 , OFF )
SWITCH_GENERATOR ( mine39 , OFF )
SWITCH_GENERATOR ( mine40 , OFF )
ENDIF

IF ( IS_CHARACTER_IN_CAR ( p1 , finaltank ))
 	ADD_SCORE ( p1 , 999999 )
 	IF ( p1flame = 0 )
		  GIVE_WEAPON ( p1, flame_thrower, 10 )
    SET p1flame = 1
  ENDIF

 	IF ( raceover = 0 )
 	  SET raceover = 1
   	DISPLAY_MESSAGE (5501)// Race over!
 	ENDIF
ENDIF

IF (start_1 = 0)
 ++start_count
ENDIF

IF  ( start_count = 20 )
 DISPLAY_MESSAGE (2476) // 3
ENDIF
IF  ( start_count = 40 )
 DISPLAY_MESSAGE (2475)// 2
ENDIF
IF  ( start_count = 60 )
 DISPLAY_MESSAGE (2474)// 1
ENDIF
IF  ( start_count = 80 )
 DISPLAY_MESSAGE (2473)// Go!
 DELETE_ITEM (start1)
 DELETE_ITEM (start2)
 DELETE_ITEM (start3)
 DELETE_ITEM (start4)
 DELETE_ITEM (start5)
 DELETE_ITEM (start6)
 SET start_count = 0
 SET start_1 = 1
ENDIF

IF ( IS_POINT_ONSCREEN  ( 223.1, 120.5, 3.0 ))
SET check01 = 1
ENDIF

IF ( IS_POINT_ONSCREEN  ( 156.5, 28.1, 5.0 ))
SET check02 = 1
ENDIF

IF ( IS_POINT_ONSCREEN  ( 155.5, 12.1, 5.0 ))
SET check02 = 1
ENDIF

IF ( IS_POINT_ONSCREEN  ( 36.0, 83.8, 5.0 ))
SET check03 = 1
ENDIF

IF ( IS_POINT_ONSCREEN  ( 40.0, 90.0, 5.0 ))
SET check03 = 1
ENDIF

IF ( IS_POINT_ONSCREEN  ( 57.6, 173.8, 3.0 ))
SET check04 = 1
ENDIF

IF ( IS_POINT_ONSCREEN  ( 41.6, 173.8, 3.0 ))
SET check04 = 1
ENDIF

IF ( IS_POINT_ONSCREEN  ( 48.5, 231.1, 3.0 ))
SET check05 = 1
ENDIF

IF ( IS_POINT_ONSCREEN  ( 119.7, 231.5, 4.0 ))
SET check06 = 1
ENDIF

IF ( IS_POINT_ONSCREEN  ( 174.0, 119.0, 3.0 ))
SET check07 = 1
ENDIF

IF ( IS_POINT_ONSCREEN  ( 182.0, 119.0, 3.0 ))
SET check07 = 1
ENDIF

IF (( check01 = 1 ) AND ( check < 1 ))
  DISPLAY_MESSAGE (2474)// 1
  SET check = 1
ENDIF

IF (( check02 = 1 ) AND ( check < 2 ))
  DISPLAY_MESSAGE (2475)// 2
  SET check = 2
ENDIF

IF (( check03 = 1 ) AND ( check < 3 ))
  DISPLAY_MESSAGE (2476)// 3
  SET check = 3
ENDIF

IF (( check04 = 1 ) AND ( check < 4 ))
  DISPLAY_MESSAGE (2477)// 4
  SET check = 4
ENDIF

IF (( check05 = 1 ) AND ( check < 5 ))
  DISPLAY_MESSAGE (2478)// 5
  SET check = 5
ENDIF

IF (( check06 = 1 ) AND ( check < 6 ))
  DISPLAY_MESSAGE (2479)// 6
  SET check = 6
ENDIF

IF (( check07 = 1 ) AND ( check < 7 ))
  DISPLAY_BRIEF (3729)// 7
  SET check = 7
/*  KILL_CHAR ( p1 )
  KILL_CHAR ( p2 )
  KILL_CHAR ( p3 )
  KILL_CHAR ( p4 )
  KILL_CHAR ( p5 )
  KILL_CHAR ( p6 )
*/
ENDIF

IF (HAS_CHARACTER_DIED(p1))
  SET p1warp=1
ELSE
  IF (p1warp=1)
    IF ( p1flame = 1 )
      GIVE_WEAPON ( p1, flame_thrower, 10 )
    ENDIF

    SET p1warp=0

    IF ( check = 1)
      WARP_FROM_CAR_TO_POINT (p1, 223.1, 120.5, 4.0, 0)
    ENDIF

    IF ( check = 2)
      WARP_FROM_CAR_TO_POINT (p1, 158.5, 11.3, 5.0, 270)
    ENDIF

    IF ( check = 3)
      WARP_FROM_CAR_TO_POINT (p1, 34.5, 82.6, 5.0, 0)
    ENDIF

    IF ( check = 4)
      WARP_FROM_CAR_TO_POINT (p1, 41.6, 173.2, 5.0, 0)
    ENDIF

				IF ( check = 5)
      WARP_FROM_CAR_TO_POINT (p1, 48.5, 231.1, 3.0, 90)
    ENDIF

    IF ( check = 6)
      WARP_FROM_CAR_TO_POINT (p1, 119.7, 231.5, 6.0, 0)
    ENDIF

    IF ( check = 7)
      WARP_FROM_CAR_TO_POINT (p1, 174.0, 120.0, 3.0, 180)
    ENDIF
  ENDIF
ENDIF

IF (CHECK_CHARACTER_HEALTH(p2, 0))

IF (HAS_CHARACTER_DIED(p2))
  SET p2warp=1
ELSE
  IF (p2warp=1)
    IF ( p2flame = 1 )
      GIVE_WEAPON ( p2, flame_thrower, 10 )
    ENDIF

    SET p2warp=0

    IF ( check = 1)
      WARP_FROM_CAR_TO_POINT (p2, 223.1, 120.5, 4.0, 0)
    ENDIF

    IF ( check = 2)
      WARP_FROM_CAR_TO_POINT (p2, 158.5, 12.3, 5.0, 270)
    ENDIF

    IF ( check = 3)
      WARP_FROM_CAR_TO_POINT (p2, 34.5, 82.6, 5.0, 0)
    ENDIF

    IF ( check = 4)
      WARP_FROM_CAR_TO_POINT (p2, 41.6, 173.2, 5.0, 0)
    ENDIF

				IF ( check = 5)
      WARP_FROM_CAR_TO_POINT (p2, 48.5, 231.1, 3.0, 90)
    ENDIF

    IF ( check = 6)
      WARP_FROM_CAR_TO_POINT (p2, 119.7, 231.5, 6.0, 0)
    ENDIF

    IF ( check = 7)
      WARP_FROM_CAR_TO_POINT (p2, 174.0, 120.0, 3.0, 180)
    ENDIF
  ENDIF

  IF ( IS_CHARACTER_IN_CAR ( p2 , finaltank ))
 	  ADD_SCORE ( p2 , 999999 )

 	  IF ( p2flame = 0 )
		    GIVE_WEAPON ( p2, flame_thrower, 10 )
      SET p2flame = 1
    ENDIF

 	  IF ( raceover = 0 )
 	    SET raceover = 1
   	  DISPLAY_MESSAGE (5501)// Race over!
 	  ENDIF
  ENDIF
ENDIF
ENDIF

IF (CHECK_CHARACTER_HEALTH(p3, 0))
IF (HAS_CHARACTER_DIED(p3))
  SET p3warp=1
ELSE
  IF (p3warp=1)
    IF ( p3flame = 1 )
      GIVE_WEAPON ( p3, flame_thrower, 10 )
    ENDIF

    SET p3warp=0

    IF ( check = 1)
      WARP_FROM_CAR_TO_POINT (p3, 223.1, 120.5, 4.0, 0)
    ENDIF

    IF ( check = 2)
      WARP_FROM_CAR_TO_POINT (p3, 158.5, 13.3, 5.0, 270)
    ENDIF

    IF ( check = 3)
      WARP_FROM_CAR_TO_POINT (p3, 34.5, 82.6, 5.0, 0)
    ENDIF

    IF ( check = 4)
      WARP_FROM_CAR_TO_POINT (p3, 41.6, 173.2, 5.0, 0)
    ENDIF

				IF ( check = 5)
      WARP_FROM_CAR_TO_POINT (p3, 48.5, 231.1, 3.0, 90)
    ENDIF

    IF ( check = 6)
      WARP_FROM_CAR_TO_POINT (p3, 119.7, 231.5, 6.0, 0)
    ENDIF

    IF ( check = 7)
      WARP_FROM_CAR_TO_POINT (p3, 174.0, 120.0, 3.0, 180)
    ENDIF
  ENDIF

  IF ( IS_CHARACTER_IN_CAR ( p3 , finaltank ))
 	  ADD_SCORE ( p3 , 999999 )
 	  IF ( p3flame = 0 )
		    GIVE_WEAPON ( p3, flame_thrower, 10 )
      SET p3flame = 1
    ENDIF

 	  IF ( raceover = 0 )
 	    SET raceover = 1
   	  DISPLAY_MESSAGE (5501)// Race over!
 	  ENDIF
  ENDIF
ENDIF
ENDIF

IF (CHECK_CHARACTER_HEALTH(p4, 0))
IF (HAS_CHARACTER_DIED(p4))
  SET p4warp=1
ELSE
  IF (p4warp=1)
    IF ( p4flame = 1 )
      GIVE_WEAPON ( p4, flame_thrower, 10 )
    ENDIF

    SET p4warp=0

    IF ( check = 1)
      WARP_FROM_CAR_TO_POINT (p4, 223.1, 120.5, 4.0, 0)
    ENDIF

    IF ( check = 2)
      WARP_FROM_CAR_TO_POINT (p4, 158.5, 27.5, 5.0, 270)
    ENDIF

    IF ( check = 3)
      WARP_FROM_CAR_TO_POINT (p4, 34.5, 82.6, 5.0, 0)
    ENDIF

    IF ( check = 4)
      WARP_FROM_CAR_TO_POINT (p4, 58.5, 173.2, 5.0, 0)
    ENDIF

				IF ( check = 5)
      WARP_FROM_CAR_TO_POINT (p4, 48.5, 231.1, 3.0, 90)
    ENDIF

    IF ( check = 6)
      WARP_FROM_CAR_TO_POINT (p4, 119.7, 231.5, 6.0, 0)
    ENDIF

    IF ( check = 7)
      WARP_FROM_CAR_TO_POINT (p4, 174.0, 120.0, 3.0, 180)
    ENDIF
  ENDIF

  IF ( IS_CHARACTER_IN_CAR ( p4 , finaltank ))
 	  ADD_SCORE ( p4 , 999999 )
 	  IF ( p4flame = 0 )
		    GIVE_WEAPON ( p4, flame_thrower, 10 )
      SET p4flame = 1
    ENDIF

 	  IF ( raceover = 0 )
 	    SET raceover = 1
   	  DISPLAY_MESSAGE (5501)// Race over!
 	  ENDIF
  ENDIF
ENDIF
ENDIF

IF (CHECK_CHARACTER_HEALTH(p5, 0))
IF (HAS_CHARACTER_DIED(p5))
  SET p5warp=1
ELSE
  IF (p5warp=1)
    IF ( p5flame = 1 )
      GIVE_WEAPON ( p5, flame_thrower, 10 )
    ENDIF

    SET p5warp=0

    IF ( check = 1)
      WARP_FROM_CAR_TO_POINT (p5, 223.1, 120.5, 4.0, 0)
    ENDIF

    IF ( check = 2)
      WARP_FROM_CAR_TO_POINT (p5, 158.5, 28.5, 5.0, 270)
    ENDIF

    IF ( check = 3)
      WARP_FROM_CAR_TO_POINT (p5, 34.5, 82.6, 5.0, 0)
    ENDIF

    IF ( check = 4)
      WARP_FROM_CAR_TO_POINT (p5, 58.5, 173.2, 5.0, 0)
    ENDIF

				IF ( check = 5)
      WARP_FROM_CAR_TO_POINT (p5, 48.5, 231.1, 3.0, 90)
    ENDIF

    IF ( check = 6)
      WARP_FROM_CAR_TO_POINT (p5, 119.7, 231.5, 6.0, 0)
    ENDIF

    IF ( check = 7)
      WARP_FROM_CAR_TO_POINT (p5, 174.0, 120.0, 3.0, 180)
    ENDIF
  ENDIF

    IF ( IS_CHARACTER_IN_CAR ( p5 , finaltank ))
 	  ADD_SCORE ( p5 , 999999 )
 	  IF ( p5flame = 0 )
		    GIVE_WEAPON ( p5, flame_thrower, 10 )
      SET p5flame = 1
    ENDIF

 	  IF ( raceover = 0 )
 	    SET raceover = 1
   	  DISPLAY_MESSAGE (5501)// Race over!
 	  ENDIF
  ENDIF
ENDIF
ENDIF

IF (CHECK_CHARACTER_HEALTH(p6, 0))
IF (HAS_CHARACTER_DIED(p6))
  SET p6warp=1
ELSE
  IF (p6warp=1)
    IF ( p6flame = 1 )
      GIVE_WEAPON ( p6, flame_thrower, 10 )
    ENDIF

    SET p6warp=0

    IF ( check = 1)
      WARP_FROM_CAR_TO_POINT (p6, 223.1, 120.5, 4.0, 0)
    ENDIF

    IF ( check = 2)
      WARP_FROM_CAR_TO_POINT (p6, 158.5, 29.5, 5.0, 270)
    ENDIF

    IF ( check = 3)
      WARP_FROM_CAR_TO_POINT (p6, 34.5, 82.6, 5.0, 0)
    ENDIF

    IF ( check = 4)
      WARP_FROM_CAR_TO_POINT (p6, 58.5, 173.2, 5.0, 0)
    ENDIF

				IF ( check = 5)
      WARP_FROM_CAR_TO_POINT (p6, 48.5, 231.1, 3.0, 90)
    ENDIF

    IF ( check = 6)
      WARP_FROM_CAR_TO_POINT (p6, 119.7, 231.5, 6.0, 0)
    ENDIF

    IF ( check = 7)
      WARP_FROM_CAR_TO_POINT (p6, 174.0, 120.0, 3.0, 180)
    ENDIF
  ENDIF

  IF ( IS_CHARACTER_IN_CAR ( p6 , finaltank ))
 	  ADD_SCORE ( p6 , 999999 )
 	  IF ( p6flame = 0 )
		    GIVE_WEAPON ( p6, flame_thrower, 10 )
      SET p6flame = 1
    ENDIF

 	  IF ( raceover = 0 )
 	    SET raceover = 1
   	  DISPLAY_MESSAGE (5501)// Race over!
 	  ENDIF
  ENDIF
ENDIF
ENDIF

  
					

// Respawning car
IF (IS_CAR_WRECKED(car01))
 IF (NOT (DELAY (100))) // let explosion happen
  IF (NOT(IS_POINT_ONSCREEN ( 216.5, 251.3, 3.0 )))
   IF (IS_CAR_IN_BLOCK(car01, 216.5,251.3,3.0, 1.0,1.0))
    // Wreck is blocking spawnpoint:
    PUT_CAR_ON_TRAILER (car01, trailer)
   ENDIF
   
   // Spawnpoint is clear:
   DELETE_ITEM (car01)
   car01 = CREATE_CAR (216.5, 251.3) 9 180 VTYPE END
  ENDIF
 ENDIF
ENDIF

IF (IS_CAR_WRECKED(car02))
 IF (NOT (DELAY (100))) // let explosion happen
  IF (NOT(IS_POINT_ONSCREEN  (219.5, 251.3, 3.0 )))
   IF (IS_CAR_IN_BLOCK(car02, 219.5, 251.3, 3.0, 1.0,1.0))
    // Wreck is blocking spawnpoint:
    PUT_CAR_ON_TRAILER (car02, trailer)
   ENDIF
   
   // Spawnpoint is clear:
   DELETE_ITEM (car02)
   car02 = CREATE_CAR (219.5, 251.3) 9 180 VTYPE END
  ENDIF
 ENDIF
ENDIF

IF (IS_CAR_WRECKED(car03))
 IF (NOT (DELAY (100))) // let explosion happen
  IF (NOT(IS_POINT_ONSCREEN ( 221.5, 251.3, 3.0 )))
   IF (IS_CAR_IN_BLOCK(car03, 221.5, 251.3, 3.0, 1.0,1.0))
    // Wreck is blocking spawnpoint:
    PUT_CAR_ON_TRAILER (car03, trailer)
   ENDIF
   
   // Spawnpoint is clear:
   DELETE_ITEM (car03)
   car03 = CREATE_CAR (221.5, 251.3) 1 180 VTYPE END
  ENDIF
 ENDIF
ENDIF

IF (IS_CAR_WRECKED(car04))
 IF (NOT (DELAY (100))) // let explosion happen
  IF (NOT(IS_POINT_ONSCREEN ( 224.5, 251.3, 3.0 )))
   IF (IS_CAR_IN_BLOCK(car04, 224.5, 251.3, 3.0, 1.0,1.0))
    // Wreck is blocking spawnpoint:
    PUT_CAR_ON_TRAILER (car04, trailer)
   ENDIF
   
   // Spawnpoint is clear:
   DELETE_ITEM (car04)
   car04 = CREATE_CAR (224.5, 251.3) 3 180 VTYPE END
  ENDIF
 ENDIF
ENDIF

IF (IS_CAR_WRECKED(car05))
 IF (NOT (DELAY (100))) // let explosion happen
  IF (NOT(IS_POINT_ONSCREEN ( 226.5, 251.3, 3.0 )))
   IF (IS_CAR_IN_BLOCK(car05, 226.5, 251.3, 3.0, 1.0,1.0))
    // Wreck is blocking spawnpoint:
    PUT_CAR_ON_TRAILER (car05, trailer)
   ENDIF
   
   // Spawnpoint is clear:
   DELETE_ITEM (car05)
   car05 = CREATE_CAR (226.5, 251.3) 12 180 VTYPE END
  ENDIF
 ENDIF
ENDIF

IF (IS_CAR_WRECKED(car06))
 IF (NOT (DELAY (100))) // let explosion happen
  IF (NOT(IS_POINT_ONSCREEN ( 229.5, 251.3, 3.0 )))
   IF (IS_CAR_IN_BLOCK(car06, 229.5, 251.3, 3.0, 1.0,1.0))
    // Wreck is blocking spawnpoint:
    PUT_CAR_ON_TRAILER (car06, trailer)
   ENDIF
   
   // Spawnpoint is clear:
   DELETE_ITEM (car06)
   car05 = CREATE_CAR (229.5, 251.3) 12 180 VTYPE END
  ENDIF
 ENDIF
ENDIF

IF (IS_CAR_WRECKED(car07))
 IF (NOT (DELAY (100))) // let explosion happen
  IF (NOT(IS_POINT_ONSCREEN ( 36.0, 84.0, 3.0 )))
   IF (IS_CAR_IN_BLOCK(car07, 36.0, 84.0, 3.0, 1.0,1.0))
    // Wreck is blocking spawnpoint:
    PUT_CAR_ON_TRAILER (car07, trailer)
   ENDIF
   
   // Spawnpoint is clear:
   DELETE_ITEM (car07)
   car07 = CREATE_CAR (36.0, 84.0) 14 90 ZCX5 END
  ENDIF
 ENDIF
ENDIF

IF (IS_CAR_WRECKED(car08))
 IF (NOT (DELAY (100))) // let explosion happen
  IF (NOT(IS_POINT_ONSCREEN ( 40.1, 90.1, 3.0 )))
   IF (IS_CAR_IN_BLOCK(car08, 40.1, 90.1, 3.0, 1.0,1.0))
    // Wreck is blocking spawnpoint:
    PUT_CAR_ON_TRAILER (car08, trailer)
   ENDIF
   
   // Spawnpoint is clear:
   DELETE_ITEM (car08)
   car08 = CREATE_CAR (40.1, 90.1) 7 90 ZCX5 END
  ENDIF
 ENDIF
ENDIF

IF (IS_CAR_WRECKED(car09))
 IF (NOT (DELAY (100))) // let explosion happen
  IF (NOT(IS_POINT_ONSCREEN ( 34.7, 84.6, 3.0 )))
   IF (IS_CAR_IN_BLOCK(car09, 34.7, 84.6, 3.0, 1.0,1.0))
    // Wreck is blocking spawnpoint:
    PUT_CAR_ON_TRAILER (car09, trailer)
   ENDIF
   
   // Spawnpoint is clear:
   DELETE_ITEM (car09)
   car09 = CREATE_CAR (34.7, 84.6) 14 90 ZCX5 END
  ENDIF
 ENDIF
ENDIF

IF (IS_CAR_WRECKED(car10))
 IF (NOT (DELAY (100))) // let explosion happen
  IF (NOT(IS_POINT_ONSCREEN ( 38.7, 89.7, 3.0 )))
   IF (IS_CAR_IN_BLOCK(car10, 38.7, 89.7, 3.0, 1.0,1.0))
    // Wreck is blocking spawnpoint:
    PUT_CAR_ON_TRAILER (car10, trailer)
   ENDIF
   
   // Spawnpoint is clear:
   DELETE_ITEM (car10)
   car10 = CREATE_CAR (38.7, 89.7) 7 90 ZCX5 END
  ENDIF
 ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car11 ))
  IF (NOT(IS_POINT_ONSCREEN ( 34.7, 83.8, 3.0 )))
    car11 = CREATE_CAR (34.7, 83.8) 14 90 ZCX5 END
  ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car12 ))
  IF (NOT(IS_POINT_ONSCREEN ( 38.7, 90.5, 3.0 )))
    car12 = CREATE_CAR (38.7, 90.5) 7 90 ZCX5 END
  ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car13 ))
  IF (NOT(IS_POINT_ONSCREEN ( 57.6, 174.3, 3.0 )))
    car13 = CREATE_CAR (57.6, 174.3) 7 0 ZCX5 END
  ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car14 ))
  IF (NOT(IS_POINT_ONSCREEN ( 58.6, 174.3, 3.0 )))
    car14 = CREATE_CAR (58.6, 174.3) 7 0 ZCX5 END
  ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car15 ))
  IF (NOT(IS_POINT_ONSCREEN ( 59.6, 174.3, 3.0 )))
    car15 = CREATE_CAR (59.6, 174.3) 7 0 ZCX5 END
  ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car16 ))
  IF (NOT(IS_POINT_ONSCREEN ( 41.6, 174.3, 3.0 )))
    car16 = CREATE_CAR (41.6, 174.3) 14 0 ZCX5 END
  ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car17 ))
  IF (NOT(IS_POINT_ONSCREEN ( 42.6, 174.3, 3.0 )))
    car17 = CREATE_CAR (42.6, 174.3) 14 0 ZCX5 END
  ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car18 ))
  IF (NOT(IS_POINT_ONSCREEN ( 43.6, 174.3, 3.0 )))
    car18 = CREATE_CAR (43.6, 174.3) 14 0 ZCX5 END
  ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car19 ))
  IF (NOT(IS_POINT_ONSCREEN ( 218.8, 120.0, 3.0 )))
    car19 = CREATE_CAR (218.8, 120.0) 7 215 ZCX5 END
  ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car20 ))
  IF (NOT(IS_POINT_ONSCREEN ( 217.1, 114.2, 3.0 )))
    car20 = CREATE_CAR (217.1, 114.2) 7 105 ZCX5 END
  ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car21 ))
  IF (NOT(IS_POINT_ONSCREEN ( 227.5, 114.1, 3.0 )))
    car21 = CREATE_CAR (227.5, 114.1) 7 270 ZCX5 END
  ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car22 ))
  IF (NOT(IS_POINT_ONSCREEN ( 227.0, 120.0, 3.0 )))
    car22 = CREATE_CAR (227.0, 120.0) 14 200 ZCX5 END
  ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car23 ))
  IF (NOT(IS_POINT_ONSCREEN ( 222.9, 117.7, 3.0 )))
    car23 = CREATE_CAR (222.9, 117.7) 14 85 ZCX5 END
  ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car24 ))
  IF (NOT(IS_POINT_ONSCREEN ( 222.8, 122.8, 3.0 )))
    car24 = CREATE_CAR (222.8, 122.8) 14 180 ZCX5 END
  ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car25 ))
  IF (NOT(IS_POINT_ONSCREEN ( 122.7, 230.5, 3.0 )))
    car25 = CREATE_CAR (122.7, 230.5) 14 90 COPCAR END
  ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car26 ))
  IF (NOT(IS_POINT_ONSCREEN ( 122.7, 231.5, 3.0 )))
    car26 = CREATE_CAR (122.7, 231.5) 14 90 COPCAR END
  ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car27 ))
  IF (NOT(IS_POINT_ONSCREEN ( 122.7, 232.5, 3.0 )))
    car27 = CREATE_CAR (122.7, 232.5) 14 90 COPCAR END
  ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car28 ))
  IF (NOT(IS_POINT_ONSCREEN ( 126.7, 230.5, 3.0 )))
    car28 = CREATE_CAR (126.7, 230.5) 14 90 COPCAR END
  ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car29 ))
  IF (NOT(IS_POINT_ONSCREEN ( 126.7, 231.5, 3.0 )))
    car29 = CREATE_CAR (126.7, 231.5) 14 90 COPCAR END
  ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car30 ))
  IF (NOT(IS_POINT_ONSCREEN ( 126.7, 232.5, 3.0 )))
    car30 = CREATE_CAR (126.7, 232.5) 14 90 COPCAR END
  ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car31 ))
  //IF (NOT(HAS_CAR_GOT_DRIVER(car31)))
    //PUT_CAR_ON_TRAILER ( car31, trailer)
  //ENDIF

  IF (NOT(IS_POINT_ONSCREEN ( 47.6, 227.5, 3.0 )))
    car31 = CREATE_CAR (47.6, 227.5) 14 90 COPCAR END
  ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car32 ))
  //IF (NOT(HAS_CAR_GOT_DRIVER(car32)))
    //PUT_CAR_ON_TRAILER ( car32, trailer)
  //ENDIF

  IF (NOT(IS_POINT_ONSCREEN ( 47.6, 228.5, 3.0 )))
					car32 = CREATE_CAR (47.6, 228.5) 14 90 ZCX5 END
  ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car33 ))
  //IF (NOT(HAS_CAR_GOT_DRIVER(car33)))
    //PUT_CAR_ON_TRAILER ( car33, trailer)
  //ENDIF

  IF (NOT(IS_POINT_ONSCREEN ( 47.6, 229.5, 3.0 )))
					car33 = CREATE_CAR (47.6, 229.5) 14 90 COPCAR END
  ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car34 ))
  //IF (NOT(HAS_CAR_GOT_DRIVER(car34)))
    //PUT_CAR_ON_TRAILER ( car34, trailer)
  //ENDIF

  IF (NOT(IS_POINT_ONSCREEN ( 47.6, 230.5, 3.0 )))
    car34 = CREATE_CAR (47.6, 230.5) 14 90 ZCX5 END
  ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car35 ))
  //IF (NOT(HAS_CAR_GOT_DRIVER(car35)))
    //PUT_CAR_ON_TRAILER ( car35, trailer)
  //ENDIF

  IF (NOT(IS_POINT_ONSCREEN ( 47.6, 231.5, 3.0 )))
    car35 = CREATE_CAR (47.6, 231.5) 14 90 COPCAR END
  ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( car36 ))
  //IF (NOT(HAS_CAR_GOT_DRIVER(car36)))
    //PUT_CAR_ON_TRAILER ( car36, trailer)
  //ENDIF

  IF (NOT(IS_POINT_ONSCREEN ( 47.6, 232.5, 3.0 )))
    car36 = CREATE_CAR (47.6, 232.5) 14 90 ZCX5 END
  ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( tank01 ))
  IF (NOT(IS_POINT_ONSCREEN ( 156.5, 28.6, 3.0 )))
    tank01 = CREATE_CAR (156.5, 28.6) -1 270 TANK END
  ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( tank02 ))
  IF (NOT(IS_POINT_ONSCREEN ( 156.5, 12.5, 3.0 )))
    tank02 = CREATE_CAR (156.5, 12.5) -1 270 TANK END
  ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( tank03 ))
  IF (NOT(IS_POINT_ONSCREEN ( 156.5, 29.7, 3.0 )))
    tank03 = CREATE_CAR (156.5, 29.7) -1 270 TANK END
  ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( tank04 ))
  IF (NOT(IS_POINT_ONSCREEN ( 156.5, 11.3, 3.0 )))
    tank04 = CREATE_CAR (156.5, 11.3) -1 270 TANK END
  ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( tank05 ))
  IF (NOT(IS_POINT_ONSCREEN ( 156.5, 27.5, 3.0 )))
    tank05 = CREATE_CAR (156.5, 27.5) -1 270 TANK END
  ENDIF
ENDIF

IF ( IS_CAR_WRECKED ( tank06 ))
  IF (NOT(IS_POINT_ONSCREEN ( 156.5, 13.7, 3.0 )))
    tank06 = CREATE_CAR (156.5, 13.7) -1 270 TANK END
  ENDIF
ENDIF


//Player 1 can make everyone skip to a check point
IF ( LOCATE_CHARACTER_ANY_MEANS ( p1, 217.5, 221.5, 3.0, 0.6, 0.6 ))
		SET check04 = 1
		SET p1warp=1
		SET p2warp=1
		SET p3warp=1
		SET p4warp=1
		SET p5warp=1
		SET p6warp=1
ENDIF

IF ( LOCATE_CHARACTER_ANY_MEANS ( p1, 217.5, 222.5, 3.0, 0.6, 0.6 ))
  SET check05 = 1
		SET p1warp=1
		SET p2warp=1
		SET p3warp=1
		SET p4warp=1
		SET p5warp=1
		SET p6warp=1
ENDIF

IF ( LOCATE_CHARACTER_ANY_MEANS ( p1, 217.5, 223.5, 3.0, 0.6, 0.6 ))
 	SET check06 = 1
  SET p1warp=1
		SET p2warp=1
		SET p3warp=1
		SET p4warp=1
		SET p5warp=1
		SET p6warp=1
ENDIF

IF ( check = 6 )
GIVE_WEAPON ( p1, grenade, 1 )
GIVE_WEAPON ( p2, grenade, 1 )
GIVE_WEAPON ( p3, grenade, 1 )
GIVE_WEAPON ( p4, grenade, 1 )
GIVE_WEAPON ( p5, grenade, 1 )
GIVE_WEAPON ( p6, grenade, 1 )
ENDIF

ENDWHILE

LEVELEND
