///////////////////////////////////////////////////////////////////
//        Hidden Suprise - Auto WW Edit by Wojti & Kratek        //
///////////////////////////////////////////////////////////////////

// Gracze 
PLAYER_PED Gracz1 = (146.50, 17.50, 2.00) 11 0     // Zielony      
PLAYER_PED Gracz2 = (144.50, 36.50, 2.00) 13 90    // Granatowy    
PLAYER_PED Gracz3 = (182.50, 33.50, 2.00) 8 180    // Szary        
PLAYER_PED Gracz4 = (204.50, 27.50, 2.00) 10 270   // Czerwony     

// Bronie Ręczne 
OBJ_DATA Pistolet1                              // Pistolet1         
COUNTER Pistolet1_Reset = 1
COUNTER Pistolet1_Timer1 = 0
OBJ_DATA Pistolet2                              // Pistolet2         
COUNTER Pistolet2_Reset = 1
COUNTER Pistolet2_Timer1 = 0
OBJ_DATA Pistolet3                              // Pistolet3         
COUNTER Pistolet3_Reset = 1
COUNTER Pistolet3_Timer1 = 0
OBJ_DATA Karabinek1                             // Karabinek1        
COUNTER Karabinek1_Reset = 1
COUNTER Karabinek1_Timer1 = 0
OBJ_DATA Karabinek2                             // Karabinek2        
COUNTER Karabinek2_Reset = 1
COUNTER Karabinek2_Timer1 = 0
OBJ_DATA Karabinek3                             // Karabinek3        
COUNTER Karabinek3_Reset = 1
COUNTER Karabinek3_Timer1 = 0
OBJ_DATA Rakietnica1                            // Rakietnica1       
COUNTER Rakietnica1_Reset = 1
COUNTER Rakietnica1_Timer1 = 0
OBJ_DATA Rakietnica2                            // Rakietnica2       
COUNTER Rakietnica2_Reset = 1
COUNTER Rakietnica2_Timer1 = 0
OBJ_DATA ElektroArmata1                         // ElektroArmata1    
COUNTER ElektroArmata1_Reset = 1
COUNTER ElektroArmata1_Timer1 = 0
OBJ_DATA Koktajl1                               // Koktajl1          
COUNTER Koktajl1_Reset = 1
COUNTER Koktajl1_Timer1 = 0
OBJ_DATA Granaty1                               // Granaty1          
COUNTER Granaty1_Reset = 1
COUNTER Granaty1_Timer1 = 0
OBJ_DATA Granaty2                               // Granaty2          
COUNTER Granaty2_Reset = 1
COUNTER Granaty2_Timer1 = 0
OBJ_DATA Strzelba1                              // Strzelba1         
COUNTER Strzelba1_Reset = 1
COUNTER Strzelba1_Timer1 = 0
OBJ_DATA Strzelba2                              // Strzelba2         
COUNTER Strzelba2_Reset = 1
COUNTER Strzelba2_Timer1 = 0
OBJ_DATA Strzelba3                              // Strzelba3         
COUNTER Strzelba3_Reset = 1
COUNTER Strzelba3_Timer1 = 0
OBJ_DATA MiotaczOgnia1                          // MiotaczOgnia1     
COUNTER MiotaczOgnia1_Reset = 1
COUNTER MiotaczOgnia1_Timer1 = 0
OBJ_DATA PodwojnyPistolet1                      // PodwojnyPistolet1 
COUNTER PodwojnyPistolet1_Reset = 1
COUNTER PodwojnyPistolet1_Timer1 = 0
OBJ_DATA PodwojnyPistolet2                      // PodwojnyPistolet2 
COUNTER PodwojnyPistolet2_Reset = 1
COUNTER PodwojnyPistolet2_Timer1 = 0
OBJ_DATA PodwojnyPistolet3                      // PodwojnyPistolet3 
COUNTER PodwojnyPistolet3_Reset = 1
COUNTER PodwojnyPistolet3_Timer1 = 0

// Bronie Samochodowe 
GENERATOR OlejSamochodowy1 = (246.50, 22.50, 2.00) 0 COLLECT_16 6000 6000 6
GENERATOR BombaSamochodowa1 = (229.50, 12.50, 2.00) 0 COLLECT_15 6000 6000 1
GENERATOR KarabinekSamochodowy1 = (170.50, 28.00, 4.00) 0 COLLECT_18 6000 6000 10

// Wzmocnienia 
GENERATOR Pancerz1 = (194.50, 17.50, 2.00) 0 COLLECT_31 6000 6000 1
GENERATOR PodwojneZniszczenie1 = (219.00, 32.50, 2.00) 0 COLLECT_35 6000 6000 6
GENERATOR SzybkiePrzeladowanie1 = (151.50, 15.50, 3.00) 0 COLLECT_36 6000 6000 3
GENERATOR Gang1 = (175.50, 8.50, 2.00) 0 COLLECT_40 6000 6000 8
GENERATOR Gang2 = (223.50, 39.00, 2.00) 0 COLLECT_40 6000 6000 4

// Zmienne 
CAR_DATA Gracz1_Auto
CAR_DATA Gracz2_Auto
CAR_DATA Gracz3_Auto
CAR_DATA Gracz4_Auto
COUNTER ww1 = 1
COUNTER ww2 = 1
COUNTER ww3 = 1
COUNTER ww4 = 1
ARROW_DATA ww1_on
ARROW_DATA ww1_off
ARROW_DATA ww2_on
ARROW_DATA ww2_off
ARROW_DATA ww3_on
ARROW_DATA ww3_off
ARROW_DATA ww4_on
ARROW_DATA ww4_off
COUNTER loop = 1

// LEVELSTART \\
   LEVELSTART 
   
SET_ARROW_COLOUR ( ww1_on , RED )
SET_ARROW_COLOUR ( ww1_off , GREEN )
SET_ARROW_COLOUR ( ww2_on , RED )
SET_ARROW_COLOUR ( ww2_off , GREEN )
SET_ARROW_COLOUR ( ww3_on , RED )
SET_ARROW_COLOUR ( ww3_off , GREEN )
SET_ARROW_COLOUR ( ww4_on , RED )
SET_ARROW_COLOUR ( ww4_off , GREEN )

SWITCH_GENERATOR ( OlejSamochodowy1, ON )
SWITCH_GENERATOR ( BombaSamochodowa1, ON )
SWITCH_GENERATOR ( KarabinekSamochodowy1, ON )
SWITCH_GENERATOR ( Pancerz1, ON )
SWITCH_GENERATOR ( PodwojneZniszczenie1, ON )
SWITCH_GENERATOR ( SzybkiePrzeladowanie1, ON )
SWITCH_GENERATOR ( Gang1, ON )
SWITCH_GENERATOR ( Gang2, ON )

WHILE_EXEC(loop = 1)

