PLAYER_PED p1 = (46.5, 166.5, 6.0) 9 90
PLAYER_PED p2 = (48.5, 166.5, 6.0) 7 270
PLAYER_PED p3 = (47.5, 164.5, 6.0) 10 0
PLAYER_PED p4 = (47.5, 167.5, 6.0) 11 180
PLAYER_PED p5 = (48.5, 165.5, 6.0) 13 270
PLAYER_PED p6 = (48.5, 165.5, 6.0) 6 90

SAVED_COUNTER true = 1 
SAVED_COUNTER false = 0 

counter wp1 = 0
counter wp2 = 0
counter wp3 = 0
counter wp4 = 0
counter wp5 = 0
counter wp6 = 0

CONVEYOR co1 = ( 42.5 , 160.5 , 4.0 ) ( 7.0 , 1.0 ) -1 0 
CONVEYOR co2 = ( 42.5 , 161.5 , 4.0 ) ( 7.0 , 1.0 ) 1 0 
CONVEYOR co3 = ( 39.5 , 165.5 , 4.0 ) ( 9.0 , 1.0 ) -1 0 
CONVEYOR co4 = ( 42.5 , 169.5 , 4.0 ) ( 7.0 , 1.0 ) 1 0 
CONVEYOR co5 = ( 42.5 , 170.5 , 4.0 ) ( 7.0 , 1.0 ) -1 0 

CRANE_DATA n1 = ( 37.5 , 171.5 ) 0 NO_HOMECRANE 
CRANE_DATA n2 = ( 44.5 , 168.5 ) 0 NO_HOMECRANE 
CRANE_DATA n3 = ( 48.5 , 162.5 ) 90 NO_HOMECRANE 
CRANE_DATA n4 = ( 39.5 , 159.5 ) 180 NO_HOMECRANE 
CRANE_DATA n5 = ( 41.5 , 164.5 ) 180 NO_HOMECRANE 
CRANE_DATA n6 = ( 36.5 , 166.5 ) 270 NO_HOMECRANE 

GENERATOR z1 = ( 48.5 , 170.5 , 5.0 ) 0 COLLECT_02 1 2 99
GENERATOR z2 = ( 36.5 , 169.5 , 5.0 ) 0 COLLECT_02 1 2 99
GENERATOR z3 = ( 36.5 , 159.5 , 5.0 ) 0 COLLECT_02 1 2 99
GENERATOR z4 = ( 48.5 , 159.5 , 6.0 ) 0 COLLECT_02 1 2 99
GENERATOR z5 = ( 40.5 , 162.5 , 5.0 ) 0 COLLECT_02 1 2 99
GENERATOR z6 = ( 41.5 , 171.5 , 4.0 ) 0 COLLECT_02 1 2 99
GENERATOR z7 = ( 42.5 , 159.5 , 4.0 ) 0 COLLECT_02 1 2 99
GENERATOR z8 = ( 43.5 , 167.5 , 4.0 ) 0 COLLECT_02 1 2 99
GENERATOR f1 = ( 37.5 , 160.5 , 4.0 ) 0 COLLECT_36 1 2 99
GENERATOR f2 = ( 48.5 , 163.5 , 4.0 ) 0 COLLECT_36 1 2 99
GENERATOR f3 = ( 46.5 , 171.5 , 4.0 ) 0 COLLECT_36 1 2 99
GENERATOR f4 = ( 37.5 , 170.5 , 4.0 ) 0 COLLECT_36 1 2 99
GENERATOR f5 = ( 40.5 , 163.5 , 4.0 ) 0 COLLECT_36 1 2 99
GENERATOR invi = ( 36.5 , 168.5 , 6.0 ) 0 COLLECT_39 5500 5501 1
GENERATOR h = ( 47.5 , 166.0 , 6.0 ) 0 COLLECT_30 5500 5501 1


LEVELSTART 

SET_AMBIENT_LEVEL  (0.33, 0)

IF ( ( CHECK_CHARACTER_HEALTH ( p1 , 0 ) ) AND ( wp1 = 0 ) )
   GIVE_WEAPON ( p1 , ROCKET_LAUNCHER , 99 )
   set wp1 = 1
Endif

IF ( ( CHECK_CHARACTER_HEALTH ( p2 , 0 ) ) AND ( wp2 = 0 ) )
   GIVE_WEAPON ( p2 , ROCKET_LAUNCHER , 99 )
   set wp2 = 1
Endif

IF ( ( CHECK_CHARACTER_HEALTH ( p3 , 0 ) ) AND ( wp3 = 0 ) )
   GIVE_WEAPON ( p3 , ROCKET_LAUNCHER , 99 )
   set wp3 = 1
Endif

IF ( ( CHECK_CHARACTER_HEALTH ( p4 , 0 ) ) AND ( wp4 = 0 ) )
   GIVE_WEAPON ( p4 , ROCKET_LAUNCHER , 99 )
   set wp4 = 1
Endif

IF ( ( CHECK_CHARACTER_HEALTH ( p5 , 0 ) ) AND ( wp5 = 0 ) )
   GIVE_WEAPON ( p5 , ROCKET_LAUNCHER , 99 )
   set wp5 = 1
Endif

IF ( ( CHECK_CHARACTER_HEALTH ( p6 , 0 ) ) AND ( wp6 = 0 ) )
   GIVE_WEAPON ( p6 , ROCKET_LAUNCHER , 99 )
   set wp6 = 1
Endif

SWITCH_GENERATOR ( z1 , ON )
SWITCH_GENERATOR ( z2 , ON )
SWITCH_GENERATOR ( z3 , ON )
SWITCH_GENERATOR ( z4 , ON )
SWITCH_GENERATOR ( z5 , ON )
SWITCH_GENERATOR ( z6 , ON )
SWITCH_GENERATOR ( z7 , ON )
SWITCH_GENERATOR ( z8 , ON )
SWITCH_GENERATOR ( f1 , ON )
SWITCH_GENERATOR ( f2 , ON )
SWITCH_GENERATOR ( f3 , ON )
SWITCH_GENERATOR ( f4 , ON )
SWITCH_GENERATOR ( f5 , ON )
SWITCH_GENERATOR ( invi , ON )
SWITCH_GENERATOR ( h , ON )


LEVELEND
