Help

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

HetIsLotfy

Member
Aug 17, 2020
1
0
1
23
hello i make some tazer Skript but I have if you shoot a snowball on a player than he need to remove 1 from a variable but he doesn't work this is my code

options:
logo: &f[&9Tazer&f]
on first join:
if {tazer::%player%} is not set:
set {tazer::%player%} to "5"
on join:
if {tazer::%player%} is not set:
set {tazer::%player%} to "5"
command /tazer [<text>] [<player>]:
trigger:
if arg-1 is "krijg":
give player iron hoe named "&8Tazer"
send "{@logo} &7Tazer ontvangen"
if arg-1 is "reload":
if player has permission "tazer.reload" or "tazer.*":
if arg-2 is set:
set {tazer::%arg-2%} to "5"
send "{@logo} &7Tazer Reload"
if arg-2 is not set:
set {tazer::%player%} to "5"
send "{@logo} &7Tazer Reload"
if arg-1 is "huts":
send "%{tazer::%player%}%"
on right click:
player is holding iron hoe named "&8Tazer"
cancel event
if {tazer::%player%} is "1" or "2" or "3" or "4" or "5":
remove 1 from {tazer::%player%}
shoot a snowball from player at speed 1
remove 1 from {tazer::%player%}
send "&9Ammo: &a%{tazer::%player%}%&f/&c5"
else:
send "&9Ammo: &a%{tazer::%player%}%&f/&c5 &4Reload je tazer"
on left click:
player is holding iron hoe named "&8Tazer"
send "&9Ammo: &a%{tazer::%player%}%&f/&c5"
 
Status
Not open for further replies.