Ответ: ZomBox 1.0
Слушай NitE я тебя понял , но перезарядка хромает
If ShotAmount=<0 And MouseHit(1) And reloading=0
PlaySound soundsing
Animate animmesh,3,5,animfir
last_shot_time2=MilliSecs()
EndIf
If KeyHit(19) And ShotAmount<50 And allShots>0 And reloading=0
reloading=1
PlaySound soundrel
Animate animmesh,3,2,animrel,5
EndIf
If ShotAmount>50
allShots=ShotAmount-50
ShotAmount=50
EndIf
bulletsneeded=Abs(ShotAmount-50)
If allShots<50 Then bulletsneeded=allShots
If reloadt=0
ShotAmount=ShotAmount+bulletsneeded
allShots=allShots-bulletsneeded
reloading=0
reloadt=reloadtime
EndIf
If reloading=1 Then reloadt=reloadt-1
Так вот, как мне здесь это реализовать? Я пробовал тут тоже через Else, но бли!!!!! не получается???
ShotAmount - кол-во патрон в рожке автомата, а allShots - общее кол - во патрон у автомата .
__________________
Самый первый и самый великий программист - это Бог.
|