//Gracze // Players 
PLAYER_PED Gracz1 = (5.50, 14.50, 2.00) 10 90 //Russian
PLAYER_PED Gracz2 = (21.0, 53.5, 2.0) 9 270 // Kristna
PLAYER_PED Gracz3 = (37.0, 39.5, 2.0) 7 180 // Scientists
PLAYER_PED Gracz4 = (55.0, 58.5, 2.0) 13 0 // Yakuza
PLAYER_PED Gracz5 = (79.0, 30.0, 2.0) 5 90 // Rednecks
PLAYER_PED Gracz6 = (53.5, 12.5, 2.0) 8 270 // Zaibatsu

// Zmienne // Counters 
CAR_DATA AutoGracza1 = ( 1.4, 47.5, 2.0 ) 3 270 VAN
CAR_DATA AutoGracza2 = ( 3.0, 9.7, 2.0 ) 28 315 BUICK
CAR_DATA AutoGracza3 = ( 1.5, 17.5, 2.0 ) 0 90 MEDICAR
CAR_DATA AutoGracza4 = ( 74.5, 11.5, 2.0 ) 1 0 EDSEL
CAR_DATA AutoGracza5 = ( 75.5, 11.5, 2.0 ) 15 0 GT24640
CAR_DATA AutoGracza6 = ( 76.0, 59.0, 2.0 ) 19 0 MIURA
COUNTER Grupa1
COUNTER Grupa2
COUNTER Kierowca1
COUNTER Kierowca2
COUNTER Kierowca3
COUNTER Kierowca4
COUNTER Kierowca5
COUNTER Kierowca6
COUNTER KlaksonGracza1
COUNTER KlaksonGracza2
COUNTER KlaksonGracza3
COUNTER KlaksonGracza4
COUNTER KlaksonGracza5
COUNTER KlaksonGracza6
COUNTER Gracz2JestPasazeremGracza1
COUNTER Gracz3JestPasazeremGracza1
COUNTER Gracz1JestPasazeremGracza2
COUNTER Gracz3JestPasazeremGracza2
COUNTER Gracz1JestPasazeremGracza3
COUNTER Gracz2JestPasazeremGracza3
COUNTER Gracz5JestPasazeremGracza4
COUNTER Gracz6JestPasazeremGracza4
COUNTER Gracz4JestPasazeremGracza5
COUNTER Gracz6JestPasazeremGracza5
COUNTER Gracz4JestPasazeremGracza6
COUNTER Gracz5JestPasazeremGracza6
COUNTER loop = 1
COUNTER licznik1 = 0
COUNTER licznik2 = 0


// NIEWIDZIALNE SCIANY (Mury, Kolumny itp...) // INVISIBLE WALLS 
OBJ_DATA bariera01 = (6.87, 13.24, 2.0) 0 TOWER // Mur przy szpitalu1
OBJ_DATA bariera02 = (6.61, 13.24, 2.0) 0 TOWER
OBJ_DATA bariera03 = (6.35, 13.24, 2.0) 0 TOWER
OBJ_DATA bariera04 = (6.09, 13.24, 2.0) 0 TOWER
OBJ_DATA bariera05 = (5.83, 13.24, 2.0) 0 TOWER
OBJ_DATA bariera06 = (5.57, 13.24, 2.0) 0 TOWER
OBJ_DATA bariera07 = (5.31, 13.24, 2.0) 0 TOWER
OBJ_DATA bariera08 = (5.05, 13.24, 2.0) 0 TOWER
OBJ_DATA bariera09 = (4.79, 13.24, 2.0) 0 TOWER
OBJ_DATA bariera10 = (4.53, 13.24, 2.0) 0 TOWER
OBJ_DATA bariera11 = (4.27, 13.24, 2.0) 0 TOWER
OBJ_DATA bariera12 = (7.20, 7.21, 2.0) 0 TOWER // Reklama KGBH
OBJ_DATA bariera13 = (7.20, 7.19, 2.0) 180 TOWER
OBJ_DATA bariera14 = (34.80, 11.76, 2.0) 180 TOWER // Elektroslup przy zbiorniku
OBJ_DATA bariera15 = (34.87, 11.80, 2.0) 90 TOWER
OBJ_DATA bariera16 = (34.76, 11.80, 2.0) 270 TOWER
OBJ_DATA bariera17 = (60.76, 58.86, 2.0) 270 TOWER // Mur przy sklepie
OBJ_DATA bariera18 = (60.76, 58.61, 2.0) 270 TOWER
OBJ_DATA bariera19 = (60.76, 58.36, 2.0) 270 TOWER
OBJ_DATA bariera20 = (60.76, 58.11, 2.0) 270 TOWER
OBJ_DATA bariera21 = (60.76, 57.86, 2.0) 270 TOWER
OBJ_DATA bariera22 = (60.76, 57.61, 2.0) 270 TOWER
OBJ_DATA bariera23 = (60.76, 57.36, 2.0) 270 TOWER
OBJ_DATA bariera24 = (60.76, 57.11, 2.0) 270 TOWER
OBJ_DATA bariera25 = (60.76, 56.86, 2.0) 270 TOWER
OBJ_DATA bariera26 = (60.76, 56.61, 2.0) 270 TOWER
OBJ_DATA bariera27 = (60.76, 56.36, 2.0) 270 TOWER
OBJ_DATA bariera28 = (60.76, 56.11, 2.0) 270 TOWER
OBJ_DATA bariera29 = (60.76, 55.86, 2.0) 270 TOWER
OBJ_DATA bariera30 = (60.76, 55.61, 2.0) 270 TOWER
OBJ_DATA bariera31 = (60.76, 55.36, 2.0) 270 TOWER
OBJ_DATA bariera32 = (60.76, 55.11, 2.0) 270 TOWER
OBJ_DATA bariera33 = (60.76, 54.86, 2.0) 270 TOWER
OBJ_DATA bariera34 = (30.5, 45.50, 2.0) 0 TOWER // Latarnia na molo

// Dzwigi/Zurawie // 
CRANE_DATA Dzwig1 = (90.5, 42.5) 45 NO_HOMECRANE FIRST (90.5, 44.5) 90
CRANE_DATA Dzwig2 = (56.5, 26.5) 320 NO_HOMECRANE

// Radio 
RADIO_STATION radio = STATION_INDUSTRIAL (37.5, 45.5)

// Bronie // Weapons 
GENERATOR Rakietnica1 = (41.5, 19.5, 4.0) 0 collect_02 5142 5142 5
GENERATOR Rakietnica2 = (24.5, 53.5, 2.0) 0 collect_02 5142 5142 5
GENERATOR Rakietnica3 = (62.0, 50.5, 3.0) 0 collect_02 5142 5142 5
GENERATOR Rakietnica4 = (76.0, 19.0, 3.0) 0 collect_02 5142 5142 5
GENERATOR Zdrowie = (94.0, 28.0, 2.0) 0 collect_30 5142 5142 1
GENERATOR Pancerz = (43.5, 26.5, 2.0) 0 collect_31 5142 5142 1
GENERATOR PodwojneZniszczenie = (45.5, 50.5, 2.0) 0 collect_35 5142 5142 1
GENERATOR SzybkiePrzeladowanie = (4.0, 24.5, 2.0) 0 collect_36 5142 5142 1
GENERATOR Strzelba1 = (41.5, 26.5, 2.0) 0 collect_06 5142 5142 10
GENERATOR Strzelba2 = (18.5, 53.5, 2.0) 0 collect_06 5142 5142 10
GENERATOR Strzelba3 = (52.5, 49.5, 2.0) 0 collect_06 5142 5142 10
GENERATOR Koktajl1 = (50.5, 31.5, 2.0) 0 collect_04 5142 5142 8
GENERATOR Koktajl2 = (13.5, 3.5, 3.0) 0 collect_04 5142 5142 8
GENERATOR Granaty1 = (13.0, 58.0, 2.0) 0 collect_05 5142 5142 12
GENERATOR Granaty2 = (66.0, 37.0, 2.0) 0 collect_05 5142 5142 12
GENERATOR ElektroPalce = (39.5, 44.5, 2.0) 0 collect_37 5142 5142 1
GENERATOR Karabin1 = (56.5, 49.5, 2.0) 0 collect_01 5142 5142 10
GENERATOR Karabin2 = (19.5, 3.5, 2.0) 0 collect_01 5142 5142 10
GENERATOR PodwojnyPistolet1 = (81.5, 22.5, 2.0) 0 collect_10 5142 5142 30
GENERATOR PodwojnyPistolet2 = (60.5, 60.5, 2.0) 0 collect_10 5142 5142 30
GENERATOR PodwojnyPistolet3 = (7.5, 61.5, 2.0) 0 collect_10 5142 5142 30
GENERATOR ElektroArmata1 = (43.5, 3.0, 2.0) 0 collect_03 5142 5142 6 
GENERATOR ElektroArmata2 = (55.0, 64.5, 3.0) 0 collect_03 5142 5142 6 
GENERATOR MiotaczOgnia1 = (7.0, 30.0, 4.0) 0 collect_08 5142 5142 10 
GENERATOR MiotaczOgnia2 = (74.0, 32.0, 2.0) 0 collect_08 5142 5142 10 
GENERATOR KarabinSamochodowy = (19.0, 17.0, 4.0) 0 collect_18 5142 5142 10
GENERATOR OlejSamochodowy = (86.0, 28.0, 2.0) 0 collect_16 5142 5142 6
GENERATOR BombaSamochodowa = (37.0, 48.0, 2.0) 0 collect_15 5142 5142 1

LEVELSTART

//Zmiana Skinu 2-gi gracz
IF (CHECK_CHARACTER_HEALTH ( Gracz2 , 0) )
   SET_CHAR_GRAPHIC_TYPE ( Gracz2 , GANG_GRAPHIC , 10 )
ENDIF
//Zmiana Skinu 3-ci gracz
IF (CHECK_CHARACTER_HEALTH ( Gracz3 , 0) )
   SET_CHAR_GRAPHIC_TYPE ( Gracz3 , GANG_GRAPHIC , 10 )
ENDIF
//Zmiana Skinu 5-ty gracz
IF (CHECK_CHARACTER_HEALTH ( Gracz5 , 0) )
   SET_CHAR_GRAPHIC_TYPE ( Gracz5 , GANG_GRAPHIC , 13 )
ENDIF
//Zmiana Skinu 6-ty gracz
IF (CHECK_CHARACTER_HEALTH ( Gracz6 , 0) )
   SET_CHAR_GRAPHIC_TYPE ( Gracz6 , GANG_GRAPHIC , 13 )
ENDIF

// Deklaracje // Declare 
SET_AMBIENT_LEVEL  (0.25,0)
SET_SHADING_LEVEL (20)
SET_DIR_OF_TV_VANS (37.5, 45.5)
DECLARE_POLICELEVEL (5)

//Aktywacja generatorow // Activate generators 
SWITCH_GENERATOR ( Rakietnica1, ON )
SWITCH_GENERATOR ( Rakietnica2, ON )
SWITCH_GENERATOR ( Rakietnica3, ON )
SWITCH_GENERATOR ( Rakietnica4, ON )
SWITCH_GENERATOR ( MiotaczOgnia1, ON )
SWITCH_GENERATOR ( MiotaczOgnia2, ON )
SWITCH_GENERATOR ( Granaty1, ON )
SWITCH_GENERATOR ( Granaty2, ON )
SWITCH_GENERATOR ( Koktajl1, ON )
SWITCH_GENERATOR ( Koktajl2, ON )
SWITCH_GENERATOR ( KarabinSamochodowy, ON )
SWITCH_GENERATOR ( OlejSamochodowy, ON )
SWITCH_GENERATOR ( BombaSamochodowa, ON )
SWITCH_GENERATOR ( PodwojnyPistolet1, ON )
SWITCH_GENERATOR ( PodwojnyPistolet2, ON )
SWITCH_GENERATOR ( PodwojnyPistolet3, ON )
SWITCH_GENERATOR ( Strzelba1, ON )
SWITCH_GENERATOR ( Strzelba2, ON )
SWITCH_GENERATOR ( Strzelba3, ON )
SWITCH_GENERATOR ( Zdrowie, ON )
SWITCH_GENERATOR ( Pancerz, ON )
SWITCH_GENERATOR ( PodwojneZniszczenie, ON )
SWITCH_GENERATOR ( SzybkiePrzeladowanie, ON )
SWITCH_GENERATOR ( Karabin1, ON )
SWITCH_GENERATOR ( Karabin2, ON )
SWITCH_GENERATOR ( ElektroPalce, ON )
SWITCH_GENERATOR ( ElektroArmata1, ON )
SWITCH_GENERATOR ( ElektroArmata2, ON )

///////////////////////////////////////////////////////////////////////////////////////////////////
//                                                                                               //
//SKRYPT NA WSIADANIE DO WSPOLNEGO SAMOCHODU 3vs3 by Wojti na podstawie skryptu DonMahone & Heri //
//                                                                                               //
///////////////////////////////////////////////////////////////////////////////////////////////////

