if all:
projectile is a snowball
victim is an entity
then:
execute console command "lp user %victim% parent set elf"
make victim execute command "function snow:game/death"
execute console command "lp user %victim% parent remove elf"
add 5 to score of shooter for objective with id "points"
broadcast "❆--%victim% has been killed by %shooter%--❆"```
soo I was tryna make player run this function which he don't have perms to run but I gave permission from the lp group and I've removed the group after that but however it still says don't have permission to run the cmd
but the group have permissions and ig all are working fine
does anyone know why ???
and any other suggestions to do this ???
#command permission problem
1 messages · Page 1 of 1 (latest)
dont you need true in the command?
also if the console command "function snow:game/death" executes skript code, just use an actual function
why ? I've already given perms to the group elf
soo when I added someone to the group he/she can use the command
how ?
function myFunction(p: player):
give {_p} 1 stone named "Test"
command test:
trigger:
myFunction(player)```
I don't get it :0
I do know wt it used fro bt wdym by Myfunction()
That is a function
Which it seems you should probably use if I understand what youre trying to do
it's just an example of a function and how it works.
I just updated it so it also includes an example of how to use a player in the function
I've used once but I didn't remember about the usage of brackets there