PLAYER_PED p1 = (102.5,121.5,2.0) 10 0 //Red 1042 1035
PLAYER_PED p2 = (098.5,114.5,2.0) 09 0 //Orange 1045 1038
PLAYER_PED p3 = (099.5,119.5,3.0) 07 0 //Yellow 1043 1036
PLAYER_PED p4 = (094.5,121.5,2.0) 11 0 //Green 1041 1034

COUNTER loop = 1
COUNTER gg = 1

COUNTER p1pistol = 1
COUNTER p1dual = 0
COUNTER p1shot = 0
COUNTER p1mgun = 0
COUNTER p1smgun = 0
COUNTER p1zooka = 0
COUNTER p1flame = 0
COUNTER p1ele = 0
COUNTER p1koki = 0
COUNTER p1elef = 0

COUNTER p2pistol = 1
COUNTER p2dual = 0
COUNTER p2shot = 0
COUNTER p2mgun = 0
COUNTER p2smgun = 0
COUNTER p2zooka = 0
COUNTER p2flame = 0
COUNTER p2ele = 0
COUNTER p2koki = 0
COUNTER p2elef = 0

COUNTER p3pistol = 1
COUNTER p3dual = 0
COUNTER p3shot = 0
COUNTER p3mgun = 0
COUNTER p3smgun = 0
COUNTER p3zooka = 0
COUNTER p3flame = 0
COUNTER p3ele = 0
COUNTER p3koki = 0
COUNTER p3elef = 0

ONSCREEN_COUNTER p1lvl
ONSCREEN_COUNTER p2lvl
ONSCREEN_COUNTER p3lvl

COUNTER lvlp1 = 1
COUNTER lvlp2 = 1
COUNTER lvlp3 = 1

COUNTER p1win = 0
COUNTER p2win = 0
COUNTER p3win = 0

LEVELSTART 

ADD_ONSCREEN_COUNTER  ( p1lvl , lvlp1 )
ADD_ONSCREEN_COUNTER  ( p2lvl , lvlp2 )
ADD_ONSCREEN_COUNTER  ( p3lvl , lvlp3 )

DISPLAY_MESSAGE (1032)

WHILE (loop = 1)
IF (gg = 1)

IF (p1pistol = 1)
GIVE_WEAPON (p1, PISTOL, 2)
IF(CHECK_SCORE_GREATER ( p1 , 5999 ))  
SET p1pistol = 0
DISPLAY_BRIEF (1042)
REMOVE_WEAPONS (p1)
SET p1dual = 1
ENDIF
ENDIF

IF (p1dual = 1)
SET lvlp1 = 2
GIVE_WEAPON (p1, DUAL_PISTOL, 2)
IF(CHECK_SCORE_GREATER ( p1 , 11999 ))  
SET p1dual = 0
DISPLAY_BRIEF (1042)
REMOVE_WEAPONS (p1)
SET p1shot = 1
ENDIF
ENDIF

IF (p1shot = 1)
SET lvlp1 = 3
GIVE_WEAPON (p1, SHOTGUN, 2)
IF(CHECK_SCORE_GREATER ( p1 , 17999 ))  
SET p1shot = 0
DISPLAY_BRIEF (1042)
REMOVE_WEAPONS (p1)
SET p1mgun = 1
ENDIF
ENDIF

IF (p1mgun = 1)
SET lvlp1 = 4
GIVE_WEAPON (p1, MACHINE_GUN, 2)
IF(CHECK_SCORE_GREATER ( p1 , 27999 ))  
SET p1mgun = 0
DISPLAY_BRIEF (1042)
REMOVE_WEAPONS (p1)
SET p1smgun = 1
ENDIF
ENDIF

IF (p1smgun = 1)
SET lvlp1 = 5
GIVE_WEAPON (p1, SILENCED_MACHINE_GUN, 2)
IF(CHECK_SCORE_GREATER ( p1 , 37999 ))  
SET p1smgun = 0
DISPLAY_BRIEF (1042)
REMOVE_WEAPONS (p1)
SET p1zooka = 1
ENDIF
ENDIF

IF (p1zooka = 1)
SET lvlp1 = 6
GIVE_WEAPON (p1, ROCKET_LAUNCHER, 2)
IF(CHECK_SCORE_GREATER ( p1 , 43999 ))  
SET p1zooka = 0
DISPLAY_BRIEF (1042)
REMOVE_WEAPONS (p1)
SET p1flame = 1
ENDIF
ENDIF

