Jump to content

spawn kit not working


gm6rh

Recommended Posts

i am trying to make a skript where when you spawn, depending on what permission you have.

 

on spawn:
    loop all players:
        loop-player has permission "prisoner":
            execute console command "/kit prisoner %player%"
        loop-player has permission "guard":
            execute console command "/kit guard %player%"

 

i dont know why, but whenever i have either of those permissions, it doesnt even show up in console that it ran the kit command. can someone tell me how to fix it?

Link to comment
Share on other sites

On 7/7/2022 at 1:27 PM, gm6rh said:

i am trying to make a skript where when you spawn, depending on what permission you have.

 

on spawn:
    loop all players:
        loop-player has permission "prisoner":
            execute console command "/kit prisoner %player%"
        loop-player has permission "guard":
            execute console command "/kit guard %player%"

 

i dont know why, but whenever i have either of those permissions, it doesnt even show up in console that it ran the kit command. can someone tell me how to fix it?

For the respawn part:

on respawn:
    player has permission "prisoner":
        execute console command "/kit prisoner %player%" # You can also make this: make the player say "/kit prisoner"
    player has permission "guard":
        execute console command "/kit guard %player%" # You can also make this: make the player say "/kit guard"

For the join part: (also if you don't need any of the events, tell me because I just guessed if you wanted join or respawn)

on join:
    player has permission "prisoner":
        execute console command "/kit prisoner %player%" # You can also make this: make the player say "/kit prisoner"
    player has permission "guard":
        execute console command "/kit guard %player%" # You can also make this: make the player say "/kit guard
Edited by SIG12
Link to comment
Share on other sites

On 7/10/2022 at 10:33 AM, SIG12 said:

For the respawn part:

on respawn:
    player has permission "prisoner":
        execute console command "/kit prisoner %player%" # You can also make this: make the player say "/kit prisoner"
    player has permission "guard":
        execute console command "/kit guard %player%" # You can also make this: make the player say "/kit guard"

For the join part: (also if you don't need any of the events, tell me because I just guessed if you wanted join or respawn)

on join:
    player has permission "prisoner":
        execute console command "/kit prisoner %player%" # You can also make this: make the player say "/kit prisoner"
    player has permission "guard":
        execute console command "/kit guard %player%" # You can also make this: make the player say "/kit guard

Totally un-necessaray but how'd you make those code blocks also display in a Skript format?

 

Link to comment
Share on other sites

4 hours ago, Relly said:

Totally un-necessaray but how'd you make those code blocks also display in a Skript format?

 

They probably picked something that was similar to skript and used it

Player Stats

IGN - ES63

Rank - Pro

----------------------

Server Stats

RascalPVP - Owner

RandKits - Owner

DoodySim - Owner

-----------------------

066fced7fa2c6eb28ff57c203964a6d3.gif.45df2fe64e40c8d045324e2a6203c1c6.gif

do that ^^^^

i will heart back (i promise)

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...