COUNTER ilosc_p = 0
COUNTER close_gate = 0
COUNTER player_car = 0
COUNTER remap = 0
SOUND door_sound
OBJ_DATA opona

loading_data:

SET_CAR_ROCKETPROOF ( gt1_bmwsauber , ON )
SET_CAR_ROCKETPROOF ( gt1_ferrari , ON )
SET_CAR_ROCKETPROOF ( gt1_brawn , ON )
SET_CAR_ROCKETPROOF ( gt1_redbull , ON )
SET_CAR_ROCKETPROOF ( gt1_mclaren , ON )
SET_CAR_ROCKETPROOF ( gt1_renault , ON )

// bollards
opona = CREATE_OBJ  ( 137.5 , 208.88 , 4.0 ) 0 BOLLARD END
opona = CREATE_OBJ  ( 137.5 , 215.15 , 4.0 ) 180 BOLLARD END
//Zakret polnocny - wschod

opona = CREATE_OBJ  ( 209.7 , 74.6 , 4.0 ) 225 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 210.1 , 74.2 , 4.0 ) 225 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 210.55 , 73.8 , 4.0 ) 215 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 211.1 , 73.5 , 4.0 ) 200 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 211.7 , 73.35 , 4.0 ) 190 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 212.3 , 73.3 , 4.0 ) 180 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 212.9 , 73.3 , 4.0 ) 180 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 213.5 , 73.3 , 4.0 ) 180 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 214.1 , 73.3 , 4.0 ) 180 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 214.7 , 73.3 , 4.0 ) 180 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 215.33 , 73.34 , 4.0 ) 175 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 215.95 , 73.42 , 4.0 ) 170 MOVING_BIN_LID END


opona = CREATE_OBJ  ( 216.55 , 73.55 , 4.0 ) 165 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 217.12 , 73.73 , 4.0 ) 158 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 217.66 , 73.97 , 4.0 ) 152 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 218.18 , 74.25 , 4.0 ) 147 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 218.67 , 74.56 , 4.0 ) 142 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 219.12 , 74.92 , 4.0 ) 139 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 219.56 , 75.28 , 4.0 ) 137 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 219.95 , 75.70 , 4.0 ) 132 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 220.31 , 76.16 , 4.0 ) 127 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 220.64 , 76.64 , 4.0 ) 122 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 220.92 , 77.16 , 4.0 ) 117 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 221.15 , 77.70 , 4.0 ) 112 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 221.35 , 78.23 , 4.0 ) 107 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 221.49 , 78.77 , 4.0 ) 102 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 221.57 , 79.33 , 4.0 ) 96 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 221.62 , 79.90 , 4.0 ) 93 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 221.65 , 80.45 , 4.0 ) 90 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 221.65 , 81.00 , 4.0 ) 90 MOVING_BIN_LID END

// Zakret poludniowy - wschod   [down]
/*
opona = CREATE_OBJ  ( 205.35 , 168.25 , 4.0 ) 180 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 205.95 , 168.22 , 4.0 ) 183 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 206.55 , 168.18 , 4.0 ) 186 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 207.15 , 168.10 , 4.0 ) 189 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 207.75 , 168.00 , 4.0 ) 192 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 208.35 , 167.86 , 4.0 ) 195 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 208.94 , 167.70 , 4.0 ) 198 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 209.53 , 167.50 , 4.0 ) 201 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 210.12 , 167.25 , 4.0 ) 204 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 210.68 , 167.00 , 4.0 ) 207 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 211.22 , 166.72 , 4.0 ) 210 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 211.73 , 166.42 , 4.0 ) 213 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 212.23 , 166.10 , 4.0 ) 216 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 212.72 , 165.78 , 4.0 ) 219 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 213.18 , 165.40 , 4.0 ) 221 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 213.62 , 165.00 , 4.0 ) 224 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 214.03 , 164.58 , 4.0 ) 227 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 214.41 , 164.15 , 4.0 ) 230 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 214.78 , 163.70 , 4.0 ) 233 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 215.12 , 163.22 , 4.0 ) 236 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 215.42 , 162.74 , 4.0 ) 239 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 215.72 , 162.23 , 4.0 ) 242 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 215.96 , 161.71 , 4.0 ) 245 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 216.20 , 161.18 , 4.0 ) 248 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 216.42 , 160.64 , 4.0 ) 251 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 216.62 , 160.08 , 4.0 ) 254 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 216.78 , 159.53 , 4.0 ) 256 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 216.92 , 158.98 , 4.0 ) 258 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 217.05 , 158.41 , 4.0 ) 261 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 217.15 , 157.85 , 4.0 ) 264 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 217.22 , 157.29 , 4.0 ) 267 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 217.28 , 156.70 , 4.0 ) 270 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 217.28 , 156.10 , 4.0 ) 270 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 217.28 , 155.50 , 4.0 ) 270 MOVING_BIN_LID END

// Zakret poludniowy - wschod   [up]
opona = CREATE_OBJ  ( 203.30 , 162.65 , 4.0 ) 0 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 203.87 , 162.65 , 4.0 ) 0 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 204.44 , 162.65 , 4.0 ) 0 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 205.00 , 162.65 , 4.0 ) 0 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 205.58 , 162.61 , 4.0 ) 5 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 206.15 , 162.52 , 4.0 ) 10 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 206.72 , 162.39 , 4.0 ) 15 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 207.26 , 162.19 , 4.0 ) 20 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 207.80 , 161.94 , 4.0 ) 25 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 208.31 , 161.65 , 4.0 ) 30 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 208.80 , 161.32 , 4.0 ) 35 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 209.25 , 160.96 , 4.0 ) 40 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 209.68 , 160.55 , 4.0 ) 45 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 210.08 , 160.12 , 4.0 ) 50 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 210.43 , 159.65 , 4.0 ) 55 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 210.74 , 159.15 , 4.0 ) 60 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 211.00 , 158.63 , 4.0 ) 65 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 211.21 , 158.10 , 4.0 ) 70 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 211.39 , 157.56 , 4.0 ) 75 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 211.52 , 157.00 , 4.0 ) 80 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 211.60 , 156.44 , 4.0 ) 85 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 211.63 , 155.88 , 4.0 ) 87 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 211.64 , 155.32 , 4.0 ) 90 MOVING_BIN_LID END
*/
// UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP UP
// Zakret start [up]
opona = CREATE_OBJ  ( 33.35 , 154.35 , 4.0 ) 270 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 33.35 , 154.95 , 4.0 ) 270 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 33.35 , 155.55 , 4.0 ) 270 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 33.35 , 156.15 , 4.0 ) 270 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 33.35 , 156.75 , 4.0 ) 270 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 33.36 , 157.30 , 4.0 ) 275 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 33.43 , 157.87 , 4.0 ) 280 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 33.55 , 158.43 , 4.0 ) 285 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 33.72 , 158.98 , 4.0 ) 290 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 33.92 , 159.52 , 4.0 ) 295 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 34.17 , 160.02 , 4.0 ) 300 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 34.45 , 160.52 , 4.0 ) 305 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 34.80 , 160.97 , 4.0 ) 310 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 35.15 , 161.40 , 4.0 ) 315 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 35.55 , 161.80 , 4.0 ) 320 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 35.98 , 162.17 , 4.0 ) 325 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 36.44 , 162.51 , 4.0 ) 330 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 36.94 , 162.81 , 4.0 ) 335 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 37.46 , 163.05 , 4.0 ) 336 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 37.99 , 163.27 , 4.0 ) 340 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 38.54 , 163.45 , 4.0 ) 345 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 39.10 , 163.57 , 4.0 ) 350 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 39.67 , 163.64 , 4.0 ) 355 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 40.24 , 163.68 , 4.0 ) 357 MOVING_BIN_LID END
//dopasowanie 
opona = CREATE_OBJ  ( 40.82 , 163.70 , 4.0 ) 0 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 41.40 , 163.72 , 4.0 ) 358 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 41.99 , 163.75 , 4.0 ) 355 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 42.59 , 163.82 , 4.0 ) 353 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 43.16 , 163.91 , 4.0 ) 351 MOVING_BIN_LID END
// Zakret start - srodek  [up dalej]
opona = CREATE_OBJ  ( 43.73 , 164.04 , 4.0 ) 349 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 44.30 , 164.18 , 4.0 ) 347 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 44.87 , 164.31 , 4.0 ) 344 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 45.41 , 164.50 , 4.0 ) 341 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 45.98 , 164.70 , 4.0 ) 338 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 46.54 , 164.94 , 4.0 ) 335 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 47.08 , 165.20 , 4.0 ) 332 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 47.60 , 165.48 , 4.0 ) 329 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 48.10 , 165.79 , 4.0 ) 326 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 48.58 , 166.12 , 4.0 ) 323 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 49.04 , 166.49 , 4.0 ) 320 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 49.47 , 166.87 , 4.0 ) 317 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 49.88 , 167.27 , 4.0 ) 314 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 50.25 , 167.70 , 4.0 ) 311 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 50.63 , 168.13 , 4.0 ) 308 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 50.98 , 168.54 , 4.0 ) 305 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 51.32 , 169.02 , 4.0 ) 302 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 51.62 , 169.52 , 4.0 ) 299 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 51.90 , 170.03 , 4.0 ) 296 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 52.16 , 170.55 , 4.0 ) 293 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 52.38 , 171.09 , 4.0 ) 290 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 52.58 , 171.63 , 4.0 ) 287 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 52.75 , 172.18 , 4.0 ) 284 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 52.88 , 172.75 , 4.0 ) 281 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 53.02 , 173.31 , 4.0 ) 279 MOVING_BIN_LID END
// Dopasowanie END
opona = CREATE_OBJ  ( 53.14 , 173.85 , 4.0 ) 280 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 53.21 , 174.43 , 4.0 ) 278 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 53.28 , 174.99 , 4.0 ) 275 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 53.33 , 175.57 , 4.0 ) 273 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 53.34 , 176.18 , 4.0 ) 270 MOVING_BIN_LID END

