Jump to content

ACL


eldelahoz

Recommended Posts

Bueno acabo de probarlo y no me da lo tengo asi

function Funcion1 (source) 
    if ( accName == "DelaHoz" ) then 
        moveObject ( objeto1, 2000, -1186.099609375, -157.3994140625, 22, 0, 0, 0 ) 
    outputChatBox ( "Bienvenido", source, 0, 255, 0, true ) 
    else 
    outputChatBox ( "Tu no eres el Dueño!", source, 255, 0, 0, true ) 
end 
end 
addEventHandler ( "onColShapeHit", Zona1, Funcion1 ) 
  
function Funcion2 () 
        moveObject ( objeto1, 2000, -1186.099609375, -157.3994140625, 15.89999961853, 0, 0, 0 ) 
        outputChatBox ( "Abandonando Base!"..Zona1, source, 0, 255, 0, true ) 
end 
addEventHandler ( "onColShapeLeave", Zona1, Funcion2 ) 

Link to comment
function Funcion1 (source) 
local accName = getAccountName ( getPlayerAccount ( source) )  
    if ( accName == "DelaHoz" ) then 
        moveObject ( objeto1, 2000, -1186.099609375, -157.3994140625, 22, 0, 0, 0 ) 
    outputChatBox ( "Bienvenido", source, 0, 255, 0, true ) 
    else 
    outputChatBox ( "Tu no eres el Dueño!", source, 255, 0, 0, true ) 
end 
end 
addEventHandler ( "onColShapeHit", Zona1, Funcion1 ) 
  
function Funcion2 () 
        moveObject ( objeto1, 2000, -1186.099609375, -157.3994140625, 15.89999961853, 0, 0, 0 ) 
        outputChatBox ( "Abandonando Base!"..Zona1, source, 0, 255, 0, true ) 
end 
addEventHandler ( "onColShapeLeave", Zona1, Funcion2 ) 

Link to comment
function Funcion1 ( hitElement ) 
    if ( getElementType ( hitElement ) == "player" ) then 
        local accName = getAccountName ( getPlayerAccount ( hitElement ) ) 
        if ( accName == "DelaHoz" ) then 
            moveObject ( objeto1, 2000, -1186.099609375, -157.3994140625, 22, 0, 0, 0 ) 
            outputChatBox ( "Bienvenido", hitElement, 0, 255, 0, true ) 
        else 
            outputChatBox ( "Tu no eres el Dueño!", hitElement, 255, 0, 0, true ) 
        end 
    end 
end 
addEventHandler ( "onColShapeHit", Zona1, Funcion1 ) 
  
function Funcion2 ( leaveElement ) 
    if ( getElementType ( leaveElement ) == "player" ) then 
        moveObject ( objeto1, 2000, -1186.099609375, -157.3994140625, 15.89999961853, 0, 0, 0 ) 
        outputChatBox ( "Abandonando Base!".. Zona1, leaveElement, 0, 255, 0, true ) 
    end 
end 
addEventHandler ( "onColShapeLeave", Zona1, Funcion2 ) 

Link to comment
  • Recently Browsing   0 members

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