I have a little problem with script. It don't work correctly.
Script description:PLAYER_PED p1 = ( 136.50, 137.50, 3.00 ) 10 180
COUNTER loop = 1
LEVELSTART
WHILE_EXEC ( loop = 1 )
IF ( CHECK_CHARACTER_HEALTH ( p1 , 0 ) )
GIVE_WEAPON ( p1 , ROCKET_LAUNCHER , 10 )
ENDIF
ENDWHILE
LEVELEND
When the game started, player has 99 rockets (infinite). When he respawned, he has 10, 20, 30 ... 99 rockets (infinite again).
I want to player gets only 10 rockets.
I wait for help, thanks : )