// Zakret start [up dalej]
opona = CREATE_OBJ  ( 53.35 , 176.75 , 4.0 ) 270 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 53.36 , 177.30 , 4.0 ) 275 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 53.43 , 177.87 , 4.0 ) 280 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 53.55 , 178.43 , 4.0 ) 285 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 53.72 , 178.98 , 4.0 ) 290 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 53.92 , 179.52 , 4.0 ) 295 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 54.17 , 180.02 , 4.0 ) 300 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 54.45 , 180.52 , 4.0 ) 305 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 54.80 , 180.97 , 4.0 ) 310 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 55.15 , 181.40 , 4.0 ) 315 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 55.55 , 181.80 , 4.0 ) 320 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 55.98 , 182.17 , 4.0 ) 325 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 56.44 , 182.51 , 4.0 ) 330 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 56.94 , 182.81 , 4.0 ) 335 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 57.46 , 183.05 , 4.0 ) 336 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 57.99 , 183.27 , 4.0 ) 340 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 58.54 , 183.45 , 4.0 ) 345 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 59.10 , 183.57 , 4.0 ) 350 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 59.67 , 183.64 , 4.0 ) 355 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 60.24 , 183.68 , 4.0 ) 357 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 60.82 , 183.70 , 4.0 ) 0 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 61.42 , 183.70 , 4.0 ) 0 MOVING_BIN_LID END

//DOWN DOWN DOWN DOWN DOWN DOWN DOWN DOWND DOWN DOWN DOWN DOWN
// Start  [down]
opona = CREATE_OBJ  ( 59.65 , 191.25 , 4.0 ) 180 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 59.05 , 191.22 , 4.0 ) 177 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 58.45 , 191.18 , 4.0 ) 174 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 57.85 , 191.10 , 4.0 ) 171 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 57.25 , 191.00 , 4.0 ) 168 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 56.65 , 190.86 , 4.0 ) 165 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 56.06 , 190.70 , 4.0 ) 162 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 55.47 , 190.50 , 4.0 ) 159 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 54.88 , 190.25 , 4.0 ) 156 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 54.32 , 190.00 , 4.0 ) 153 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 53.78 , 189.72 , 4.0 ) 150 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 53.27 , 189.42 , 4.0 ) 147 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 52.77 , 189.10 , 4.0 ) 144 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 52.28 , 188.78 , 4.0 ) 141 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 51.82 , 188.40 , 4.0 ) 139 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 51.38 , 188.00 , 4.0 ) 136 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 50.97 , 187.58 , 4.0 ) 133 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 50.59 , 187.15 , 4.0 ) 130 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 50.22 , 186.70 , 4.0 ) 127 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 49.88 , 186.22 , 4.0 ) 124 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 49.58 , 185.74 , 4.0 ) 121 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 49.28 , 185.23 , 4.0 ) 118 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 49.04 , 184.71 , 4.0 ) 115 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 48.80 , 184.18 , 4.0 ) 112 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 48.58 , 183.64 , 4.0 ) 109 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 48.38 , 183.08 , 4.0 ) 106 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 48.22 , 182.53 , 4.0 ) 104 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 48.08 , 181.98 , 4.0 ) 102 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 47.95 , 181.41 , 4.0 ) 99 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 47.83 , 180.85 , 4.0 ) 99 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 47.72 , 180.29 , 4.0 ) 97 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 47.64 , 179.70 , 4.0 ) 95 MOVING_BIN_LID  END

//zmiana mala
opona = CREATE_OBJ  ( 47.60 , 179.10 , 4.0 ) 93 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 47.60 , 178.52 , 4.0 ) 91 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 47.60 , 177.96 , 4.0 ) 90 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 47.60 , 177.39 , 4.0 ) 90 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 47.60 , 176.82 , 4.0 ) 90 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 47.60 , 176.25 , 4.0 ) 90 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 47.54 , 175.68 , 4.0 ) 93 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 47.48 , 175.14 , 4.0 ) 96 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 47.38 , 174.57 , 4.0 ) 102 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 47.21 , 174.05 , 4.0 ) 107 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 47.00 , 173.51 , 4.0 ) 112 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 46.75 , 172.97 , 4.0 ) 117 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 46.47 , 172.45 , 4.0 ) 122 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 46.10 , 171.95 , 4.0 ) 127 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 45.70 , 171.50 , 4.0 ) 132 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 45.27 , 171.06 , 4.0 ) 137 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 44.81 , 170.67 , 4.0 ) 142 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 44.29 , 170.33 , 4.0 ) 147 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 43.75 , 170.05 , 4.0 ) 152 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 43.20 , 169.80 , 4.0 ) 158 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 42.65 , 169.60 , 4.0 ) 165 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 42.05 , 169.45 , 4.0 ) 170 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 41.45 , 169.37 , 4.0 ) 175 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 40.85 , 169.35 , 4.0 ) 180 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 40.25 , 169.35 , 4.0 ) 180 MOVING_BIN_LID END
//zmiana mala
opona = CREATE_OBJ  ( 39.65 , 169.32 , 4.0 ) 179 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 39.05 , 169.27 , 4.0 ) 176 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 38.45 , 169.20 , 4.0 ) 174 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 37.85 , 169.10 , 4.0 ) 171 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 37.25 , 169.00 , 4.0 ) 168 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 36.65 , 168.86 , 4.0 ) 165 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 36.06 , 168.70 , 4.0 ) 162 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 35.47 , 168.50 , 4.0 ) 159 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 34.88 , 168.25 , 4.0 ) 156 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 34.32 , 168.00 , 4.0 ) 153 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 33.78 , 167.72 , 4.0 ) 150 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 33.27 , 167.42 , 4.0 ) 147 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 32.77 , 167.10 , 4.0 ) 144 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 32.28 , 166.78 , 4.0 ) 141 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 31.82 , 166.40 , 4.0 ) 139 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 31.38 , 166.00 , 4.0 ) 136 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 30.97 , 165.58 , 4.0 ) 133 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 30.50 , 165.24 , 4.0 ) 143 MOVING_BIN_LID END

//bok
opona = CREATE_OBJ  ( 30.00 , 164.98 , 4.0 ) 156 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 29.45 , 164.78 , 4.0 ) 164 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 28.89 , 164.68 , 4.0 ) 173 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 28.31 , 164.65 , 4.0 ) 180 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 27.73 , 164.65 , 4.0 ) 180 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 27.15 , 164.65 , 4.0 ) 180 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 26.57 , 164.65 , 4.0 ) 180 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 25.99 , 164.65 , 4.0 ) 180 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 25.41 , 164.65 , 4.0 ) 180 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 24.83 , 164.65 , 4.0 ) 180 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 24.25 , 164.65 , 4.0 ) 180 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 23.67 , 164.65 , 4.0 ) 180 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 23.09 , 164.65 , 4.0 ) 180 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 22.51 , 164.65 , 4.0 ) 180 MOVING_BIN_LID  END
opona = CREATE_OBJ  ( 21.93 , 164.65 , 4.0 ) 180 MOVING_BIN_LID  END
opona = CREATE_OBJ  ( 21.35 , 164.65 , 4.0 ) 180 MOVING_BIN_LID  END

