Execute a variable command when mob is killed by a player

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

NunoSz

Member
May 14, 2020
2
0
0
23
on death of zombie:
add 1 to {morto::%player%}
if {morto::%player%} = 5:
set {morto::%player%} to 0
if player has permission "grupo.vip":
make console execute "p give %player% 2"
else:
make console execute "p give %player% 1"


So.... a friend of mine and i made this skript but. it always bugs And if i put the right spaces it bugs with the else and if's


unknown.png

[doublepost=1596187448,1596187349][/doublepost]i dont know why but i cant send the right code :-: with the spaces i used.... but ok
 
on death of zombie:
add 1 to {morto::%player%}
if {morto::%player%} = 5:
set {morto::%player%} to 0
if player has permission "grupo.vip":
make console execute "p give %player% 2"
else:
make console execute "p give %player% 1"


So.... a friend of mine and i made this skript but. it always bugs And if i put the right spaces it bugs with the else and if's


unknown.png

[doublepost=1596187448,1596187349][/doublepost]i dont know why but i cant send the right code :-: with the spaces i used.... but ok
The spaces / tabs must be well entered with the exact amounts. Try something like this:
code_language.skript:
on death of zombie:
    add 1 to {morto::%player%}
    if {morto::%player%} = 5:
        set {morto::%player%} to 0
        if player has permission "grupo.vip":
            make console execute "p give %player% 2"
        else if player does not have permission "grupo.vip":
            make console execute "p give %player% 1"
And I recommend that you use tabs instead of spaces.
 
Status
Not open for further replies.