//Aztec Nextlaualli

//map by Mr banny, Script by Elypter

// Players
PLAYER_PED p1 = (85.7, 136.0, 255.0) 10 205
PLAYER_PED p2 = (112.6, 114.8, 255.0) 11 205
PLAYER_PED p3 = (82.8, 115.4, 255.0) 12 135
PLAYER_PED p4 = (95.1, 106.2, 255.0) 13 305
PLAYER_PED p5 = (80.8, 121.0, 255.0) 14 10
PLAYER_PED p6 = (98.2, 105.8, 255.0) 14 80

PARKED_CAR_DATA car1 = (83.3, 119.2) 31 155 STRIPETB
PARKED_CAR_DATA car2 = (96.6, 104.7) 9 290 WBTWIN

GENERATOR pistol1 = (89.5, 116.5) 0 COLLECT_00 1500 1500 50
GENERATOR pistol2 = (119.0, 127.0) 0 COLLECT_00 1500 1500 50
GENERATOR pistol3 = (111.5, 121.5) 0 COLLECT_00 1500 1500 50
GENERATOR pistol4 = (114.0, 140.0) 0 COLLECT_00 1500 1500 50
GENERATOR pistol5 = (93.5, 136.5) 0 COLLECT_00 1500 1500 50
GENERATOR molotov1 = (106.0, 134.0) 0 COLLECT_04 1500 1500 5
GENERATOR molotov2 = (123.0, 150.0) 0 COLLECT_04 1500 1500 5
GENERATOR molotov3 = (85.5, 140.0) 0 COLLECT_04 1500 1500 5
GENERATOR molotov4 = (72.5, 125.5) 0 COLLECT_04 1500 1500 5
GENERATOR grenade1 = (123.0, 131.0, 2.5) 0 COLLECT_05 1500 1500 20
GENERATOR grenade2 = (97.0, 117.0) 0 COLLECT_05 1500 1500 20
GENERATOR grenade3 = (101.5, 140.0, 2.5) 0 COLLECT_05 1500 1500 20
GENERATOR grenade4 = (101.5, 127.0) 0 COLLECT_05 1500 1500 20
GENERATOR shotgun1 = (120.8, 119.0) 0 COLLECT_06 1500 1500 10
GENERATOR shotgun2 = (75.5, 144.5) 0 COLLECT_06 1500 1500 10
GENERATOR shotgun3 = (78.5, 113.0) 0 COLLECT_06 1500 1500 10
GENERATOR dual1 = (67.5, 123.5) 0 COLLECT_10 1500 1500 10
GENERATOR dual2 = (130.5, 151.5) 0 COLLECT_10 1500 1500 10
GENERATOR dual3 = (106.5, 92.5) 0 COLLECT_10 1500 1500 10

GENERATOR health1 = (92.0, 106.0) 0 COLLECT_30 1500 1500 -1
GENERATOR health2 = (95.5, 142.7, 2.0) 0 COLLECT_30 1500 1500 -1
GENERATOR health3 = (106.0, 120.0, 3.0) 0 COLLECT_30 1500 1500 -1
GENERATOR armour = (61.5, 125.5, 2.0) 0 COLLECT_31 1500 1500 -1
GENERATOR ddamage1 = (118.8, 117.2) 0 COLLECT_35 1500 1500 -1
GENERATOR ddamage2 = (76.0, 143.5) 0 COLLECT_35 1500 1500 -1
GENERATOR freload1 = (76.0, 145.5) 0 COLLECT_36 1500 1500 -1
GENERATOR freload2 = (120.2, 117.7) 0 COLLECT_36 1500 1500 -1
GENERATOR fingers = (78.0, 114.0) 0 COLLECT_37 1500 1500 -1
GENERATOR gang1 = (108.5, 138.5) 0 COLLECT_40 1500 1500 -1
GENERATOR gang2 = (102.5, 113.0) 0 COLLECT_40 1500 1500 -1
GENERATOR gang3 = (114.5, 125.0) 0 COLLECT_40 1500 1500 -1
GENERATOR gang4 = (122.5, 137.0) 0 COLLECT_40 1500 1500 -1

