//Players

PLAYER_PED p1 = (220.5 , 175.5 , 2.0) 8 0
PLAYER_PED p2 = (155.5, 152.5, 4.0) 11 0
PLAYER_PED p3 = (160.5, 170.5, 2.0) 13 0
PLAYER_PED p4 = (197.5, 153.5, 2.0) 7 0
PLAYER_PED p5 = (169.5, 179.5, 2.0) 5 0
PLAYER_PED p6 = (195.5, 191.5, 2.0) 9 0
//Eo Players 

//Trains
SET_STATION_INFO ( trak00 , NO_TRAIN )
SET_STATION_INFO ( trak01 , NO_TRAIN )
SET_STATION_INFO ( trak02 , NO_TRAIN )

//Door (DO ZMIANY)
DECLARE_DOOR_INFO ( 128 , 135 , 2 )
DOOR_DATA door_1 = DOUBLE ( 211 , 179 , 2 ) ( 209.0 , 177.0 , 2.0 , 2.0 , 4.0 ) LEFT 0 ANY_PLAYER_ONE_CAR CLOSE_WHEN_OPEN_RULE_FAILS 0 FLIP_RIGHT NOT_REVERSED

SET_AMBIENT_LEVEL ( 0.3 , 0 )

OBJ_DATA tb1 = ( 150.5, 154.5, 4.0 ) 0 TUNNEL_BLOCKER
OBJ_DATA tb2 = ( 171.5, 154.5, 4.0 ) 0 TUNNEL_BLOCKER
OBJ_DATA tb3 = ( 198.5, 210.5, 2.0 ) 0 TUNNEL_BLOCKER
OBJ_DATA tb4 = ( 191.5, 210.5, 2.0 ) 0 TUNNEL_BLOCKER
OBJ_DATA tb5 = ( 224.5, 170.5, 2.0 ) 0 TUNNEL_BLOCKER
OBJ_DATA tb6 = ( 224.5, 177.5, 2.0 ) 0 TUNNEL_BLOCKER
//Eo Trains





// Radio Stations
RADIO_STATION  industrial = STATION_INDUSTRIAL  (128.0,128.0) 
RADIO_STATION residential = STATION_RESIDENTIAL (128.0,128.0) 
RADIO_STATION    downtown = STATION_DOWNTOWN    (128.0,128.0)
RADIO_STATION    russian  = STATION_RUSSIAN     (128.0,128.0)
RADIO_STATION    krishna  = STATION_KRISHNA     (128.0,128.0)
RADIO_STATION    redneck  = STATION_REDNECK     (128.0,128.0)
RADIO_STATION scientists  = STATION_SCIENTIST   (128.0,128.0)
RADIO_STATION     loonie  = STATION_LOONIE      (128.0,128.0)
RADIO_STATION     yakuza  = STATION_YAKUZA      (128.0,128.0)
RADIO_STATION   zaibatsu  = STATION_ZAIBATSU    (128.0,128.0)
// Eo Stations

//Crane
CRANE_DATA cran1 = ( 214.5 , 190.5 ) 000 NO_HOMECRANE FIRST ( 211.5 , 190.0 ) 0