WHILE_EXEC (loop = 1)

////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////    DRUZYNA I     /////////////////////////////////////////
/////////////////////////////////////////      TEAM I      /////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////

IF ((((CHECK_CHARACTER_HEALTH ( Gracz2 , 0))  
AND (CHECK_SCORE_GREATER ( Gracz2 , -1)))     
AND (CHECK_CHARACTER_HEALTH ( Gracz3 , 0)))
AND (CHECK_SCORE_GREATER ( Gracz3 , -1)))
    STORE_CAR_CHARACTER_IS_IN ( Gracz1 , AutoGracza1 )
    STORE_CAR_CHARACTER_IS_IN ( Gracz2 , AutoGracza2 )
    STORE_CAR_CHARACTER_IS_IN ( Gracz3 , AutoGracza3 )

////////////////////////////////////////////
//     GRACZ I      ////     PLAYER I     //
////////////////////////////////////////////

// ZBIERANIE PASAŻERÓW // TAKING PASSASENGERS //

    // Gracz2 i Gracz 3 // Player2 & Player 3 
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza1 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz1 , AutoGracza1 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz1, Gracz2, 3.0, 3.0 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz1, Gracz3, 3.0, 3.0 ))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz2 )))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz3 )))) 
    AND ( Kierowca2 = 0 ))
    AND ( Kierowca3 = 0 ))
    AND ( Grupa1 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz1 ))
           ++ KlaksonGracza1
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz1 )))
           SET KlaksonGracza1 = 0
        ENDIF
        IF (( KlaksonGracza1 > 0 )
        AND ( KlaksonGracza1 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz2 , AutoGracza1 )
            ORDER_CHAR_TO_BACKDOOR ( Gracz3 , AutoGracza1 )
            SET Kierowca1 = 1
            SET Kierowca2 = 0
            SET Kierowca3 = 0
        ENDIF
    ENDIF
    
    // Tylko Gracz 2 // Only Player 2 
    IF (((((((( HAS_CAR_GOT_DRIVER ( AutoGracza1 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz1, AutoGracza1 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz1, Gracz2, 3.0, 3.0 ))) 
    AND ( NOT( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz1, Gracz3, 3.0, 3.0 )))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz2 )))) 
    AND ( Kierowca2 = 0 ))
    AND ( Kierowca3 = 0 ))
    AND ( Grupa1 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz1 ))
           ++ KlaksonGracza1
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz1 )))
           SET KlaksonGracza1 = 0
        ENDIF
        IF (( KlaksonGracza1 > 0 )
        AND ( KlaksonGracza1 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz2 , AutoGracza1 )
            SET Kierowca1 = 1
            SET Kierowca2 = 0
            SET Kierowca3 = 0
        ENDIF
    ENDIF
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza1 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz1, AutoGracza1 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz1, Gracz2, 3.0, 3.0 ))) 
    AND ( IS_CHARACTER_IN_ANY_CAR ( Gracz3 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz3, AutoGracza1 )))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz2 )))) 
    AND ( Kierowca2 = 0 ))
    AND ( Kierowca3 = 0 ))
    AND ( Grupa1 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz1 ))
           ++ KlaksonGracza1
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz1 )))
           SET KlaksonGracza1 = 0
        ENDIF
        IF (( KlaksonGracza1 > 0 )
        AND ( KlaksonGracza1 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz2 , AutoGracza1 )
            SET Kierowca1 = 1
            SET Kierowca2 = 0
            SET Kierowca3 = 0
        ENDIF
    ENDIF
    IF (((((((( HAS_CAR_GOT_DRIVER ( AutoGracza1 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz1, AutoGracza1 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz1, Gracz2, 3.0, 3.0 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz3, AutoGracza1 ))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz2 )))) 
    AND ( Kierowca2 = 0 ))
    AND ( Kierowca3 = 0 ))
    AND ( Grupa1 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz1 ))
           ++ KlaksonGracza1
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz1 )))
           SET KlaksonGracza1 = 0
        ENDIF
        IF (( KlaksonGracza1 > 0 )
        AND ( KlaksonGracza1 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz2 , AutoGracza1 )
            SET Kierowca1 = 1
            SET Kierowca2 = 0
            SET Kierowca3 = 0
        ENDIF
    ENDIF
    
    // Tylko Gracz 3 // Only Player 3 
    IF (((((((( HAS_CAR_GOT_DRIVER ( AutoGracza1 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz1, AutoGracza1 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz1, Gracz3, 3.0, 3.0 ))) 
    AND ( NOT( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz1, Gracz2, 3.0, 3.0 )))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz3 )))) 
    AND ( Kierowca2 = 0 ))
    AND ( Kierowca3 = 0 ))
    AND ( Grupa1 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz1 ))
           ++ KlaksonGracza1
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz1 )))
           SET KlaksonGracza1 = 0
        ENDIF
        IF (( KlaksonGracza1 > 0 )
        AND ( KlaksonGracza1 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz3 , AutoGracza1 )
            SET Kierowca1 = 1
            SET Kierowca2 = 0
            SET Kierowca3 = 0
        ENDIF
    ENDIF
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza1 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz1, AutoGracza1 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS  (  Gracz1  , Gracz3, 3.0, 3.0 ))) 
    AND ( IS_CHARACTER_IN_ANY_CAR ( Gracz2 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz2, AutoGracza1 )))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz3 )))) 
    AND ( Kierowca2 = 0 ))
    AND ( Kierowca3 = 0 ))
    AND ( Grupa1 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz1 ))
           ++ KlaksonGracza1
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz1 )))
           SET KlaksonGracza1 = 0
        ENDIF
        IF (( KlaksonGracza1 > 0 )
        AND ( KlaksonGracza1 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz3 , AutoGracza1 )
            SET Kierowca1 = 1
            SET Kierowca2 = 0
            SET Kierowca3 = 0
        ENDIF
    ENDIF
    IF (((((((( HAS_CAR_GOT_DRIVER ( AutoGracza1 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz1, AutoGracza1 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS  (  Gracz1  , Gracz3, 3.0, 3.0 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz2, AutoGracza1 ))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz3 )))) 
    AND ( Kierowca2 = 0 ))
    AND ( Kierowca3 = 0 ))
    AND ( Grupa1 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz1 ))
           ++ KlaksonGracza1
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz1 )))
           SET KlaksonGracza1 = 0
        ENDIF
        IF (( KlaksonGracza1 > 0 )
        AND ( KlaksonGracza1 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz3 , AutoGracza1 )
            SET Kierowca1 = 1
            SET Kierowca2 = 0
            SET Kierowca3 = 0
        ENDIF
    ENDIF
    
// WYSIADANIE PASAŻERÓW GDY NIE MA KIEROWCY // KICK PASSENGERS FROM CAR WHEN THERE IS NO DRIVER //

    // Gracz2 i Gracz 3 // Player2 & Player 3 
    IF ((((((( NOT ( HAS_CAR_GOT_DRIVER ( AutoGracza1 )))
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz1 , AutoGracza1 )))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz2 , AutoGracza1 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz3 , AutoGracza1 ))) 
    AND ( Gracz2JestPasazeremGracza1 = 1 )) 
    AND ( Gracz3JestPasazeremGracza1 = 1 ))
    AND ( Grupa1 = 0 ))
        ORDER_DRIVER_OUT_CAR ( Gracz2 )
        SET Gracz2JestPasazeremGracza1 = 0
        ORDER_DRIVER_OUT_CAR ( Gracz3 )
        SET Gracz3JestPasazeremGracza1 = 0
        SET Grupa1 = 1
    ENDIF
    // Tylko Gracz 2 // Only Player 2 
    IF ((((((( NOT ( HAS_CAR_GOT_DRIVER ( AutoGracza1 )))
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz1 , AutoGracza1 )))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz2 , AutoGracza1 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz3 , AutoGracza1 )))) 
    AND ( Gracz2JestPasazeremGracza1 = 1 )) 
    AND ( Gracz3JestPasazeremGracza1 = 0 ))
    AND ( Grupa1 = 0 ))
        ORDER_DRIVER_OUT_CAR ( Gracz2 )
        SET Gracz2JestPasazeremGracza1 = 0
        SET Grupa1 = 1
    ENDIF
    // Tylko Gracz 3 // Only Player 3 
    IF ((((((( NOT ( HAS_CAR_GOT_DRIVER ( AutoGracza1 )))
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz1 , AutoGracza1 )))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz3 , AutoGracza1 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz2 , AutoGracza1 )))) 
    AND ( Gracz2JestPasazeremGracza1 = 0 )) 
    AND ( Gracz3JestPasazeremGracza1 = 1 ))
    AND ( Grupa1 = 0 ))
        ORDER_DRIVER_OUT_CAR ( Gracz3 )
        SET Gracz3JestPasazeremGracza1 = 0
        SET Grupa1 = 1
    ENDIF
    
// WYSIADANIE PASAZEROW WYMUSZONE PRZEZ KIEROWCE // KICK PASSENGERS FROM CAR BY THE DRIVER //

    // Gracz2 i Gracz 3 // Player2 & Player 3 
    IF (((((((( HAS_CAR_GOT_DRIVER ( AutoGracza1 ))
    AND ( Kierowca1 = 1 ))
    AND ( IS_CHARACTER_IN_CAR ( Gracz1 , AutoGracza1 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz2 , AutoGracza1 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz3 , AutoGracza1 ))) 
    AND ( Gracz2JestPasazeremGracza1 = 1 )) 
    AND ( Gracz3JestPasazeremGracza1 = 1 ))
    AND ( Grupa1 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz1 )) 
           ORDER_DRIVER_OUT_CAR ( Gracz2 )
           SET Gracz2JestPasazeremGracza1 = 0
           ORDER_DRIVER_OUT_CAR ( Gracz3 )
           SET Gracz3JestPasazeremGracza1 = 0
           SET Grupa1 = 1
        ENDIF
    ENDIF
    
    // Tylko Gracz 2 // Only Player 2 
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza1 ))
    AND ( Kierowca1 = 1 ))
    AND ( IS_CHARACTER_IN_CAR ( Gracz1 , AutoGracza1 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz2 , AutoGracza1 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz3 , AutoGracza1 )))) 
    AND ( NOT( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz1, Gracz3, 3.0, 3.0 ))))
    AND ( Gracz2JestPasazeremGracza1 = 1 )) 
    AND ( Gracz3JestPasazeremGracza1 = 0 ))
    AND ( Grupa1 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz1 )) 
           ORDER_DRIVER_OUT_CAR ( Gracz2 )
           SET Gracz2JestPasazeremGracza1 = 0
           SET Grupa1 = 1
        ENDIF
    ENDIF
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza1 ))
    AND ( Kierowca1 = 1 ))
    AND ( IS_CHARACTER_IN_CAR ( Gracz1 , AutoGracza1 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz2 , AutoGracza1 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz3 , AutoGracza1 )))) 
    AND ( IS_CHARACTER_IN_ANY_CAR ( Gracz3 ))) 
    AND ( Gracz2JestPasazeremGracza1 = 1 )) 
    AND ( Gracz3JestPasazeremGracza1 = 0 ))
    AND ( Grupa1 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz1 )) 
           ORDER_DRIVER_OUT_CAR ( Gracz2 )
           SET Gracz2JestPasazeremGracza1 = 0
           SET Grupa1 = 1
        ENDIF
    ENDIF
    
    // Tylko Gracz 3 // Only Player 3 
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza1 ))
    AND ( Kierowca1 = 1 ))
    AND ( IS_CHARACTER_IN_CAR ( Gracz1 , AutoGracza1 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz3 , AutoGracza1 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz2 , AutoGracza1 )))) 
    AND ( NOT( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz1, Gracz2, 3.0, 3.0 ))))
    AND ( Gracz2JestPasazeremGracza1 = 0 )) 
    AND ( Gracz3JestPasazeremGracza1 = 1 ))
    AND ( Grupa1 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz1 )) 
           ORDER_DRIVER_OUT_CAR ( Gracz3 )
           SET Gracz3JestPasazeremGracza1 = 0
           SET Grupa1 = 1
        ENDIF
    ENDIF
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza1 ))
    AND ( Kierowca1 = 1 ))
    AND ( IS_CHARACTER_IN_CAR ( Gracz1 , AutoGracza1 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz3 , AutoGracza1 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz2 , AutoGracza1 )))) 
    AND ( IS_CHARACTER_IN_ANY_CAR ( Gracz2 ))) 
    AND ( Gracz2JestPasazeremGracza1 = 0 )) 
    AND ( Gracz3JestPasazeremGracza1 = 1 ))
    AND ( Grupa1 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz1 )) 
           ORDER_DRIVER_OUT_CAR ( Gracz3 )
           SET Gracz3JestPasazeremGracza1 = 0
           SET Grupa1 = 1
        ENDIF
    ENDIF
    