// big zakrety 3 x  x x x x x x xx x xx xxx x  xx x  xx  xx x x 

opona = CREATE_OBJ  ( 114.35 , 133.35 , 4.0 ) 270 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 114.35 , 133.95 , 4.0 ) 270 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 114.35 , 134.55 , 4.0 ) 270 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 114.35 , 135.15 , 4.0 ) 270 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 114.35 , 135.75 , 4.0 ) 270 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 114.36 , 136.30 , 4.0 ) 275 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 114.43 , 136.87 , 4.0 ) 280 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 114.55 , 137.43 , 4.0 ) 285 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 114.72 , 137.98 , 4.0 ) 290 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 114.92 , 138.52 , 4.0 ) 295 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 115.17 , 139.02 , 4.0 ) 300 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 115.45 , 139.52 , 4.0 ) 305 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 115.80 , 139.97 , 4.0 ) 310 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 116.15 , 140.40 , 4.0 ) 315 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 116.55 , 140.80 , 4.0 ) 320 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 116.98 , 141.17 , 4.0 ) 325 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 117.44 , 141.51 , 4.0 ) 330 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 117.94 , 141.81 , 4.0 ) 335 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 118.46 , 142.05 , 4.0 ) 336 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 118.99 , 142.27 , 4.0 ) 340 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 119.54 , 142.45 , 4.0 ) 345 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 120.10 , 142.57 , 4.0 ) 350 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 120.67 , 142.64 , 4.0 ) 355 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 121.24 , 142.68 , 4.0 ) 357 MOVING_BIN_LID END
// prosta right

opona = CREATE_OBJ  ( 121.84 , 142.70 , 4.0 ) 0 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 122.44 , 142.70 , 4.0 ) 0 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 123.04 , 142.70 , 4.0 ) 0 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 123.64 , 142.70 , 4.0 ) 0 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 124.24 , 142.70 , 4.0 ) 0 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 124.84 , 142.70 , 4.0 ) 0 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 125.44 , 142.70 , 4.0 ) 0 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 126.04 , 142.70 , 4.0 ) 0 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 126.64 , 142.70 , 4.0 ) 0 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 127.24 , 142.70 , 4.0 ) 0 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 127.84 , 142.70 , 4.0 ) 0 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 128.44 , 142.70 , 4.0 ) 0 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 129.04 , 142.70 , 4.0 ) 0 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 129.64 , 142.70 , 4.0 ) 0 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 130.24 , 142.70 , 4.0 ) 0 MOVING_BIN_LID END
// dalej

opona = CREATE_OBJ  ( 130.8 , 142.65 , 4.0 ) 0 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 131.4 , 142.61 , 4.0 ) 5 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 132.0 , 142.52 , 4.0 ) 10 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 132.6 , 142.39 , 4.0 ) 15 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 133.17 , 142.19 , 4.0 ) 20 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 133.74 , 141.94 , 4.0 ) 25 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 134.27 , 141.65 , 4.0 ) 30 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 134.78 , 141.32 , 4.0 ) 35 MOVING_BIN_LID END   
opona = CREATE_OBJ  ( 135.25 , 140.96 , 4.0 ) 40 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 135.68 , 140.55 , 4.0 ) 45 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 136.08 , 140.12 , 4.0 ) 50 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 136.43 , 139.65 , 4.0 ) 55 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 136.74 , 139.15 , 4.0 ) 60 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 137.00 , 138.63 , 4.0 ) 65 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 137.21 , 138.10 , 4.0 ) 70 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 137.39 , 137.56 , 4.0 ) 75 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 137.52 , 137.00 , 4.0 ) 80 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 137.60 , 136.44 , 4.0 ) 85 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 137.63 , 135.88 , 4.0 ) 87 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 137.64 , 135.32 , 4.0 ) 90 MOVING_BIN_LID END 

//prosta up
opona = CREATE_OBJ  ( 137.64 , 134.72 , 4.0 ) 90 MOVING_BIN_LID END 
opona = CREATE_OBJ  ( 137.64 , 134.12 , 4.0 ) 90 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 137.64 , 133.52 , 4.0 ) 90 MOVING_BIN_LID END 
// 3 rozjebane wozy
opona = CREATE_OBJ  ( 137.64 , 132.92 , 4.0 ) 90 MOVING_BIN_LID END 
opona = CREATE_OBJ  ( 137.64 , 132.32 , 4.0 ) 90 MOVING_BIN_LID END 
opona = CREATE_OBJ  ( 137.64 , 131.74 , 4.0 ) 90 MOVING_BIN_LID END 
opona = CREATE_OBJ  ( 137.64 , 131.16 , 4.0 ) 90 MOVING_BIN_LID END 
opona = CREATE_OBJ  ( 137.64 , 130.58 , 4.0 ) 90 MOVING_BIN_LID END 
opona = CREATE_OBJ  ( 137.64 , 130.00 , 4.0 ) 90 MOVING_BIN_LID END 
opona = CREATE_OBJ  ( 137.64 , 129.42 , 4.0 ) 90 MOVING_BIN_LID END 
opona = CREATE_OBJ  ( 137.64 , 128.84 , 4.0 ) 90 MOVING_BIN_LID END 
opona = CREATE_OBJ  ( 137.61 , 128.26 , 4.0 ) 92 MOVING_BIN_LID END 

opona = CREATE_OBJ  ( 137.54 , 127.68 , 4.0 ) 93 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 137.48 , 127.14 , 4.0 ) 96 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 137.38 , 126.57 , 4.0 ) 102 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 137.21 , 126.05 , 4.0 ) 107 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 137.00 , 125.51 , 4.0 ) 112 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 136.75 , 124.97 , 4.0 ) 117 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 136.47 , 124.45 , 4.0 ) 122 MOVING_BIN_LID END

opona = CREATE_OBJ  ( 136.10 , 123.95 , 4.0 ) 127 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 135.70 , 123.50 , 4.0 ) 132 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 135.27 , 123.06 , 4.0 ) 137 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 134.81 , 122.67 , 4.0 ) 142 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 134.29 , 122.33 , 4.0 ) 147 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 133.75 , 122.05 , 4.0 ) 152 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 133.20 , 121.80 , 4.0 ) 158 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 132.67 , 121.60 , 4.0 ) 165 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 132.09 , 121.45 , 4.0 ) 170 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 131.51 , 121.37 , 4.0 ) 175 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 130.94 , 121.35 , 4.0 ) 180 MOVING_BIN_LID END
opona = CREATE_OBJ  ( 130.33 , 121.35 , 4.0 ) 180 MOVING_BIN_LID END

SET loop = 0

WHILE_EXEC (loading = 1)

// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXX                        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXX     ILOSC PLAYEROW     XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXX                        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

IF ((((NOT(CHECK_CHARACTER_HEALTH ( p2 , 0)))
AND   (NOT(CHECK_CHARACTER_HEALTH ( p3 , 0))))
AND   (NOT(CHECK_CHARACTER_HEALTH ( p4 , 0))))
AND   (ilosc_p = 0))
 CHANGE_GANG_CHAR_RESPECT  ( gta1  , p1 , -4 )
 CHANGE_GANG_CHAR_RESPECT  ( gta2  , p1 , -4 )
 CHANGE_GANG_CHAR_RESPECT  ( gta3  , p1 , -4 )
 CHANGE_GANG_CHAR_RESPECT  ( gta4  , p1 , -4 )
 SET ilosc_p = 1
ENDIF

IF    ((((CHECK_CHARACTER_HEALTH ( p2 , 0))
AND  (NOT(CHECK_CHARACTER_HEALTH ( p3 , 0))))
AND  (NOT(CHECK_CHARACTER_HEALTH ( p4 , 0))))
AND  (ilosc_p = 0))
 CHANGE_GANG_CHAR_RESPECT  ( gta1  , p1 , -4 )
 CHANGE_GANG_CHAR_RESPECT  ( gta2  , p1 , -4 )
 CHANGE_GANG_CHAR_RESPECT  ( gta3  , p1 , -4 )
 CHANGE_GANG_CHAR_RESPECT  ( gta4  , p1 , -4 )
 CHANGE_GANG_CHAR_RESPECT  ( gta1  , p2 , -4 )
 CHANGE_GANG_CHAR_RESPECT  ( gta2  , p2 , -4 )
 CHANGE_GANG_CHAR_RESPECT  ( gta3  , p2 , -4 )
 CHANGE_GANG_CHAR_RESPECT  ( gta4  , p2 , -4 )
 SET ilosc_p = 2
ENDIF