/////////////////////////////////
//  Auto WW by Wojti & Kratek  //
/////////////////////////////////

/////////////////////////////////
//           GRACZ I           //
/////////////////////////////////
STORE_CAR_CHARACTER_IS_IN ( Gracz1, Gracz1_Auto )
// Aktywacja WW 
IF ( HAS_CHARACTER_DIED ( Gracz1 ))
    REMOVE_WEAPONS ( Gracz1 )
    SET ww1 = 1
ENDIF
IF ( ww1 = 1 ) 
    REMOVE_ARROW ( ww1_off )
    POINT_ARROW_AT ( ww1_on, Gracz1 )
ENDIF
// Dezaktywacja WW 
IF ( ww1 = 0 )
    REMOVE_ARROW ( ww1_on )
    POINT_ARROW_AT ( ww1_off, Gracz1 )
ENDIF
IF ((((((((((((((((((((( CHECK_CHAR_CURR_WEAPON ( Gracz1, CAR_MACHINE_GUN ))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz1, CAR_BOMB )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz1, CAR_FLAMETHROWER )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz1, JEEP_GUN )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz1, CAR_MINE )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz1, TANK_GUN )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz1, ROCKET_LAUNCHER )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz1, PISTOL )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz1, DUAL_PISTOL )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz1, MACHINE_GUN )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz1, SILENCED_MACHINE_GUN )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz1, SHOTGUN )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz1, ELECTRO_GUN )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz1, FLAME_THROWER )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz1, MOLOTOV )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz1, GRENADE )))
OR ( CHECK_NUMBER_ALIVE_IN_GROUP  ( Gracz1, 1 )))
OR ( CHECK_CHAR_BEEN_PUNCHED_BY ( Gracz2, Gracz1 )))
OR ( CHECK_CHAR_BEEN_PUNCHED_BY ( Gracz3, Gracz1 )))
OR ( CHECK_CHAR_BEEN_PUNCHED_BY ( Gracz4, Gracz1 )))
AND ( ww1 = 1 ))
   SET ww1 = 0
ENDIF

/////////////////////////////////
//           GRACZ II          //
/////////////////////////////////
STORE_CAR_CHARACTER_IS_IN ( Gracz2, Gracz2_Auto )
// Aktywacja WW 
IF ( HAS_CHARACTER_DIED ( Gracz2 ))
    REMOVE_WEAPONS ( Gracz2 )
    SET ww2 = 1
ENDIF
IF ( ww2 = 1 ) 
    REMOVE_ARROW ( ww2_off )
    POINT_ARROW_AT ( ww2_on, Gracz2 )
ENDIF
// Dezaktywacja WW 
IF ( ww2 = 0 )
    REMOVE_ARROW ( ww2_on )
    POINT_ARROW_AT ( ww2_off, Gracz2 )
ENDIF
IF ((((((((((((((((((((( CHECK_CHAR_CURR_WEAPON ( Gracz2, CAR_MACHINE_GUN ))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz2, CAR_BOMB )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz2, CAR_FLAMETHROWER )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz2, JEEP_GUN )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz2, CAR_MINE )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz2, TANK_GUN )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz2, ROCKET_LAUNCHER )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz2, PISTOL )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz2, DUAL_PISTOL )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz2, MACHINE_GUN )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz2, SILENCED_MACHINE_GUN )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz2, SHOTGUN )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz2, ELECTRO_GUN )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz2, FLAME_THROWER )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz2, MOLOTOV )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz2, GRENADE )))
OR ( CHECK_NUMBER_ALIVE_IN_GROUP  ( Gracz2, 1 )))
OR ( CHECK_CHAR_BEEN_PUNCHED_BY ( Gracz1, Gracz2 )))
OR ( CHECK_CHAR_BEEN_PUNCHED_BY ( Gracz3, Gracz2 )))
OR ( CHECK_CHAR_BEEN_PUNCHED_BY ( Gracz4, Gracz2 )))
AND ( ww2 = 1 ))
   SET ww2 = 0
ENDIF

/////////////////////////////////
//           GRACZ III         //
/////////////////////////////////
STORE_CAR_CHARACTER_IS_IN ( Gracz3, Gracz3_Auto )
// Aktywacja WW 
IF ( HAS_CHARACTER_DIED ( Gracz3 ))
    REMOVE_WEAPONS ( Gracz3 )
    SET ww3 = 1
ENDIF
IF ( ww3 = 1 ) 
    REMOVE_ARROW ( ww3_off )
    POINT_ARROW_AT ( ww3_on, Gracz3 )
ENDIF
// Dezaktywacja WW 
IF ( ww3 = 0 )
    REMOVE_ARROW ( ww3_on )
    POINT_ARROW_AT ( ww3_off, Gracz3 )
ENDIF
IF ((((((((((((((((((((( CHECK_CHAR_CURR_WEAPON ( Gracz3, CAR_MACHINE_GUN ))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz3, CAR_BOMB )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz3, CAR_FLAMETHROWER )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz3, JEEP_GUN )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz3, CAR_MINE )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz3, TANK_GUN )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz3, ROCKET_LAUNCHER )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz3, PISTOL )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz3, DUAL_PISTOL )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz3, MACHINE_GUN )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz3, SILENCED_MACHINE_GUN )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz3, SHOTGUN )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz3, ELECTRO_GUN )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz3, FLAME_THROWER )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz3, MOLOTOV )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz3, GRENADE )))
OR ( CHECK_NUMBER_ALIVE_IN_GROUP  ( Gracz3, 1 )))
OR ( CHECK_CHAR_BEEN_PUNCHED_BY ( Gracz1, Gracz3 )))
OR ( CHECK_CHAR_BEEN_PUNCHED_BY ( Gracz2, Gracz3 )))
OR ( CHECK_CHAR_BEEN_PUNCHED_BY ( Gracz4, Gracz3 )))
AND ( ww3 = 1 ))
   SET ww3 = 0
ENDIF

/////////////////////////////////
//           GRACZ IV          //
/////////////////////////////////
STORE_CAR_CHARACTER_IS_IN ( Gracz4, Gracz4_Auto )
// Aktywacja WW 
IF ( HAS_CHARACTER_DIED ( Gracz4 ))
    REMOVE_WEAPONS ( Gracz4 )
    SET ww4 = 1
ENDIF
IF ( ww4 = 1 ) 
    REMOVE_ARROW ( ww4_off )
    POINT_ARROW_AT ( ww4_on, Gracz4 )
ENDIF
// Dezaktywacja WW 
IF ( ww4 = 0 )
    REMOVE_ARROW ( ww4_on )
    POINT_ARROW_AT ( ww4_off, Gracz4 )
