SHARE
TWEET

Untitled

a guest Dec 14th, 2019 98 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #
  2. # Version: 1.0
  3. # Author: Banane767
  4. # Made for lauchgame on fiverr
  5. #
  6.  
  7. command /getweapon:
  8.     trigger:    
  9.         set {bc.r0.ammo.%player%} to 32
  10.         set {bc.r0.leftammo.%player%} to 128
  11.         set {no.ammo.r0.%player%} to 0
  12.         set {reloading.%player%} to 0
  13.         give player 1 diamond horse armor named "&cM16 &8| &7%{bc.r0.ammo.%player%}%/%{bc.r0.leftammo.%player%}%"
  14.        
  15. on right click:
  16.     if player is holding a diamond horse armor named "&cM16 &8| &7%{bc.r0.ammo.%player%}%/%{bc.r0.leftammo.%player%}%":
  17.         if {no.ammo.r0.%player%} is 0:
  18.             shoot arrow from player's head at speed 2
  19.             set {bc.type.%last shot arrow%} to 1
  20.             set {bc.r0.ammo.%player%} to {bc.r0.ammo.%player%} - 1
  21.             set the name of the player's tool to "&cM16 &8| &7%{bc.r0.ammo.%player%}%/%{bc.r0.leftammo.%player%}%"
  22.             if {bc.r0.ammo.%player%} is 0:
  23.                 if {bc.r0.leftammo.%player%} is 0:
  24.                     set {no.ammo.r0.%player%} to 1
  25.                     set {reloading.%player%} to 0
  26.                 else:
  27.                     set {reloading.%player%} to true
  28.                     message ""
  29.                     message "&8» &cWaffe leer! Waffe wird neugeladen..."
  30.                     set the name of the player's tool to "&8» &7Neuladen..."
  31.                     wait 20 ticks
  32.                     message "&8» &cWaffe leer! Waffe wird neugeladen.."
  33.                     set the name of the player's tool to "&8» &7Neuladen.."
  34.                     wait 20 ticks
  35.                     message "&8» &cWaffe leer! Waffe wird neugeladen."
  36.                     set the name of the player's tool to "&8» &7Neuladen."
  37.                     wait 20 ticks
  38.                     message "&8» &7Waffe wurde neugeladen!"
  39.                     set {bc.r0.leftammo.%player%} to {bc.r0.leftammo.%player%} - 32
  40.                     set {bc.r0.ammo.%player%} to 32
  41.                     set the name of the player's tool to "&cM16 &8| &7%{bc.r0.ammo.%player%}%/%{bc.r0.leftammo.%player%}%"
  42.                     set {reloading.%player%} to 0
  43.             wait 8 ticks
  44.         else:
  45.             message ""
  46.             message "&8» &cDu hast keine Munition mehr!"
  47.             message "&8» &7Einfach mit Rechtsklick wieder auffüllen!"
  48.             message ""
  49.  
  50. on left click:
  51.     if player has 32 of arrow:
  52.         message ""
  53.         message "&8» &cDu hast deine Munition um 32 aufgefüllt!"
  54.         message ""
  55.         remove 32 of arrow from players's inventory
  56.         set {bc.r0.leftammo.%player%} to {bc.r0.leftammo.%player%} + 32
  57.         set the name of the player's tool to "&cM16 &8| &7%{bc.r0.ammo.%player%}%/%{bc.r0.leftammo.%player%}%"
  58.     else:
  59.         message ""
  60.         message "&8» &cDu benötigst 32 Pfeile, um deine Munition auffüllen zu können."
  61.         message "&8» &cTipp: &7Mit Rechtsklick kannst du schießen!"
  62.         message ""
  63.        
  64.  
  65. on pickup:
  66.     if event-item is arrow:
  67.         cancel event
  68.        
  69. on projectile hit:
  70.     if projectile is an arrow:
  71.         delete projectile
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top