Kill Counter with Permission

  • 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!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

MaxRub

Member
Oct 5, 2019
3
0
0
26
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:
on death of player:
    attacker is a player:
        if {topkill::enableplugin::*} = 1:
            add 1 to {topkill::kill::%attacker%}
            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
 
Ich kann Deutsch und die Anfrage macht immer noch keinen Sinn.
 
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.
 
Ich habe es nicht probiert aber es soll gehen. Versuch's mal hiermit:

Code:
on death of player:
    attacker is a player:
        if victim is a player:
            if attacker has the permission "DEINE.PERMISSION":
                if {topkill::enableplugin::*} = 1:
                    add 1 to {topkill::kill::%attacker%}
                    add 1 to {topkill::death::%victim%}
 
Status
Not open for further replies.