//Players Delcare:
PLAYER_PED p1 = (109.5, 233.5, 5.0) 8 0   //Gray 
PLAYER_PED p2 = (109.5, 231.5, 5.0) 13 180  //Blue
PLAYER_PED p3 = (108.5, 232.5, 5.0) 11 270  //Green
PLAYER_PED p4 = (110.5, 232.5, 5.0) 10 90  //Red

COUNTER loop = 1
//Cars:
PARKED_CAR_DATA fire1 = (98.5, 251.8, 2.0) -1 180 FIRETRUK
PARKED_CAR_DATA bus1 = (81.2, 239.5, 2.0) 17 90 BUS
PARKED_CAR_DATA fire2 = (81.2, 242.5, 2.0) -1 90 FIRETRUK
PARKED_CAR_DATA fire3 = (81.2, 222.5, 2.0) -1 90 FIRETRUK
PARKED_CAR_DATA bus2 = (81.2, 226.5, 2.0) 17 90 BUS
PARKED_CAR_DATA bus3 = (115.8, 220.5, 2.0) 17 270 BUS
PARKED_CAR_DATA fire4 = (116.5, 228.8, 2.0) -1 180 FIRETRUK
PARKED_CAR_DATA bus4 = (115.5, 237.8, 2.0) 17 180 BUS

//Weapons and powerups:

GENERATOR zooka1 = ( 104.5, 239.5, 2.0 ) 0 COLLECT_02 1 1 99
GENERATOR zooka2 = ( 89.5, 239.5, 2.0 ) 0 COLLECT_02 1 1 99
GENERATOR zooka3 = ( 89.5, 224.5, 2.0 ) 0 COLLECT_02 1 1 99
GENERATOR zooka4 = ( 104.5, 224.5, 2.0 ) 0 COLLECT_02 1 1 99
GENERATOR zooka5 = ( 113.0, 232.5, 2.0 ) 0 COLLECT_02 1 1 99
GENERATOR zooka6 = ( 113.0, 250.5, 2.0 ) 0 COLLECT_02 1 1 99
GENERATOR zooka7 = ( 86.5, 232.5, 2.0 ) 0 COLLECT_02 1 1 99
GENERATOR zooka8 = ( 109.5, 232.5, 5.0 ) 0 COLLECT_02 1 1 99

GENERATOR koka1 = (105.0, 249.0, 2.0 ) 0 COLLECT_04 1 1 99

GENERATOR silence = (107.5, 232.5, 2.0 ) 0 COLLECT_09 1 1 99
GENERATOR granaty = (102.7, 221.7, 2.0 ) 0 COLLECT_05 1 1 99

GENERATOR electro = (82.0, 224.0, 2.0 ) 0 COLLECT_03 1 1 99
GENERATOR flame = (111.0, 222.0, 2.0 ) 0 COLLECT_08 1 1 99
/*
GENERATOR mgun1 = (126.5, 130.5, 3.0 ) 0  	COLLECT_01 1500 1500 10
GENERATOR mgun2 = (126.5, 126.5, 3.0 ) 0  	COLLECT_01 1500 1500 10
GENERATOR armor1 = (125.5, 130.5, 3.0 ) 0  	COLLECT_31 1500 1500 1
GENERATOR armor2 = (125.5, 126.5, 3.0 ) 0  	COLLECT_31 1500 1500 1


GENERATOR fr1 = (117.5, 123.5, 5.0 ) 0 COLLECT_36 4000 4000 1
GENERATOR f1 = (122.5, 120.5, 5.0 ) 0 COLLECT_08 1900 1900 12
GENERATOR mgun3 = (114.5, 118.5, 2.0 ) 0  	COLLECT_01 1500 1500 10
GENERATOR armor3 = (114.5, 119.5, 2.0 ) 0  	COLLECT_31 1500 1500 1
GENERATOR armor4 = (137.5, 101.5, 2.0 ) 0  	COLLECT_31 1500 1500 1
GENERATOR zooka2 = (147.5, 89.5, 2.0 ) 0 COLLECT_02 3500 3500 3
GENERATOR zooka3 = (149.5, 89.5, 2.0 ) 0 COLLECT_02 3500 3500 3
GENERATOR fr3 = (147.5, 90.5, 2.0 ) 0 COLLECT_36 2000 2000 1
GENERATOR fr2 = (149.5, 90.5, 2.0 ) 0 COLLECT_36 2000 2000 1
GENERATOR mgun4 = (147.5, 91.5, 2.0 ) 0 COLLECT_01 2000 2000 10
GENERATOR mgun5 = (149.5, 91.5, 2.0 ) 0 COLLECT_01 2000 2000 10
GENERATOR ele = (94.5, 124.5, 2.0 ) 0 COLLECT_03 4000 4000 6
GENERATOR dd = (107.5, 131.5, 2.0 ) 0 COLLECT_35 3000 3000 1
GENERATOR koka2 = (100.5, 128.5, 2.0 ) 0 COLLECT_04 1800 1800 2
GENERATOR zooka5 = (131.5, 117.5, 1.0 ) 0 COLLECT_02 3500 3500 1
*/