ENDIF
IF ((((((((((((((((((((( CHECK_CHAR_CURR_WEAPON ( Gracz4, CAR_MACHINE_GUN ))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz4, CAR_BOMB )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz4, CAR_FLAMETHROWER )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz4, JEEP_GUN )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz4, CAR_MINE )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz4, TANK_GUN )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz4, ROCKET_LAUNCHER )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz4, PISTOL )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz4, DUAL_PISTOL )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz4, MACHINE_GUN )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz4, SILENCED_MACHINE_GUN )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz4, SHOTGUN )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz4, ELECTRO_GUN )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz4, FLAME_THROWER )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz4, MOLOTOV )))
OR ( CHECK_CHAR_CURR_WEAPON ( Gracz4, GRENADE )))
OR ( CHECK_NUMBER_ALIVE_IN_GROUP  ( Gracz4, 1 )))
OR ( CHECK_CHAR_BEEN_PUNCHED_BY ( Gracz1, Gracz4 )))
OR ( CHECK_CHAR_BEEN_PUNCHED_BY ( Gracz2, Gracz4 )))
OR ( CHECK_CHAR_BEEN_PUNCHED_BY ( Gracz3, Gracz4 )))
AND ( ww4 = 1 ))
   SET ww4 = 0
ENDIF

//////////////////////////
////      BRONIE      ////
//////////////////////////

// Pistolet1 
IF ((( Pistolet1_Timer1 = 0 )
  AND ( Pistolet1_Reset = 0 ))
  AND ( NOT ( CHECK_OBJ_MODEL  ( Pistolet1, COLLECT_00 ))))
  				IF (( IS_CAR_IN_BLOCK ( Gracz1_Auto, 143.50, 38.50, 2.00, 0.38, 0.6 ))  
				  AND ( IS_CHARACTER_IN_CAR ( Gracz1, Gracz1_Auto )))
				  				SET ww1 = 0
				  ENDIF
				  IF (( IS_CAR_IN_BLOCK ( Gracz2_Auto, 143.50, 38.50, 2.00, 0.38, 0.6 ))  
				  AND ( IS_CHARACTER_IN_CAR ( Gracz2, Gracz2_Auto )))
				  				SET ww2 = 0
				  ENDIF
      IF (( IS_CAR_IN_BLOCK ( Gracz3_Auto, 143.50, 38.50, 2.00, 0.38, 0.6 ))  
				  AND ( IS_CHARACTER_IN_CAR ( Gracz3, Gracz3_Auto )))
				  				SET ww3 = 0
				  ENDIF
      IF (( IS_CAR_IN_BLOCK ( Gracz4_Auto, 143.50, 38.50, 2.00, 0.38, 0.6 ))  
				  AND ( IS_CHARACTER_IN_CAR ( Gracz4, Gracz4_Auto )))
				  				SET ww4 = 0
				  ENDIF
				  DELAY ( 30 )
				  SET Pistolet1_Timer1 = 1
      DELETE_ITEM ( Pistolet1 )
  ENDIF
IF ( Pistolet1_Timer1 > 0 )
   IF ( Pistolet1_Timer1 < 1515 )
      ++ Pistolet1_Timer1 
   ELSE
       SET Pistolet1_Timer1 = 0
       SET Pistolet1_Reset = 1
   ENDIF
ENDIF
IF (( Pistolet1_Reset = 1 )
AND ( Pistolet1_Timer1 = 0 ))
    Pistolet1 = CREATE_OBJ (143.50, 38.50, 2.00) 0 COLLECT_00 40 END
    SET Pistolet1_Reset = 0
ENDIF

// Pistolet2 
IF ((( Pistolet2_Timer1 = 0 )
  AND ( Pistolet2_Reset = 0 ))
  AND ( NOT ( CHECK_OBJ_MODEL  ( Pistolet2, COLLECT_00 ))))
  				IF (( IS_CAR_IN_BLOCK ( Gracz1_Auto, 191.50, 23.50, 2.00, 0.38, 0.6 ))  
				  AND ( IS_CHARACTER_IN_CAR ( Gracz1, Gracz1_Auto )))
				  				SET ww1 = 0
				  ENDIF
				  IF (( IS_CAR_IN_BLOCK ( Gracz2_Auto, 191.50, 23.50, 2.00, 0.38, 0.6 ))  
				  AND ( IS_CHARACTER_IN_CAR ( Gracz2, Gracz2_Auto )))
				  				SET ww2 = 0
      ENDIF
      IF (( IS_CAR_IN_BLOCK ( Gracz3_Auto, 191.50, 23.50, 2.00, 0.38, 0.6 ))  
				  AND ( IS_CHARACTER_IN_CAR ( Gracz3, Gracz3_Auto )))
				  				SET ww3 = 0
				  ENDIF
      IF (( IS_CAR_IN_BLOCK ( Gracz4_Auto, 191.50, 23.50, 2.00, 0.38, 0.6 ))  
				  AND ( IS_CHARACTER_IN_CAR ( Gracz4, Gracz4_Auto )))
				  				SET ww4 = 0
				  ENDIF
				  DELAY ( 30 )
				  SET Pistolet2_Timer1 = 1
      DELETE_ITEM ( Pistolet2 )
  ENDIF
IF ( Pistolet2_Timer1 > 0 )
   IF ( Pistolet2_Timer1 < 1515 )
      ++ Pistolet2_Timer1 
   ELSE
       SET Pistolet2_Timer1 = 0
       SET Pistolet2_Reset = 1
   ENDIF
ENDIF
IF (( Pistolet2_Reset = 1 )
AND ( Pistolet2_Timer1 = 0 ))
    Pistolet2 = CREATE_OBJ (191.50, 23.50, 2.00) 0 COLLECT_00 40 END
    SET Pistolet2_Reset = 0
ENDIF
// Pistolet3 
IF ((( Pistolet3_Timer1 = 0 )
  AND ( Pistolet3_Reset = 0 ))
  AND ( NOT ( CHECK_OBJ_MODEL  ( Pistolet3, COLLECT_00 ))))
  				IF (( IS_CAR_IN_BLOCK ( Gracz1_Auto, 143.50, 17.50, 2.00, 0.38, 0.6 ))  
				  AND ( IS_CHARACTER_IN_CAR ( Gracz1, Gracz1_Auto )))
				  				SET ww1 = 0
				  ENDIF
				  IF (( IS_CAR_IN_BLOCK ( Gracz2_Auto, 143.50, 17.50, 2.00, 0.38, 0.6 ))  
				  AND ( IS_CHARACTER_IN_CAR ( Gracz2, Gracz2_Auto ))) 
				  				SET ww2 = 0
				  ENDIF
      IF (( IS_CAR_IN_BLOCK ( Gracz3_Auto, 143.50, 17.50, 2.00, 0.38, 0.6 ))  
				  AND ( IS_CHARACTER_IN_CAR ( Gracz3, Gracz3_Auto )))
				  				SET ww3 = 0
				  ENDIF
      IF (( IS_CAR_IN_BLOCK ( Gracz4_Auto, 143.50, 17.50, 2.00, 0.38, 0.6 ))  
				  AND ( IS_CHARACTER_IN_CAR ( Gracz4, Gracz4_Auto )))
				  				SET ww4 = 0
				  ENDIF
				  DELAY ( 30 )
				  SET Pistolet3_Timer1 = 1
      DELETE_ITEM ( Pistolet3 )
  ENDIF
