on join: set {ammo.handgun::%player%} to 8 set {ammo.ak47::%player%} to 30 set {ammo.m4a1::%player%} to 35 set {ammo.reloading::%player%} to false on right click: if player's tool is wood hoe: if {ammo.handgun::%player%} isn't 0: if {ammo.reloading::%player%} is false: remove 1 from {ammo.handgun::%player%} shoot arrow from player with speed 5 send "&2* &aPozostalo amunicji: &6%{ammo.handgun::%player%}%" else: send "&4* &cBrak amunicji" if player's tool is iron hoe: if {ammo.ak47::%player%} isn't 0: if {ammo.reloading::%player%} is false: remove 1 from {ammo.ak47::%player%} shoot arrow from player with speed 7 send "&2* &aPozostalo amunicji: &6%{ammo.ak47::%player%}%" else: send "&4* &cBrak amunicji" if player's tool is diamond hoe: if {ammo.m4a1::%player%} isn't 0: if {ammo.reloading::%player%} is false: remove 1 from {ammo.m4a1::%player%} shoot arrow from player with speed 7 send "&2* &aPozostalo amunicji: &6%{ammo.m4a1::%player%}%" else: send "&4* &cBrak amunicji" on left click: # ----[ Pistolet ]----- if player's tool is wood hoe: if {ammo.handgun::%player%} isn't 8: if {ammo.reloading::%player%} is false: send "&6* &ePrzeladowywanie pistoletu..." set {ammo.reloading::%player%} to true wait 3 seconds set {ammo.handgun::%player%} to 8 set {ammo.reloading::%player%} to false send "&6* &ePrzeladowano pistolet!" else: send "&4* &cAktualnie przeladowujesz bron!" else: send "&4* &cMasz pelny magazynek!" # ----[ AK47 ]----- if player's tool is iron hoe: if {ammo.ak47::%player%} isn't 30: if {ammo.reloading::%player%} is false: send "&6* &ePrzeladowywanie AK47..." set {ammo.reloading::%player%} to true wait 5 seconds set {ammo.ak47::%player%} to 30 set {ammo.reloading::%player%} to false send "&6* &ePrzeladowano AK47!" else: send "&4* &cAktualnie przeladowujesz bron!" else: send "&4* &cMasz pelny magazynek!" # ----[ M4A1 ]----- if player's tool is diamond hoe: if {ammo.m4a1::%player%} isn't 35: if {ammo.reloading::%player%} is false: send "&6* &ePrzeladowywanie M4A1..." set {ammo.reloading::%player%} to true wait 5 seconds set {ammo.m4a1::%player%} to 35 set {ammo.reloading::%player%} to false send "&6* &ePrzeladowano M4A1!" else: send "&4* &cAktualnie przeladowujesz bron!" else: send "&4* &cMasz pelny magazynek!" on damage: if damage cause is arrow: if attacker's tool is wood hoe: cancel event damage victim by 2 hearts if attacker's tool is iron hoe: cancel event damage victim by 3 hearts if attacker's tool is diamond hoe: cancel event damage victim by 4 hearts