Jump to content

[HELP]Warp system


Recommended Posts

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
  • Other Languages Moderators
  
function warp(player) 
setElementPosition ( player, 0, 0, 0 ) -- add argument eelement= source 
setElementFrozen ( player, true ) 
end 
addCommandHandler ( "warp", warp ) 

Link to comment
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
  • Other Languages Moderators
/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
/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
  • Other Languages Moderators
/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
  
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

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