IF   ((((CHECK_CHARACTER_HEALTH ( p2 , 0))
AND     (CHECK_CHARACTER_HEALTH ( p3 , 0)))
AND (NOT(CHECK_CHARACTER_HEALTH ( p4 , 0))))
AND   (ilosc_p = 0))
 CHANGE_GANG_CHAR_RESPECT  ( gta1  , p1 , -4 )
 CHANGE_GANG_CHAR_RESPECT  ( gta2  , p1 , -4 )
 CHANGE_GANG_CHAR_RESPECT  ( gta3  , p1 , -4 )
 CHANGE_GANG_CHAR_RESPECT  ( gta4  , p1 , -4 )
 CHANGE_GANG_CHAR_RESPECT  ( gta1  , p2 , -4 )
 CHANGE_GANG_CHAR_RESPECT  ( gta2  , p2 , -4 )
 CHANGE_GANG_CHAR_RESPECT  ( gta3  , p2 , -4 )
 CHANGE_GANG_CHAR_RESPECT  ( gta4  , p2 , -4 )
 CHANGE_GANG_CHAR_RESPECT  ( gta1  , p3 , -4 )
 CHANGE_GANG_CHAR_RESPECT  ( gta2  , p3 , -4 )
 CHANGE_GANG_CHAR_RESPECT  ( gta3  , p3 , -4 )
 CHANGE_GANG_CHAR_RESPECT  ( gta4  , p3 , -4 )
 SET ilosc_p = 3
ENDIF

IF ((((CHECK_CHARACTER_HEALTH ( p2 , 0))
AND   (CHECK_CHARACTER_HEALTH ( p3 , 0)))
AND   (CHECK_CHARACTER_HEALTH ( p4 , 0)))
AND   (ilosc_p = 0))
 CHANGE_GANG_CHAR_RESPECT  ( gta1  , p1 , -4 )
 CHANGE_GANG_CHAR_RESPECT  ( gta2  , p1 , -4 )
 CHANGE_GANG_CHAR_RESPECT  ( gta3  , p1 , -4 )
 CHANGE_GANG_CHAR_RESPECT  ( gta4  , p1 , -4 )
 CHANGE_GANG_CHAR_RESPECT  ( gta1  , p2 , -4 )
 CHANGE_GANG_CHAR_RESPECT  ( gta2  , p2 , -4 )
 CHANGE_GANG_CHAR_RESPECT  ( gta3  , p2 , -4 )
 CHANGE_GANG_CHAR_RESPECT  ( gta4  , p2 , -4 )
 CHANGE_GANG_CHAR_RESPECT  ( gta1  , p3 , -4 )
 CHANGE_GANG_CHAR_RESPECT  ( gta2  , p3 , -4 )
 CHANGE_GANG_CHAR_RESPECT  ( gta3  , p3 , -4 )
 CHANGE_GANG_CHAR_RESPECT  ( gta4  , p3 , -4 )
 CHANGE_GANG_CHAR_RESPECT  ( gta1  , p4 , -4 )
 CHANGE_GANG_CHAR_RESPECT  ( gta2  , p4 , -4 )
 CHANGE_GANG_CHAR_RESPECT  ( gta3  , p4 , -4 )
 CHANGE_GANG_CHAR_RESPECT  ( gta4  , p4 , -4 )
 SET ilosc_p = 4
ENDIF


// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXX                        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXX      CHOISE CARS       XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXX                        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
         
 IF (p1_wybor = 0)
  IF (IS_CHARACTER_IN_CAR ( p1 , gt1_bmwsauber))
   SET_GANG_INFO ( gta1 , 1 , pistol , pistol , pistol , 5 , 1.0 , 1.0 , 1.0 , 1 , GT24640 , 2 )
   SET p1_wybor = 1
  ENDIF
  IF (IS_CHARACTER_IN_CAR ( p1 , gt1_ferrari)) 
   SET_GANG_INFO ( gta1 , 1 , pistol , pistol , pistol , 7 , 1.0 , 1.0 , 1.0 , 1 , GT24640 , 2 )
   SET p1_wybor = 2
  ENDIF
  IF (IS_CHARACTER_IN_CAR ( p1 , gt1_brawn))
   SET_GANG_INFO ( gta1 , 1 , pistol , pistol , pistol , 1 , 1.0 , 1.0 , 1.0 , 1 , GT24640 , 2 )
   SET p1_wybor = 3
  ENDIF
  IF (IS_CHARACTER_IN_CAR ( p1 , gt1_redbull))
   SET_GANG_INFO ( gta1 , 1 , pistol , pistol , pistol , 2 , 1.0 , 1.0 , 1.0 , 1 , GT24640 , 2 )
   SET p1_wybor = 4
  ENDIF
  IF (IS_CHARACTER_IN_CAR ( p1 , gt1_mclaren))
   SET_GANG_INFO ( gta1 , 1 , pistol , pistol , pistol , 3 , 1.0 , 1.0 , 1.0 , 1 , GT24640 , 2 )
   SET p1_wybor = 5
  ENDIF
  IF (IS_CHARACTER_IN_CAR ( p1 , gt1_renault))
   SET_GANG_INFO ( gta1 , 1 , pistol , pistol , pistol , 6 , 1.0 , 1.0 , 1.0 , 1 , GT24640 , 2 )
   SET p1_wybor = 6
  ENDIF
 ENDIF 

 IF (p2_wybor = 0)
  IF (IS_CHARACTER_IN_CAR ( p2 , gt1_bmwsauber))  
   SET_GANG_INFO ( gta2 , 1 , pistol , pistol , pistol , 5 , 1.0 , 1.0 , 1.0 , 1 , GT24640 , 2 )
   SET p2_wybor = 1
  ENDIF
  IF (IS_CHARACTER_IN_CAR ( p2 , gt1_ferrari))
   SET_GANG_INFO ( gta2 , 1 , pistol , pistol , pistol , 7 , 1.0 , 1.0 , 1.0 , 1 , GT24640 , 2 )
   SET p2_wybor = 2
  ENDIF
  IF (IS_CHARACTER_IN_CAR ( p2 , gt1_brawn))
   SET_GANG_INFO ( gta2 , 1 , pistol , pistol , pistol , 1 , 1.0 , 1.0 , 1.0 , 1 , GT24640 , 2 )
   SET p2_wybor = 3
  ENDIF
  IF (IS_CHARACTER_IN_CAR ( p2 , gt1_redbull))
   SET_GANG_INFO ( gta2 , 1 , pistol , pistol , pistol , 2 , 1.0 , 1.0 , 1.0 , 1 , GT24640 , 2 )
   SET p2_wybor = 4
  ENDIF
  IF (IS_CHARACTER_IN_CAR ( p2 , gt1_mclaren))
   SET_GANG_INFO ( gta2 , 1 , pistol , pistol , pistol , 3 , 1.0 , 1.0 , 1.0 , 1 , GT24640 , 2 )
   SET p2_wybor = 5
  ENDIF
  IF (IS_CHARACTER_IN_CAR ( p2 , gt1_renault))
   SET_GANG_INFO ( gta2 , 1 , pistol , pistol , pistol , 6 , 1.0 , 1.0 , 1.0 , 1 , GT24640 , 2 )
   SET p2_wybor = 6
  ENDIF
 ENDIF

 IF (p3_wybor = 0)
  IF (IS_CHARACTER_IN_CAR ( p3 , gt1_bmwsauber)) 
   SET_GANG_INFO ( gta3 , 1 , pistol , pistol , pistol , 5 , 1.0 , 1.0 , 1.0 , 1 , GT24640 , 2 )
   SET p3_wybor = 1
  ENDIF
  IF (IS_CHARACTER_IN_CAR ( p3 , gt1_ferrari))
   SET_GANG_INFO ( gta3 , 1 , pistol , pistol , pistol , 7 , 1.0 , 1.0 , 1.0 , 1 , GT24640 , 2 )
   SET p3_wybor = 2
  ENDIF
  IF (IS_CHARACTER_IN_CAR ( p3 , gt1_brawn))
   SET_GANG_INFO ( gta3 , 1 , pistol , pistol , pistol , 1 , 1.0 , 1.0 , 1.0 , 1 , GT24640 , 2 )
   SET p3_wybor = 3
  ENDIF
  IF (IS_CHARACTER_IN_CAR ( p3 , gt1_redbull))
   SET_GANG_INFO ( gta3 , 1 , pistol , pistol , pistol , 2 , 1.0 , 1.0 , 1.0 , 1 , GT24640 , 2 )
   SET p3_wybor = 4
  ENDIF
  IF (IS_CHARACTER_IN_CAR ( p3 , gt1_mclaren))
   SET_GANG_INFO ( gta3 , 1 , pistol , pistol , pistol , 3 , 1.0 , 1.0 , 1.0 , 1 , GT24640 , 2 )
   SET p3_wybor = 5
  ENDIF
  IF (IS_CHARACTER_IN_CAR ( p3 , gt1_renault))
   SET_GANG_INFO ( gta3 , 1 , pistol , pistol , pistol , 6 , 1.0 , 1.0 , 1.0 , 1 , GT24640 , 2 )
   SET p3_wybor = 6
  ENDIF
 ENDIF

 IF (p4_wybor = 0)
  IF (IS_CHARACTER_IN_CAR ( p4 , gt1_bmwsauber))
   SET_GANG_INFO ( gta4 , 1 , pistol , pistol , pistol , 5 , 1.0 , 1.0 , 1.0 , 1 , GT24640 , 2 )
   SET p4_wybor = 1
  ENDIF
  IF (IS_CHARACTER_IN_CAR ( p4 , gt1_ferrari))
   SET_GANG_INFO ( gta4 , 1 , pistol , pistol , pistol , 7 , 1.0 , 1.0 , 1.0 , 1 , GT24640 , 2 )
   SET p4_wybor = 2
  ENDIF
  IF (IS_CHARACTER_IN_CAR ( p4 , gt1_brawn))
   SET_GANG_INFO ( gta4 , 1 , pistol , pistol , pistol , 1 , 1.0 , 1.0 , 1.0 , 1 , GT24640 , 2 )
   SET p4_wybor = 3
  ENDIF
  IF (IS_CHARACTER_IN_CAR ( p4 , gt1_redbull))
   SET_GANG_INFO ( gta4 , 1 , pistol , pistol , pistol , 2 , 1.0 , 1.0 , 1.0 , 1 , GT24640 , 2 )
   SET p4_wybor = 4
  ENDIF
  IF (IS_CHARACTER_IN_CAR ( p4 , gt1_mclaren))
   SET_GANG_INFO ( gta4 , 1 , pistol , pistol , pistol , 3 , 1.0 , 1.0 , 1.0 , 1 , GT24640 , 2 )
   SET p4_wybor = 5
  ENDIF
  IF (IS_CHARACTER_IN_CAR ( p4 , gt1_renault))
   SET_GANG_INFO ( gta4 , 1 , pistol , pistol , pistol , 6 , 1.0 , 1.0 , 1.0 , 1 , GT24640 , 2 )
   SET p4_wybor = 6
  ENDIF
 ENDIF