// KTO JEST PASAŻEREM? // WHO IS PASSANGER? //

    // Gracz2 i Gracz 3 // Player2 & Player 3 
    IF ((((( HAS_CAR_GOT_DRIVER ( AutoGracza1 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz1 , AutoGracza1 )))
    AND ( IS_CHARACTER_IN_CAR ( Gracz2 , AutoGracza1 )))
    AND ( IS_CHARACTER_IN_CAR ( Gracz3 , AutoGracza1 )))
    AND ( CHECK_PASSENGER_COUNT ( AutoGracza1  ,  2 )))
        SET Gracz2JestPasazeremGracza1 = 1
        SET Gracz3JestPasazeremGracza1 = 1
    ENDIF
    // Gracz2 lub Gracz 3 // Player2 or Player 3 
    IF ((( HAS_CAR_GOT_DRIVER ( AutoGracza1 ))
    AND ( IS_CHARACTER_IN_CAR ( Gracz1 , AutoGracza1 )))
    AND ( CHECK_PASSENGER_COUNT ( AutoGracza1  ,  1 )))
        IF ( IS_CHARACTER_IN_CAR ( Gracz2 , AutoGracza1 ))
           SET Gracz2JestPasazeremGracza1 = 1
        ELSE
           SET Gracz2JestPasazeremGracza1 = 0
        ENDIF
        IF ( IS_CHARACTER_IN_CAR ( Gracz3 , AutoGracza1 ))
           SET Gracz3JestPasazeremGracza1 = 1
        ELSE
           SET Gracz3JestPasazeremGracza1 = 0
        ENDIF
    ENDIF
        
    // Nikt // Nobody 
    IF ((((( HAS_CAR_GOT_DRIVER ( AutoGracza1 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz1 , AutoGracza1 )))
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz2 , AutoGracza1 ))))
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz3 , AutoGracza1 ))))
    AND ( CHECK_PASSENGER_COUNT ( AutoGracza1  ,  0 )))
        SET Gracz2JestPasazeremGracza1 = 0
        SET Gracz3JestPasazeremGracza1 = 0
    ENDIF
    
////////////////////////////////////////////
//     GRACZ II     ////     PLAYER II    //
////////////////////////////////////////////

// ZBIERANIE PASAŻERÓW // TAKING PASSASENGERS //

    // Gracz1 i Gracz 3 // Player1 & Player 3 
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza2 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz2 , AutoGracza2 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz2, Gracz1, 3.0, 3.0 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz2, Gracz3, 3.0, 3.0 ))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz1 )))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz3 )))) 
    AND ( Kierowca1 = 0 ))
    AND ( Kierowca3 = 0 ))
    AND ( Grupa1 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz2 ))
           ++ KlaksonGracza2
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz2 )))
           SET KlaksonGracza2 = 0
        ENDIF
        IF (( KlaksonGracza2 > 0 )
        AND ( KlaksonGracza2 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz1 , AutoGracza2 )
            ORDER_CHAR_TO_BACKDOOR ( Gracz3 , AutoGracza2 )
            SET Kierowca1 = 0
            SET Kierowca2 = 1
            SET Kierowca3 = 0
        ENDIF
    ENDIF
        
    // Tylko Gracz 1 // Only Player 1 
    IF (((((((( HAS_CAR_GOT_DRIVER ( AutoGracza2 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz2, AutoGracza2 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz2, Gracz1, 3.0, 3.0 ))) 
    AND ( NOT( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz2, Gracz3, 3.0, 3.0 )))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz1 )))) 
    AND ( Kierowca1 = 0 ))
    AND ( Kierowca3 = 0 ))
    AND ( Grupa1 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz2 ))
           ++ KlaksonGracza2
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz2 )))
           SET KlaksonGracza2 = 0
        ENDIF
        IF (( KlaksonGracza2 > 0 )
        AND ( KlaksonGracza2 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz1 , AutoGracza2 )
            SET Kierowca1 = 0
            SET Kierowca2 = 1
            SET Kierowca3 = 0
        ENDIF
    ENDIF
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza2 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz2, AutoGracza2 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz2, Gracz1, 3.0, 3.0 ))) 
    AND ( IS_CHARACTER_IN_ANY_CAR ( Gracz3 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz3, AutoGracza2 )))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz1 )))) 
    AND ( Kierowca1 = 0 ))
    AND ( Kierowca3 = 0 ))
    AND ( Grupa1 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz2 ))
           ++ KlaksonGracza2
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz2 )))
           SET KlaksonGracza2 = 0
        ENDIF
        IF (( KlaksonGracza2 > 0 )
        AND ( KlaksonGracza2 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz1 , AutoGracza2 )
            SET Kierowca1 = 0
            SET Kierowca2 = 1
            SET Kierowca3 = 0
        ENDIF
    ENDIF
    IF (((((((( HAS_CAR_GOT_DRIVER ( AutoGracza2 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz2, AutoGracza2 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz2, Gracz1, 3.0, 3.0 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz3, AutoGracza2 ))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz1 )))) 
    AND ( Kierowca1 = 0 ))
    AND ( Kierowca3 = 0 ))
    AND ( Grupa1 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz2 ))
           ++ KlaksonGracza2
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz2 )))
           SET KlaksonGracza2 = 0
        ENDIF
        IF (( KlaksonGracza2 > 0 )
        AND ( KlaksonGracza2 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz1 , AutoGracza2 )
            SET Kierowca1 = 0
            SET Kierowca2 = 1
            SET Kierowca3 = 0
        ENDIF
    ENDIF
    
    // Tylko Gracz 3 // Only Player 3 
    IF (((((((( HAS_CAR_GOT_DRIVER ( AutoGracza2 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz2, AutoGracza2 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz2, Gracz3, 3.0, 3.0 ))) 
    AND ( NOT( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz2, Gracz1, 3.0, 3.0 )))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz3 )))) 
    AND ( Kierowca1 = 0 ))
    AND ( Kierowca3 = 0 ))
    AND ( Grupa1 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz2 ))
           ++ KlaksonGracza2
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz2 )))
           SET KlaksonGracza2 = 0
        ENDIF
        IF (( KlaksonGracza2 > 0 )
        AND ( KlaksonGracza2 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz3 , AutoGracza2 )
            SET Kierowca1 = 0
            SET Kierowca2 = 1
            SET Kierowca3 = 0
        ENDIF
    ENDIF
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza2 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz2, AutoGracza2 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS  (  Gracz2  , Gracz3, 3.0, 3.0 ))) 
    AND ( IS_CHARACTER_IN_ANY_CAR ( Gracz1 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz1, AutoGracza2 )))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz3 )))) 
    AND ( Kierowca1 = 0 ))
    AND ( Kierowca3 = 0 ))
    AND ( Grupa1 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz2 ))
           ++ KlaksonGracza2
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz2 )))
           SET KlaksonGracza2 = 0
        ENDIF
        IF (( KlaksonGracza2 > 0 )
        AND ( KlaksonGracza2 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz3 , AutoGracza2 )
            SET Kierowca1 = 0
            SET Kierowca2 = 1
            SET Kierowca3 = 0
        ENDIF
    ENDIF
    IF (((((((( HAS_CAR_GOT_DRIVER ( AutoGracza2 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz2, AutoGracza2 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS  (  Gracz2  , Gracz3, 3.0, 3.0 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz1, AutoGracza2 ))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz3 )))) 
    AND ( Kierowca1 = 0 ))
    AND ( Kierowca3 = 0 ))
    AND ( Grupa1 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz2 ))
           ++ KlaksonGracza2
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz2 )))
           SET KlaksonGracza2 = 0
        ENDIF
        IF (( KlaksonGracza2 > 0 )
        AND ( KlaksonGracza2 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz3 , AutoGracza2 )
            SET Kierowca1 = 0
            SET Kierowca2 = 1
            SET Kierowca3 = 0
        ENDIF
    ENDIF
    
// WYSIADANIE PASAŻERÓW GDY NIE MA KIEROWCY // KICK PASSENGERS FROM CAR WHEN THERE IS NO DRIVER //

    // Gracz1 i Gracz 3 // Player1 & Player 3 
    IF ((((((( NOT ( HAS_CAR_GOT_DRIVER ( AutoGracza2 )))
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz2 , AutoGracza2 )))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz1 , AutoGracza2 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz3 , AutoGracza2 ))) 
    AND ( Gracz1JestPasazeremGracza2 = 1 )) 
    AND ( Gracz3JestPasazeremGracza2 = 1 ))
    AND ( Grupa1 = 0 ))
        ORDER_DRIVER_OUT_CAR ( Gracz1 )
        SET Gracz1JestPasazeremGracza2 = 0
        ORDER_DRIVER_OUT_CAR ( Gracz3 )
        SET Gracz3JestPasazeremGracza2 = 0
        SET Grupa1 = 1
    ENDIF
    
    // Tylko Gracz 1 // Only Player 1 
    IF ((((((( NOT ( HAS_CAR_GOT_DRIVER ( AutoGracza2 )))
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz2 , AutoGracza2 )))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz1 , AutoGracza2 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz3 , AutoGracza2 )))) 
    AND ( Gracz1JestPasazeremGracza2 = 1 )) 
    AND ( Gracz3JestPasazeremGracza2 = 0 ))
    AND ( Grupa1 = 0 ))
        ORDER_DRIVER_OUT_CAR ( Gracz1 )
        SET Gracz1JestPasazeremGracza2 = 0
        SET Grupa1 = 1
    ENDIF
    
    // Tylko Gracz 3 // Only Player 3 
    IF ((((((( NOT ( HAS_CAR_GOT_DRIVER ( AutoGracza2 )))
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz2 , AutoGracza2 )))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz3 , AutoGracza2 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz1 , AutoGracza2 )))) 
    AND ( Gracz1JestPasazeremGracza2 = 0 )) 
    AND ( Gracz3JestPasazeremGracza2 = 1 ))
    AND ( Grupa1 = 0 ))
        ORDER_DRIVER_OUT_CAR ( Gracz3 )
        SET Gracz3JestPasazeremGracza2 = 0
        SET Grupa1 = 1
    ENDIF
    
// WYSIADANIE PASAZEROW WYMUSZONE PRZEZ KIEROWCE // KICK PASSENGERS FROM CAR BY THE DRIVER //

    // Gracz1 i Gracz 3 // Player1 & Player 3 
    IF (((((((( HAS_CAR_GOT_DRIVER ( AutoGracza2 ))
    AND ( Kierowca2 = 1 ))
    AND ( IS_CHARACTER_IN_CAR ( Gracz2 , AutoGracza2 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz1 , AutoGracza2 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz3 , AutoGracza2 ))) 
    AND ( Gracz1JestPasazeremGracza2 = 1 )) 
    AND ( Gracz3JestPasazeremGracza2 = 1 ))
    AND ( Grupa1 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz2 )) 
           ORDER_DRIVER_OUT_CAR ( Gracz1 )
           SET Gracz1JestPasazeremGracza2 = 0
           ORDER_DRIVER_OUT_CAR ( Gracz3 )
           SET Gracz3JestPasazeremGracza2 = 0
           SET Grupa1 = 1
        ENDIF
    ENDIF
    
    // Tylko Gracz 1 // Only Player 1 
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza2 ))
    AND ( Kierowca2 = 1 ))
    AND ( IS_CHARACTER_IN_CAR ( Gracz2 , AutoGracza2 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz1 , AutoGracza2 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz3 , AutoGracza2 )))) 
    AND ( NOT( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz2, Gracz3, 3.0, 3.0 ))))
    AND ( Gracz1JestPasazeremGracza2 = 1 )) 
    AND ( Gracz3JestPasazeremGracza2 = 0 ))
    AND ( Grupa1 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz2 )) 
           ORDER_DRIVER_OUT_CAR ( Gracz1 )
           SET Gracz1JestPasazeremGracza2 = 0
           SET Grupa1 = 1
        ENDIF
    ENDIF
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza2 ))
    AND ( Kierowca2 = 1 ))
    AND ( IS_CHARACTER_IN_CAR ( Gracz2 , AutoGracza2 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz1 , AutoGracza2 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz3 , AutoGracza2 )))) 
    AND ( IS_CHARACTER_IN_ANY_CAR ( Gracz3 ))) 
    AND ( Gracz1JestPasazeremGracza2 = 1 )) 
    AND ( Gracz3JestPasazeremGracza2 = 0 ))
    AND ( Grupa1 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz2 )) 
           ORDER_DRIVER_OUT_CAR ( Gracz1 )
           SET Gracz1JestPasazeremGracza2 = 0
           SET Grupa1 = 1
        ENDIF
    ENDIF
    
    // Tylko Gracz 3 // Only Player 3 
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza2 ))
    AND ( Kierowca2 = 1 ))
    AND ( IS_CHARACTER_IN_CAR ( Gracz2 , AutoGracza2 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz3 , AutoGracza2 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz1 , AutoGracza2 )))) 
    AND ( NOT( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz2, Gracz1, 3.0, 3.0 ))))
    AND ( Gracz1JestPasazeremGracza2 = 0 )) 
    AND ( Gracz3JestPasazeremGracza2 = 1 ))
    AND ( Grupa1 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz2 )) 
           ORDER_DRIVER_OUT_CAR ( Gracz3 )
           SET Gracz3JestPasazeremGracza2 = 0
           SET Grupa1 = 1
        ENDIF
    ENDIF
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza2 ))
    AND ( Kierowca2 = 1 ))
    AND ( IS_CHARACTER_IN_CAR ( Gracz2 , AutoGracza2 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz3 , AutoGracza2 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz1 , AutoGracza2 )))) 
    AND ( IS_CHARACTER_IN_ANY_CAR ( Gracz1 ))) 
    AND ( Gracz1JestPasazeremGracza2 = 0 )) 
    AND ( Gracz3JestPasazeremGracza2 = 1 ))
    AND ( Grupa1 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz2 )) 
           ORDER_DRIVER_OUT_CAR ( Gracz3 )
           SET Gracz3JestPasazeremGracza2 = 0
           SET Grupa1 = 1
        ENDIF
    ENDIF
    