IF (p1flame = 1)
SET lvlp1 = 7
GIVE_WEAPON (p1, FLAME_THROWER, 5)
IF(CHECK_SCORE_GREATER ( p1 , 53999 ))  
SET p1flame = 0
DISPLAY_BRIEF (1042)
REMOVE_WEAPONS (p1)
SET p1ele = 1
ENDIF
ENDIF

IF (p1ele = 1)
SET lvlp1 = 8
GIVE_WEAPON (p1, ELECTRO_GUN, 2)
IF(CHECK_SCORE_GREATER ( p1 , 63999 ))  
SET p1ele = 0
DISPLAY_BRIEF (1042)
REMOVE_WEAPONS (p1)
SET p1koki = 1
ENDIF
ENDIF

IF (p1koki = 1)
SET lvlp1 = 9
GIVE_WEAPON (p1, MOLOTOV, 2)
IF(CHECK_SCORE_GREATER ( p1 , 66999 ))  
SET p1koki = 0
REMOVE_WEAPONS (p1)
SET p1win = 1
ENDIF
ENDIF

/////////////////////////////////////////////////////

IF (p2pistol = 1)
GIVE_WEAPON (p2, PISTOL, 2)
IF(CHECK_SCORE_GREATER ( p2 , 5999 ))  
SET p2pistol = 0
DISPLAY_BRIEF (1045)
REMOVE_WEAPONS (p2)
SET p2dual = 1
ENDIF
ENDIF

IF (p2dual = 1)
SET lvlp2 = 2
GIVE_WEAPON (p2, DUAL_PISTOL, 2)
IF(CHECK_SCORE_GREATER ( p2 , 11999 ))  
SET p2dual = 0
DISPLAY_BRIEF (1045)
REMOVE_WEAPONS (p2)
SET p2shot = 1
ENDIF
ENDIF

IF (p2shot = 1)
SET lvlp2 = 3
GIVE_WEAPON (p2, SHOTGUN, 2)
IF(CHECK_SCORE_GREATER ( p2 , 17999 ))  
SET p2shot = 0
DISPLAY_BRIEF (1045)
REMOVE_WEAPONS (p2)
SET p2mgun = 1
ENDIF
ENDIF

IF (p2mgun = 1)
SET lvlp2 = 4
GIVE_WEAPON (p2, MACHINE_GUN, 2)
IF(CHECK_SCORE_GREATER ( p2 , 27999 ))  
SET p2mgun = 0
DISPLAY_BRIEF (1045)
REMOVE_WEAPONS (p2)
SET p2smgun = 1
ENDIF
ENDIF

IF (p2smgun = 1)
SET lvlp2 = 5
GIVE_WEAPON (p2, SILENCED_MACHINE_GUN, 2)
IF(CHECK_SCORE_GREATER ( p2 , 37999 ))  
SET p2smgun = 0
DISPLAY_BRIEF (1045)
REMOVE_WEAPONS (p2)
SET p2zooka = 1
ENDIF
ENDIF

IF (p2zooka = 1)
SET lvlp2 = 6
GIVE_WEAPON (p2, ROCKET_LAUNCHER, 2)
IF(CHECK_SCORE_GREATER ( p2 , 43999 ))  
SET p2zooka = 0
DISPLAY_BRIEF (1045)
REMOVE_WEAPONS (p2)
SET p2flame = 1
ENDIF
ENDIF

IF (p2flame = 1)
SET lvlp2 = 7
GIVE_WEAPON (p2, FLAME_THROWER, 5)
IF(CHECK_SCORE_GREATER ( p2 , 53999 ))  
SET p2flame = 0
DISPLAY_BRIEF (1045)
REMOVE_WEAPONS (p2)
SET p2ele = 1
ENDIF
ENDIF

IF (p2ele = 1)
SET lvlp2 = 8
GIVE_WEAPON (p2, ELECTRO_GUN, 2)
IF(CHECK_SCORE_GREATER ( p2 , 63999 ))  
SET p2ele = 0
DISPLAY_BRIEF (1045)
REMOVE_WEAPONS (p2)
SET p2koki = 1
ENDIF
ENDIF

IF (p2koki = 1)
SET lvlp2 = 9
GIVE_WEAPON (p2, MOLOTOV, 2)
IF(CHECK_SCORE_GREATER ( p2 , 66999 ))  
SET p2koki = 0
REMOVE_WEAPONS (p2)
SET p2win = 1
ENDIF
ENDIF

/////////////////////////////////////////////////////