//  1 p
IF (ilosc_p = 1)
  IF (p2_wybor = 0)
   SET_GANG_INFO ( gta2 , 1 , pistol , pistol , pistol , 4 , 1.0 , 1.0 , 1.0 , 1 , GT24640 , 2 )
   SET p2_wybor = 7
  ENDIF
  IF (p3_wybor = 0)
   SET_GANG_INFO ( gta3 , 1 , pistol , pistol , pistol , 4 , 1.0 , 1.0 , 1.0 , 1 , GT24640 , 2 )
   SET p3_wybor = 7
  ENDIF 
  IF (p4_wybor = 0)
   SET_GANG_INFO ( gta4 , 1 , pistol , pistol , pistol , 4 , 1.0 , 1.0 , 1.0 , 1 , GT24640 , 2 )
   SET p4_wybor = 7
  ENDIF
ENDIF

// 2 p
IF (ilosc_p = 2)
 IF ((p1_wybor > 0)
 OR (p2_wybor > 0))
  IF (p3_wybor = 0)
   SET_GANG_INFO ( gta3 , 1 , pistol , pistol , pistol , 4 , 1.0 , 1.0 , 1.0 , 1 , GT24640 , 2 )
   SET p3_wybor = 7
  ENDIF 
  IF (p4_wybor = 0)
   SET_GANG_INFO ( gta4 , 1 , pistol , pistol , pistol , 4 , 1.0 , 1.0 , 1.0 , 1 , GT24640 , 2 )
   SET p4_wybor = 7
  ENDIF
 ENDIF 
ENDIF

// 3 p
IF (ilosc_p = 3)
 IF ((p1_wybor > 0)
 AND (p2_wybor > 0))
  IF (p4_wybor = 0)
   SET_GANG_INFO ( gta4 , 1 , pistol , pistol , pistol , 4 , 1.0 , 1.0 , 1.0 , 1 , GT24640 , 2 )
   SET p4_wybor = 7
  ENDIF
 ENDIF 
 IF ((p2_wybor > 0)
 AND (p3_wybor > 0))
  IF (p4_wybor = 0)
   SET_GANG_INFO ( gta4 , 1 , pistol , pistol , pistol , 4 , 1.0 , 1.0 , 1.0 , 1 , GT24640 , 2 )
   SET p4_wybor = 7
  ENDIF
 ENDIF 
 IF ((p1_wybor > 0)
 AND (p3_wybor > 0))
  IF (p4_wybor = 0)
   SET_GANG_INFO ( gta4 , 1 , pistol , pistol , pistol , 4 , 1.0 , 1.0 , 1.0 , 1 , GT24640 , 2 )
   SET p4_wybor = 7
  ENDIF
 ENDIF 
ENDIF


// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXX                                XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXX     LOCKED CARS I ZAPADNIE     XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXX                                XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

IF ((HAS_CAR_GOT_DRIVER ( gt1_bmwsauber ))
AND (zapadnia_bmwsauber = 0))
 //CHANGE_CAR_LOCK ( gt1_bmwsauber  , LOCKED ) 
 ++ player_car 
 SET zapadnia_bmwsauber = 1
ENDIF

IF ((HAS_CAR_GOT_DRIVER ( gt1_ferrari ))
AND (zapadnia_ferrari = 0))
 //CHANGE_CAR_LOCK ( gt1_ferrari  , LOCKED )  
 ++ player_car 
 SET zapadnia_ferrari = 1
ENDIF

IF ((HAS_CAR_GOT_DRIVER ( gt1_brawn ))
AND (zapadnia_brawn = 0))
 //CHANGE_CAR_LOCK ( gt1_brawn , LOCKED ) 
 ++ player_car 
 SET zapadnia_brawn = 1 
ENDIF

IF ((HAS_CAR_GOT_DRIVER ( gt1_redbull ))
AND (zapadnia_redbull = 0))
 //CHANGE_CAR_LOCK ( gt1_redbull , LOCKED )  
 ++ player_car 
 SET zapadnia_redbull = 1
ENDIF

IF ((HAS_CAR_GOT_DRIVER ( gt1_mclaren ))
AND (zapadnia_mclaren = 0))
 //CHANGE_CAR_LOCK ( gt1_mclaren   , LOCKED )
 ++ player_car   
 SET zapadnia_mclaren = 1
ENDIF

IF ((HAS_CAR_GOT_DRIVER ( gt1_renault ))
AND (zapadnia_renault = 0))
 //CHANGE_CAR_LOCK ( gt1_renault  , LOCKED )
 ++ player_car   
 SET zapadnia_renault = 1
ENDIF

// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXX                        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXX     CHANGE OUTFIT      XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXX                        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXX         PLAYER 1        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

IF (LOCATE_CHARACTER_ANY_MEANS (  p1 , 134.5, 209.0 , 5.0 , 3.0 , 2.0 ))
 SET_CHAR_GRAPHIC_TYPE ( p1 , GANG_GRAPHIC   , 12 )
ENDIF
IF (LOCATE_CHARACTER_ANY_MEANS (  p1 , 134.5, 212.0 , 5.0 , 3.0 , 2.0 ))
 SET_CHAR_GRAPHIC_TYPE ( p1 , GANG_GRAPHIC   , 10 )
ENDIF
IF (LOCATE_CHARACTER_ANY_MEANS (  p1 , 134.5, 215.0 , 5.0 , 3.0 , 2.0 ))
 SET_CHAR_GRAPHIC_TYPE ( p1 , GANG_GRAPHIC   , 13 )
ENDIF
IF (LOCATE_CHARACTER_ANY_MEANS (  p1 , 140.5, 209.0 , 5.0 , 3.0 , 2.0 ))
 SET_CHAR_GRAPHIC_TYPE ( p1 , GANG_GRAPHIC   , 47 ) 
ENDIF
IF (LOCATE_CHARACTER_ANY_MEANS (  p1 , 140.5, 212.0 , 5.0 , 3.0 , 2.0 ))
 SET_CHAR_GRAPHIC_TYPE ( p1 , GANG_GRAPHIC   , 11 )
ENDIF
IF (LOCATE_CHARACTER_ON_FOOT (  p1 , 140.5, 215.0 , 5.0 , 3.0 , 2.0 ))
 SET_CHAR_GRAPHIC_TYPE ( p1 , GANG_GRAPHIC   , 9 )
