command /autogg:
permission: rank.enablegg
description: Enables auto GG.
trigger:
if player has permission: "death.ggwp" is not set:
make console execute "pex user %player% add death.ggwp"
send "&eYou have disabled auto GG."
else:
make console execute "pex user %player% remove death.ggwp"
send "&eYou have enabled auto GG."
-- I want it to add death.ggwp perm to that user and if he has it to remove it.
ERROR
--[
[ERROR] ': "death.ggwp"' is not a valid item data (player damage gg.sk, line 5: if player has permission: "death.ggwp" is not set:')
[ERROR] 'else' has to be placed just after an 'if' or 'else if' section (player damage gg.sk, line 8: else:')
]--
[doublepost=1564603786,1564603155][/doublepost]Solved.
permission: rank.enablegg
description: Enables auto GG.
trigger:
if player has permission: "death.ggwp" is not set:
make console execute "pex user %player% add death.ggwp"
send "&eYou have disabled auto GG."
else:
make console execute "pex user %player% remove death.ggwp"
send "&eYou have enabled auto GG."
-- I want it to add death.ggwp perm to that user and if he has it to remove it.
ERROR
--[
[ERROR] ': "death.ggwp"' is not a valid item data (player damage gg.sk, line 5: if player has permission: "death.ggwp" is not set:')
[ERROR] 'else' has to be placed just after an 'if' or 'else if' section (player damage gg.sk, line 8: else:')
]--
[doublepost=1564603786,1564603155][/doublepost]Solved.