So, this is my 12th or 13th try at this skript and I have had 5 different people help me with it and I have just given up. This is the first post i am doing on a forum.
command /kitsniper:
permission: guns.sniper
permission message: You can't use this
trigger:
set {sniper} to repeater named "&0Sniper"
give {sniper} to the player
give leather chestplate of protection 2 named "&0Sniper Chesplate" to the player
give leather helmet named "&0Sniper Helmet" to the player
on rightclick:
if player is holding {sniper}:
set {_waited} to difference between {sniper.%player%} and now
if {_waited} is less than 4 seconds:
send "&cYou are reloading!"
if {_waited} is more than 4 seconds:
shoot arrow from the player at speed 20
show mob spawner flames at the targeted block to the player
show smoke from fire when arrow is shot
remove effects after two seconds
variables:
{zoom.%player%} = false
on leftclick:
{zoom.%player%} = false:
player is holding {sniper}
apply slowness 40 to the player
set {zoom.%player%} to true
else:
remove slowness from player
set {zoom.%player%} to false
on join:
set {sniper.%player%} to now
command /kitsniper:
permission: guns.sniper
permission message: You can't use this
trigger:
set {sniper} to repeater named "&0Sniper"
give {sniper} to the player
give leather chestplate of protection 2 named "&0Sniper Chesplate" to the player
give leather helmet named "&0Sniper Helmet" to the player
on rightclick:
if player is holding {sniper}:
set {_waited} to difference between {sniper.%player%} and now
if {_waited} is less than 4 seconds:
send "&cYou are reloading!"
if {_waited} is more than 4 seconds:
shoot arrow from the player at speed 20
show mob spawner flames at the targeted block to the player
show smoke from fire when arrow is shot
remove effects after two seconds
variables:
{zoom.%player%} = false
on leftclick:
{zoom.%player%} = false:
player is holding {sniper}
apply slowness 40 to the player
set {zoom.%player%} to true
else:
remove slowness from player
set {zoom.%player%} to false
on join:
set {sniper.%player%} to now