Jump to content

help


joedajoester

Recommended Posts

Posted

This script doesnt work, i need to teleportsomeone to the jail when someone types, /jail .

    function jail (player, command) 
setElementPosition ( player, thePlayer, 3, 4, 20 ) 
addCommandHandler ( "jail", jail) 
    end 

I get no error in console soo this is a tough one ;D

Posted
function Jail (player, command, name) 
local thePlayer = getPlayerFromName(name) 
     if thePlayer then 
     setElementPosition ( thePlayer, 3, 4, 20 ) 
     end 
end 
addCommandHandler("jail",Jail) 

Posted

1 more thing, how would i make it so is says has been jailed? i tried it but failed...

*****EDIT**** i got it :D

Also how would i do unjail?

******EDIT**** Im so happy :D i did all this! i feel like im gonna get to be a good scripter soon :D

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