// KTO JEST PASAŻEREM? // WHO IS PASSANGER? //

    // Gracz1 i Gracz 3 // Player1 & Player 3 
    IF ((((( HAS_CAR_GOT_DRIVER ( AutoGracza2 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz2 , AutoGracza2 )))
    AND ( IS_CHARACTER_IN_CAR ( Gracz1 , AutoGracza2 )))
    AND ( IS_CHARACTER_IN_CAR ( Gracz3 , AutoGracza2 )))
    AND ( CHECK_PASSENGER_COUNT ( AutoGracza2  ,  2 )))
        SET Gracz1JestPasazeremGracza2 = 1
        SET Gracz3JestPasazeremGracza2 = 1
    ENDIF
    
    // Gracz1 lub Gracz 3 // Player1 or Player 3 
    IF ((( HAS_CAR_GOT_DRIVER ( AutoGracza2 ))
    AND ( IS_CHARACTER_IN_CAR ( Gracz2 , AutoGracza2 )))
    AND ( CHECK_PASSENGER_COUNT ( AutoGracza2  ,  1 )))
        IF ( IS_CHARACTER_IN_CAR ( Gracz1 , AutoGracza2 ))
           SET Gracz1JestPasazeremGracza2 = 1
        ELSE
           SET Gracz1JestPasazeremGracza2 = 0
        ENDIF
        IF ( IS_CHARACTER_IN_CAR ( Gracz3 , AutoGracza2 ))
           SET Gracz3JestPasazeremGracza2 = 1
        ELSE
           SET Gracz3JestPasazeremGracza2 = 0
        ENDIF
    ENDIF
        
    // Nikt // Nobody 
    IF ((((( HAS_CAR_GOT_DRIVER ( AutoGracza2 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz2 , AutoGracza2 )))
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz1 , AutoGracza2 ))))
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz3 , AutoGracza2 ))))
    AND ( CHECK_PASSENGER_COUNT ( AutoGracza2  ,  0 )))
        SET Gracz1JestPasazeremGracza2 = 0
        SET Gracz3JestPasazeremGracza2 = 0
    ENDIF
    
////////////////////////////////////////////
//     GRACZ III    ////     PLAYER III   //
////////////////////////////////////////////

// ZBIERANIE PASAŻERÓW // TAKING PASSASENGERS //

    // Gracz1 i Gracz 2 // Player1 & Player 2 
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza3 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz3 , AutoGracza3 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz3, Gracz1, 3.0, 3.0 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz3, Gracz2, 3.0, 3.0 ))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz1 )))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz2 )))) 
    AND ( Kierowca1 = 0 ))
    AND ( Kierowca2 = 0 ))
    AND ( Grupa1 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz3 ))
           ++ KlaksonGracza3
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz3 )))
           SET KlaksonGracza3 = 0
        ENDIF
        IF (( KlaksonGracza3 > 0 )
        AND ( KlaksonGracza3 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz1 , AutoGracza3 )
            ORDER_CHAR_TO_BACKDOOR ( Gracz2 , AutoGracza3 )
            SET Kierowca1 = 0
            SET Kierowca2 = 0
            SET Kierowca3 = 1
        ENDIF
    ENDIF
        
    // Tylko Gracz 1 // Only Player 1 
    IF (((((((( HAS_CAR_GOT_DRIVER ( AutoGracza3 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz3, AutoGracza3 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz3, Gracz1, 3.0, 3.0 ))) 
    AND ( NOT( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz3, Gracz2, 3.0, 3.0 )))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz1 )))) 
    AND ( Kierowca1 = 0 ))
    AND ( Kierowca2 = 0 ))
    AND ( Grupa1 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz3 ))
           ++ KlaksonGracza3
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz3 )))
           SET KlaksonGracza3 = 0
        ENDIF
        IF (( KlaksonGracza3 > 0 )
        AND ( KlaksonGracza3 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz1 , AutoGracza3 )
            SET Kierowca1 = 0
            SET Kierowca2 = 0
            SET Kierowca3 = 1
        ENDIF
    ENDIF
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza3 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz3, AutoGracza3 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz3, Gracz1, 3.0, 3.0 ))) 
    AND ( IS_CHARACTER_IN_ANY_CAR ( Gracz2 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz2, AutoGracza3 )))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz1 )))) 
    AND ( Kierowca1 = 0 ))
    AND ( Kierowca2 = 0 ))
    AND ( Grupa1 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz3 ))
           ++ KlaksonGracza3
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz3 )))
           SET KlaksonGracza3 = 0
        ENDIF
        IF (( KlaksonGracza3 > 0 )
        AND ( KlaksonGracza3 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz1 , AutoGracza3 )
            SET Kierowca1 = 0
            SET Kierowca2 = 0
            SET Kierowca3 = 1
        ENDIF
    ENDIF
    IF (((((((( HAS_CAR_GOT_DRIVER ( AutoGracza3 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz3, AutoGracza3 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz3, Gracz1, 3.0, 3.0 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz2, AutoGracza3 ))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz1 )))) 
    AND ( Kierowca1 = 0 ))
    AND ( Kierowca2 = 0 ))
    AND ( Grupa1 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz3 ))
           ++ KlaksonGracza3
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz3 )))
           SET KlaksonGracza3 = 0
        ENDIF
        IF (( KlaksonGracza3 > 0 )
        AND ( KlaksonGracza3 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz1 , AutoGracza3 )
            SET Kierowca1 = 0
            SET Kierowca2 = 0
            SET Kierowca3 = 1
        ENDIF
    ENDIF
    
    // Tylko Gracz 2 // Only Player 2 
    IF (((((((( HAS_CAR_GOT_DRIVER ( AutoGracza3 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz3, AutoGracza3 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz3, Gracz2, 3.0, 3.0 ))) 
    AND ( NOT( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz3, Gracz1, 3.0, 3.0 )))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz2 )))) 
    AND ( Kierowca1 = 0 ))
    AND ( Kierowca2 = 0 ))
    AND ( Grupa1 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz3 ))
           ++ KlaksonGracza3
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz3 )))
           SET KlaksonGracza3 = 0
        ENDIF
        IF (( KlaksonGracza3 > 0 )
        AND ( KlaksonGracza3 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz2 , AutoGracza3 )
            SET Kierowca1 = 0
            SET Kierowca2 = 0
            SET Kierowca3 = 1
        ENDIF
    ENDIF
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza3 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz3, AutoGracza3 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS  (  Gracz3  , Gracz2, 3.0, 3.0 ))) 
    AND ( IS_CHARACTER_IN_ANY_CAR ( Gracz1 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz1, AutoGracza3 )))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz2 )))) 
    AND ( Kierowca1 = 0 ))
    AND ( Kierowca2 = 0 ))
    AND ( Grupa1 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz3 ))
           ++ KlaksonGracza3
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz3 )))
           SET KlaksonGracza3 = 0
        ENDIF
        IF (( KlaksonGracza3 > 0 )
        AND ( KlaksonGracza3 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz2 , AutoGracza3 )
            SET Kierowca1 = 0
            SET Kierowca2 = 0
            SET Kierowca3 = 1
        ENDIF
    ENDIF
    IF (((((((( HAS_CAR_GOT_DRIVER ( AutoGracza3 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz3, AutoGracza3 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS  (  Gracz3  , Gracz2, 3.0, 3.0 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz1, AutoGracza3 ))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz2 )))) 
    AND ( Kierowca1 = 0 ))
    AND ( Kierowca2 = 0 ))
    AND ( Grupa1 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz3 ))
           ++ KlaksonGracza3
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz3 )))
           SET KlaksonGracza3 = 0
        ENDIF
        IF (( KlaksonGracza3 > 0 )
        AND ( KlaksonGracza3 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz2 , AutoGracza3 )
            SET Kierowca1 = 0
            SET Kierowca2 = 0
            SET Kierowca3 = 1
        ENDIF
    ENDIF
// WYSIADANIE PASAŻERÓW GDY NIE MA KIEROWCY // KICK PASSENGERS FROM CAR WHEN THERE IS NO DRIVER //

    // Gracz1 i Gracz 2 // Player1 & Player 2 
    IF ((((((( NOT ( HAS_CAR_GOT_DRIVER ( AutoGracza3 )))
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz3 , AutoGracza3 )))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz1 , AutoGracza3 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz2 , AutoGracza3 ))) 
    AND ( Gracz1JestPasazeremGracza3 = 1 )) 
    AND ( Gracz2JestPasazeremGracza3 = 1 ))
    AND ( Grupa1 = 0 ))
        ORDER_DRIVER_OUT_CAR ( Gracz1 )
        SET Gracz1JestPasazeremGracza3 = 0
        ORDER_DRIVER_OUT_CAR ( Gracz2 )
        SET Gracz2JestPasazeremGracza3 = 0
        SET Grupa1 = 1
    ENDIF
        
    // Tylko Gracz 1 // Only Player 1 
    IF ((((((( NOT ( HAS_CAR_GOT_DRIVER ( AutoGracza3 )))
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz3 , AutoGracza3 )))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz1 , AutoGracza3 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz2 , AutoGracza3 )))) 
    AND ( Gracz1JestPasazeremGracza3 = 1 )) 
    AND ( Gracz2JestPasazeremGracza3 = 0 ))
    AND ( Grupa1 = 0 ))
        ORDER_DRIVER_OUT_CAR ( Gracz1 )
        SET Gracz1JestPasazeremGracza3 = 0
        SET Grupa1 = 1
    ENDIF
    
    // Tylko Gracz 2 // Only Player 2 
    IF ((((((( NOT ( HAS_CAR_GOT_DRIVER ( AutoGracza3 )))
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz3 , AutoGracza3 )))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz2 , AutoGracza3 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz1 , AutoGracza3 )))) 
    AND ( Gracz1JestPasazeremGracza3 = 0 )) 
    AND ( Gracz2JestPasazeremGracza3 = 1 ))
    AND ( Grupa1 = 0 ))
        ORDER_DRIVER_OUT_CAR ( Gracz2 )
        SET Gracz2JestPasazeremGracza3 = 0
        SET Grupa1 = 1
    ENDIF
    
