Jump to content

ayuda con este scrip


daniel735

Recommended Posts

hola amigos como hago para que este con este scrip cuando abra una puerta me diga abierto y cuando la cierre me diga cerrado

local gate3 = createObject(10841, -1078.9000244141, -1647.3000488281, 83.199996948242, 0, 0, 267.99499511719  ) 
  
open = false 
function OpenObjectt ( thePlayer ) 
local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
    if isObjectInACLGroup ("user."..accName, aclGetGroup ( "SOH" ) ) then 
            if not open then 
                moveObject(gate3, 1000, -1079, -1647.0999755859, 90.199996948242, 0, 0, 0 ) 
                open = true 
            elseif open then 
                moveObject(gate3, 1000, -1078.9000244141, -1647.3000488281, 83.199996948242, 0, 0, 0 ) 
                open = false 
            end 
        end 
    end 
addCommandHandler("soh", OpenObjectt )   

Link to comment

Aqui tienes editale el mensaje a tu gusto

local gate3 = createObject(10841, -1078.9000244141, -1647.3000488281, 83.199996948242, 0, 0, 267.99499511719  ) 
  
open = false 
function OpenObjectt ( thePlayer ) 
local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
    if isObjectInACLGroup ("user."..accName, aclGetGroup ( "SOH" ) ) then 
            if not open then 
                moveObject(gate3, 1000, -1079, -1647.0999755859, 90.199996948242, 0, 0, 0 ) 
                open = true 
            outputChatBox ( "#00FF00Abriendo Puerta", thePlayer, 255, 255, 255, true ) 
            elseif open then 
                moveObject(gate3, 1000, -1078.9000244141, -1647.3000488281, 83.199996948242, 0, 0, 0 ) 
                open = false 
            outputChatBox ( "#ff0000Cerrando Puerta", thePlayer, 255, 255, 255, true ) 
            end 
        end 
    end 
addCommandHandler("soh", OpenObjectt )   

Link to comment

prueva con esto no estoy seguro jamas he utilizado el gang_system

local gate3 = createObject(10841, -1078.9000244141, -1647.3000488281, 83.199996948242, 0, 0, 267.99499511719  ) 
  
open = false 
function OpenObjectt ( thePlayer ) 
     local gangName = getElementData ( thePlayer, "gang" ) 
    if ( gangName =="SOH") then 
            if not open then 
                moveObject(gate3, 1000, -1079, -1647.0999755859, 90.199996948242, 0, 0, 0 ) 
                open = true 
            outputChatBox ( "#00FF00Abriendo Puerta", thePlayer, 255, 255, 255, true ) 
            elseif open then 
                moveObject(gate3, 1000, -1078.9000244141, -1647.3000488281, 83.199996948242, 0, 0, 0 ) 
                open = false 
            outputChatBox ( "#ff0000Cerrando Puerta", thePlayer, 255, 255, 255, true ) 
            end 
        end 
    end 
addCommandHandler("soh", OpenObjectt )   

Link to comment
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...