WiBox Posted June 28, 2018 Share Posted June 28, 2018 Hello, I was thinking if I can specify a command! example, if player used command /say it will send a message to him{example I don't want to use onPlayerChat, I want to specify if a player used a command}.. Is there a way? and thanks~ Link to comment
WiBox Posted June 28, 2018 Author Share Posted June 28, 2018 (edited) onPlayerCommand specify all command available I want to specify one command only one. Edited June 28, 2018 by SSKE Link to comment
Mr.Loki Posted June 28, 2018 Share Posted June 28, 2018 function function_name(command) if command == "say" then --code end end addEventHandler("onPlayerCommand", root, function_name) 1 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