maria_artemisa Posted November 26, 2016 Share Posted November 26, 2016 (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 November 26, 2016 by maria_artemisa Link to comment
ViRuZGamiing Posted November 26, 2016 Share Posted November 26, 2016 Make the question English or move it to the board of your language. Kind regards Link to comment
Rose Posted November 26, 2016 Share Posted November 26, 2016 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 ) Link to comment
Recommended Posts