TheBite Posted April 25, 2013 Share Posted April 25, 2013 Hey to all, how to disable a command like /superman for general users? I tryed to type in ace - everyone "" but normal users can type superman and fly, now? Link to comment
0 TheBite Posted May 4, 2013 Author Share Posted May 4, 2013 oh, it's because all those are bind to a command, like talking in the chat via '/say'.ok, everything works, but if you're trying to not let the player use the superman command then you would need to go to the actual script with the superman command. I'm tryed to paste this: Thanks.Try this: addEventHandler ('onPlayerCommand', root, function (cmd) outputChatBox(cmd,source) if cmd:lower() ~= 'superman' then return end outputChatBox("superman",source) if not isGuestAccount ( getPlayerAccount ( source ) ) then return end cancelEvent() end) in the admintag resource (server.lua) (why i think this resource is the problem) but nothing... Link to comment
Question
TheBite
Hey to all, how to disable a command like /superman for general users?
I tryed to type in ace - everyone "" but normal users can type superman and fly, now?
Link to comment
26 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now