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.

Kill Counter with Permission

Discussion in 'Skript' started by MaxRub, Oct 5, 2019.

  1. MaxRub

    MaxRub Member

    Joined:
    Oct 5, 2019
    Messages:
    3
    Likes Received:
    0
    Skript Version: Skript 2.4-beta8
    Minecraft Version: 1.14.4

    English:
    Hello I'm just here when programming not continue. I want someone who has a certain permission to kill someone who goes up a counter. That works with the counter already. I just do not know how to set this with the permission, I've tried a lot but nothing worked.

    German:
    Hallo ich komme hier grade beim Programmieren nicht weiter.
    Ich will wenn jemand mit einer bestimmten Permission jemanden killt das ein counter hoch geht.
    Das mit dem Counter funktioniert auch schon. Ich weiß nur nicht wie man das mit der Permission einstellt, ich habe schon einiges versucht aber nix hat funktioniert.

    Code (Text):
    1. on death of player:
    2.     attacker is a player:
    3.         if {topkill::enableplugin::*} = 1:
    4.             add 1 to {topkill::kill::%attacker%}
    5.             add 1 to {topkill::death::%victim%}
    Thanks for any Help!

    Sorry for my bad English, i'am German.

    Addons:
    SkRayFall 1.9.18, SkQuery 4.1.1, MorkazSk,

    Troubleshooting:

    Have you tried searching the docs? Yes
    Have you tried searching the forums? Yes
     
  2. H3A

    H3A Active Member

    Joined:
    Aug 19, 2019
    Messages:
    30
    Likes Received:
    1
    Ich kann Deutsch und die Anfrage macht immer noch keinen Sinn.
     
  3. MaxRub

    MaxRub Member

    Joined:
    Oct 5, 2019
    Messages:
    3
    Likes Received:
    0
    Sry, wenn es etwas unverständlich ist. Ich möchte wenn eine Person die eine bestimmte permission hat, jemanden Killt. Das dann ein Counter hoch geht.

    Die Person die keine Permission hat, wird nicht gezählt.
     
  4. GamingHard

    GamingHard Member

    Joined:
    Oct 5, 2019
    Messages:
    17
    Likes Received:
    0
    Ich habe es nicht probiert aber es soll gehen. Versuch's mal hiermit:

    Code (Text):
    1. on death of player:
    2.     attacker is a player:
    3.         if victim is a player:
    4.             if attacker has the permission "DEINE.PERMISSION":
    5.                 if {topkill::enableplugin::*} = 1:
    6.                     add 1 to {topkill::kill::%attacker%}
    7.                     add 1 to {topkill::death::%victim%}
     
  5. MaxRub

    MaxRub Member

    Joined:
    Oct 5, 2019
    Messages:
    3
    Likes Received:
    0
    Herzlichen Dank, es funktioniert <3
     
Loading...