// WYSIADANIE PASAZEROW WYMUSZONE PRZEZ KIEROWCE // KICK PASSENGERS FROM CAR BY THE DRIVER //

    // Gracz1 i Gracz 2 // Player1 & Player 2 
    IF (((((((( HAS_CAR_GOT_DRIVER ( AutoGracza3 ))
    AND ( Kierowca3 = 1 ))
    AND ( IS_CHARACTER_IN_CAR ( Gracz3 , AutoGracza3 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz1 , AutoGracza3 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz2 , AutoGracza3 ))) 
    AND ( Gracz1JestPasazeremGracza3 = 1 )) 
    AND ( Gracz2JestPasazeremGracza3 = 1 ))
    AND ( Grupa1 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz3 )) 
           ORDER_DRIVER_OUT_CAR ( Gracz1 )
           SET Gracz1JestPasazeremGracza3 = 0
           ORDER_DRIVER_OUT_CAR ( Gracz2 )
           SET Gracz2JestPasazeremGracza3 = 0
           SET Grupa1 = 1
        ENDIF
    ENDIF
    
    // Tylko Gracz 1 // Only Player 1 
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza3 ))
    AND ( Kierowca3 = 1 ))
    AND ( IS_CHARACTER_IN_CAR ( Gracz3 , AutoGracza3 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz1 , AutoGracza3 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz2 , AutoGracza3 )))) 
    AND ( NOT( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz3, Gracz2, 3.0, 3.0 ))))
    AND ( Gracz1JestPasazeremGracza3 = 1 )) 
    AND ( Gracz2JestPasazeremGracza3 = 0 ))
    AND ( Grupa1 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz3 )) 
           ORDER_DRIVER_OUT_CAR ( Gracz1 )
           SET Gracz1JestPasazeremGracza3 = 0
           SET Grupa1 = 1
        ENDIF
    ENDIF
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza3 ))
    AND ( Kierowca3 = 1 ))
    AND ( IS_CHARACTER_IN_CAR ( Gracz3 , AutoGracza3 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz1 , AutoGracza3 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz2 , AutoGracza3 )))) 
    AND ( IS_CHARACTER_IN_ANY_CAR ( Gracz2 ))) 
    AND ( Gracz1JestPasazeremGracza3 = 1 )) 
    AND ( Gracz2JestPasazeremGracza3 = 0 ))
    AND ( Grupa1 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz3 )) 
           ORDER_DRIVER_OUT_CAR ( Gracz1 )
           SET Gracz1JestPasazeremGracza3 = 0
           SET Grupa1 = 1
        ENDIF
    ENDIF
    
    // Tylko Gracz 2 // Only Player 2 
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza3 ))
    AND ( Kierowca3 = 1 ))
    AND ( IS_CHARACTER_IN_CAR ( Gracz3 , AutoGracza3 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz2 , AutoGracza3 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz1 , AutoGracza3 )))) 
    AND ( NOT( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz3, Gracz1, 3.0, 3.0 ))))
    AND ( Gracz1JestPasazeremGracza3 = 0 )) 
    AND ( Gracz2JestPasazeremGracza3 = 1 ))
    AND ( Grupa1 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz3 )) 
           ORDER_DRIVER_OUT_CAR ( Gracz2 )
           SET Gracz2JestPasazeremGracza3 = 0
           SET Grupa1 = 1
        ENDIF
    ENDIF
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza3 ))
    AND ( Kierowca3 = 1 ))
    AND ( IS_CHARACTER_IN_CAR ( Gracz3 , AutoGracza3 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz2 , AutoGracza3 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz1 , AutoGracza3 )))) 
    AND ( IS_CHARACTER_IN_ANY_CAR ( Gracz1 ))) 
    AND ( Gracz1JestPasazeremGracza3 = 0 )) 
    AND ( Gracz2JestPasazeremGracza3 = 1 ))
    AND ( Grupa1 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz3 )) 
           ORDER_DRIVER_OUT_CAR ( Gracz2 )
           SET Gracz2JestPasazeremGracza3 = 0
           SET Grupa1 = 1
        ENDIF
    ENDIF
    
// KTO JEST PASAŻEREM? // WHO IS PASSANGER? //

    // Gracz1 i Gracz 2 // Player1 & Player 2 
    IF ((((( HAS_CAR_GOT_DRIVER ( AutoGracza3 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz3 , AutoGracza3 )))
    AND ( IS_CHARACTER_IN_CAR ( Gracz1 , AutoGracza3 )))
    AND ( IS_CHARACTER_IN_CAR ( Gracz2 , AutoGracza3 )))
    AND ( CHECK_PASSENGER_COUNT ( AutoGracza3  ,  2 )))
        SET Gracz1JestPasazeremGracza3 = 1
        SET Gracz2JestPasazeremGracza3 = 1
    ENDIF
    
    // Gracz1 lub Gracz 2 // Player1 or Player 2 
    IF ((( HAS_CAR_GOT_DRIVER ( AutoGracza3 ))
    AND ( IS_CHARACTER_IN_CAR ( Gracz3 , AutoGracza3 )))
    AND ( CHECK_PASSENGER_COUNT ( AutoGracza3  ,  1 )))
        IF ( IS_CHARACTER_IN_CAR ( Gracz1 , AutoGracza3 ))
           SET Gracz1JestPasazeremGracza3 = 1
        ELSE
           SET Gracz1JestPasazeremGracza3 = 0
        ENDIF
        IF ( IS_CHARACTER_IN_CAR ( Gracz2 , AutoGracza3 ))
           SET Gracz2JestPasazeremGracza3 = 1
        ELSE
           SET Gracz2JestPasazeremGracza3 = 0
        ENDIF
    ENDIF
        
    // Nikt // Nobody 
    IF ((((( HAS_CAR_GOT_DRIVER ( AutoGracza3 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz3 , AutoGracza3 )))
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz1 , AutoGracza3 ))))
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz2 , AutoGracza3 ))))
    AND ( CHECK_PASSENGER_COUNT ( AutoGracza3  ,  0 )))
        SET Gracz1JestPasazeremGracza3 = 0
        SET Gracz2JestPasazeremGracza3 = 0
    ENDIF
    
// ZERUJ ZMIENNĄ 'Kierowca' // RESET VALUE 'Kierowca' 
   IF ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz1 )))
      SET Kierowca1 = 0
   ENDIF
   IF ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz2 )))
      SET Kierowca2 = 0
   ENDIF
   IF ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz3 )))
      SET Kierowca3 = 0
   ENDIF
   IF (((( IS_CHARACTER_IN_CAR ( Gracz1, AutoGracza1 ))
   AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz2, AutoGracza1 ))))
   AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz3, AutoGracza1 ))))
   AND ( Grupa1 = 1 ))
      SET Kierowca1 = 0
   ENDIF
   IF (((( IS_CHARACTER_IN_CAR ( Gracz2, AutoGracza2 ))
   AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz1, AutoGracza2 ))))
   AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz3, AutoGracza1 ))))
   AND ( Grupa1 = 1 ))
      SET Kierowca2 = 0
   ENDIF
   IF (((( IS_CHARACTER_IN_CAR ( Gracz3, AutoGracza3 ))
   AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz1, AutoGracza3 ))))
   AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz2, AutoGracza3 ))))
   AND ( Grupa1 = 1 ))
      SET Kierowca3 = 0
   ENDIF
   
// ZERUJ ZMIENNĄ 'Grupa1' // RESET VALUE 'Grupa1' 
   IF ( Grupa1 = 1) 
      ++ licznik1
      IF ( licznik1 > 30 )
         SET Grupa1 = 0
         SET licznik1 = 0
      ENDIF
   ENDIF
ENDIF

////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////    DRUZYNA II     ////////////////////////////////////////
/////////////////////////////////////////      TEAM II      ////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////

IF ((((((CHECK_CHARACTER_HEALTH ( Gracz4 , 0))  
AND (CHECK_SCORE_GREATER ( Gracz4 , -1)))     
AND (CHECK_CHARACTER_HEALTH ( Gracz5 , 0)))
AND (CHECK_SCORE_GREATER ( Gracz5 , -1)))
AND (CHECK_CHARACTER_HEALTH ( Gracz6 , 0)))
AND (CHECK_SCORE_GREATER ( Gracz6 , -1)))
    STORE_CAR_CHARACTER_IS_IN ( Gracz4 , AutoGracza4 )
    STORE_CAR_CHARACTER_IS_IN ( Gracz5 , AutoGracza5 )
    STORE_CAR_CHARACTER_IS_IN ( Gracz6 , AutoGracza6 )
    
////////////////////////////////////////////
//     GRACZ IV     ////     PLAYER IV    //
////////////////////////////////////////////

// ZBIERANIE PASAŻERÓW // TAKING PASSASENGERS //

    // Gracz5 i Gracz 6 // Player5 & Player 6 
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza4 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz4 , AutoGracza4 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz4, Gracz5, 3.0, 3.0 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz4, Gracz6, 3.0, 3.0 ))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz5 )))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz6 )))) 
    AND ( Kierowca5 = 0 ))
    AND ( Kierowca6 = 0 ))
    AND ( Grupa2 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz4 ))
           ++ KlaksonGracza4
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz4 )))
           SET KlaksonGracza4 = 0
        ENDIF
        IF (( KlaksonGracza4 > 0 )
        AND ( KlaksonGracza4 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz5 , AutoGracza4 )
            ORDER_CHAR_TO_BACKDOOR ( Gracz6 , AutoGracza4 )
            SET Kierowca4 = 1
            SET Kierowca5 = 0
            SET Kierowca6 = 0
        ENDIF
    ENDIF
        
    // Tylko Gracz 5 // Only Player 5 
    IF (((((((( HAS_CAR_GOT_DRIVER ( AutoGracza4 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz4, AutoGracza4 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz4, Gracz5, 3.0, 3.0 ))) 
    AND ( NOT( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz4, Gracz6, 3.0, 3.0 )))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz5 )))) 
    AND ( Kierowca5 = 0 ))
    AND ( Kierowca6 = 0 ))
    AND ( Grupa2 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz4 ))
           ++ KlaksonGracza4
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz4 )))
           SET KlaksonGracza4 = 0
        ENDIF
        IF (( KlaksonGracza4 > 0 )
        AND ( KlaksonGracza4 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz5 , AutoGracza4 )
            SET Kierowca4 = 1
            SET Kierowca5 = 0
            SET Kierowca6 = 0
        ENDIF
    ENDIF
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza4 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz4, AutoGracza4 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz4, Gracz5, 3.0, 3.0 ))) 
    AND ( IS_CHARACTER_IN_ANY_CAR ( Gracz6 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz6, AutoGracza4 )))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz5 )))) 
    AND ( Kierowca5 = 0 ))
    AND ( Kierowca6 = 0 ))
    AND ( Grupa2 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz4 ))
           ++ KlaksonGracza4
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz4 )))
           SET KlaksonGracza4 = 0
        ENDIF
        IF (( KlaksonGracza4 > 0 )
        AND ( KlaksonGracza4 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz5 , AutoGracza4 )
            SET Kierowca4 = 1
            SET Kierowca5 = 0
            SET Kierowca6 = 0
        ENDIF
    ENDIF
    IF (((((((( HAS_CAR_GOT_DRIVER ( AutoGracza4 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz4, AutoGracza4 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz4, Gracz5, 3.0, 3.0 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz6, AutoGracza4 ))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz5 )))) 
    AND ( Kierowca5 = 0 ))
    AND ( Kierowca6 = 0 ))
    AND ( Grupa2 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz4 ))
           ++ KlaksonGracza4
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz4 )))
           SET KlaksonGracza4 = 0
        ENDIF
        IF (( KlaksonGracza4 > 0 )
        AND ( KlaksonGracza4 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz5 , AutoGracza4 )
            SET Kierowca4 = 1
            SET Kierowca5 = 0
            SET Kierowca6 = 0
        ENDIF
    ENDIF
    
    // Tylko Gracz 6 // Only Player 6 
    IF (((((((( HAS_CAR_GOT_DRIVER ( AutoGracza4 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz4, AutoGracza4 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz4, Gracz6, 3.0, 3.0 ))) 
    AND ( NOT( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz4, Gracz5, 3.0, 3.0 )))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz6 )))) 
    AND ( Kierowca5 = 0 ))
    AND ( Kierowca6 = 0 ))
    AND ( Grupa2 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz4 ))
           ++ KlaksonGracza4
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz4 )))
           SET KlaksonGracza4 = 0
        ENDIF
        IF (( KlaksonGracza4 > 0 )
        AND ( KlaksonGracza4 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz6 , AutoGracza4 )
            SET Kierowca4 = 1
            SET Kierowca5 = 0
            SET Kierowca6 = 0
        ENDIF
    ENDIF
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza4 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz4, AutoGracza4 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS  (  Gracz4  , Gracz6, 3.0, 3.0 ))) 
    AND ( IS_CHARACTER_IN_ANY_CAR ( Gracz5 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz5, AutoGracza4 )))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz6 )))) 
    AND ( Kierowca5 = 0 ))
    AND ( Kierowca6 = 0 ))
    AND ( Grupa2 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz4 ))
           ++ KlaksonGracza4
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz4 )))
           SET KlaksonGracza4 = 0
        ENDIF
        IF (( KlaksonGracza4 > 0 )
        AND ( KlaksonGracza4 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz6 , AutoGracza4 )
            SET Kierowca4 = 1
            SET Kierowca5 = 0
            SET Kierowca6 = 0
        ENDIF
    ENDIF
    IF (((((((( HAS_CAR_GOT_DRIVER ( AutoGracza4 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz4, AutoGracza4 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS  (  Gracz4  , Gracz6, 3.0, 3.0 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz5, AutoGracza4 ))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz6 )))) 
    AND ( Kierowca5 = 0 ))
    AND ( Kierowca6 = 0 ))
    AND ( Grupa2 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz4 ))
           ++ KlaksonGracza4
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz4 )))
           SET KlaksonGracza4 = 0
        ENDIF
        IF (( KlaksonGracza4 > 0 )
        AND ( KlaksonGracza4 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz6 , AutoGracza4 )
            SET Kierowca4 = 1
            SET Kierowca5 = 0
            SET Kierowca6 = 0
        ENDIF
    ENDIF
    
// WYSIADANIE PASAŻERÓW GDY NIE MA KIEROWCY // KICK PASSENGERS FROM CAR WHEN THERE IS NO DRIVER //

    // Gracz5 i Gracz 6 // Player5 & Player 6 
    IF ((((((( NOT ( HAS_CAR_GOT_DRIVER ( AutoGracza4 )))
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz4 , AutoGracza4 )))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz5 , AutoGracza4 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz6 , AutoGracza4 ))) 
    AND ( Gracz5JestPasazeremGracza4 = 1 )) 
    AND ( Gracz6JestPasazeremGracza4 = 1 ))
    AND ( Grupa2 = 0 ))
        ORDER_DRIVER_OUT_CAR ( Gracz5 )
        SET Gracz5JestPasazeremGracza4 = 0
        ORDER_DRIVER_OUT_CAR ( Gracz6 )
        SET Gracz6JestPasazeremGracza4 = 0
        SET Grupa2 = 1
    ENDIF
        
    // Tylko Gracz 5 // Only Player 5 
    IF ((((((( NOT ( HAS_CAR_GOT_DRIVER ( AutoGracza4 )))
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz4 , AutoGracza4 )))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz5 , AutoGracza4 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz6 , AutoGracza4 )))) 
    AND ( Gracz5JestPasazeremGracza4 = 1 )) 
    AND ( Gracz6JestPasazeremGracza4 = 0 ))
    AND ( Grupa2 = 0 ))
        ORDER_DRIVER_OUT_CAR ( Gracz5 )
        SET Gracz5JestPasazeremGracza4 = 0
        SET Grupa2 = 1
    ENDIF
    
    // Tylko Gracz 6 // Only Player 6 
    IF ((((((( NOT ( HAS_CAR_GOT_DRIVER ( AutoGracza4 )))
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz4 , AutoGracza4 )))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz6 , AutoGracza4 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz5 , AutoGracza4 )))) 
    AND ( Gracz5JestPasazeremGracza4 = 0 )) 
    AND ( Gracz6JestPasazeremGracza4 = 1 ))
    AND ( Grupa2 = 0 ))
        ORDER_DRIVER_OUT_CAR ( Gracz6 )
        SET Gracz6JestPasazeremGracza4 = 0
        SET Grupa2 = 1
    ENDIF
    