ENDIF

IF (((LOCATE_CHARACTER_ON_FOOT (  p1 , 137.5, 212.0 , 5.0 , 3.0 , 8.0 ))
OR (LOCATE_CHARACTER_ON_FOOT (  p1 , 137.5, 213.5 , 5.0 , 9.0 , 1.0 )))
OR (LOCATE_CHARACTER_ON_FOOT (  p1 , 137.5, 210.5 , 5.0 , 9.0 , 1.0  )))
 SET_CHAR_GRAPHIC_TYPE ( p1 , GANG_GRAPHIC   , 25 )
ENDIF

// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXX         PLAYER 2        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

IF (LOCATE_CHARACTER_ANY_MEANS (  p2 , 134.5, 209.0 , 5.0 , 3.0 , 2.0 ))
 SET_CHAR_GRAPHIC_TYPE ( p2 , GANG_GRAPHIC   , 12 )
ENDIF
IF (LOCATE_CHARACTER_ANY_MEANS (  p2 , 134.5, 212.0 , 5.0 , 3.0 , 2.0 ))
 SET_CHAR_GRAPHIC_TYPE ( p2 , GANG_GRAPHIC   , 10 )
ENDIF
IF (LOCATE_CHARACTER_ANY_MEANS (  p2 , 134.5, 215.0 , 5.0 , 3.0 , 2.0 ))
 SET_CHAR_GRAPHIC_TYPE ( p2 , GANG_GRAPHIC   , 13 )
ENDIF
IF (LOCATE_CHARACTER_ANY_MEANS (  p2 , 140.5, 209.0 , 5.0 , 3.0 , 2.0 ))
 SET_CHAR_GRAPHIC_TYPE ( p2 , GANG_GRAPHIC   , 47 ) 
ENDIF
IF (LOCATE_CHARACTER_ANY_MEANS (  p2 , 140.5, 212.0 , 5.0 , 3.0 , 2.0 ))
 SET_CHAR_GRAPHIC_TYPE ( p2 , GANG_GRAPHIC   , 11 )
ENDIF
IF (LOCATE_CHARACTER_ON_FOOT (  p2 , 140.5, 215.0 , 5.0 , 3.0 , 2.0 ))
 SET_CHAR_GRAPHIC_TYPE ( p2 , GANG_GRAPHIC   , 9 )
ENDIF

IF (((LOCATE_CHARACTER_ON_FOOT (  p2 , 137.5, 212.0 , 5.0 , 3.0 , 8.0 ))
OR (LOCATE_CHARACTER_ON_FOOT (  p2 , 137.5, 213.5 , 5.0 , 9.0 , 1.0 )))
OR (LOCATE_CHARACTER_ON_FOOT (  p2 , 137.5, 210.5 , 5.0 , 9.0 , 1.0  )))
 SET_CHAR_GRAPHIC_TYPE ( p2 , GANG_GRAPHIC   , 25 )
ENDIF

// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXX         PLAYER 3        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

IF (LOCATE_CHARACTER_ANY_MEANS (  p3 , 134.5, 209.0 , 5.0 , 3.0 , 2.0 ))
 SET_CHAR_GRAPHIC_TYPE ( p3 , GANG_GRAPHIC   , 12 )
ENDIF
IF (LOCATE_CHARACTER_ANY_MEANS (  p3 , 134.5, 212.0 , 5.0 , 3.0 , 2.0 ))
 SET_CHAR_GRAPHIC_TYPE ( p3 , GANG_GRAPHIC   , 10 )
ENDIF
IF (LOCATE_CHARACTER_ANY_MEANS (  p3 , 134.5, 215.0 , 5.0 , 3.0 , 2.0 ))
 SET_CHAR_GRAPHIC_TYPE ( p3 , GANG_GRAPHIC   , 13 )
ENDIF
IF (LOCATE_CHARACTER_ANY_MEANS (  p3 , 140.5, 209.0 , 5.0 , 3.0 , 2.0 ))
 SET_CHAR_GRAPHIC_TYPE ( p3 , GANG_GRAPHIC   , 47 ) 
ENDIF
IF (LOCATE_CHARACTER_ANY_MEANS (  p3 , 140.5, 212.0 , 5.0 , 3.0 , 2.0 ))
 SET_CHAR_GRAPHIC_TYPE ( p3 , GANG_GRAPHIC   , 11 )
ENDIF
IF (LOCATE_CHARACTER_ON_FOOT (  p3 , 140.5, 215.0 , 5.0 , 3.0 , 2.0 ))
 SET_CHAR_GRAPHIC_TYPE ( p3 , GANG_GRAPHIC   , 9 )
ENDIF

IF (((LOCATE_CHARACTER_ON_FOOT (  p3 , 137.5, 212.0 , 5.0 , 3.0 , 8.0 ))
OR (LOCATE_CHARACTER_ON_FOOT (  p3 , 137.5, 213.5 , 5.0 , 9.0 , 1.0 )))
OR (LOCATE_CHARACTER_ON_FOOT (  p3 , 137.5, 210.5 , 5.0 , 9.0 , 1.0  )))
 SET_CHAR_GRAPHIC_TYPE ( p3 , GANG_GRAPHIC   , 25 )
ENDIF

// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXX         PLAYER 4        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

IF (LOCATE_CHARACTER_ANY_MEANS (  p4 , 134.5, 209.0 , 5.0 , 3.0 , 2.0 ))
 SET_CHAR_GRAPHIC_TYPE ( p4 , GANG_GRAPHIC   , 12 )
ENDIF
IF (LOCATE_CHARACTER_ANY_MEANS (  p4 , 134.5, 212.0 , 5.0 , 3.0 , 2.0 ))
 SET_CHAR_GRAPHIC_TYPE ( p4 , GANG_GRAPHIC   , 10 )
ENDIF
IF (LOCATE_CHARACTER_ANY_MEANS (  p4 , 134.5, 215.0 , 5.0 , 3.0 , 2.0 ))
 SET_CHAR_GRAPHIC_TYPE ( p4 , GANG_GRAPHIC   , 13 )
ENDIF
IF (LOCATE_CHARACTER_ANY_MEANS (  p4 , 140.5, 209.0 , 5.0 , 3.0 , 2.0 ))
 SET_CHAR_GRAPHIC_TYPE ( p4 , GANG_GRAPHIC   , 47 ) 
ENDIF
IF (LOCATE_CHARACTER_ANY_MEANS (  p4 , 140.5, 212.0 , 5.0 , 3.0 , 2.0 ))
 SET_CHAR_GRAPHIC_TYPE ( p4 , GANG_GRAPHIC   , 11 )
ENDIF
IF (LOCATE_CHARACTER_ON_FOOT (  p4 , 140.5, 215.0 , 5.0 , 3.0 , 2.0 ))
 SET_CHAR_GRAPHIC_TYPE ( p4 , GANG_GRAPHIC   , 9 )
ENDIF

IF (((LOCATE_CHARACTER_ON_FOOT (  p4 , 137.5, 212.0 , 5.0 , 3.0 , 8.0 ))
OR (LOCATE_CHARACTER_ON_FOOT (  p4 , 137.5, 213.5 , 5.0 , 9.0 , 1.0 )))
OR (LOCATE_CHARACTER_ON_FOOT (  p4 , 137.5, 210.5 , 5.0 , 9.0 , 1.0  )))
 SET_CHAR_GRAPHIC_TYPE ( p4 , GANG_GRAPHIC   , 25 )
ENDIF

// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXX                        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXX      ZAPADNIE AUT      XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXX                        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