IF ( Pistolet3_Timer1 > 0 )
   IF ( Pistolet3_Timer1 < 1515 )
      ++ Pistolet3_Timer1 
   ELSE
       SET Pistolet3_Timer1 = 0
       SET Pistolet3_Reset = 1
   ENDIF
ENDIF
IF (( Pistolet3_Reset = 1 )
AND ( Pistolet3_Timer1 = 0 ))
    Pistolet3 = CREATE_OBJ (143.50, 17.50, 2.00) 0 COLLECT_00 40 END
    SET Pistolet3_Reset = 0
ENDIF
// Karabinek1 
IF ((( Karabinek1_Timer1 = 0 )
  AND ( Karabinek1_Reset = 0 ))
  AND ( NOT ( CHECK_OBJ_MODEL  ( Karabinek1, COLLECT_01 ))))
  				IF (( IS_CAR_IN_BLOCK ( Gracz1_Auto, 151.50, 6.50, 2.00, 0.47, 0.6 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz1, Gracz1_Auto )))
				  				SET ww1 = 0
				  ENDIF
				  IF (( IS_CAR_IN_BLOCK ( Gracz2_Auto, 151.50, 6.50, 2.00, 0.47, 0.6 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz2, Gracz2_Auto )))
				  				SET ww2 = 0
				  ENDIF
      IF (( IS_CAR_IN_BLOCK ( Gracz3_Auto, 151.50, 6.50, 2.00, 0.47, 0.6 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz3, Gracz3_Auto )))
				  				SET ww3 = 0
				  ENDIF
      IF (( IS_CAR_IN_BLOCK ( Gracz4_Auto, 151.50, 6.50, 2.00, 0.47, 0.6 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz4, Gracz4_Auto )))
				  				SET ww4 = 0
				  ENDIF
				  DELAY ( 30 )
				  SET Karabinek1_Timer1 = 1
      DELETE_ITEM ( Karabinek1 )
  ENDIF
IF ( Karabinek1_Timer1 > 0 )
   IF ( Karabinek1_Timer1 < 1515 )
      ++ Karabinek1_Timer1 
   ELSE
       SET Karabinek1_Timer1 = 0
       SET Karabinek1_Reset = 1
   ENDIF
ENDIF
IF (( Karabinek1_Reset = 1 )
AND ( Karabinek1_Timer1 = 0 ))
    Karabinek1 = CREATE_OBJ (151.50, 6.50, 2.00) 0 COLLECT_01 10 END
    SET Karabinek1_Reset = 0
ENDIF
// Karabinek2 
IF ((( Karabinek2_Timer1 = 0 )
  AND ( Karabinek2_Reset = 0 ))
  AND ( NOT ( CHECK_OBJ_MODEL  ( Karabinek2, COLLECT_01 ))))
  				IF (( IS_CAR_IN_BLOCK ( Gracz1_Auto, 196.50, 45.50, 2.00, 0.47, 0.6 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz1, Gracz1_Auto )))
				  				SET ww1 = 0
				  ENDIF
				  IF (( IS_CAR_IN_BLOCK ( Gracz2_Auto, 196.50, 45.50, 2.00, 0.47, 0.6 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz2, Gracz2_Auto )))
				  				SET ww2 = 0
				  ENDIF
      IF (( IS_CAR_IN_BLOCK ( Gracz3_Auto, 196.50, 45.50, 2.00, 0.47, 0.6 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz3, Gracz3_Auto )))
				  				SET ww3 = 0
				  ENDIF
      IF (( IS_CAR_IN_BLOCK ( Gracz4_Auto, 196.50, 45.50, 2.00, 0.47, 0.6 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz4, Gracz4_Auto )))
				  				SET ww4 = 0
				  ENDIF
				  DELAY ( 30 )
				  SET Karabinek2_Timer1 = 1
      DELETE_ITEM ( Karabinek2 )
  ENDIF
IF ( Karabinek2_Timer1 > 0 )
   IF ( Karabinek2_Timer1 < 1515 )
      ++ Karabinek2_Timer1 
   ELSE
       SET Karabinek2_Timer1 = 0
       SET Karabinek2_Reset = 1
   ENDIF
ENDIF
IF (( Karabinek2_Reset = 1 )
AND ( Karabinek2_Timer1 = 0 ))
    Karabinek2 = CREATE_OBJ (196.50, 45.50, 2.00) 0 COLLECT_01 10 END
    SET Karabinek2_Reset = 0
ENDIF
// Karabinek3 
IF ((( Karabinek3_Timer1 = 0 )
  AND ( Karabinek3_Reset = 0 ))
  AND ( NOT ( CHECK_OBJ_MODEL  ( Karabinek3, COLLECT_01 ))))
  				IF (( IS_CAR_IN_BLOCK ( Gracz1_Auto, 218.50, 39.00, 2.00, 0.47, 0.6 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz1, Gracz1_Auto )))
				  				SET ww1 = 0
				  ENDIF
				  IF (( IS_CAR_IN_BLOCK ( Gracz2_Auto, 218.50, 39.00, 2.00, 0.47, 0.6 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz2, Gracz2_Auto )))
				  				SET ww2 = 0
				  ENDIF
      IF (( IS_CAR_IN_BLOCK ( Gracz3_Auto, 218.50, 39.00, 2.00, 0.47, 0.6 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz3, Gracz3_Auto )))
				  				SET ww3 = 0
				  ENDIF
      IF (( IS_CAR_IN_BLOCK ( Gracz4_Auto, 218.50, 39.00, 2.00, 0.47, 0.6 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz4, Gracz4_Auto )))
				  				SET ww4 = 0
				  ENDIF
				  DELAY ( 30 )
				  SET Karabinek3_Timer1 = 1
      DELETE_ITEM ( Karabinek3 )
  ENDIF
IF ( Karabinek3_Timer1 > 0 )
   IF ( Karabinek3_Timer1 < 1515 )
      ++ Karabinek3_Timer1 
   ELSE
       SET Karabinek3_Timer1 = 0
       SET Karabinek3_Reset = 1
   ENDIF
ENDIF
IF (( Karabinek3_Reset = 1 )
AND ( Karabinek3_Timer1 = 0 ))
    Karabinek3 = CREATE_OBJ (218.50, 39.00, 2.00) 0 COLLECT_01 10 END
    SET Karabinek3_Reset = 0
