Jump to content

Teletrasportar


XxRomxX

Recommended Posts

addCommandHandler( "warpall", 
    function( thePlayer ) 
        if isObjectInACLGroup( "user."..getAccountName( getPlayerAccount( thePlayer ) ), aclGetGroup( "Admin" ) ) then 
            local x, y, z = getElementPosition( thePlayer ) 
            for k, i in ipairs ( getElementsByType( "player" ) ) do 
                if not i == thePlayer then 
                    setElementPosition( i, x+math.random( 1, 4 ), y+math.random( 1, 4 ), z + 0.8, true ) 
                end 
            end 
        end 
    end 
) 

Link to comment

Asi tengo el lua

addCommandHandler( "warpall", 
    function( thePlayer ) 
        if isObjectInACLGroup( "user."..getAccountName( getPlayerAccount( thePlayer ) ), aclGetGroup( "Admin" ) ) then 
            local x, y, z = getElementPosition( thePlayer ) 
            for k, i in ipairs ( getElementsByType( "player" ) ) do 
                if not i == thePlayer then 
                    setElementPosition( i, x+math.random( 1, 4 ), y+math.random( 1, 4 ), z + 0.8, true ) 
                end 
            end 
        end 
    end 
) 

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...