Jokeℝ1472771893 Posted July 18, 2012 Share 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) Link to comment
robhol Posted July 18, 2012 Share Posted July 18, 2012 addCommandHandler. setElementPosition. setElementFrozen. Link to comment
TheIceman1 Posted July 18, 2012 Share Posted July 18, 2012 Server side: function warp() setElementPosition ( 0, 0, 0 ) setElementFrozen ( source, true ) end addCommandHandler ( "warp", warp ) Link to comment
Jokeℝ1472771893 Posted July 18, 2012 Author Share Posted July 18, 2012 hhm nothing it's don't work Link to comment
BorderLine Posted July 18, 2012 Share 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 ) Link to comment
Jokeℝ1472771893 Posted July 18, 2012 Author Share Posted July 18, 2012 hm again nothing Link to comment
BorderLine Posted July 18, 2012 Share 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 Link to comment
TAPL Posted July 18, 2012 Share Posted July 18, 2012 function warp(player) setElementPosition ( player, 0, 0, 0 ) -- add argument eelement= source setElementFrozen ( player, true ) end addCommandHandler ( "warp", warp ) Link to comment
TheIceman1 Posted July 18, 2012 Share 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 Link to comment
TheIceman1 Posted July 18, 2012 Share Posted July 18, 2012 Try this: function warp( player, command, dimension ) setElementPosition ( player, 0, 0, 0 ) setElementFrozen ( player, true ) end addCommandHandler ( "warp", warp ) Link to comment
Jokeℝ1472771893 Posted July 18, 2012 Author Share Posted July 18, 2012 problem is Frozen element Link to comment
TheIceman1 Posted July 18, 2012 Share Posted July 18, 2012 Try this: function warp( thePlayer, command, dimension ) setElementPosition ( thePlayer, 0, 0, 0 ) setElementFrozen ( thePlayer, true ) end addCommandHandler ( "warp", warp ) Link to comment
TAPL Posted July 18, 2012 Share Posted July 18, 2012 (edited) again nothing realy? show your meta. TheIceman1@ your is same. Edited July 18, 2012 by Guest Link to comment
Jokeℝ1472771893 Posted July 18, 2012 Author Share Posted July 18, 2012 /warp working but i am not frozen Link to comment
Jokeℝ1472771893 Posted July 18, 2012 Author Share Posted July 18, 2012 "JokeR" name="warp" version="1.2" type="script" description="N/A" /> Link to comment
TAPL Posted July 18, 2012 Share 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) Link to comment
TheIceman1 Posted July 18, 2012 Share 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] Link to comment
TAPL Posted July 18, 2012 Share 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. Link to comment
Callum Posted July 18, 2012 Share 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) 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