ENDIF
// Rakietnica1 
IF ((( Rakietnica1_Timer1 = 0 )
  AND ( Rakietnica1_Reset = 0 ))
  AND ( NOT ( CHECK_OBJ_MODEL  ( Rakietnica1, COLLECT_02 ))))
  				IF (( IS_CAR_IN_BLOCK ( Gracz1_Auto, 228.50, 31.50, 2.00, 0.52, 0.88 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz1, Gracz1_Auto )))
				  				SET ww1 = 0
				  ENDIF
				  IF (( IS_CAR_IN_BLOCK ( Gracz2_Auto, 228.50, 31.50, 2.00, 0.52, 0.88 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz2, Gracz2_Auto )))
				  				SET ww2 = 0
				  ENDIF
      IF (( IS_CAR_IN_BLOCK ( Gracz3_Auto, 228.50, 31.50, 2.00, 0.52, 0.88 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz3, Gracz3_Auto )))
				  				SET ww3 = 0
				  ENDIF
      IF (( IS_CAR_IN_BLOCK ( Gracz4_Auto, 228.50, 31.50, 2.00, 0.52, 0.88 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz4, Gracz4_Auto )))
				  				SET ww4 = 0
				  ENDIF
				  DELAY ( 30 )
				  SET Rakietnica1_Timer1 = 1
      DELETE_ITEM ( Rakietnica1 )
  ENDIF
IF ( Rakietnica1_Timer1 > 0 )
   IF ( Rakietnica1_Timer1 < 1515 )
      ++ Rakietnica1_Timer1 
   ELSE
       SET Rakietnica1_Timer1 = 0
       SET Rakietnica1_Reset = 1
   ENDIF
ENDIF
IF (( Rakietnica1_Reset = 1 )
AND ( Rakietnica1_Timer1 = 0 ))
    Rakietnica1 = CREATE_OBJ (228.50, 31.50, 2.00) 0 COLLECT_02 5 END
    SET Rakietnica1_Reset = 0
ENDIF
// Rakietnica2 
IF ((( Rakietnica2_Timer1 = 0 )
  AND ( Rakietnica2_Reset = 0 ))
  AND ( NOT ( CHECK_OBJ_MODEL  ( Rakietnica2, COLLECT_02 ))))
  				IF (( IS_CAR_IN_BLOCK ( Gracz1_Auto, 208.5, 6.5, 2.0, 0.52, 0.88 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz1, Gracz1_Auto )))
				  				SET ww1 = 0
				  ENDIF
				  IF (( IS_CAR_IN_BLOCK ( Gracz2_Auto, 208.5, 6.5, 2.0, 0.52, 0.88 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz2, Gracz2_Auto )))
				  				SET ww2 = 0
				  ENDIF
      IF (( IS_CAR_IN_BLOCK ( Gracz3_Auto, 208.5, 6.5, 2.0, 0.52, 0.88 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz3, Gracz3_Auto )))
				  				SET ww3 = 0
				  ENDIF
      IF (( IS_CAR_IN_BLOCK ( Gracz4_Auto, 208.5, 6.5, 2.0, 0.52, 0.88 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz4, Gracz4_Auto )))
				  				SET ww4 = 0
				  ENDIF
				  DELAY ( 30 )
				  SET Rakietnica2_Timer1 = 1
      DELETE_ITEM ( Rakietnica2 )
  ENDIF
IF ( Rakietnica2_Timer1 > 0 )
   IF ( Rakietnica2_Timer1 < 1515 )
      ++ Rakietnica2_Timer1 
   ELSE
       SET Rakietnica2_Timer1 = 0
       SET Rakietnica2_Reset = 1
   ENDIF
ENDIF
IF (( Rakietnica2_Reset = 1 )
AND ( Rakietnica2_Timer1 = 0 ))
    Rakietnica2 = CREATE_OBJ (208.50, 6.50, 2.00) 0 COLLECT_02 5 END
    SET Rakietnica2_Reset = 0
ENDIF
// ElektroArmata1 
IF ((( ElektroArmata1_Timer1 = 0 )
  AND ( ElektroArmata1_Reset = 0 ))
  AND ( NOT ( CHECK_OBJ_MODEL  ( ElektroArmata1, COLLECT_03 ))))
  				IF (( IS_CAR_IN_BLOCK ( Gracz1_Auto, 163.50, 8.50, 3.00, 0.48, 0.76 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz1, Gracz1_Auto )))
				  				SET ww1 = 0
				  ENDIF
				  IF (( IS_CAR_IN_BLOCK ( Gracz2_Auto, 163.50, 8.50, 3.00, 0.48, 0.76 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz2, Gracz2_Auto )))
				  				SET ww2 = 0
				  ENDIF
      IF (( IS_CAR_IN_BLOCK ( Gracz3_Auto, 163.50, 8.50, 3.00, 0.48, 0.76 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz3, Gracz3_Auto )))
				  				SET ww3 = 0
				  ENDIF
      IF (( IS_CAR_IN_BLOCK ( Gracz4_Auto, 163.50, 8.50, 3.00, 0.48, 0.76 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz4, Gracz4_Auto )))
				  				SET ww4 = 0
				  ENDIF
				  DELAY ( 30 )
				  SET ElektroArmata1_Timer1 = 1
      DELETE_ITEM ( ElektroArmata1 )
  ENDIF
IF ( ElektroArmata1_Timer1 > 0 )
   IF ( ElektroArmata1_Timer1 < 1515 )
      ++ ElektroArmata1_Timer1 
   ELSE
       SET ElektroArmata1_Timer1 = 0
       SET ElektroArmata1_Reset = 1
   ENDIF
ENDIF
IF (( ElektroArmata1_Reset = 1 )
AND ( ElektroArmata1_Timer1 = 0 ))
    ElektroArmata1 = CREATE_OBJ (163.50, 8.50, 3.00) 0 COLLECT_03 6 END
    SET ElektroArmata1_Reset = 0
ENDIF
// Koktajl1 
IF ((( Koktajl1_Timer1 = 0 )
  AND ( Koktajl1_Reset = 0 ))
  AND ( NOT ( CHECK_OBJ_MODEL  ( Koktajl1, COLLECT_04 ))))
  				IF (( IS_CAR_IN_BLOCK ( Gracz1_Auto, 216.50, 18.50, 2.00, 0.51, 0.28 ))
				  AND ( IS_CHARACTER_IN_CAR ( Gracz1, Gracz1_Auto )))
				  				SET ww1 = 0
				  ENDIF
				  IF (( IS_CAR_IN_BLOCK ( Gracz2_Auto, 216.50, 18.50, 2.00, 0.51, 0.28 ))
				  AND ( IS_CHARACTER_IN_CAR ( Gracz2, Gracz2_Auto )))
				  				SET ww2 = 0
				  ENDIF
      IF (( IS_CAR_IN_BLOCK ( Gracz3_Auto, 216.50, 18.50, 2.00, 0.51, 0.28 ))
				  AND ( IS_CHARACTER_IN_CAR ( Gracz3, Gracz3_Auto )))
				  				SET ww3 = 0
				  ENDIF
      IF (( IS_CAR_IN_BLOCK ( Gracz4_Auto, 216.50, 18.50, 2.00, 0.51, 0.28 ))
				  AND ( IS_CHARACTER_IN_CAR ( Gracz4, Gracz4_Auto )))
				  				SET ww4 = 0
				  ENDIF
				  DELAY ( 30 )
				  SET Koktajl1_Timer1 = 1
      DELETE_ITEM ( Koktajl1 )
  ENDIF