// WYSIADANIE PASAZEROW WYMUSZONE PRZEZ KIEROWCE // KICK PASSENGERS FROM CAR BY THE DRIVER //

    // Gracz5 i Gracz 6 // Player5 & Player 6 
    IF (((((((( HAS_CAR_GOT_DRIVER ( AutoGracza4 ))
    AND ( Kierowca4 = 1 ))
    AND ( IS_CHARACTER_IN_CAR ( Gracz4 , AutoGracza4 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz5 , AutoGracza4 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz6 , AutoGracza4 ))) 
    AND ( Gracz5JestPasazeremGracza4 = 1 )) 
    AND ( Gracz6JestPasazeremGracza4 = 1 ))
    AND ( Grupa2 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz4 )) 
           ORDER_DRIVER_OUT_CAR ( Gracz5 )
           SET Gracz5JestPasazeremGracza4 = 0
           ORDER_DRIVER_OUT_CAR ( Gracz6 )
           SET Gracz6JestPasazeremGracza4 = 0
           SET Grupa2 = 1
        ENDIF
    ENDIF
    
    // Tylko Gracz 5 // Only Player 5 
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza4 ))
    AND ( Kierowca4 = 1 ))
    AND ( IS_CHARACTER_IN_CAR ( Gracz4 , AutoGracza4 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz5 , AutoGracza4 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz6 , AutoGracza4 )))) 
    AND ( NOT( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz4, Gracz6, 3.0, 3.0 ))))
    AND ( Gracz5JestPasazeremGracza4 = 1 )) 
    AND ( Gracz6JestPasazeremGracza4 = 0 ))
    AND ( Grupa2 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz4 )) 
           ORDER_DRIVER_OUT_CAR ( Gracz5 )
           SET Gracz5JestPasazeremGracza4 = 0
           SET Grupa2 = 1
        ENDIF
    ENDIF
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza4 ))
    AND ( Kierowca4 = 1 ))
    AND ( IS_CHARACTER_IN_CAR ( Gracz4 , AutoGracza4 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz5 , AutoGracza4 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz6 , AutoGracza4 )))) 
    AND ( IS_CHARACTER_IN_ANY_CAR ( Gracz6 ))) 
    AND ( Gracz5JestPasazeremGracza4 = 1 )) 
    AND ( Gracz6JestPasazeremGracza4 = 0 ))
    AND ( Grupa2 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz4 )) 
           ORDER_DRIVER_OUT_CAR ( Gracz5 )
           SET Gracz5JestPasazeremGracza4 = 0
           SET Grupa2 = 1
        ENDIF
    ENDIF
    
    // Tylko Gracz 6 // Only Player 6 
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza4 ))
    AND ( Kierowca4 = 1 ))
    AND ( IS_CHARACTER_IN_CAR ( Gracz4 , AutoGracza4 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz6 , AutoGracza4 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz5 , AutoGracza4 )))) 
    AND ( NOT( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz4, Gracz5, 3.0, 3.0 ))))
    AND ( Gracz5JestPasazeremGracza4 = 0 )) 
    AND ( Gracz6JestPasazeremGracza4 = 1 ))
    AND ( Grupa2 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz4 )) 
           ORDER_DRIVER_OUT_CAR ( Gracz6 )
           SET Gracz6JestPasazeremGracza4 = 0
           SET Grupa2 = 1
        ENDIF
    ENDIF
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza4 ))
    AND ( Kierowca4 = 1 ))
    AND ( IS_CHARACTER_IN_CAR ( Gracz4 , AutoGracza4 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz6 , AutoGracza4 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz5 , AutoGracza4 )))) 
    AND ( IS_CHARACTER_IN_ANY_CAR ( Gracz5 ))) 
    AND ( Gracz5JestPasazeremGracza4 = 0 )) 
    AND ( Gracz6JestPasazeremGracza4 = 1 ))
    AND ( Grupa2 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz4 )) 
           ORDER_DRIVER_OUT_CAR ( Gracz6 )
           SET Gracz6JestPasazeremGracza4 = 0
           SET Grupa2 = 1
        ENDIF
    ENDIF
    
// KTO JEST PASAŻEREM? // WHO IS PASSANGER? //

    // Gracz5 i Gracz 6 // Player5 & Player 6 
    IF ((((( HAS_CAR_GOT_DRIVER ( AutoGracza4 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz4 , AutoGracza4 )))
    AND ( IS_CHARACTER_IN_CAR ( Gracz5 , AutoGracza4 )))
    AND ( IS_CHARACTER_IN_CAR ( Gracz6 , AutoGracza4 )))
    AND ( CHECK_PASSENGER_COUNT ( AutoGracza4  ,  2 )))
        SET Gracz5JestPasazeremGracza4 = 1
        SET Gracz6JestPasazeremGracza4 = 1
    ENDIF
    
    // Gracz5 lub Gracz 6 // Player5 or Player 6 
    IF ((( HAS_CAR_GOT_DRIVER ( AutoGracza4 ))
    AND ( IS_CHARACTER_IN_CAR ( Gracz4 , AutoGracza4 )))
    AND ( CHECK_PASSENGER_COUNT ( AutoGracza4  ,  1 )))
        IF ( IS_CHARACTER_IN_CAR ( Gracz5 , AutoGracza4 ))
           SET Gracz5JestPasazeremGracza4 = 1
        ELSE
           SET Gracz5JestPasazeremGracza4 = 0
        ENDIF
        IF ( IS_CHARACTER_IN_CAR ( Gracz6 , AutoGracza4 ))
           SET Gracz6JestPasazeremGracza4 = 1
        ELSE
           SET Gracz6JestPasazeremGracza4 = 0
        ENDIF
    ENDIF
        
    // Nikt // Nobody 
    IF ((((( HAS_CAR_GOT_DRIVER ( AutoGracza4 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz4 , AutoGracza4 )))
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz5 , AutoGracza4 ))))
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz6 , AutoGracza4 ))))
    AND ( CHECK_PASSENGER_COUNT ( AutoGracza4  ,  0 )))
        SET Gracz5JestPasazeremGracza4 = 0
        SET Gracz6JestPasazeremGracza4 = 0
    ENDIF
    
////////////////////////////////////////////
//     GRACZ V      ////     PLAYER V     //
////////////////////////////////////////////

// ZBIERANIE PASAŻERÓW // TAKING PASSASENGERS //

    // Gracz4 i Gracz 6 // Player4 & Player 6 
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza5 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz5 , AutoGracza5 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz5, Gracz4, 3.0, 3.0 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz5, Gracz6, 3.0, 3.0 ))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz4 )))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz6 )))) 
    AND ( Kierowca4 = 0 ))
    AND ( Kierowca6 = 0 ))
    AND ( Grupa2 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz5 ))
           ++ KlaksonGracza5
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz5 )))
           SET KlaksonGracza5 = 0
        ENDIF
        IF (( KlaksonGracza5 > 0 )
        AND ( KlaksonGracza5 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz4 , AutoGracza5 )
            ORDER_CHAR_TO_BACKDOOR ( Gracz6 , AutoGracza5 )
            SET Kierowca4 = 0
            SET Kierowca5 = 1
            SET Kierowca6 = 0
        ENDIF
    ENDIF
        
    // Tylko Gracz 4 // Only Player 4 
    IF (((((((( HAS_CAR_GOT_DRIVER ( AutoGracza5 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz5, AutoGracza5 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz5, Gracz4, 3.0, 3.0 ))) 
    AND ( NOT( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz5, Gracz6, 3.0, 3.0 )))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz4 )))) 
    AND ( Kierowca4 = 0 ))
    AND ( Kierowca6 = 0 ))
    AND ( Grupa2 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz5 ))
           ++ KlaksonGracza5
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz5 )))
           SET KlaksonGracza5 = 0
        ENDIF
        IF (( KlaksonGracza5 > 0 )
        AND ( KlaksonGracza5 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz4 , AutoGracza5 )
            SET Kierowca4 = 0
            SET Kierowca5 = 1
            SET Kierowca6 = 0
        ENDIF
    ENDIF
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza5 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz5, AutoGracza5 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz5, Gracz4, 3.0, 3.0 ))) 
    AND ( IS_CHARACTER_IN_ANY_CAR ( Gracz6 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz6, AutoGracza5 )))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz4 )))) 
    AND ( Kierowca4 = 0 ))
    AND ( Kierowca6 = 0 ))
    AND ( Grupa2 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz5 ))
           ++ KlaksonGracza5
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz5 )))
           SET KlaksonGracza5 = 0
        ENDIF
        IF (( KlaksonGracza5 > 0 )
        AND ( KlaksonGracza5 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz4 , AutoGracza5 )
            SET Kierowca4 = 0
            SET Kierowca5 = 1
            SET Kierowca6 = 0
        ENDIF
    ENDIF
    IF (((((((( HAS_CAR_GOT_DRIVER ( AutoGracza5 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz5, AutoGracza5 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz5, Gracz4, 3.0, 3.0 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz6, AutoGracza5 ))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz4 )))) 
    AND ( Kierowca4 = 0 ))
    AND ( Kierowca6 = 0 ))
    AND ( Grupa2 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz5 ))
           ++ KlaksonGracza5
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz5 )))
           SET KlaksonGracza5 = 0
        ENDIF
        IF (( KlaksonGracza5 > 0 )
        AND ( KlaksonGracza5 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz4 , AutoGracza5 )
            SET Kierowca4 = 0
            SET Kierowca5 = 1
            SET Kierowca6 = 0
        ENDIF
    ENDIF
    
    // Tylko Gracz 6 // Only Player 6 
    IF (((((((( HAS_CAR_GOT_DRIVER ( AutoGracza5 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz5, AutoGracza5 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz5, Gracz6, 3.0, 3.0 ))) 
    AND ( NOT( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz5, Gracz4, 3.0, 3.0 )))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz6 )))) 
    AND ( Kierowca4 = 0 ))
    AND ( Kierowca6 = 0 ))
    AND ( Grupa2 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz5 ))
           ++ KlaksonGracza5
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz5 )))
           SET KlaksonGracza5 = 0
        ENDIF
        IF (( KlaksonGracza5 > 0 )
        AND ( KlaksonGracza5 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz6 , AutoGracza5 )
            SET Kierowca4 = 0
            SET Kierowca5 = 1
            SET Kierowca6 = 0
        ENDIF
    ENDIF
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza5 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz5, AutoGracza5 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS  (  Gracz5  , Gracz6, 3.0, 3.0 ))) 
    AND ( IS_CHARACTER_IN_ANY_CAR ( Gracz4 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz4, AutoGracza5 )))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz6 )))) 
    AND ( Kierowca4 = 0 ))
    AND ( Kierowca6 = 0 ))
    AND ( Grupa2 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz5 ))
           ++ KlaksonGracza5
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz5 )))
           SET KlaksonGracza5 = 0
        ENDIF
        IF (( KlaksonGracza5 > 0 )
        AND ( KlaksonGracza5 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz6 , AutoGracza5 )
            SET Kierowca4 = 0
            SET Kierowca5 = 1
            SET Kierowca6 = 0
        ENDIF
    ENDIF
    IF (((((((( HAS_CAR_GOT_DRIVER ( AutoGracza5 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz5, AutoGracza5 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS  (  Gracz5  , Gracz6, 3.0, 3.0 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz4, AutoGracza5 ))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz6 )))) 
    AND ( Kierowca4 = 0 ))
    AND ( Kierowca6 = 0 ))
    AND ( Grupa2 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz5 ))
           ++ KlaksonGracza5
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz5 )))
           SET KlaksonGracza5 = 0
        ENDIF
        IF (( KlaksonGracza5 > 0 )
        AND ( KlaksonGracza5 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz6 , AutoGracza5 )
            SET Kierowca4 = 0
            SET Kierowca5 = 1
            SET Kierowca6 = 0
        ENDIF
    ENDIF
    
// WYSIADANIE PASAŻERÓW GDY NIE MA KIEROWCY // KICK PASSENGERS FROM CAR WHEN THERE IS NO DRIVER //

    // Gracz4 i Gracz 6 // Player4 & Player 6 
    IF ((((((( NOT ( HAS_CAR_GOT_DRIVER ( AutoGracza5 )))
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz5 , AutoGracza5 )))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz4 , AutoGracza5 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz6 , AutoGracza5 ))) 
    AND ( Gracz4JestPasazeremGracza5 = 1 )) 
    AND ( Gracz6JestPasazeremGracza5 = 1 ))
    AND ( Grupa2 = 0 ))
        ORDER_DRIVER_OUT_CAR ( Gracz4 )
        SET Gracz4JestPasazeremGracza5 = 0
        ORDER_DRIVER_OUT_CAR ( Gracz6 )
        SET Gracz6JestPasazeremGracza5 = 0
        SET Grupa2 = 1
    ENDIF
        
    // Tylko Gracz 4 // Only Player 4 
    IF ((((((( NOT ( HAS_CAR_GOT_DRIVER ( AutoGracza5 )))
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz5 , AutoGracza5 )))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz4 , AutoGracza5 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz6 , AutoGracza5 )))) 
    AND ( Gracz4JestPasazeremGracza5 = 1 )) 
    AND ( Gracz6JestPasazeremGracza5 = 0 ))
    AND ( Grupa2 = 0 ))
        ORDER_DRIVER_OUT_CAR ( Gracz4 )
        SET Gracz4JestPasazeremGracza5 = 0
        SET Grupa2 = 1
    ENDIF
    
    // Tylko Gracz 6 // Only Player 6 
    IF ((((((( NOT ( HAS_CAR_GOT_DRIVER ( AutoGracza5 )))
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz5 , AutoGracza5 )))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz6 , AutoGracza5 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz4 , AutoGracza5 )))) 
    AND ( Gracz4JestPasazeremGracza5 = 0 )) 
    AND ( Gracz6JestPasazeremGracza5 = 1 ))
    AND ( Grupa2 = 0 ))
        ORDER_DRIVER_OUT_CAR ( Gracz6 )
        SET Gracz6JestPasazeremGracza5 = 0
        SET Grupa2 = 1
    ENDIF
    