// Weapons:
GENERATOR zooka1 = ( 222.5, 148.5, 2.0 ) 0 COLLECT_02 6800 6800 5
GENERATOR zooka2 = ( 169.5, 197.9, 2.0 ) 0 COLLECT_02 6800 6800 5
GENERATOR granade1 = ( 221.5, 187.5, 2.0 ) 0 COLLECT_05 3000 3000 8
GENERATOR granade2 = ( 182.5, 150.5, 3.0 ) 0 COLLECT_05 3000 3000 8
GENERATOR koka1 = ( 224.5, 159.5, 2.0 ) 0 COLLECT_04 6800 6800 9
GENERATOR koka2 = ( 151.5, 151.5, 4.0 ) 0 COLLECT_04 6800 6800 9
GENERATOR koka3 = ( 163.5, 172.5, 4.0 ) 0 COLLECT_04 6800 6800 9
GENERATOR egun = ( 150.5, 158.5, 1.0 ) 0 COLLECT_03 6800 6800 6
GENERATOR pist1 = ( 168.5, 189.5, 2.0 ) 0 COLLECT_00 3000 3000 12
GENERATOR pist2 = ( 194.5, 148.5, 2.0 ) 0 COLLECT_00 3000 3000 12
GENERATOR pist3 = ( 178.5, 181.5, 2.0 ) 0 COLLECT_00 3000 3000 12
GENERATOR pist4 = ( 191.5, 196.5, 2.0 ) 0 COLLECT_00 3000 3000 12
GENERATOR mgun1 = ( 173.5, 160.5, 2.0 ) 0 COLLECT_01 3000 3000 20
GENERATOR mgun2 = ( 202.5, 199.5, 2.0 ) 0 COLLECT_01 3000 3000 20
GENERATOR smgun3 = ( 212.5, 171.5, 2.0 ) 0 COLLECT_09 1500 1500 15
GENERATOR shotg1 = ( 170.5, 171.5, 2.0 ) 0 COLLECT_06 3000 3000 7
GENERATOR shotg2 = ( 202.5, 180.5, 2.0 ) 0 COLLECT_06 3000 3000 7
GENERATOR flame1 = ( 164.9, 181.9, 4.0 ) 0 COLLECT_08 6800 6800 8
GENERATOR flame2 = ( 198.5, 188.5, 4.0 ) 0 COLLECT_08 6800 6800 8
GENERATOR dualp1 = ( 163.5, 176.5, 2.0 ) 0 COLLECT_10 3000 3000 10
GENERATOR dualp2 = ( 166.5, 153.5, 2.0 ) 0 COLLECT_10 3000 3000 10
GENERATOR carb = ( 183.5, 201.9, 2.0 ) 0 COLLECT_15 6800 6800 1
GENERATOR caroil = ( 152.5, 168.5, 2.0 ) 0 COLLECT_16 6800 6800 8
//GENERATOR mine1 = ( 169.5, 163.5, 5.0 ) 0 COLLECT_17 6800 6800 4
GENERATOR carma = ( 191.9, 169.9, 1.0 ) 0 COLLECT_18 6800 6800 10
GENERATOR armor = ( 179.5, 153.5, 5.0 ) 0 COLLECT_31 6800 6800 1
//GENERATOR inv = ( 158.5, 154.5, 2.0 ) 0 COLLECT_34 6800 6800 
GENERATOR dd1 = ( 218.5, 194.5, 4.0 ) 0 COLLECT_35 6800 6800 
GENERATOR dd2 = ( 163.5, 189.9, 2.0 ) 0 COLLECT_35 6800 6800
GENERATOR fr1 = ( 211.5, 160.5, 2.0 ) 0 COLLECT_36 6800 6800 
GENERATOR koksy1 = ( 209.9, 178.9, 2.0 ) 0 COLLECT_40 6800 6800 
GENERATOR koksy2 = ( 160.5, 182.5, 2.0 ) 0 COLLECT_40 6800 6800 
//Eo Weapons

//Factory


CONVEYOR c1 = (207.5, 197.5)  (10.0, 1.0) -3 0
CONVEYOR c2 = (215.5, 197.5)  (10.0, 1.0) -3 0



//Eo Factory




//Counters
SAVED_COUNTER true = 1 
SAVED_COUNTER false = 0 

COUNTER loop = 1
COUNTER once = 1
COUNTER gate = 1

//Eo Counters



LEVELSTART 




//Generators
SWITCH_GENERATOR ( granade1 , ON ) 
SWITCH_GENERATOR ( granade2 , ON ) 
SWITCH_GENERATOR ( zooka2 , ON ) 
SWITCH_GENERATOR ( zooka1 , ON ) 
SWITCH_GENERATOR ( koka1 , ON ) 
SWITCH_GENERATOR ( koka2 , ON ) 
SWITCH_GENERATOR ( koka3 , ON ) 
SWITCH_GENERATOR ( egun , ON ) 
SWITCH_GENERATOR ( pist1 , ON ) 
SWITCH_GENERATOR ( pist3 , ON ) 
SWITCH_GENERATOR ( pist2 , ON ) 
SWITCH_GENERATOR ( pist4 , ON ) 
SWITCH_GENERATOR ( mgun1 , ON ) 
SWITCH_GENERATOR ( mgun2 , ON ) 
SWITCH_GENERATOR ( smgun3 , ON ) 
SWITCH_GENERATOR ( shotg1 , ON ) 
SWITCH_GENERATOR ( shotg2 , ON ) 
SWITCH_GENERATOR ( flame1 , ON ) 
SWITCH_GENERATOR ( flame2 , ON ) 
SWITCH_GENERATOR ( dualp1 , ON ) 
SWITCH_GENERATOR ( dualp2 , ON )
SWITCH_GENERATOR ( carb , ON )
SWITCH_GENERATOR ( caroil , ON )
//SWITCH_GENERATOR ( mine1 , ON )
SWITCH_GENERATOR ( carma , ON )
SWITCH_GENERATOR ( armor , ON )
//SWITCH_GENERATOR ( inv , ON )
SWITCH_GENERATOR ( dd1 , ON )
SWITCH_GENERATOR ( dd2 , ON )
SWITCH_GENERATOR ( fr1 , ON )
SWITCH_GENERATOR ( koksy1 , ON )
SWITCH_GENERATOR ( koksy2 , ON )



REMOVE_BLOCK ( 212 , 188 , 2  , DONT_DROP )
REMOVE_BLOCK ( 213 , 188 , 2  , DONT_DROP )
REMOVE_BLOCK ( 212 , 187 , 2  , DONT_DROP )
REMOVE_BLOCK ( 213 , 187 , 2  , DONT_DROP )

