Jump to content

Help with jail system


xXMADEXx

Recommended Posts

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
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...