when i use this code it gives the right gun to the player who did /start but everyone else gets a pistol only
Code:
command /start:
cooldown : 1 minute
cooldown message: "please wait to start"
trigger:
kill all arrows
remove all arrow from player
remove all diamond horse armor from players
remove all golden horse armor from players
remove all iron horse armor from players
teleport all players to location (-16.7, 59, 5.3)
wait 200 ticks
give all players iron horse armor named "&7Pistol"
player has permission "{ak}":
wait 3 ticks
give player golden horse armor named "&6Ak-47"
player has permission "{op}":
wait 3 ticks
give player diamond horse armor named "&bShotGun"
player has permission "{SR}":
wait 3 ticks
give player diamond horse armor named "&2Sniper Rifle"