PLAYER_PED p1 = ( 116.5, 140.5, 5.0 ) 13 180 
PLAYER_PED p2 = ( 118.5, 140.5, 5.0 ) 12 180 
PLAYER_PED p3 = ( 120.5, 140.5, 5.0 ) 22 180 
PLAYER_PED p4 = ( 122.5, 140.5, 5.0 ) 16 180 
PLAYER_PED p5 = ( 124.5, 140.5, 5.0 ) 26 180
PLAYER_PED p6 = ( 126.5, 140.5, 5.0 ) 9 180 

car_data car1 
car_data car2
car_data car3 
car_data car4 
car_data car5 
car_data car6 

car_data car7
car_data car8
car_data car9
car_data car10
car_data car11
car_data car12
car_data car13

CAR_DATA meta = ( 14.5 , 128.5 , 3.0 ) -1 180 TANK

PARKED_CAR_DATA car14 = ( 54.5 , 27.5 , 3.0 ) 35 0 PICKUP
PARKED_CAR_DATA car15 = ( 39.5 , 36.5 , 4.0 ) 16 180 PICKUP
PARKED_CAR_DATA car16 = ( 32.5 , 34.5 , 3.0 ) 19 270 PICKUP
PARKED_CAR_DATA car17 = ( 43.5 , 15.5 , 3.0 ) 25 90 PICKUP

COUNTER gameloop = 1

LEVELSTART

DISPLAY_MESSAGE ( 5504 ) // RACE ON
SET_AMBIENT_LEVEL ( 0.3, 3 )

car1 = CREATE_CAR ( 116.5 , 141.5 , 5.0 ) 14 180 ZCX5 END
car2 = CREATE_CAR ( 118.5 , 141.5 , 5.0 ) 34 180 ZCX5 END
car3 = CREATE_CAR ( 120.5 , 141.5 , 5.0 ) 16 180 ZCX5 END
car4 = CREATE_CAR ( 122.5 , 141.5 , 5.0 ) 22 180 ZCX5 END
car5 = CREATE_CAR ( 124.5 , 141.5 , 5.0 ) 36 180 ZCX5 END
car6 = CREATE_CAR ( 126.5 , 141.5 , 5.0 ) 24 180 ZCX5 END

car7 = CREATE_CAR ( 113.5 , 128.5 , 2.0 ) 14 180 ALLARD END
car8 = CREATE_CAR ( 113.5 , 127.5 , 2.0 ) 34 180 ALLARD END
car9 = CREATE_CAR ( 113.5 , 126.5 , 2.0 ) 16 180 ALLARD END
car10 = CREATE_CAR ( 113.5 , 124.5 , 2.0 ) 22 180 ALLARD END
car11 = CREATE_CAR ( 113.5 , 123.5 , 2.0 ) 36 180 ALLARD END
car12 = CREATE_CAR ( 113.5 , 122.5 , 2.0 ) 24 180 ALLARD END

WHILE ( gameloop = 1 )

// Respiaki

if ( is_car_wrecked ( car1 )) 
car1 = CREATE_CAR ( 116.5 , 141.5 , 5.0 ) 14 180 ZCX5 END
endif 
if ( is_car_wrecked ( car2 )) 
car2 = CREATE_CAR ( 118.5 , 141.5 , 5.0 ) 34 180 ZCX5 END
endif 
if ( is_car_wrecked ( car3 )) 
car3 = CREATE_CAR ( 120.5 , 141.5 , 5.0 ) 16 180 ZCX5 END
endif 
if ( is_car_wrecked ( car4 )) 
car4 = CREATE_CAR ( 120.5 , 141.5 , 5.0 ) 22 180 ZCX5 END
endif 
if ( is_car_wrecked ( car5 )) 
car5 = CREATE_CAR ( 124.5 , 141.5 , 5.0 ) 36 180 ZCX5 END
endif 
if ( is_car_wrecked ( car6 )) 
car6 = CREATE_CAR ( 126.5 , 141.5 , 5.0 ) 24 180 ZCX5 END
endif 



if ( is_car_wrecked ( car7 )) 
car7 = CREATE_CAR ( 113.5 , 128.5 , 2.0 ) 14  180 ALLARD END
endif 
if ( is_car_wrecked ( car8 )) 
car8 = CREATE_CAR ( 113.5 , 127.5 , 2.0 ) 34 180 ALLARD END
endif 
if ( is_car_wrecked ( car9 )) 
car9 = CREATE_CAR ( 113.5 , 126.5 , 2.0 ) 16 180 ALLARD END
endif 
if ( is_car_wrecked ( car10 )) 
car10 = CREATE_CAR ( 113.5 , 124.5 , 2.0 ) 22 180 ALLARD END
endif 
if ( is_car_wrecked ( car11 )) 
car11 = CREATE_CAR ( 113.5 , 123.5 , 2.0 ) 36 180 ALLARD END
endif 
if ( is_car_wrecked ( car12 )) 
car12 = CREATE_CAR ( 113.5 , 122.5 , 2.0 ) 24 180 ALLARD END
endif 

// skorsy

IF ( IS_CHARACTER_IN_CAR ( p1 , meta ))
add_score ( p1 , 999999 )
ENDIF
IF ( IS_CHARACTER_IN_CAR ( p2 , meta ))
add_score ( p2 , 999999 )
ENDIF
IF ( IS_CHARACTER_IN_CAR ( p3 , meta ))
add_score ( p3 , 999999 )
ENDIF
IF ( IS_CHARACTER_IN_CAR ( p4 , meta ))
add_score ( p4 , 999999 )
ENDIF
IF ( IS_CHARACTER_IN_CAR ( p5 , meta ))
add_score ( p5 , 999999 )
ENDIF
IF ( IS_CHARACTER_IN_CAR ( p6 , meta ))
add_score ( p6 , 999999 )
ENDIF

ENDWHILE

LEVELEND

// Made by Yourself & Mahone
