Jump to content

ayuda con puerta automatica plis


maria_artemisa

Recommended Posts

Posted (edited)

hola por favor ayúdenme con esta puerta automática en verdad la saque de una pagina pero solo es para clanes y quiero cambiarla para todo tipo de user espero que me ayuden por favor este es el .lua 

 

objeto = createObject ( 975, -2469.1000976563, -616.70001220703, 133.19999694824, 0, 0, 271.99951171875 )
x,y,z = getElementPosition (objeto)
Zona = createColCircle ( -2469.1000976563,-616.70001220703, 5, 5 )

function Funcion (source)
if ( getElementData ( source, "gang" ) == "NOMBRE-CLAN" ) then
        moveObject ( objeto, 6000,  -2469.3000488281, -616.70001220703, 133.19999694824, 0, 0, 271.99951171875 )
    outputChatBox ( "Bienvenido", source, 0, 255, 0, true )
    else
    outputChatBox ( "Tu no eres del clan!", source, 255, 0, 0, true )
end
end
addEventHandler ( "onColShapeHit", Zona, Funcion )

function Funcion2 ()
        moveObject ( objeto, 6000,  -2469.1000976563, -616.70001220703, 133.19999694824, 0, 0, 0 )
        outputChatBox ( "Abandonando Base!", source, 0, 255, 0, true )
end
addEventHandler ( "onColShapeLeave", Zona, Funcion2 )

 

ayudenme porfa, gracias.

Edited by maria_artemisa
Posted

Make the question English or move it to the board of your language.

Kind regards

"If debugging is the process of removing software bugs, then programming must be the process of putting them in."

Posted

Post in spanish section: https://forum.multitheftauto.com/forum/99-spanish-español/

Postea en la sección español: https://forum.multitheftauto.com/forum/99-spanish-español/

The solution to your problem / la solución a tu problema:

objeto = createObject ( 975, -2469.1000976563, -616.70001220703, 133.19999694824, 0, 0, 271.99951171875 )

Zona = createColCircle ( -2469.1000976563,-616.70001220703, 5, 5 )

function Funcion (source)
    moveObject ( objeto, 6000,  -2469.3000488281, -616.70001220703, 133.19999694824, 0, 0, 271.99951171875 )
    outputChatBox ( "Bienvenido", source, 0, 255, 0, true )
end
addEventHandler ( "onColShapeHit", Zona, Funcion )

function Funcion2 ()
    moveObject ( objeto, 6000,  -2469.1000976563, -616.70001220703, 133.19999694824, 0, 0, 0 )
    outputChatBox ( "Abandonando Base!", source, 0, 255, 0, true )
end
addEventHandler ( "onColShapeLeave", Zona, Funcion2 )

 

  • Recently Browsing   0 members

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