GENERATOR oil = (126.0, 126.0) 0 COLLECT_16 1500 1500 5
GENERATOR mine = (78.5, 150.5) 0 COLLECT_17 1500 1500 5
GENERATOR bomb = (100.5, 147.5) 0 COLLECT_15 1500 1500 1

GENERATOR mg = (97.5, 122.0) 0 COLLECT_01 1500 1500 15

OBJ_DATA rocket = (88.0, 110.0) 0 COLLECT_02 15
OBJ_DATA flame = (106.5, 107.5) 0 COLLECT_08 15
OBJ_DATA electro = (82.5, 128.5) 0 COLLECT_03 15


OBJ_DATA paintshop = (122.5, 119.0, 3.0) 0 CAR_SHOP 28


OBJ_DATA TOWER1 = (113.2, 122.8, 5.0) 0 TOWER
//DELETED// OBJ_DATA TOWER2 = (118.9, 138.8, 6.1) 0 TOWER
OBJ_DATA TOWER3 = (120.2, 137.8, 6.1) 0 TOWER
OBJ_DATA TOWER4 = (118.2, 137.8, 6.1) 0 TOWER
OBJ_DATA TOWER5 = (119.2, 135.8, 6.4) 0 TOWER
OBJ_DATA TOWER6 = (115.2, 122.8, 5.0) 0 TOWER

COUNTER mainloop = 1
COUNTER firstrun = 0

LEVELSTART

WHILE_EXEC ( mainloop = 1 )

	//{ //firstrun
	IF ( firstrun = 0)
		SET_AMBIENT_LEVEL (0.4, 0)
		DECLARE_POLICELEVEL (6)

		//{ //generator
		SWITCH_GENERATOR (pistol1, ON)
		SWITCH_GENERATOR (pistol2, ON)
		SWITCH_GENERATOR (pistol3, ON)
		SWITCH_GENERATOR (pistol4, ON)
		SWITCH_GENERATOR (pistol5, ON)
		SWITCH_GENERATOR (molotov1, ON)
		SWITCH_GENERATOR (molotov2, ON)
		SWITCH_GENERATOR (molotov3, ON)
		SWITCH_GENERATOR (molotov4, ON)
		SWITCH_GENERATOR (grenade1, ON)
		SWITCH_GENERATOR (grenade2, ON)
		SWITCH_GENERATOR (grenade3, ON)
		SWITCH_GENERATOR (grenade4, ON)
		SWITCH_GENERATOR (shotgun1, ON)
		SWITCH_GENERATOR (shotgun2, ON)
		SWITCH_GENERATOR (shotgun3, ON)
		SWITCH_GENERATOR (dual1, ON)
		SWITCH_GENERATOR (dual2, ON)
		SWITCH_GENERATOR (dual3, ON)

		SWITCH_GENERATOR (health1, ON)
		SWITCH_GENERATOR (health2, ON)
		SWITCH_GENERATOR (health3, ON)
		SWITCH_GENERATOR (armour, ON)
		SWITCH_GENERATOR (ddamage1, ON)
		SWITCH_GENERATOR (ddamage2, ON)
		SWITCH_GENERATOR (freload1, ON)
		SWITCH_GENERATOR (freload2, ON)
		SWITCH_GENERATOR (fingers, ON)
		SWITCH_GENERATOR (gang1, ON)
		SWITCH_GENERATOR (gang2, ON)
		SWITCH_GENERATOR (gang3, ON)
		SWITCH_GENERATOR (gang4, ON)

		SWITCH_GENERATOR (oil, ON)
		SWITCH_GENERATOR (mine, ON)
		SWITCH_GENERATOR (bomb, ON)

		SWITCH_GENERATOR (mg, ON)
		//}

		SET firstrun = 1
	ENDIF
	//}

	IF (CHECK_CHARACTER_HEALTH(p1, 0))
		ADD_SCORE(p1,1)
	ENDIF

ENDWHILE

LEVELEND