IF ( Koktajl1_Timer1 > 0 )
   IF ( Koktajl1_Timer1 < 1515 )
      ++ Koktajl1_Timer1 
   ELSE
       SET Koktajl1_Timer1 = 0
       SET Koktajl1_Reset = 1
   ENDIF
ENDIF
IF (( Koktajl1_Reset = 1 )
AND ( Koktajl1_Timer1 = 0 ))
    Koktajl1 = CREATE_OBJ (216.50, 18.50, 2.00) 0 COLLECT_04 8 END
    SET Koktajl1_Reset = 0
ENDIF
// Granaty1 
IF ((( Granaty1_Timer1 = 0 )
  AND ( Granaty1_Reset = 0 ))
  AND ( NOT ( CHECK_OBJ_MODEL  ( Granaty1, COLLECT_05 ))))
  				IF (( IS_CAR_IN_BLOCK ( Gracz1_Auto, 184.50, 33.50, 2.00, 0.42, 0.36 ))
				  AND ( IS_CHARACTER_IN_CAR ( Gracz1, Gracz1_Auto )))
				  				SET ww1 = 0
				  ENDIF
				  IF (( IS_CAR_IN_BLOCK ( Gracz2_Auto, 184.50, 33.50, 2.00, 0.42, 0.36 ))
				  AND ( IS_CHARACTER_IN_CAR ( Gracz2, Gracz2_Auto )))
				  				SET ww2 = 0
				  ENDIF
      IF (( IS_CAR_IN_BLOCK ( Gracz3_Auto, 184.50, 33.50, 2.00, 0.42, 0.36 ))
				  AND ( IS_CHARACTER_IN_CAR ( Gracz3, Gracz3_Auto )))
				  				SET ww3 = 0
				  ENDIF
      IF (( IS_CAR_IN_BLOCK ( Gracz4_Auto, 184.50, 33.50, 2.00, 0.42, 0.36 ))
				  AND ( IS_CHARACTER_IN_CAR ( Gracz4, Gracz4_Auto )))
				  				SET ww4 = 0
				  ENDIF
				  DELAY ( 30 )
				  SET Granaty1_Timer1 = 1
      DELETE_ITEM ( Granaty1 )
  ENDIF
IF ( Granaty1_Timer1 > 0 )
   IF ( Granaty1_Timer1 < 1515 )
      ++ Granaty1_Timer1 
   ELSE
       SET Granaty1_Timer1 = 0
       SET Granaty1_Reset = 1
   ENDIF
ENDIF
IF (( Granaty1_Reset = 1 )
AND ( Granaty1_Timer1 = 0 ))
    Granaty1 = CREATE_OBJ (184.50, 33.50, 2.00) 0 COLLECT_05 12 END
    SET Granaty1_Reset = 0
ENDIF
// Granaty2 
IF ((( Granaty2_Timer1 = 0 )
  AND ( Granaty2_Reset = 0 ))
  AND ( NOT ( CHECK_OBJ_MODEL  ( Granaty2, COLLECT_05 ))))
  				IF (( IS_CAR_IN_BLOCK ( Gracz1_Auto, 232.50, 26.50, 2.00, 0.42, 0.36 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz1, Gracz1_Auto )))
				  				SET ww1 = 0
				  ENDIF
				  IF (( IS_CAR_IN_BLOCK ( Gracz2_Auto, 232.50, 26.50, 2.00, 0.42, 0.36 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz2, Gracz2_Auto )))
				  				SET ww2 = 0
				  ENDIF
      IF (( IS_CAR_IN_BLOCK ( Gracz3_Auto, 232.50, 26.50, 2.00, 0.42, 0.36 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz3, Gracz3_Auto )))
				  				SET ww3 = 0
				  ENDIF
      IF (( IS_CAR_IN_BLOCK ( Gracz4_Auto, 232.50, 26.50, 2.00, 0.42, 0.36 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz4, Gracz4_Auto )))
				  				SET ww4 = 0
				  ENDIF
				  DELAY ( 30 )
				  SET Granaty2_Timer1 = 1
      DELETE_ITEM ( Granaty2 )
  ENDIF
IF ( Granaty2_Timer1 > 0 )
   IF ( Granaty2_Timer1 < 1515 )
      ++ Granaty2_Timer1 
   ELSE
       SET Granaty2_Timer1 = 0
       SET Granaty2_Reset = 1
   ENDIF
ENDIF
IF (( Granaty2_Reset = 1 )
AND ( Granaty2_Timer1 = 0 ))
    Granaty2 = CREATE_OBJ (232.50, 26.50, 2.00) 0 COLLECT_05 12 END
    SET Granaty2_Reset = 0
ENDIF
// Strzelba1 
IF ((( Strzelba1_Timer1 = 0 )
  AND ( Strzelba1_Reset = 0 ))
  AND ( NOT ( CHECK_OBJ_MODEL  ( Strzelba1, COLLECT_06 ))))
  				IF (( IS_CAR_IN_BLOCK ( Gracz1_Auto, 248.50, 3.50, 2.00, 0.42, 0.76 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz1, Gracz1_Auto )))
				  				SET ww1 = 0
				  ENDIF
				  IF (( IS_CAR_IN_BLOCK ( Gracz2_Auto, 248.50, 3.50, 2.00, 0.42, 0.76 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz2, Gracz2_Auto )))
				  				SET ww2 = 0
				  ENDIF
      IF (( IS_CAR_IN_BLOCK ( Gracz3_Auto, 248.50, 3.50, 2.00, 0.42, 0.76 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz3, Gracz3_Auto )))
				  				SET ww3 = 0
				  ENDIF
      IF (( IS_CAR_IN_BLOCK ( Gracz4_Auto, 248.50, 3.50, 2.00, 0.42, 0.76 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz4, Gracz4_Auto )))
				  				SET ww4 = 0
				  ENDIF
				  DELAY ( 30 )
				  SET Strzelba1_Timer1 = 1
      DELETE_ITEM ( Strzelba1 )
  ENDIF
IF ( Strzelba1_Timer1 > 0 )
   IF ( Strzelba1_Timer1 < 1515 )
      ++ Strzelba1_Timer1 
   ELSE
       SET Strzelba1_Timer1 = 0
       SET Strzelba1_Reset = 1
   ENDIF