WHILE ( true = 1 )
IF (CHECK_CHARACTER_HEALTH(p1, 0))
	IF (LOCATE_CHARACTER_ANY_MEANS ( p1  ,  205.0  , 197.0  ,  3.0  , 1.0 , 1.0  )) 
		EXPLODE_SMALL (p1)
	ENDIF
	IF (LOCATE_CHARACTER_ANY_MEANS ( p1  ,  209.5  , 193.5  ,  3.0  , 1.0 , 1.0  )) 
		EXPLODE_SMALL (p1)
	ENDIF
	IF (LOCATE_CHARACTER_ANY_MEANS ( p1  ,  217.5  , 197.5  ,  3.0  , 1.0 , 1.0  )) 
		EXPLODE_SMALL (p1)
	ENDIF
ENDIF
///////////////////
IF (CHECK_CHARACTER_HEALTH(p2, 0))
	IF (LOCATE_CHARACTER_ANY_MEANS ( p2  ,  205.0  , 197.0  ,  3.0  , 1.0 , 1.0  )) 
		EXPLODE_SMALL (p2)
	ENDIF
	IF (LOCATE_CHARACTER_ANY_MEANS ( p2  ,  209.5  , 193.5  ,  3.0  , 1.0 , 1.0  )) 
		EXPLODE_SMALL (p2)
	ENDIF
	IF (LOCATE_CHARACTER_ANY_MEANS ( p2  ,  217.5  , 197.5  ,  3.0  , 1.0 , 1.0  )) 
		EXPLODE_SMALL (p2)
	ENDIF
ENDIF
//////////////////
IF (CHECK_CHARACTER_HEALTH(p3, 0))
	IF (LOCATE_CHARACTER_ANY_MEANS ( p3  ,  205.0  , 197.0  ,  3.0  , 1.0 , 1.0  )) 
		EXPLODE_SMALL (p3)
	ENDIF
	IF (LOCATE_CHARACTER_ANY_MEANS ( p3  ,  209.5  , 193.5  ,  3.0  , 1.0 , 1.0  )) 
		EXPLODE_SMALL (p3)
	ENDIF
	IF (LOCATE_CHARACTER_ANY_MEANS ( p3  ,  217.5  , 197.5  ,  3.0  , 1.0 , 1.0  )) 
		EXPLODE_SMALL (p3)
	ENDIF
ENDIF
/////////////////
IF (CHECK_CHARACTER_HEALTH(p4, 0))
	IF (LOCATE_CHARACTER_ANY_MEANS ( p4  ,  205.0  , 197.0  ,  3.0  , 1.0 , 1.0  )) 
		EXPLODE_SMALL (p4)
	ENDIF
	IF (LOCATE_CHARACTER_ANY_MEANS ( p4  ,  209.5  , 193.5  ,  3.0  , 1.0 , 1.0  )) 
		EXPLODE_SMALL (p4)
	ENDIF
	IF (LOCATE_CHARACTER_ANY_MEANS ( p4  ,  217.5  , 197.5  ,  3.0  , 1.0 , 1.0  )) 
		EXPLODE_SMALL (p4)
	ENDIF
ENDIF
/////////////////
IF (CHECK_CHARACTER_HEALTH(p5, 0))
	IF (LOCATE_CHARACTER_ANY_MEANS ( p5  ,  205.0  , 197.0  ,  3.0  , 1.0 , 1.0  )) 
		EXPLODE_SMALL (p5)
	ENDIF
	IF (LOCATE_CHARACTER_ANY_MEANS ( p5  ,  209.5  , 193.5  ,  3.0  , 1.0 , 1.0  )) 
		EXPLODE_SMALL (p5)
	ENDIF
	IF (LOCATE_CHARACTER_ANY_MEANS ( p5  ,  217.5  , 197.5  ,  3.0  , 1.0 , 1.0  )) 
		EXPLODE_SMALL (p5)
	ENDIF
ENDIF
/////////////////
IF (CHECK_CHARACTER_HEALTH(p6, 0))
	IF (LOCATE_CHARACTER_ANY_MEANS ( p6  ,  205.0  , 197.0  ,  3.0  , 1.0 , 1.0  )) 
		EXPLODE_SMALL (p6)
	ENDIF
	IF (LOCATE_CHARACTER_ANY_MEANS ( p6  ,  209.5  , 193.5  ,  3.0  , 1.0 , 1.0  )) 
		EXPLODE_SMALL (p6)
	ENDIF
	IF (LOCATE_CHARACTER_ANY_MEANS ( p6  ,  217.5  , 197.5  ,  3.0  , 1.0 , 1.0  )) 
		EXPLODE_SMALL (p6)
	ENDIF
ENDIF
ENDWHILE
LEVELEND
