// player's normal start position
PLAYER_PED p1 = ( 123.5 , 141.5 , 5.0 ) 07 180
PLAYER_PED p2 = ( 128.5 , 129.5 , 5.0 ) 12 180
PLAYER_PED p3 = ( 128.5 , 141.5 , 5.0 ) 09 0 
PLAYER_PED p4 = ( 123.5 , 129.5 , 5.0 ) 11 0
PLAYER_PED p5 = ( 119.5 , 135.5 , 5.0 ) 15 90
PLAYER_PED p6 = ( 132.5 , 135.5 , 5.0 ) 17 270
PARKED_CAR_DATA player_car = (50.5, 46.5, 1.0) 0 0 GT24640

GENERATOR n1 = ( 123.5,139.5 ) 0 COLLECT_39 100 100
GENERATOR n2 = ( 128.5,131.5 ) 0 COLLECT_39 100 100
GENERATOR n3 = ( 128.5,139.5 ) 0 COLLECT_39 100 100
GENERATOR n4 = ( 123.5,131.5 ) 0 COLLECT_39 100 100
GENERATOR n5 = ( 119.5,135.5 ) 0 COLLECT_39 100 100
GENERATOR n6 = ( 132.5,135.5 ) 0 COLLECT_39 100 100

// two basic boolean values
//SAVED_COUNTER true = 1    // niepotrzebne
//SAVED_COUNTER false = 0   // niepotrzebne

COUNTER loop = 1

LEVELSTART 

SWITCH_GENERATOR (n1, ON)
SWITCH_GENERATOR (n2, ON)
SWITCH_GENERATOR (n3, ON)
SWITCH_GENERATOR (n4, ON)
SWITCH_GENERATOR (n5, ON)
SWITCH_GENERATOR (n6, ON)

WHILE (loop=1)
 IF (CHECK_CHARACTER_HEALTH(p1, 0))
  GIVE_WEAPON (p1, electro_gun, 99) 
 ENDIF
 
 IF (CHECK_CHARACTER_HEALTH(p2, 0))
  GIVE_WEAPON (p2, electro_gun, 99) 
 ENDIF
 
 IF (CHECK_CHARACTER_HEALTH(p3, 0))
  GIVE_WEAPON (p3, electro_gun, 99) 
 ENDIF
 
 IF (CHECK_CHARACTER_HEALTH(p4, 0))
  GIVE_WEAPON (p4, electro_gun, 99) 
 ENDIF

 IF (CHECK_CHARACTER_HEALTH(p5, 0))
  GIVE_WEAPON (p5, electro_gun, 99) 
 ENDIF
 
 IF (CHECK_CHARACTER_HEALTH(p6, 0))
  GIVE_WEAPON (p6, electro_gun, 99) 
 ENDIF
ENDWHILE

LEVELEND
