Jump to content

how to set World in sripting


zen13

Recommended Posts

how to set World in setElementPosition ( player, 2488, -1670, 14 )

sorry not bad englist

function tele1 (player) 
    local accountname = getAccountName(getPlayerAccount(player)) 
    if ( hasObjectPermissionTo ( player, "command.mute", true ) ) then 
    setElementPosition ( player, 2488, -1670, 14 ) 
    end 
end 
  
addCommandHandler ( "cj", tele1 ) 
function command (source)                    
end 
addCommandHandler ( "teles", command ) 
  

Link to comment
Use setElementDimension .

    function tele1 (player) 
        local accountname = getAccountName(getPlayerAccount(player)) 
        if ( hasObjectPermissionTo ( player, "command.mute", true ) ) then 
        setElementPosition ( player, 2488, -1670, 14 ) 
        [b]Use setElementDimension(player,1) [/b]    ?? 
        end 
    end 
      
    addCommandHandler ( "cj", tele1 ) 
    function command (source)                   
    end 
    addCommandHandler ( "teles", command ) 
      

Link to comment
  
   function tele1 (player) 
        local accountname = getAccountName(getPlayerAccount(player)) 
        if ( hasObjectPermissionTo ( player, "command.mute", true ) ) then 
        setElementPosition ( player, 2488, -1670, 14 ) 
        setElementDimension(player,1)   
        end 
    end 
      
    addCommandHandler ( "cj", tele1 ) 
    function command (source)                   
    end 
    addCommandHandler ( "teles", command ) 
      
  

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