Jump to content

Puerta acl error


eldelahoz

Recommended Posts

Hola lo que pasa es que me aparece que el getplayer no tiene valor o algo asi y tengo el script asi

----------- Puerta 1------------ 
local objeto1 = createObject ( 980, 2486.8999023438, -1670.0999755859, 15.10000038147, 0, 0, 90 ) 
local state = false 
  
function Funcion ( thePlayer ) 
     local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
     if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then 
        if ( not state ) then 
            moveObject ( objeto1, 2000, 2486.8999023438, -1670.0999755859, 20, 0, 0, 0 ) 
            state = true 
            else 
            moveObject ( objeto1, 2000, 2486.8999023438, -1670.0999755859, 15.10000038147, 0, 0, 90 ) 
            state = false 
        end 
    end 
end 
addCommandHandler ( "abrir", Funcion ) 

Link to comment
  • Recently Browsing   0 members

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