Chlorek Posted February 16, 2011 Share Posted February 16, 2011 Hi. I need little help. So, how to add command script in lua? And secound problem is how to do this command is for admins only? Plz quickly help. Link to comment
Castillo Posted February 16, 2011 Share Posted February 16, 2011 to add a command just use addCommandHandler Link to comment
Aibo Posted February 16, 2011 Share Posted February 16, 2011 well correct way would be add this command to ACL. Link to comment
eAi Posted February 16, 2011 Share Posted February 16, 2011 ... with hasObjectPermissionTo. (Removed your incorrect suggestion Solidsnake14!) Link to comment
TheGhost Posted February 17, 2011 Share Posted February 17, 2011 addCommandHandler("command", function (element, command) end ) Link to comment
Chlorek Posted February 17, 2011 Author Share Posted February 17, 2011 Yeah... it works ;D thanks for all! Link to comment
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