// WYSIADANIE PASAZEROW WYMUSZONE PRZEZ KIEROWCE // KICK PASSENGERS FROM CAR BY THE DRIVER //

    // Gracz4 i Gracz 6 // Player4 & Player 6 
    IF (((((((( HAS_CAR_GOT_DRIVER ( AutoGracza5 ))
    AND ( Kierowca5 = 1 ))
    AND ( IS_CHARACTER_IN_CAR ( Gracz5 , AutoGracza5 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz4 , AutoGracza5 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz6 , AutoGracza5 ))) 
    AND ( Gracz4JestPasazeremGracza5 = 1 )) 
    AND ( Gracz6JestPasazeremGracza5 = 1 ))
    AND ( Grupa2 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz5 )) 
           ORDER_DRIVER_OUT_CAR ( Gracz4 )
           SET Gracz4JestPasazeremGracza5 = 0
           ORDER_DRIVER_OUT_CAR ( Gracz6 )
           SET Gracz6JestPasazeremGracza5 = 0
           SET Grupa2 = 1
        ENDIF
    ENDIF
    
    // Tylko Gracz 4 // Only Player 4 
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza5 ))
    AND ( Kierowca5 = 1 ))
    AND ( IS_CHARACTER_IN_CAR ( Gracz5 , AutoGracza5 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz4 , AutoGracza5 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz6 , AutoGracza5 )))) 
    AND ( NOT( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz5, Gracz6, 3.0, 3.0 ))))
    AND ( Gracz4JestPasazeremGracza5 = 1 )) 
    AND ( Gracz6JestPasazeremGracza5 = 0 ))
    AND ( Grupa2 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz5 )) 
           ORDER_DRIVER_OUT_CAR ( Gracz4 )
           SET Gracz4JestPasazeremGracza5 = 0
           SET Grupa2 = 1
        ENDIF
    ENDIF
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza5 ))
    AND ( Kierowca5 = 1 ))
    AND ( IS_CHARACTER_IN_CAR ( Gracz5 , AutoGracza5 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz4 , AutoGracza5 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz6 , AutoGracza5 )))) 
    AND ( IS_CHARACTER_IN_ANY_CAR ( Gracz6 ))) 
    AND ( Gracz4JestPasazeremGracza5 = 1 )) 
    AND ( Gracz6JestPasazeremGracza5 = 0 ))
    AND ( Grupa2 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz5 )) 
           ORDER_DRIVER_OUT_CAR ( Gracz4 )
           SET Gracz4JestPasazeremGracza5 = 0
           SET Grupa2 = 1
        ENDIF
    ENDIF
    
    // Tylko Gracz 6 // Only Player 6 
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza5 ))
    AND ( Kierowca5 = 1 ))
    AND ( IS_CHARACTER_IN_CAR ( Gracz5 , AutoGracza5 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz6 , AutoGracza5 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz4 , AutoGracza5 )))) 
    AND ( NOT( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz5, Gracz4, 3.0, 3.0 ))))
    AND ( Gracz4JestPasazeremGracza5 = 0 )) 
    AND ( Gracz6JestPasazeremGracza5 = 1 ))
    AND ( Grupa2 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz5 )) 
           ORDER_DRIVER_OUT_CAR ( Gracz6 )
           SET Gracz6JestPasazeremGracza5 = 0
           SET Grupa2 = 1
        ENDIF
    ENDIF
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza5 ))
    AND ( Kierowca5 = 1 ))
    AND ( IS_CHARACTER_IN_CAR ( Gracz5 , AutoGracza5 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz6 , AutoGracza5 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz4 , AutoGracza5 )))) 
    AND ( IS_CHARACTER_IN_ANY_CAR ( Gracz4 ))) 
    AND ( Gracz4JestPasazeremGracza5 = 0 )) 
    AND ( Gracz6JestPasazeremGracza5 = 1 ))
    AND ( Grupa2 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz5 )) 
           ORDER_DRIVER_OUT_CAR ( Gracz6 )
           SET Gracz6JestPasazeremGracza5 = 0
           SET Grupa2 = 1
        ENDIF
    ENDIF
    
// KTO JEST PASAŻEREM? // WHO IS PASSANGER? //

    // Gracz4 i Gracz 6 // Player4 & Player 6 
    IF ((((( HAS_CAR_GOT_DRIVER ( AutoGracza5 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz5 , AutoGracza5 )))
    AND ( IS_CHARACTER_IN_CAR ( Gracz4 , AutoGracza5 )))
    AND ( IS_CHARACTER_IN_CAR ( Gracz6 , AutoGracza5 )))
    AND ( CHECK_PASSENGER_COUNT ( AutoGracza5  ,  2 )))
        SET Gracz4JestPasazeremGracza5 = 1
        SET Gracz6JestPasazeremGracza5 = 1
    ENDIF
    
    // Gracz4 lub Gracz 6 // Player4 or Player 6 
    IF ((( HAS_CAR_GOT_DRIVER ( AutoGracza5 ))
    AND ( IS_CHARACTER_IN_CAR ( Gracz5 , AutoGracza5 )))
    AND ( CHECK_PASSENGER_COUNT ( AutoGracza5  ,  1 )))
        IF ( IS_CHARACTER_IN_CAR ( Gracz4 , AutoGracza5 ))
           SET Gracz4JestPasazeremGracza5 = 1
        ELSE
           SET Gracz4JestPasazeremGracza5 = 0
        ENDIF
        IF ( IS_CHARACTER_IN_CAR ( Gracz6 , AutoGracza5 ))
           SET Gracz6JestPasazeremGracza5 = 1
        ELSE
           SET Gracz6JestPasazeremGracza5 = 0
        ENDIF
    ENDIF
        
    // Nikt // Nobody 
    IF ((((( HAS_CAR_GOT_DRIVER ( AutoGracza5 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz5 , AutoGracza5 )))
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz4 , AutoGracza5 ))))
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz6 , AutoGracza5 ))))
    AND ( CHECK_PASSENGER_COUNT ( AutoGracza5  ,  0 )))
        SET Gracz4JestPasazeremGracza5 = 0
        SET Gracz6JestPasazeremGracza5 = 0
    ENDIF
    
////////////////////////////////////////////
//     GRACZ VI     ////     PLAYER VI    //
////////////////////////////////////////////

// ZBIERANIE PASAŻERÓW // TAKING PASSASENGERS //

    // Gracz4 i Gracz 5 // Player4 & Player 5 
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza6 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz6 , AutoGracza6 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz6, Gracz4, 3.0, 3.0 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz6, Gracz5, 3.0, 3.0 ))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz4 )))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz5 )))) 
    AND ( Kierowca4 = 0 ))
    AND ( Kierowca5 = 0 ))
    AND ( Grupa2 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz6 ))
           ++ KlaksonGracza6
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz6 )))
           SET KlaksonGracza6 = 0
        ENDIF
        IF (( KlaksonGracza6 > 0 )
        AND ( KlaksonGracza6 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz4 , AutoGracza6 )
            ORDER_CHAR_TO_BACKDOOR ( Gracz5 , AutoGracza6 )
            SET Kierowca4 = 0
            SET Kierowca5 = 0
            SET Kierowca6 = 1
        ENDIF
    ENDIF
        
    // Tylko Gracz 4 // Only Player 4 
    IF (((((((( HAS_CAR_GOT_DRIVER ( AutoGracza6 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz6, AutoGracza6 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz6, Gracz4, 3.0, 3.0 ))) 
    AND ( NOT( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz6, Gracz5, 3.0, 3.0 )))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz4 )))) 
    AND ( Kierowca4 = 0 ))
    AND ( Kierowca5 = 0 ))
    AND ( Grupa2 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz6 ))
           ++ KlaksonGracza6
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz6 )))
           SET KlaksonGracza6 = 0
        ENDIF
        IF (( KlaksonGracza6 > 0 )
        AND ( KlaksonGracza6 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz4 , AutoGracza6 )
            SET Kierowca4 = 0
            SET Kierowca5 = 0
            SET Kierowca6 = 1
        ENDIF
    ENDIF
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza6 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz6, AutoGracza6 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz6, Gracz4, 3.0, 3.0 ))) 
    AND ( IS_CHARACTER_IN_ANY_CAR ( Gracz5 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz5, AutoGracza6 )))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz4 )))) 
    AND ( Kierowca4 = 0 ))
    AND ( Kierowca5 = 0 ))
    AND ( Grupa2 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz6 ))
           ++ KlaksonGracza6
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz6 )))
           SET KlaksonGracza6 = 0
        ENDIF
        IF (( KlaksonGracza6 > 0 )
        AND ( KlaksonGracza6 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz4 , AutoGracza6 )
            SET Kierowca4 = 0
            SET Kierowca5 = 0
            SET Kierowca6 = 1
        ENDIF
    ENDIF
    IF (((((((( HAS_CAR_GOT_DRIVER ( AutoGracza6 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz6, AutoGracza6 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz6, Gracz4, 3.0, 3.0 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz5, AutoGracza6 ))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz4 )))) 
    AND ( Kierowca4 = 0 ))
    AND ( Kierowca5 = 0 ))
    AND ( Grupa2 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz6 ))
           ++ KlaksonGracza6
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz6 )))
           SET KlaksonGracza6 = 0
        ENDIF
        IF (( KlaksonGracza6 > 0 )
        AND ( KlaksonGracza6 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz4 , AutoGracza6 )
            SET Kierowca4 = 0
            SET Kierowca5 = 0
            SET Kierowca6 = 1
        ENDIF
    ENDIF
    
    // Tylko Gracz 5 // Only Player 5 
    IF (((((((( HAS_CAR_GOT_DRIVER ( AutoGracza6 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz6, AutoGracza6 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz6, Gracz5, 3.0, 3.0 ))) 
    AND ( NOT( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz6, Gracz4, 3.0, 3.0 )))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz5 )))) 
    AND ( Kierowca4 = 0 ))
    AND ( Kierowca5 = 0 ))
    AND ( Grupa2 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz6 ))
           ++ KlaksonGracza6
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz6 )))
           SET KlaksonGracza6 = 0
        ENDIF
        IF (( KlaksonGracza6 > 0 )
        AND ( KlaksonGracza6 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz5 , AutoGracza6 )
            SET Kierowca4 = 0
            SET Kierowca5 = 0
            SET Kierowca6 = 1
        ENDIF
    ENDIF
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza6 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz6, AutoGracza6 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS  (  Gracz6  , Gracz5, 3.0, 3.0 ))) 
    AND ( IS_CHARACTER_IN_ANY_CAR ( Gracz4 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz4, AutoGracza6 )))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz5 )))) 
    AND ( Kierowca4 = 0 ))
    AND ( Kierowca5 = 0 ))
    AND ( Grupa2 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz6 ))
           ++ KlaksonGracza6
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz6 )))
           SET KlaksonGracza6 = 0
        ENDIF
        IF (( KlaksonGracza6 > 0 )
        AND ( KlaksonGracza6 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz5 , AutoGracza6 )
            SET Kierowca4 = 0
            SET Kierowca5 = 0
            SET Kierowca6 = 1
        ENDIF
    ENDIF
    IF (((((((( HAS_CAR_GOT_DRIVER ( AutoGracza6 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz6, AutoGracza6 ))) 
    AND ( LOCATE_ANOTHER_CHARACTER_ANY_MEANS  (  Gracz6  , Gracz5, 3.0, 3.0 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz4, AutoGracza6 ))) 
    AND ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz5 )))) 
    AND ( Kierowca4 = 0 ))
    AND ( Kierowca5 = 0 ))
    AND ( Grupa2 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz6 ))
           ++ KlaksonGracza6
        ENDIF
        IF ( NOT ( IS_CHAR_PRESSING_HORN ( Gracz6 )))
           SET KlaksonGracza6 = 0
        ENDIF
        IF (( KlaksonGracza6 > 0 )
        AND ( KlaksonGracza6 < 11 ))
            ORDER_CHAR_TO_BACKDOOR ( Gracz5 , AutoGracza6 )
            SET Kierowca4 = 0
            SET Kierowca5 = 0
            SET Kierowca6 = 1
        ENDIF
    ENDIF
    