IF (zapadnia_redbull = 1)
 REMOVE_BLOCK ( 133 , 214 , 4 , DONT_DROP )
 REMOVE_BLOCK ( 134 , 214 , 4 , DONT_DROP )
 REMOVE_BLOCK ( 135 , 214 , 4 , DONT_DROP )
 REMOVE_BLOCK ( 133 , 215 , 4 , DONT_DROP )
 REMOVE_BLOCK ( 134 , 215 , 4 , DONT_DROP )
 REMOVE_BLOCK ( 135 , 215 , 4 , DONT_DROP )
 CHANGE_BLOCK LID  ( 133 , 214 , 3 ) NOT_FLAT FLIP  0  180  801
 CHANGE_BLOCK LID  ( 134 , 214 , 3 ) NOT_FLAT FLIP  0  180  801
 CHANGE_BLOCK LID  ( 135 , 214 , 3 ) NOT_FLAT FLIP  0  180  801
 CHANGE_BLOCK LID  ( 133 , 215 , 3 ) NOT_FLAT FLIP  0  180  801
 CHANGE_BLOCK LID  ( 134 , 215 , 3 ) NOT_FLAT FLIP  0  180  801
 CHANGE_BLOCK LID  ( 135 , 215 , 3 ) NOT_FLAT FLIP  0  180  801
 //bok
 CHANGE_BLOCK SIDE (136 , 214 , 4 ) LEFT WALL BULLET NOT_FLAT NOT_FLIP 000 767
 CHANGE_BLOCK SIDE (136 , 215 , 4 ) LEFT WALL BULLET NOT_FLAT NOT_FLIP 000 767
 //gora
 CHANGE_BLOCK SIDE (133 , 213 , 4 ) BOTTOM WALL BULLET NOT_FLAT NOT_FLIP 000 767 
 CHANGE_BLOCK SIDE (134 , 213 , 4 ) BOTTOM WALL BULLET NOT_FLAT NOT_FLIP 000 767
 CHANGE_BLOCK SIDE (135 , 213 , 4 ) BOTTOM WALL BULLET NOT_FLAT NOT_FLIP 000 767
 SET zapadnia_redbull = 2
ENDIF

IF (zapadnia_ferrari = 1)
 REMOVE_BLOCK ( 133 , 211 , 4 , DONT_DROP )
 REMOVE_BLOCK ( 134 , 211 , 4 , DONT_DROP )
 REMOVE_BLOCK ( 135 , 211 , 4 , DONT_DROP )
 REMOVE_BLOCK ( 133 , 212 , 4 , DONT_DROP )
 REMOVE_BLOCK ( 134 , 212 , 4 , DONT_DROP )
 REMOVE_BLOCK ( 135 , 212 , 4 , DONT_DROP )
 CHANGE_BLOCK LID  ( 133 , 211 , 3 ) NOT_FLAT FLIP  0  180  801
 CHANGE_BLOCK LID  ( 134 , 211 , 3 ) NOT_FLAT FLIP  0  180  801
 CHANGE_BLOCK LID  ( 135 , 211 , 3 ) NOT_FLAT FLIP  0  180  801
 CHANGE_BLOCK LID  ( 133 , 212 , 3 ) NOT_FLAT FLIP  0  180  801
 CHANGE_BLOCK LID  ( 134 , 212 , 3 ) NOT_FLAT FLIP  0  180  801
 CHANGE_BLOCK LID  ( 135 , 212 , 3 ) NOT_FLAT FLIP  0  180  801
 //bok
 CHANGE_BLOCK SIDE (136 , 211 , 4 ) LEFT WALL BULLET NOT_FLAT NOT_FLIP 000 767
 CHANGE_BLOCK SIDE (136  , 212 , 4 ) LEFT WALL BULLET NOT_FLAT NOT_FLIP 000 767
 //gora
 CHANGE_BLOCK SIDE (133 , 210 , 4 ) BOTTOM WALL BULLET NOT_FLAT NOT_FLIP 000 767
 CHANGE_BLOCK SIDE (134 , 210 , 4 ) BOTTOM WALL BULLET NOT_FLAT NOT_FLIP 000 767
 CHANGE_BLOCK SIDE (135 , 210 , 4 ) BOTTOM WALL BULLET NOT_FLAT NOT_FLIP 000 767
 //dol
 CHANGE_BLOCK SIDE (133 , 213 , 4 ) TOP WALL BULLET NOT_FLAT NOT_FLIP 000 767 
 CHANGE_BLOCK SIDE (134 , 213 , 4 ) TOP WALL BULLET NOT_FLAT NOT_FLIP 000 767
 CHANGE_BLOCK SIDE (135 , 213 , 4 ) TOP WALL BULLET NOT_FLAT NOT_FLIP 000 767
 SET zapadnia_ferrari = 2
ENDIF

IF (zapadnia_bmwsauber = 1)
 REMOVE_BLOCK ( 133 , 208 , 4 , DONT_DROP )
 REMOVE_BLOCK ( 134 , 208 , 4 , DONT_DROP )
 REMOVE_BLOCK ( 135 , 208 , 4 , DONT_DROP )
 REMOVE_BLOCK ( 133 , 209 , 4 , DONT_DROP )
 REMOVE_BLOCK ( 134 , 209 , 4 , DONT_DROP )
 REMOVE_BLOCK ( 135 , 209 , 4 , DONT_DROP )
 CHANGE_BLOCK LID  ( 133 , 208 , 3 ) NOT_FLAT FLIP  0  180  801
 CHANGE_BLOCK LID  ( 134 , 208 , 3 ) NOT_FLAT FLIP  0  180  801
 CHANGE_BLOCK LID  ( 135 , 208 , 3 ) NOT_FLAT FLIP  0  180  801
 CHANGE_BLOCK LID  ( 133 , 209 , 3 ) NOT_FLAT FLIP  0  180  801
 CHANGE_BLOCK LID  ( 134 , 209 , 3 ) NOT_FLAT FLIP  0  180  801
 CHANGE_BLOCK LID  ( 135 , 209 , 3 ) NOT_FLAT FLIP  0  180  801
 //bok
 CHANGE_BLOCK SIDE (136  , 208 , 4 ) LEFT WALL BULLET NOT_FLAT NOT_FLIP 000 767 
 CHANGE_BLOCK SIDE (136  , 209 , 4 ) LEFT WALL BULLET NOT_FLAT NOT_FLIP 000 767
 //dol
 CHANGE_BLOCK SIDE (133 , 210 , 4 ) TOP WALL BULLET NOT_FLAT NOT_FLIP 000 767 
 CHANGE_BLOCK SIDE (134 , 210 , 4 ) TOP WALL BULLET NOT_FLAT NOT_FLIP 000 767
 CHANGE_BLOCK SIDE (135 , 210 , 4 ) TOP WALL BULLET NOT_FLAT NOT_FLIP 000 767
 SET zapadnia_bmwsauber = 2
ENDIF

IF (zapadnia_mclaren = 1)

 REMOVE_BLOCK ( 139 , 208 , 4 , DONT_DROP )
 REMOVE_BLOCK ( 140 , 208 , 4 , DONT_DROP )
 REMOVE_BLOCK ( 141 , 208 , 4 , DONT_DROP )
 REMOVE_BLOCK ( 139 , 209 , 4 , DONT_DROP )
 REMOVE_BLOCK ( 140 , 209 , 4 , DONT_DROP )
 REMOVE_BLOCK ( 141 , 209 , 4 , DONT_DROP )
 CHANGE_BLOCK LID  ( 139 , 208 , 3 ) NOT_FLAT FLIP  0  180  801
 CHANGE_BLOCK LID  ( 140 , 208 , 3 ) NOT_FLAT FLIP  0  180  801
 CHANGE_BLOCK LID  ( 141 , 208 , 3 ) NOT_FLAT FLIP  0  180  801 
 CHANGE_BLOCK LID  ( 139 , 209 , 3 ) NOT_FLAT FLIP  0  180  801
 CHANGE_BLOCK LID  ( 140 , 209 , 3 ) NOT_FLAT FLIP  0  180  801
 CHANGE_BLOCK LID  ( 141 , 209 , 3 ) NOT_FLAT FLIP  0  180  801
 //bok
 CHANGE_BLOCK SIDE (138  , 208 , 4 ) RIGHT WALL BULLET NOT_FLAT NOT_FLIP 000 767 
 CHANGE_BLOCK SIDE (138  , 209 , 4 ) RIGHT WALL BULLET NOT_FLAT NOT_FLIP 000 767
 //dol
 CHANGE_BLOCK SIDE (139 , 210 , 4 ) TOP WALL BULLET NOT_FLAT NOT_FLIP 000 767
 CHANGE_BLOCK SIDE (140 , 210 , 4 ) TOP WALL BULLET NOT_FLAT NOT_FLIP 000 767
 CHANGE_BLOCK SIDE (141 , 210 , 4 ) TOP WALL BULLET NOT_FLAT NOT_FLIP 000 767
 SET zapadnia_mclaren = 2
ENDIF

