#Commands Permissions
1 messages · Page 1 of 1 (latest)
Can you explain it to me?
Alr so basically you will need to get the code that lets you fly
It can be found in the main module
Then you just need to make it check for the player's rank
If its said rank then it will only let the person whocran it fly
If they are higher than the rank then they can make others fly
Alright
Id rather do this
if not args[1] == "me" then
return Functions.Hint("You can only run commands on yourself", {plr}) -- This is to notify the player that runs the command saying they can only use this on themselves
end
Other than that it should work
Hmm is not working
It looks like it overshoots that, it doesn't print it and it executes the code
Try this then
Let me know if that doesnt work
No, in fact nothing happened, it didn't even print something that it should if the code worked.
It is as if that code is not the one that executes it
I will keep searching or discovering
thats because that statement doesnt work like that
if not args[1] == "me" then
is the same as
if (not args[1]) == "me" then
Is there any way to do it?
well honestly you should be using this
well
not exactly
you would need to modify it
to work inversely
but if you want to do it that bandaid way
then it should be
if not (args[1] == "me") then
or
if args[1] ~= "me" then
actually using the playerselector restrictor in this way would require you to rework some parts of adonis
i havent the time to show you exactly how to do it
so maybe just do it the bandaid way unless someone else is able to show you what you need to change
It's strange, it seems that it doesn't work even modifying that code, it seems as if it would never save, I'll look at what you sent me to see it
oh
1 secnod
I discovered the error
What I am editing is a module already downloaded, but still adonis downloads the module from the web so it will be the web version and not the one I modify
yeah....
Where can I put the startup module so that it will start without it and I can start the customization I made?
you have to enable debug mode
alright, let me try
no you dont need to do that tho
you should be using a plugin that overrides
commands
not forking adonis
fork only when absolutely necessary
otherwise ur not gonna receive updates anymore including security fixes
the debug mode apart from not downloading the module from the web, does it bring any other problem that may interfere?