ENDIF
IF (( Strzelba1_Reset = 1 )
AND ( Strzelba1_Timer1 = 0 ))
    Strzelba1 = CREATE_OBJ (248.50, 3.50, 2.00) 0 COLLECT_06 12 END
    SET Strzelba1_Reset = 0
ENDIF
// Strzelba2 
IF ((( Strzelba2_Timer1 = 0 )
  AND ( Strzelba2_Reset = 0 ))
  AND ( NOT ( CHECK_OBJ_MODEL  ( Strzelba2, COLLECT_06 ))))
  				IF (( IS_CAR_IN_BLOCK ( Gracz1_Auto, 153.50, 26.50, 3.00, 0.42, 0.76 ))
				  AND ( IS_CHARACTER_IN_CAR ( Gracz1, Gracz1_Auto )))
				  				SET ww1 = 0
				  ENDIF
				  IF (( IS_CAR_IN_BLOCK ( Gracz2_Auto, 153.50, 26.50, 3.00, 0.42, 0.76 ))
				  AND ( IS_CHARACTER_IN_CAR ( Gracz2, Gracz2_Auto )))
				  				SET ww2 = 0
				  ENDIF
      IF (( IS_CAR_IN_BLOCK ( Gracz3_Auto, 153.50, 26.50, 3.00, 0.42, 0.76 ))
				  AND ( IS_CHARACTER_IN_CAR ( Gracz3, Gracz3_Auto )))
				  				SET ww3 = 0
				  ENDIF
      IF (( IS_CAR_IN_BLOCK ( Gracz4_Auto, 153.50, 26.50, 3.00, 0.42, 0.76 ))
				  AND ( IS_CHARACTER_IN_CAR ( Gracz4, Gracz4_Auto )))
				  				SET ww4 = 0
				  ENDIF
				  DELAY ( 30 )
				  SET Strzelba2_Timer1 = 1
      DELETE_ITEM ( Strzelba2 )
  ENDIF
IF ( Strzelba2_Timer1 > 0 )
   IF ( Strzelba2_Timer1 < 1515 )
      ++ Strzelba2_Timer1 
   ELSE
       SET Strzelba2_Timer1 = 0
       SET Strzelba2_Reset = 1
   ENDIF
ENDIF
IF (( Strzelba2_Reset = 1 )
AND ( Strzelba2_Timer1 = 0 ))
    Strzelba2 = CREATE_OBJ (153.50, 26.50, 3.00) 0 COLLECT_06 12 END
    SET Strzelba2_Reset = 0
ENDIF
// Strzelba3 
IF ((( Strzelba3_Timer1 = 0 )
  AND ( Strzelba3_Reset = 0 ))
  AND ( NOT ( CHECK_OBJ_MODEL  ( Strzelba3, COLLECT_06 ))))
  				IF (( IS_CAR_IN_BLOCK ( Gracz1_Auto, 197.50, 17.50, 2.00, 0.42, 0.76 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz1, Gracz1_Auto )))
				  				SET ww1 = 0
				  ENDIF
				  IF (( IS_CAR_IN_BLOCK ( Gracz2_Auto, 197.50, 17.50, 2.00, 0.42, 0.76 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz2, Gracz2_Auto )))
				  				SET ww2 = 0
				  ENDIF
      IF (( IS_CAR_IN_BLOCK ( Gracz3_Auto, 197.50, 17.50, 2.00, 0.42, 0.76 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz3, Gracz3_Auto )))
				  				SET ww3 = 0
				  ENDIF
      IF (( IS_CAR_IN_BLOCK ( Gracz4_Auto, 197.50, 17.50, 2.00, 0.42, 0.76 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz4, Gracz4_Auto )))
				  				SET ww4 = 0
				  ENDIF
				  DELAY ( 30 )
				  SET Strzelba3_Timer1 = 1
      DELETE_ITEM ( Strzelba3 )
  ENDIF
IF ( Strzelba3_Timer1 > 0 )
   IF ( Strzelba3_Timer1 < 1515 )
      ++ Strzelba3_Timer1 
   ELSE
       SET Strzelba3_Timer1 = 0
       SET Strzelba3_Reset = 1
   ENDIF
ENDIF
IF (( Strzelba3_Reset = 1 )
AND ( Strzelba3_Timer1 = 0 ))
    Strzelba3 = CREATE_OBJ (197.50, 17.50, 2.00) 0 COLLECT_06 12 END
    SET Strzelba3_Reset = 0
ENDIF
// MiotaczOgnia1 
IF ((( MiotaczOgnia1_Timer1 = 0 )
  AND ( MiotaczOgnia1_Reset = 0 ))
  AND ( NOT ( CHECK_OBJ_MODEL  ( MiotaczOgnia1, COLLECT_08 ))))
  				IF (( IS_CAR_IN_BLOCK ( Gracz1_Auto, 241.50, 39.50, 2.00, 0.44, 0.71 ))   
				  AND ( IS_CHARACTER_IN_CAR ( Gracz1, Gracz1_Auto )))
				  				SET ww1 = 0
				  ENDIF
				  IF (( IS_CAR_IN_BLOCK ( Gracz2_Auto, 241.50, 39.50, 2.00, 0.44, 0.71 ))   
				  AND ( IS_CHARACTER_IN_CAR ( Gracz2, Gracz2_Auto )))
				  				SET ww2 = 0
				  ENDIF
      IF (( IS_CAR_IN_BLOCK ( Gracz3_Auto, 241.50, 39.50, 2.00, 0.44, 0.71 ))   
				  AND ( IS_CHARACTER_IN_CAR ( Gracz3, Gracz3_Auto )))
				  				SET ww3 = 0
				  ENDIF
      IF (( IS_CAR_IN_BLOCK ( Gracz4_Auto, 241.50, 39.50, 2.00, 0.44, 0.71 ))   
				  AND ( IS_CHARACTER_IN_CAR ( Gracz4, Gracz4_Auto )))
				  				SET ww4 = 0
				  ENDIF
				  DELAY ( 30 )
				  SET MiotaczOgnia1_Timer1 = 1
      DELETE_ITEM ( MiotaczOgnia1 )
  ENDIF
IF ( MiotaczOgnia1_Timer1 > 0 )
   IF ( MiotaczOgnia1_Timer1 < 1515 )
      ++ MiotaczOgnia1_Timer1 
   ELSE
       SET MiotaczOgnia1_Timer1 = 0
       SET MiotaczOgnia1_Reset = 1
   ENDIF
ENDIF
IF (( MiotaczOgnia1_Reset = 1 )
AND ( MiotaczOgnia1_Timer1 = 0 ))
    MiotaczOgnia1 = CREATE_OBJ (241.50, 39.50, 2.00) 0 COLLECT_08 10 END
    SET MiotaczOgnia1_Reset = 0
