#Paper Posted October 15, 2010 Share Posted October 15, 2010 How i can make a command: /thx And in chatbox out this: AcitanoX say thanks to Link to comment
Castillo Posted October 15, 2010 Share Posted October 15, 2010 addCommandHandler("thx", function (thePlayer, command, arg1) if (arg1 == nil ) or not getPlayerFromName (arg1) then outputChatBox ("Error: You must insert a valid player name.", thePlayer, 255, 12, 15, false) else who = getPlayerFromName(arg1) outputChatBox(getPlayerName(thePlayer) .. " say thanks to ".. getPlayerName(who) .. "",getRootElement(),0,255,0) end end ) 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