Jump to content

Bucr8363b

Member
  • Posts

    40
  • Joined

  • Last visited

Posts posted by Bucr8363b

  1. Hi,

    I am currently working on a gun skript for my city server.

    The following code is all running fine but for some reason when someone runs out of ammo it sends the "Out of ammo" message to everyone on the server holding the SMG.

    on rightclick:
        if player is holding gold horse armour named "&eSMG" with lore "&eShoots 1 bullet every second!":
            if player has an arrow:
                shoot arrow
                remove an arrow from player's inventory
            if player doesn't have an arrow:
                send "&c&l[WEAPONS]&c You have ran out of ammo! Pick some up or buy some more from the weapons shop at /weapons-ammo."

    It is quite annoying when people are in a duel match.

    If anyone can help me with this it would be really appreciated.

    Thank you 😄  

  2. Ahhh... Ok.

    That did help, I found out what was causing the issue. It was because I forgot I had another chatformat skript to remove the world name from chat messages. Thanks a lot though for the help guys. 😄

  3. Sure.

     

     

     

     

     

    command /anon <text>:
        trigger:
            if arg 1 is "on":
                set {chat.anon.%player%} to true
                send "&aAnonymous mode is on."
            if arg 1 is "off":
                set {chat.anon.%player%} to false
                send "&aAnonymous mode is off."
                
                
    on chat:
        if {chat.anon.%player%} is true:
            set chat format to "&0Anonymous&r > %message%"
        if {chat.anon.%player%} is false:
            set chat format to "%player% > %message%"

  4. Hi,

    I am making an Anonymous skript for my server, So when a player has Anonymous mode activated their name will appear like "&0Anonymous > %message" in chat.

    I seem to have done something incorrect but I can't find any errors.

    If you know it'll be very useful. Thanks 😄

×
×
  • Create New...