Jokeℝ1472771893 Posted July 18, 2012 Posted July 18, 2012 hhm please someone can tell me the link or script where i can learn how to create /warp system(when player type /warp he spawn in some x,y,z location and he is frozen)
robhol Posted July 18, 2012 Posted July 18, 2012 addCommandHandler. setElementPosition. setElementFrozen.
TheIceman1 Posted July 18, 2012 Posted July 18, 2012 Server side: function warp() setElementPosition ( 0, 0, 0 ) setElementFrozen ( source, true ) end addCommandHandler ( "warp", warp )
BorderLine Posted July 18, 2012 Posted July 18, 2012 Server side: function warp() setElementPosition ( 0, 0, 0 ) setElementFrozen ( source, true ) end addCommandHandler ( "warp", warp ) function warp() setElementPosition ( source, 0, 0, 0 ) -- add argument eelement= source setElementFrozen ( source, true ) end addCommandHandler ( "warp", warp )
BorderLine Posted July 18, 2012 Posted July 18, 2012 type /debugscript 3 and tell us what happen.. and why you say nothing and make sure to add in meta like server side
TAPL Posted July 18, 2012 Posted July 18, 2012 function warp(player) setElementPosition ( player, 0, 0, 0 ) -- add argument eelement= source setElementFrozen ( player, true ) end addCommandHandler ( "warp", warp )
TheIceman1 Posted July 18, 2012 Posted July 18, 2012 Server side: function warp() setElementPosition ( 0, 0, 0 ) setElementFrozen ( source, true ) end addCommandHandler ( "warp", warp ) function warp() setElementPosition ( source, 0, 0, 0 ) -- add argument eelement= source setElementFrozen ( source, true ) end addCommandHandler ( "warp", warp ) Woops!I forgot it
TheIceman1 Posted July 18, 2012 Posted July 18, 2012 Try this: function warp( player, command, dimension ) setElementPosition ( player, 0, 0, 0 ) setElementFrozen ( player, true ) end addCommandHandler ( "warp", warp )
TheIceman1 Posted July 18, 2012 Posted July 18, 2012 Try this: function warp( thePlayer, command, dimension ) setElementPosition ( thePlayer, 0, 0, 0 ) setElementFrozen ( thePlayer, true ) end addCommandHandler ( "warp", warp )
TAPL Posted July 18, 2012 Posted July 18, 2012 (edited) again nothing realy? show your meta. TheIceman1@ your is same. Edited July 18, 2012 by Guest
Jokeℝ1472771893 Posted July 18, 2012 Author Posted July 18, 2012 "JokeR" name="warp" version="1.2" type="script" description="N/A" />
TAPL Posted July 18, 2012 Posted July 18, 2012 /warp working but i am not frozen your meta look fine. try it with timer function warp(player) setElementPosition(player,0,0,0) setTimer(setElementFrozen,200,1,player,true) end addCommandHandler("warp", warp)
TheIceman1 Posted July 18, 2012 Posted July 18, 2012 /warp working but i am not frozen your meta look fine. try it with timer function warp(player) setElementPosition(player,0,0,0) setTimer(setElementFrozen,200,1,player,true) end addCommandHandler("warp", warp) Its wont work! Try this: function warp( player, command, dimension ) setElementPosition(player,0,0,0) setTimer(setElementFrozen,200,1,player,true) end addCommandHandler("warp", warp) [/lua]
TAPL Posted July 18, 2012 Posted July 18, 2012 /warp working but i am not frozen your meta look fine. try it with timer function warp(player) setElementPosition(player,0,0,0) setTimer(setElementFrozen,200,1,player,true) end addCommandHandler("warp", warp) Its wont work! Try this: function warp( player, command, dimension ) setElementPosition(player,0,0,0) setTimer(setElementFrozen,200,1,player,true) end addCommandHandler("warp", warp) [/lua] lol'ed.
Callum Posted July 18, 2012 Posted July 18, 2012 function warp(source,cmd,x,y,z,interior,dimension) if not z then return end setElementFrozen(source,true) setElementPosition(source,tonumber(x),tonumber(y),tonumber(z)) if interior then setElementInterior(source,tonumber(interior)) end if dimension then setElementDimension(source,tonumber(dimension)) end setTimer(function(player) if isElement(player) then setElementFrozen(player,false) end end,3000,1,source) end addCommandHandler("warp",warp)
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