ENDIF
// PodwojnyPistolet1 
IF ((( PodwojnyPistolet1_Timer1 = 0 )
  AND ( PodwojnyPistolet1_Reset = 0 ))
  AND ( NOT ( CHECK_OBJ_MODEL  ( PodwojnyPistolet1, COLLECT_10 ))))
  				IF (( IS_CAR_IN_BLOCK ( Gracz1_Auto, 159.50, 44.50, 3.00, 0.49, 0.51 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz1, Gracz1_Auto )))
				  				SET ww1 = 0
				  ENDIF
				  IF (( IS_CAR_IN_BLOCK ( Gracz2_Auto, 159.50, 44.50, 3.00, 0.49, 0.51 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz2, Gracz2_Auto )))
				  				SET ww2 = 0
				  ENDIF
      IF (( IS_CAR_IN_BLOCK ( Gracz3_Auto, 159.50, 44.50, 3.00, 0.49, 0.51 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz3, Gracz3_Auto )))
				  				SET ww3 = 0
				  ENDIF
      IF (( IS_CAR_IN_BLOCK ( Gracz4_Auto, 159.50, 44.50, 3.00, 0.49, 0.51 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz4, Gracz4_Auto )))
				  				SET ww4 = 0
				  ENDIF
				  DELAY ( 30 )
				  SET PodwojnyPistolet1_Timer1 = 1
      DELETE_ITEM ( PodwojnyPistolet1 )
  ENDIF
IF ( PodwojnyPistolet1_Timer1 > 0 )
   IF ( PodwojnyPistolet1_Timer1 < 1515 )
      ++ PodwojnyPistolet1_Timer1 
   ELSE
       SET PodwojnyPistolet1_Timer1 = 0
       SET PodwojnyPistolet1_Reset = 1
   ENDIF
ENDIF
IF (( PodwojnyPistolet1_Reset = 1 )
AND ( PodwojnyPistolet1_Timer1 = 0 ))
    PodwojnyPistolet1 = CREATE_OBJ (159.50, 44.50, 3.00) 0 COLLECT_10 30 END
    SET PodwojnyPistolet1_Reset = 0
ENDIF
// PodwojnyPistolet2 
IF ((( PodwojnyPistolet2_Timer1 = 0 )
  AND ( PodwojnyPistolet2_Reset = 0 ))
  AND ( NOT ( CHECK_OBJ_MODEL  ( PodwojnyPistolet2, COLLECT_10 ))))
  				IF (( IS_CAR_IN_BLOCK ( Gracz1_Auto, 189.50, 40.50, 2.00, 0.49, 0.51 ))
				  AND ( IS_CHARACTER_IN_CAR ( Gracz1, Gracz1_Auto )))
				  				SET ww1 = 0
				  ENDIF
				  IF (( IS_CAR_IN_BLOCK ( Gracz2_Auto, 189.50, 40.50, 2.00, 0.49, 0.51 ))
				  AND ( IS_CHARACTER_IN_CAR ( Gracz2, Gracz2_Auto )))
				  				SET ww2 = 0
				  ENDIF
      IF (( IS_CAR_IN_BLOCK ( Gracz3_Auto, 189.50, 40.50, 2.00, 0.49, 0.51 ))
				  AND ( IS_CHARACTER_IN_CAR ( Gracz3, Gracz3_Auto )))
				  				SET ww3 = 0
				  ENDIF
      IF (( IS_CAR_IN_BLOCK ( Gracz4_Auto, 189.50, 40.50, 2.00, 0.49, 0.51 ))
				  AND ( IS_CHARACTER_IN_CAR ( Gracz4, Gracz4_Auto )))
				  				SET ww4 = 0
				  ENDIF
				  DELAY ( 30 )
				  SET PodwojnyPistolet2_Timer1 = 1
      DELETE_ITEM ( PodwojnyPistolet2 )
  ENDIF
IF ( PodwojnyPistolet2_Timer1 > 0 )
   IF ( PodwojnyPistolet2_Timer1 < 1515 )
      ++ PodwojnyPistolet2_Timer1 
   ELSE
       SET PodwojnyPistolet2_Timer1 = 0
       SET PodwojnyPistolet2_Reset = 1
   ENDIF
ENDIF
IF (( PodwojnyPistolet2_Reset = 1 )
AND ( PodwojnyPistolet2_Timer1 = 0 ))
    PodwojnyPistolet2 = CREATE_OBJ (189.50, 40.50, 2.00) 0 COLLECT_10 30 END
    SET PodwojnyPistolet2_Reset = 0
ENDIF
// PodwojnyPistolet3 
IF ((( PodwojnyPistolet3_Timer1 = 0 )
  AND ( PodwojnyPistolet3_Reset = 0 ))
  AND ( NOT ( CHECK_OBJ_MODEL  ( PodwojnyPistolet3, COLLECT_10 ))))
  				IF (( IS_CAR_IN_BLOCK ( Gracz1_Auto, 198.50, 29.50, 2.00, 0.49, 0.51 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz1, Gracz1_Auto )))
				  				SET ww1 = 0
				  ENDIF
				  IF (( IS_CAR_IN_BLOCK ( Gracz2_Auto, 198.50, 29.50, 2.00, 0.49, 0.51 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz2, Gracz2_Auto )))
				  				SET ww2 = 0
				  ENDIF
      IF (( IS_CAR_IN_BLOCK ( Gracz3_Auto, 198.50, 29.50, 2.00, 0.49, 0.51 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz3, Gracz3_Auto )))
				  				SET ww3 = 0
				  ENDIF
      IF (( IS_CAR_IN_BLOCK ( Gracz4_Auto, 198.50, 29.50, 2.00, 0.49, 0.51 )) 
				  AND ( IS_CHARACTER_IN_CAR ( Gracz4, Gracz4_Auto )))
				  				SET ww4 = 0
				  ENDIF
				  DELAY ( 30 )
				  SET PodwojnyPistolet3_Timer1 = 1
      DELETE_ITEM ( PodwojnyPistolet3 )
  ENDIF
IF ( PodwojnyPistolet3_Timer1 > 0 )
   IF ( PodwojnyPistolet3_Timer1 < 1515 )
      ++ PodwojnyPistolet3_Timer1 
   ELSE
       SET PodwojnyPistolet3_Timer1 = 0
       SET PodwojnyPistolet3_Reset = 1
   ENDIF
ENDIF
IF (( PodwojnyPistolet3_Reset = 1 )
AND ( PodwojnyPistolet3_Timer1 = 0 ))
    PodwojnyPistolet3 = CREATE_OBJ (198.50, 29.50, 2.00) 0 COLLECT_10 30 END
    SET PodwojnyPistolet3_Reset = 0
ENDIF
ENDWHILE

//////////////////////////
////      KONIEC      ////
//////////////////////////

LEVELEND
