options: #----PISTOLET-----# p-item: iron horse armor p-name: &ePistolet p-maxammo: 14 p-dmg: 4 p-odrzut: 0.2 p-ammo: gunpowder p-ammo-name: &eAmunicja do pistoletu. #-----AK-47------# ak-item: iron horse armor ak-name: &eAK-47 ak-maxammo: 30 ak-dmg: 6 ak-odrzut: 0.7 ak-ammo: gunpowder ak-ammo-name: &eAmunicja do AK-47. #------RPG-------# r-item: iron horse armor r-name: &eRPG r-maxammo: 1 r-dmg: 15 r-odrzut: 2.3 r-ammo: gunpowder r-ammo-name: &eAmunicja do RPG. #-----M4A4-------# m4-item: iron horse armor m4-name: &eM4A4 m4-maxammo: 30 m4-dmg: 5 m4-odrzut: 0.5 m4-ammo: gunpowder m4-ammo-name: &eAmunicja do M4A4. #----PISTOLET----# on right click with {@p-item}: if name of player's tool contains "{@p-item}": if {p-ammo::%player%} is greater than 0: remove 1 from {p-ammo::%player%} drawLine particle smokelarge, XYZ 0.3, 0.3, 0.3, center player, target location of target block, id "p-shoot", rainbowMode false, solid false, density 2, length 0, zigZag count 0, height 0, visibleRange 100, displacementXYZ 0, 0, 0, pulseDelay 1 set {target.%player%} to location of target block loop all living entities in radius 1 around {target.%player%}: damage loop-entity by {@p-dmg} push the player backwards at speed {@p-odrzut} set name of the player's tool to "{@p-name} &8«&6%{p-ammo::%player%}%&8»" stop on left click with {@p-item}: if name of player's tool contains "{@p-name}": if {p-ammo::%player%} is less than {@p-maxammo}: if player has {@p-ammo} named {@p-ammo-name} in inventory: remove 1 {@p-ammo} named {@p-ammo-name} from player inventory set name of the player's tool to "{@p-name} &8«&6Przeladowywanie&8»" wait 0.5 second set name of the player's tool to "{@p-name} &8«&cPrzeladowywanie&8»" wait 0.5 second set name of the player's tool to "{@p-name} &8«&4Przeladowywanie&8»" wait 0.5 second set {p-ammo::%player%} to {@p-maxammo} set name of the player's tool to "{@p-name} &8«&6%{p-ammo::%player%}%&8»" send "&aPrzeladowano!" to player stop #-----AK-47------# on right click with {@ak-item}: if name of player's tool contains "{ak-name}": if {ak-ammo::%player%} is greater than 0: remove 1 from {ak-ammo::%player%} drawLine particle smokelarge, XYZ 0.3, 0.3, 0.3, center player, target location of target block, id "ak-shoot", rainbowMode false, solid false, density 2, length 0, zigZag count 0, height 0, visibleRange 100, displacementXYZ 0, 0, 0, pulseDelay 1 set {target.%player%} to location of target block loop all living entities in radius 1 around {target.%player%}: damage loop-entity by {@ak-dmg} set name of the player's tool to "{@ak-name} &8«&6%{ak-ammo::%player%}%&8»" stop on left click with {@ak-item}: if name of player's tool contains "{@ak-name}": if {ak-ammo::%player%} is less than {@ak-maxammo}: if player has {@ak-ammo} named {@ak-ammo-name} in inventory: remove 1 {@ak-ammo} named {@ak-ammo-name} from player inventory set name of the player's tool to "{@ak-name} &8«&6Przeladowywanie&8»" wait 0.5 second set name of the player's tool to "{@ak-name} &8«&cPrzeladowywanie&8»" wait 0.5 second set name of the player's tool to "{@ak-name} &8«&4Przeladowywanie&8»" wait 0.5 second set {ak-ammo::%player%} to {@ak-maxammo} set name of the player's tool to "{@ak-name} &8«&6%{ak-ammo::%player%}%&8»" send "&aPrzeladowano!" to player stop