Jump to content

ayuda con scrip


daniel735

Recommended Posts

hola muchachos gracias por su ayuda me han ayudado bastante con este scrip ya estoy seria lo ultimo que necesito

como hago para que el scrip funcione con una gang en ves de un grupo de acl

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

Por dios, cuando será el día que digan que pu** sistema de gang usan -_- , como debo adivinarlo espero que sea el de castillo.

  
local gate3 = createObject(10841, -1078.9000244141, -1647.3000488281, 83.199996948242, 0, 0, 267.99499511719  ) 
  
open = false 
function OpenObjectt ( thePlayer ) 
if getElementData(thePlayer,"gang") == "Gang" 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...