// WYSIADANIE PASAŻERÓW GDY NIE MA KIEROWCY // KICK PASSENGERS FROM CAR WHEN THERE IS NO DRIVER //

    // Gracz4 i Gracz 5 // Player4 & Player 5 
    IF ((((((( NOT ( HAS_CAR_GOT_DRIVER ( AutoGracza6 )))
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz6 , AutoGracza6 )))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz4 , AutoGracza6 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz5 , AutoGracza6 ))) 
    AND ( Gracz4JestPasazeremGracza6 = 1 )) 
    AND ( Gracz5JestPasazeremGracza6 = 1 ))
    AND ( Grupa2 = 0 ))
        ORDER_DRIVER_OUT_CAR ( Gracz4 )
        SET Gracz4JestPasazeremGracza6 = 0
        ORDER_DRIVER_OUT_CAR ( Gracz5 )
        SET Gracz5JestPasazeremGracza6 = 0
        SET Grupa2 = 1
    ENDIF
        
    // Tylko Gracz 4 // Only Player 4 
    IF ((((((( NOT ( HAS_CAR_GOT_DRIVER ( AutoGracza6 )))
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz6 , AutoGracza6 )))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz4 , AutoGracza6 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz5 , AutoGracza6 )))) 
    AND ( Gracz4JestPasazeremGracza6 = 1 )) 
    AND ( Gracz5JestPasazeremGracza6 = 0 ))
    AND ( Grupa2 = 0 ))
        ORDER_DRIVER_OUT_CAR ( Gracz4 )
        SET Gracz4JestPasazeremGracza6 = 0
        SET Grupa2 = 1
    ENDIF
    
    // Tylko Gracz 5 // Only Player 5 
    IF ((((((( NOT ( HAS_CAR_GOT_DRIVER ( AutoGracza6 )))
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz6 , AutoGracza6 )))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz5 , AutoGracza6 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz4 , AutoGracza6 )))) 
    AND ( Gracz4JestPasazeremGracza6 = 0 )) 
    AND ( Gracz5JestPasazeremGracza6 = 1 ))
    AND ( Grupa2 = 0 ))
        ORDER_DRIVER_OUT_CAR ( Gracz5 )
        SET Gracz5JestPasazeremGracza6 = 0
        SET Grupa2 = 1
    ENDIF
    
// WYSIADANIE PASAZEROW WYMUSZONE PRZEZ KIEROWCE // KICK PASSENGERS FROM CAR BY THE DRIVER //

    // Gracz4 i Gracz 5 // Player4 & Player 5 
    IF (((((((( HAS_CAR_GOT_DRIVER ( AutoGracza6 ))
    AND ( Kierowca6 = 1 ))
    AND ( IS_CHARACTER_IN_CAR ( Gracz6 , AutoGracza6 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz4 , AutoGracza6 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz5 , AutoGracza6 ))) 
    AND ( Gracz4JestPasazeremGracza6 = 1 )) 
    AND ( Gracz5JestPasazeremGracza6 = 1 ))
    AND ( Grupa2 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz6 )) 
           ORDER_DRIVER_OUT_CAR ( Gracz4 )
           SET Gracz4JestPasazeremGracza6 = 0
           ORDER_DRIVER_OUT_CAR ( Gracz5 )
           SET Gracz5JestPasazeremGracza6 = 0
           SET Grupa2 = 1
        ENDIF
    ENDIF
    
    // Tylko Gracz 4 // Only Player 4 
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza6 ))
    AND ( Kierowca6 = 1 ))
    AND ( IS_CHARACTER_IN_CAR ( Gracz6 , AutoGracza6 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz4 , AutoGracza6 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz5 , AutoGracza6 )))) 
    AND ( NOT( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz6, Gracz5, 3.0, 3.0 ))))
    AND ( Gracz4JestPasazeremGracza6 = 1 )) 
    AND ( Gracz5JestPasazeremGracza6 = 0 ))
    AND ( Grupa2 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz6 )) 
           ORDER_DRIVER_OUT_CAR ( Gracz4 )
           SET Gracz4JestPasazeremGracza6 = 0
           SET Grupa2 = 1
        ENDIF
    ENDIF
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza6 ))
    AND ( Kierowca6 = 1 ))
    AND ( IS_CHARACTER_IN_CAR ( Gracz6 , AutoGracza6 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz4 , AutoGracza6 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz5 , AutoGracza6 )))) 
    AND ( IS_CHARACTER_IN_ANY_CAR ( Gracz5 ))) 
    AND ( Gracz4JestPasazeremGracza6 = 1 )) 
    AND ( Gracz5JestPasazeremGracza6 = 0 ))
    AND ( Grupa2 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz6 )) 
           ORDER_DRIVER_OUT_CAR ( Gracz4 )
           SET Gracz4JestPasazeremGracza6 = 0
           SET Grupa2 = 1
        ENDIF
    ENDIF
    
    // Tylko Gracz 5 // Only Player 5 
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza6 ))
    AND ( Kierowca6 = 1 ))
    AND ( IS_CHARACTER_IN_CAR ( Gracz6 , AutoGracza6 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz5 , AutoGracza6 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz4 , AutoGracza6 )))) 
    AND ( NOT( LOCATE_ANOTHER_CHARACTER_ANY_MEANS ( Gracz6, Gracz4, 3.0, 3.0 ))))
    AND ( Gracz4JestPasazeremGracza6 = 0 )) 
    AND ( Gracz5JestPasazeremGracza6 = 1 ))
    AND ( Grupa2 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz6 )) 
           ORDER_DRIVER_OUT_CAR ( Gracz5 )
           SET Gracz5JestPasazeremGracza6 = 0
           SET Grupa2 = 1
        ENDIF
    ENDIF
    IF ((((((((( HAS_CAR_GOT_DRIVER ( AutoGracza6 ))
    AND ( Kierowca6 = 1 ))
    AND ( IS_CHARACTER_IN_CAR ( Gracz6 , AutoGracza6 ))) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz5 , AutoGracza6 ))) 
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz4 , AutoGracza6 )))) 
    AND ( IS_CHARACTER_IN_ANY_CAR ( Gracz4 ))) 
    AND ( Gracz4JestPasazeremGracza6 = 0 )) 
    AND ( Gracz5JestPasazeremGracza6 = 1 ))
    AND ( Grupa2 = 0 ))
        IF ( IS_CHAR_PRESSING_HORN ( Gracz6 )) 
           ORDER_DRIVER_OUT_CAR ( Gracz5 )
           SET Gracz5JestPasazeremGracza6 = 0
           SET Grupa2 = 1
        ENDIF
    ENDIF
    
// KTO JEST PASAŻEREM? // WHO IS PASSANGER? //

    // Gracz4 i Gracz 5 // Player4 & Player 5 
    IF ((((( HAS_CAR_GOT_DRIVER ( AutoGracza6 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz6 , AutoGracza6 )))
    AND ( IS_CHARACTER_IN_CAR ( Gracz4 , AutoGracza6 )))
    AND ( IS_CHARACTER_IN_CAR ( Gracz5 , AutoGracza6 )))
    AND ( CHECK_PASSENGER_COUNT ( AutoGracza6  ,  2 )))
        SET Gracz4JestPasazeremGracza6 = 1
        SET Gracz5JestPasazeremGracza6 = 1
    ENDIF
    
    // Gracz4 lub Gracz 5 // Player4 or Player 5 
    IF ((( HAS_CAR_GOT_DRIVER ( AutoGracza6 ))
    AND ( IS_CHARACTER_IN_CAR ( Gracz6 , AutoGracza6 )))
    AND ( CHECK_PASSENGER_COUNT ( AutoGracza6  ,  1 )))
        IF ( IS_CHARACTER_IN_CAR ( Gracz4 , AutoGracza6 ))
           SET Gracz4JestPasazeremGracza6 = 1
        ELSE
           SET Gracz4JestPasazeremGracza6 = 0
        ENDIF
        IF ( IS_CHARACTER_IN_CAR ( Gracz5 , AutoGracza6 ))
           SET Gracz5JestPasazeremGracza6 = 1
        ELSE
           SET Gracz5JestPasazeremGracza6 = 0
        ENDIF
    ENDIF
        
    // Nikt // Nobody 
    IF ((((( HAS_CAR_GOT_DRIVER ( AutoGracza6 )) 
    AND ( IS_CHARACTER_IN_CAR ( Gracz6 , AutoGracza6 )))
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz4 , AutoGracza6 ))))
    AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz5 , AutoGracza6 ))))
    AND ( CHECK_PASSENGER_COUNT ( AutoGracza6  ,  0 )))
        SET Gracz4JestPasazeremGracza6 = 0
        SET Gracz5JestPasazeremGracza6 = 0
    ENDIF
    
// ZERUJ ZMIENNĄ 'Kierowca' // RESET VALUE 'Kierowca' 
   IF ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz4 )))
      SET Kierowca4 = 0
   ENDIF
   IF ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz5 )))
      SET Kierowca5 = 0
   ENDIF
   IF ( NOT ( IS_CHARACTER_IN_ANY_CAR ( Gracz6 )))
      SET Kierowca6 = 0
   ENDIF
   IF (((( IS_CHARACTER_IN_CAR ( Gracz4, AutoGracza4 ))
   AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz5, AutoGracza4 ))))
   AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz6, AutoGracza4 ))))
   AND ( Grupa2 = 1 ))
      SET Kierowca4 = 0
   ENDIF
   IF (((( IS_CHARACTER_IN_CAR ( Gracz5, AutoGracza5 ))
   AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz4, AutoGracza5 ))))
   AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz6, AutoGracza4 ))))
   AND ( Grupa2 = 1 ))
      SET Kierowca5 = 0
   ENDIF
   IF (((( IS_CHARACTER_IN_CAR ( Gracz6, AutoGracza6 ))
   AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz4, AutoGracza6 ))))
   AND ( NOT ( IS_CHARACTER_IN_CAR ( Gracz5, AutoGracza6 ))))
   AND ( Grupa2 = 1 ))
      SET Kierowca6 = 0
   ENDIF
// ZERUJ ZMIENNĄ 'Grupa2' // RESET VALUE 'Grupa2' 
   IF ( Grupa2 = 1) 
      ++ licznik2
      IF ( licznik2 > 30 )
         SET Grupa2 = 0
         SET licznik2 = 0
      ENDIF
   ENDIF
ENDIF

ENDWHILE

//////////////////////////////////////
/////////////  By Wojti  /////////////
//////////////////////////////////////

LEVELEND