LEVELSTART 

SET_CAR_ROCKETPROOF ( fire1 , ON )
SET_CAR_ROCKETPROOF ( fire2 , ON )
SET_CAR_ROCKETPROOF ( fire3 , ON )
SET_CAR_ROCKETPROOF ( fire4 , ON )

SET_CAR_FLAMEPROOF ( fire1 , ON )
SET_CAR_FLAMEPROOF ( fire2 , ON )
SET_CAR_FLAMEPROOF ( fire3 , ON )
SET_CAR_FLAMEPROOF ( fire4 , ON )

SET_CAR_JAMMED_ACCELERATOR ( bus1 , ON ) 
SET_CAR_JAMMED_ACCELERATOR ( bus2 , ON ) 
SET_CAR_JAMMED_ACCELERATOR ( bus3 , ON ) 
SET_CAR_JAMMED_ACCELERATOR ( bus4 , ON ) 

GIVE_WEAPON ( bus1 , CAR_MACHINE_GUN ,  1)
GIVE_WEAPON ( bus2 , CAR_MACHINE_GUN ,  1)
GIVE_WEAPON ( bus3 , CAR_MACHINE_GUN ,  1)
GIVE_WEAPON ( bus4 , CAR_MACHINE_GUN ,  1)

GIVE_WEAPON ( fire1 , CAR_FLAMETHROWER , 1)
GIVE_WEAPON ( fire2 , CAR_FLAMETHROWER , 1)
GIVE_WEAPON ( fire3 , CAR_FLAMETHROWER , 1)
GIVE_WEAPON ( fire4 , CAR_FLAMETHROWER , 1)

//Weapons (Gen):
SWITCH_GENERATOR ( zooka1 , ON )
SWITCH_GENERATOR ( zooka2 , ON )
SWITCH_GENERATOR ( zooka3 , ON )
SWITCH_GENERATOR ( zooka4 , ON )
SWITCH_GENERATOR ( zooka5 , ON )
SWITCH_GENERATOR ( zooka6 , ON )
SWITCH_GENERATOR ( zooka7 , ON )
SWITCH_GENERATOR ( zooka8 , ON )

SWITCH_GENERATOR ( koka1 , ON )
SWITCH_GENERATOR ( silence , ON )
SWITCH_GENERATOR ( granaty , ON )

SWITCH_GENERATOR ( electro , ON )
SWITCH_GENERATOR ( flame , ON )
/*
SWITCH_GENERATOR ( mgun1 , ON )
SWITCH_GENERATOR ( mgun2 , ON )
SWITCH_GENERATOR ( armor1 , ON )
SWITCH_GENERATOR ( armor2 , ON )
SWITCH_GENERATOR ( koka1 , ON )
SWITCH_GENERATOR ( zooka1 , ON )
SWITCH_GENERATOR ( fr1 , ON )
SWITCH_GENERATOR ( f1 , ON )
SWITCH_GENERATOR ( mgun3 , ON )
SWITCH_GENERATOR ( armor3 , ON )
SWITCH_GENERATOR ( zooka2 , ON )
SWITCH_GENERATOR ( zooka3 , ON )
SWITCH_GENERATOR ( fr3 , ON )
SWITCH_GENERATOR ( mgun4 , ON )
SWITCH_GENERATOR ( mgun5 , ON )
SWITCH_GENERATOR ( fr2 , ON )
SWITCH_GENERATOR ( dd , ON )
SWITCH_GENERATOR ( ele , ON )
SWITCH_GENERATOR ( armor4 , ON )
SWITCH_GENERATOR ( koka2 , ON )
SWITCH_GENERATOR ( zooka5 , ON )
*/

WHILE_EXEC (loop = 1)

IF (CHECK_WEAPON_TYPE_HIT_CAR ( fire1 , BY_ROCKET_LAUNCHER ))  
 SET_CAR_ROCKETPROOF ( fire1 , OFF )
ENDIF

IF (CHECK_WEAPON_TYPE_HIT_CAR ( fire2 , BY_ROCKET_LAUNCHER ))  
 SET_CAR_ROCKETPROOF ( fire2 , OFF )
ENDIF

IF (CHECK_WEAPON_TYPE_HIT_CAR ( fire3 , BY_ROCKET_LAUNCHER ))  
 SET_CAR_ROCKETPROOF ( fire3 , OFF )
ENDIF

IF (CHECK_WEAPON_TYPE_HIT_CAR ( fire4 , BY_ROCKET_LAUNCHER ))  
 SET_CAR_ROCKETPROOF ( fire4 , OFF )
ENDIF




ENDWHILE


LEVELEND
