joedajoester Posted November 11, 2011 Share Posted November 11, 2011 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 Link to comment
TAPL Posted November 11, 2011 Share Posted November 11, 2011 function Jail (player, command, name) local thePlayer = getPlayerFromName(name) if thePlayer then setElementPosition ( thePlayer, 3, 4, 20 ) end end addCommandHandler("jail",Jail) Link to comment
joedajoester Posted November 11, 2011 Author Share Posted November 11, 2011 It works thank you so much Link to comment
joedajoester Posted November 11, 2011 Author Share Posted November 11, 2011 1 more thing, how would i make it so is says has been jailed? i tried it but failed... *****EDIT**** i got it Also how would i do unjail? ******EDIT**** Im so happy i did all this! i feel like im gonna get to be a good scripter soon 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