IF (zapadnia_brawn = 1)
 REMOVE_BLOCK ( 139 , 211 , 4 , DONT_DROP )
 REMOVE_BLOCK ( 140 , 211 , 4 , DONT_DROP )
 REMOVE_BLOCK ( 141 , 211 , 4 , DONT_DROP )
 REMOVE_BLOCK ( 139 , 212 , 4 , DONT_DROP )
 REMOVE_BLOCK ( 140 , 212 , 4 , DONT_DROP )
 REMOVE_BLOCK ( 141 , 212 , 4 , DONT_DROP )
 CHANGE_BLOCK LID  ( 139 , 211 , 3 ) NOT_FLAT FLIP  0  180  801
 CHANGE_BLOCK LID  ( 140 , 211 , 3 ) NOT_FLAT FLIP  0  180  801
 CHANGE_BLOCK LID  ( 141 , 211 , 3 ) NOT_FLAT FLIP  0  180  801
 CHANGE_BLOCK LID  ( 139 , 212 , 3 ) NOT_FLAT FLIP  0  180  801
 CHANGE_BLOCK LID  ( 140 , 212 , 3 ) NOT_FLAT FLIP  0  180  801
 CHANGE_BLOCK LID  ( 141 , 212 , 3 ) NOT_FLAT FLIP  0  180  801
 //bok
 CHANGE_BLOCK SIDE (138 , 212 , 4) RIGHT WALL BULLET NOT_FLAT NOT_FLIP 000 767
 CHANGE_BLOCK SIDE (138  , 211 , 4) RIGHT WALL BULLET NOT_FLAT NOT_FLIP 000 767
 //gora
 CHANGE_BLOCK SIDE (139  , 210 , 4) BOTTOM WALL BULLET NOT_FLAT NOT_FLIP 000 767 
 CHANGE_BLOCK SIDE (140  , 210 , 4) BOTTOM WALL BULLET NOT_FLAT NOT_FLIP 000 767 
 CHANGE_BLOCK SIDE (141  , 210 , 4) BOTTOM WALL BULLET NOT_FLAT NOT_FLIP 000 767  
 //dol
 CHANGE_BLOCK SIDE (139 , 213 , 4) TOP WALL BULLET NOT_FLAT NOT_FLIP 000 767
 CHANGE_BLOCK SIDE (140 , 213 , 4) TOP WALL BULLET NOT_FLAT NOT_FLIP 000 767
 CHANGE_BLOCK SIDE (141 , 213 , 4) TOP WALL BULLET NOT_FLAT NOT_FLIP 000 767
 SET zapadnia_brawn = 2
ENDIF

IF (zapadnia_renault = 1)
 REMOVE_BLOCK ( 139 , 214 , 4 , DONT_DROP )
 REMOVE_BLOCK ( 140 , 214 , 4 , DONT_DROP )
 REMOVE_BLOCK ( 141 , 214 , 4 , DONT_DROP )
 REMOVE_BLOCK ( 139 , 215 , 4 , DONT_DROP )
 REMOVE_BLOCK ( 140 , 215 , 4 , DONT_DROP )
 REMOVE_BLOCK ( 141 , 215 , 4 , DONT_DROP )
 CHANGE_BLOCK LID  ( 139 , 214 , 3 ) NOT_FLAT FLIP  0  180  801
 CHANGE_BLOCK LID  ( 140 , 214 , 3 ) NOT_FLAT FLIP  0  180  801
 CHANGE_BLOCK LID  ( 141 , 214 , 3 ) NOT_FLAT FLIP  0  180  801
 CHANGE_BLOCK LID  ( 139 , 215 , 3 ) NOT_FLAT FLIP  0  180  801
 CHANGE_BLOCK LID  ( 140 , 215 , 3 ) NOT_FLAT FLIP  0  180  801
 CHANGE_BLOCK LID  ( 141 , 215 , 3 ) NOT_FLAT FLIP  0  180  801
 //bok
 CHANGE_BLOCK SIDE (138  , 214 , 4) RIGHT WALL BULLET NOT_FLAT NOT_FLIP 000 767 
 CHANGE_BLOCK SIDE (138  , 215 , 4) RIGHT WALL BULLET NOT_FLAT NOT_FLIP 000 767 
 //gora 
 CHANGE_BLOCK SIDE (139  , 213 , 4) BOTTOM WALL BULLET NOT_FLAT NOT_FLIP 000 767 
 CHANGE_BLOCK SIDE (140  , 213 , 4) BOTTOM WALL BULLET NOT_FLAT NOT_FLIP 000 767 
 CHANGE_BLOCK SIDE (141  , 213 , 4) BOTTOM WALL BULLET NOT_FLAT NOT_FLIP 000 767 
 SET zapadnia_renault = 2
ENDIF

// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXX                         XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXX        OPEN BRAMA       XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXX   QUALIFICATION START   XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXX                        XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

IF ((ilosc_p = 1)
AND (player_car = 1))
 SET close_gate = 1
 SET player_car = 0
ENDIF

IF ((ilosc_p = 2)
AND (player_car = 2))
 SET close_gate = 1
 SET player_car = 0
ENDIF

IF ((ilosc_p = 3)
AND (player_car = 3))
 SET close_gate = 1
 SET player_car = 0
ENDIF

IF ((ilosc_p = 4)
AND (player_car = 4))
 SET close_gate = 1
 SET player_car = 0
ENDIF

IF (( close_gate = 1 )
AND (NOT(DELAY (90))))
OPEN_DOOR ( door1 )
OPEN_DOOR ( door2 )
OPEN_DOOR ( door3 )
door_sound = CREATE_SOUND ( 135.5 , 202.0 , 4.0 ) GARAGE_OPEN PLAY_INSTANT END
door_sound = CREATE_SOUND ( 137.5 , 202.0 , 4.0 ) GARAGE_OPEN PLAY_INSTANT END
door_sound = CREATE_SOUND ( 139.5 , 202.0 , 4.0 ) GARAGE_OPEN PLAY_INSTANT END
 SET loading = 2
 SET close_gate = 0 
ENDIF

// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXX                         XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXX       LOCKED CARS       XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXX                         XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
// XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

//bmw
IF (((NOT(HAS_CAR_GOT_DRIVER (gt1_bmwsauber)))
AND (NOT(bmw_char_alive = 2)))
AND (NOT(wreck_bmwsauber > 0)))
 CHANGE_CAR_LOCK ( gt1_bmwsauber , UNLOCKED )
ENDIF
IF (HAS_CAR_GOT_DRIVER (gt1_bmwsauber))
 CHANGE_CAR_LOCK ( gt1_bmwsauber , LOCKED )
ENDIF

//ferrari
IF (((NOT(HAS_CAR_GOT_DRIVER (gt1_ferrari)))
AND (NOT(ferrari_char_alive = 2)))
AND (NOT(wreck_ferrari > 0)))
 CHANGE_CAR_LOCK ( gt1_ferrari , UNLOCKED )
ENDIF
IF (HAS_CAR_GOT_DRIVER (gt1_ferrari))
 CHANGE_CAR_LOCK ( gt1_ferrari , LOCKED )
ENDIF

//brawn
IF (((NOT(HAS_CAR_GOT_DRIVER (gt1_brawn)))
AND (NOT(brawn_char_alive = 2)))
AND (NOT(wreck_brawn > 0)))
 CHANGE_CAR_LOCK ( gt1_brawn , UNLOCKED )
ENDIF
IF (HAS_CAR_GOT_DRIVER (gt1_brawn))
 CHANGE_CAR_LOCK ( gt1_brawn , LOCKED )
ENDIF

//redbull
IF (((NOT(HAS_CAR_GOT_DRIVER (gt1_redbull)))
AND (NOT(redbull_char_alive = 2)))
AND (NOT(wreck_redbull > 0)))
 CHANGE_CAR_LOCK ( gt1_redbull , UNLOCKED )
ENDIF

IF (HAS_CAR_GOT_DRIVER (gt1_redbull))
 CHANGE_CAR_LOCK ( gt1_redbull , LOCKED )
ENDIF

//mclaren
IF (((NOT(HAS_CAR_GOT_DRIVER (gt1_mclaren)))
AND (NOT(mclaren_char_alive = 2)))
AND (NOT(wreck_mclaren > 0)))
 CHANGE_CAR_LOCK ( gt1_mclaren , UNLOCKED )
ENDIF
IF (HAS_CAR_GOT_DRIVER (gt1_mclaren))
 CHANGE_CAR_LOCK ( gt1_mclaren , LOCKED )
ENDIF

//renault
IF (((NOT(HAS_CAR_GOT_DRIVER (gt1_renault)))
AND (NOT(renault_char_alive = 2)))
AND (NOT(wreck_renault > 0)))
 CHANGE_CAR_LOCK ( gt1_renault , UNLOCKED )
ENDIF
IF (HAS_CAR_GOT_DRIVER (gt1_renault))
 CHANGE_CAR_LOCK ( gt1_renault , LOCKED )
ENDIF

ENDWHILE


SET loop = 1
MISSION_HAS_FINISHED ( )
RETURN
 
 
MISSIONSTART

GOSUB loading_data:

MISSIONEND 
