/* Block Fort by wario5
modded by Sektor GTAMP.com 30/05/09 */

//	        N=180
//W=270--------|---------E=90
//            S=0

// PLAYERS
PLAYER_PED p1 = (112.0, 143.0, 2.0) 10  90  // Red 1 bottom centre
PLAYER_PED p2 = (113.0,  68.5, 2.0) 09   0  // Orange 2 top centre
PLAYER_PED p3 = (136.5, 106.5, 2.0) 11 270  // Green 3 right centre
PLAYER_PED p4 = ( 87.5, 106.5, 2.0) 13  90  // Blue 4 left centre
PLAYER_PED p5 = (139.5,  68.5, 2.0) 07   0  // Yellow 5 top right
PLAYER_PED p6 = ( 85.5, 143.5, 2.0) 08 180  // Black 6 bottom left

CAR_DATA p1car

COUNTER loop = 1

LEVELSTART

WHILE_EXEC (loop = 1)

GIVE_WEAPON (p1, rocket_launcher)
GIVE_WEAPON (p1, flame_thrower)
GIVE_WEAPON (p1, machine_gun)

IF (IS_CHAR_FIRING_ONSCREEN (p1))
WARP_FROM_CAR_TO_POINT (p1 , 112.0, 143.0, 2.0, 90)
SET_ALL_CONTROLS_STATUS (p1 , off)
ELSE
SET_ALL_CONTROLS_STATUS (p1 , on)
ENDIF

IF (IS_CHARACTER_IN_ANY_CAR (p1))
STORE_CAR_CHARACTER_IS_IN (p1, p1car)
GIVE_WEAPON (p1car, car_machine_gun)
IF (IS_CHAR_FIRING_ONSCREEN (p1))
WARP_FROM_CAR_TO_POINT (p1 , 112.0, 143.0, 2.0, 90)
//SET_ALL_CONTROLS_STATUS (p1 , off)
ENDIF
ENDIF

ENDWHILE

LEVELEND
