1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT??:

    You can always check our our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Respawn with kit depending on perm

Discussion in 'Skript' started by pftaaron, Mar 15, 2019.

  1. p

    pftaaron Member

    Joined:
    Mar 15, 2019
    Messages:
    2
    Likes Received:
    0
    I need help with my skript. I'm brand new to skriping and I want to learn more. I've done lots of research but I haven't found too much on permissions. My idea is that when a player respawns, it checks if they have a permission, if they don't, nothing happens. I want it to check for multiple permissions, like ranks. If a player has a rank, it runs a command to console to give them a kit when they respawn. I'm a little stuck here. I know how to read the skript, I'm not a total noob. I don't know how to cancel the "execute console" if the player doesn't have the autokit.member permission... My skript isn't working because even if the player doesn't have the permission "autokit.member", it still runs the console command.

    on respawn:
    if player has permission "autokit.member":
    execute console command "/kit dtools %player%"
     
  2. couger44

    Supporter

    Joined:
    Feb 19, 2017
    Messages:
    135
    Likes Received:
    6
    Try:
    Code (Skript):
    1.  
    2. on respawn:
    3.     if player has permission "autokit.member":
    4.         execute console command "/kit dtools %player%"
    5.     else:
    6.         stop
    7.  
     
  3. T

    TPGamesNL Well-Known Member

    Joined:
    Jan 20, 2018
    Messages:
    777
    Likes Received:
    50
    Medals:
    Could you please format your code? (CODE under the + icon or upload to haste/paste-bin)
     
  4. p

    pftaaron Member

    Joined:
    Mar 15, 2019
    Messages:
    2
    Likes Received:
    0
    thank you for this, but I think I might have the permissions messed up. Only the pex group member has the autokit.member permission, but everyone else is respawning with their kit.
     
Loading...