IF (p3pistol = 1)
GIVE_WEAPON (p3, PISTOL, 2)
IF(CHECK_SCORE_GREATER ( p3 , 5999 ))  
SET p3pistol = 0
DISPLAY_BRIEF (1045)
REMOVE_WEAPONS (p3)
SET p3dual = 1
ENDIF
ENDIF

IF (p3dual = 1)
SET lvlp3 = 2
GIVE_WEAPON (p3, DUAL_PISTOL, 2)
IF(CHECK_SCORE_GREATER ( p3 , 11999 ))  
SET p3dual = 0
DISPLAY_BRIEF (1045)
REMOVE_WEAPONS (p3)
SET p3shot = 1
ENDIF
ENDIF

IF (p3shot = 1)
SET lvlp3 = 3
GIVE_WEAPON (p3, SHOTGUN, 2)
IF(CHECK_SCORE_GREATER ( p3 , 17999 ))  
SET p3shot = 0
DISPLAY_BRIEF (1045)
REMOVE_WEAPONS (p3)
SET p3mgun = 1
ENDIF
ENDIF

IF (p3mgun = 1)
SET lvlp3 = 4
GIVE_WEAPON (p3, MACHINE_GUN, 2)
IF(CHECK_SCORE_GREATER ( p3 , 27999 ))  
SET p3mgun = 0
DISPLAY_BRIEF (1045)
REMOVE_WEAPONS (p3)
SET p3smgun = 1
ENDIF
ENDIF

IF (p3smgun = 1)
SET lvlp3 = 5
GIVE_WEAPON (p3, SILENCED_MACHINE_GUN, 2)
IF(CHECK_SCORE_GREATER ( p3 , 37999 ))  
SET p3smgun = 0
DISPLAY_BRIEF (1045)
REMOVE_WEAPONS (p3)
SET p3zooka = 1
ENDIF
ENDIF

IF (p3zooka = 1)
SET lvlp2 = 6
GIVE_WEAPON (p3, ROCKET_LAUNCHER, 2)
IF(CHECK_SCORE_GREATER ( p3 , 43999 ))  
SET p3zooka = 0
DISPLAY_BRIEF (1045)
REMOVE_WEAPONS (p3)
SET p3flame = 1
ENDIF
ENDIF

IF (p3flame = 1)
SET lvlp3 = 7
GIVE_WEAPON (p3, FLAME_THROWER, 5)
IF(CHECK_SCORE_GREATER ( p3 , 53999 ))  
SET p3flame = 0
DISPLAY_BRIEF (1045)
REMOVE_WEAPONS (p3)
SET p3ele = 1
ENDIF
ENDIF

IF (p3ele = 1)
SET lvlp3 = 8
GIVE_WEAPON (p3, ELECTRO_GUN, 2)
IF(CHECK_SCORE_GREATER ( p3 , 63999 ))  
SET p3ele = 0
DISPLAY_BRIEF (1045)
REMOVE_WEAPONS (p3)
SET p3koki = 1
ENDIF
ENDIF

IF (p3koki = 1)
SET lvlp3 = 9
GIVE_WEAPON (p3, MOLOTOV, 2)
IF(CHECK_SCORE_GREATER ( p3 , 66999 ))  
SET p3koki = 0
REMOVE_WEAPONS (p3)
SET p3win = 1
ENDIF
ENDIF

/////////////////////////////////////////////////////

IF (p1win = 1)  
CLEAR_ONSCREEN_COUNTER (p1lvl)
CLEAR_ONSCREEN_COUNTER (p2lvl)
CLEAR_ONSCREEN_COUNTER (p3lvl)
DISPLAY_MESSAGE (1035)
ADD_SCORE (p1, 100000000)
SET gg = 0
SET p2win = 0
SET p3win = 0
ENDIF

IF (p2win = 1)  
CLEAR_ONSCREEN_COUNTER (p1lvl)
CLEAR_ONSCREEN_COUNTER (p2lvl)
CLEAR_ONSCREEN_COUNTER (p3lvl)
DISPLAY_MESSAGE (1038)
ADD_SCORE (p2, 100000000)
SET gg = 0
SET p1win = 0
SET p3win = 0
ENDIF

IF (p3win = 1)  
CLEAR_ONSCREEN_COUNTER (p1lvl)
CLEAR_ONSCREEN_COUNTER (p2lvl)
CLEAR_ONSCREEN_COUNTER (p3lvl)
DISPLAY_MESSAGE (1036)
ADD_SCORE (p3, 100000000)
SET gg = 0
SET p1win = 0
SET p2win = 0
ENDIF

ENDIF
ENDWHILE
LEVELEND 
