Solved In-game kill effect switcher

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

OrangeCanadian

Active Member
Aug 2, 2017
72
0
6
Hello there! I'm i need of some help. So Here is my Skript code, but when i give the permission to someone the person gets both Potion and the Goldenapple please help me fix this issue. :emoji_slight_smile:

on death of player:
victim is a player:
attacker is a player:
player has permission "apple.me"
execute player command "give %attacker% golden_apple 1 "

on death of player:
victim is a player:
attacker is a player:
player has permission "pot.me"
execute console command "give %attacker% potion:16421 1"
[doublepost=1522836348,1522834934][/doublepost]It's supposed to give the Killer one of the selected buff. (In-game in the GUI)
 
Is the person you OP? Because an OP will technically have ALL permissions, therefor they will get both.
I have run into this type of error when testing, If its you, make sure to DE-OP yourself during testing
 
I think i found the issue.
[doublepost=1522838957,1522838909][/doublepost]Ohh Thanks let me see.

_OrangeCanadian#6045 Is my discord if you want to chat their. (This is complicated)
 
And is it possible to create a skript were when the player kills someone, is has a chance to run a command?
[doublepost=1522839509,1522839465][/doublepost]Im getting a friend on my server give me like 5 minutes. (If you can)
 
yeah totally

code_language.skript:
on death of player:
    attacker is a players
    chance of 10%:
        execute console command "command here"
 
and thanks
[doublepost=1522840011,1522839972][/doublepost]Now on kill i get nothing. But the permissions are added to the player... This is soo complicated
 
This is very strange. The permissions get added to the player in the GUI. Then when i kill a player it doesn't give me anything
 
on death of player:
victim is a player:
attacker is a player:
player has permission "apple.me"
execute player command "give %attacker% golden_apple 1 "

on death of player:
victim is a player:
attacker is a player:
player has permission "pot.me"
execute console command "give %attacker% potion:16421 1"
 
wow were back to this again..... i already told you how to edit this code and you didn't.
player has permission "pot.me"
needs to be
attacker has permission "pot.me"
 
You said needs to be
"victim has permission "pot.me""
earlier but ok>

on death of player:
victim is a player:
attacker is a player:
attacker has permission "apple.me"
execute player command "give %attacker% golden_apple 1 "

on death of player:
victim is a player:
attacker is a player:
attacker has permission "pot.me"
execute console command "give %attacker% potion:16421 1"
[doublepost=1522840873,1522840825][/doublepost]This is soo confusing to chat in this. You get the wrong messages at the wrong time...
 
Yeah it can be confusing, anyways its working now?
I gotta head to bed here, (super late)
But if you need more help i can help you in the morning!
If this is working, please make sure to mark it as solved
 
Status
Not open for further replies.