Jump to content

Teletrasportar


XxRomxX

Recommended Posts

Posted

Quisiera Saber como teletrasportar a todos los Jugadores que estén jugando en un servidor a mi posición para no estar warpeando 1x1 :| alguien sabe como hacerlo?

Posted
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 
) 

Developer @ MYVAL

Posted

Errores?

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

extraño, fijate que arroja la consola, puede que tengas errores en el meta, o que no escribiste bien el nombre del lua o etc

Actual Nick: [XGN]BorderLine

Actual Clan: XLatino

Actual Status: Staff, Mod Level 1

(BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline

  • MTA Team
Posted
Tengo una duda,Tengo que colocarlo al ACL,Porque No me funciona :|

Estas en el ACL de Admin?

DevOps Engineer, Cloud Advocate & Security Engineer(Red Team) | Coffee, Containers & Burp

 
  • MTA Team
Posted

Fijate que no este duplicado el nombre(ocea que tengas 2 resources que se llamen igual) que se encuentre el meta donde debe estar, Y reinicia el servidor

DevOps Engineer, Cloud Advocate & Security Engineer(Red Team) | Coffee, Containers & Burp

 
Posted

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 
) 

  • Recently Browsing   0 members

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