daniel735 Posted October 1, 2014 Share Posted October 1, 2014 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
Tomas Posted October 1, 2014 Share Posted October 1, 2014 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
daniel735 Posted October 1, 2014 Author Share Posted October 1, 2014 Gracias tomas funciono gracias por toda tu ayuda men Link to comment
Recommended Posts