xXMADEXx Posted December 23, 2012 Share Posted December 23, 2012 I am making this jail system, and when i type /jailhim xXMADEXx test, the outputChatBox will work fine, but it will not set the persons position or interior. function jail(player, cmd, prisoner, ... ) local text = table.concat({...}, " ") local nick=getPlayerName(player) local nick2=getPlayerName(prisoner) outputChatBox(prisoner .." Has Been Jailed By ".. nick .." ( ".. text .." )", root, 255, 0, 0 ) setElementPosition(nick2, 264.2540, 78.686, 101) setElementInterior(nick2, 6) end addCommandHandler("jailhim", jail) Link to comment
Vision Posted December 23, 2012 Share Posted December 23, 2012 function jail(player, cmd, prisoner, ... ) local text = table.concat({...}, " ") local nick=getPlayerName(player) local nick2=getPlayerFromName(prisoner) outputChatBox(getPlayerName(nick2) .." Has Been Jailed By ".. nick .." ( ".. text .." )", root, 255, 0, 0 ) setElementPosition(nick2, 264.2540, 78.686, 101) setElementInterior(nick2, 6) end addCommandHandler("jailhim", jail) 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