Jump to content

Help Change Script


illestiraqi

Recommended Posts

I need help changing this script below.... to make it open for ACL group name "Console"

  
  
function createThelift () 
   mylift = createObject ( 3095, -2027.8459, 157.1302, 82.555, 0, 0, 0 ) 
end 
addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createThelift ) 
  
  
function openMylift () 
   moveObject ( mylift, 8000, -2027.8459, 157.1302, 32.1, 0, 0, 0 ) 
end 
addCommandHandler("liftdown",openMylift) 
  
function movingMyliftBack () 
   moveObject ( mylift, 8000, -2027.8459, 157.1302, 82.555, 0, 0, 0 ) 
end 
addCommandHandler("liftup",movingMyliftBack) 
  
  
  
function createTheGate1 () 
   myGate1 = createObject ( 980, -2016.75, 176.81, 29.47, 0, 0, 90 ) 
end 
addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate1 ) 
  
  
function openMyGate1 () 
   moveObject ( myGate1, 3000, -2016.75, 165, 29.47, 0, 0, 0 ) 
end 
addCommandHandler("opencorp",openMyGate1) 
  
function movingMyGateBack1 () 
   moveObject ( myGate1, 3000, -2016.75, 176.81, 29.47, 0, 0, 0 ) 
end 
addCommandHandler("closecorp",movingMyGateBack1) 

Link to comment

Because he is beginner no problem to giving him full code .

function createThelift () 
   mylift = createObject ( 3095, -2027.8459, 157.1302, 82.555, 0, 0, 0 ) 
 end 
addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createThelift ) 
  
  
function openMylift (player) 
     if (getElementType(player) == "player") then 
          if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup( "Console")) then 
   moveObject ( mylift, 8000, -2027.8459, 157.1302, 32.1, 0, 0, 0 ) 
        end 
   end 
end 
addCommandHandler("liftdown",openMylift) 
  
function movingMyliftBack (player) 
     if (getElementType(player) == "player") then 
          if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup( "Console")) then 
   moveObject ( mylift, 8000, -2027.8459, 157.1302, 82.555, 0, 0, 0 ) 
       end 
  end 
end 
addCommandHandler("liftup",movingMyliftBack) 
  
  
  
function createTheGate1 () 
   myGate1 = createObject ( 980, -2016.75, 176.81, 29.47, 0, 0, 90 ) 
end 
addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate1 ) 
  
  
function openMyGate1 (player) 
     if (getElementType(player) == "player") then 
          if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup( "Console")) then 
   moveObject ( myGate1, 3000, -2016.75, 165, 29.47, 0, 0, 0 ) 
            end 
      end 
end 
addCommandHandler("opencorp",openMyGate1) 
  
function movingMyGateBack1 (player) 
     if (getElementType(player) == "player") then 
          if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup( "Console")) then 
   moveObject ( myGate1, 3000, -2016.75, 176.81, 29.47, 0, 0, 0 ) 
            end 
    end 
end 
addCommandHandler("closecorp",movingMyGateBack1) 

Link to comment
Because he is beginner no problem to giving him full code .
function createThelift () 
   mylift = createObject ( 3095, -2027.8459, 157.1302, 82.555, 0, 0, 0 ) 
 end 
addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createThelift ) 
  
  
function openMylift (player) 
     if (getElementType(player) == "player") then 
          if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup( "Console")) then 
   moveObject ( mylift, 8000, -2027.8459, 157.1302, 32.1, 0, 0, 0 ) 
        end 
   end 
end 
addCommandHandler("liftdown",openMylift) 
  
function movingMyliftBack (player) 
     if (getElementType(player) == "player") then 
          if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup( "Console")) then 
   moveObject ( mylift, 8000, -2027.8459, 157.1302, 82.555, 0, 0, 0 ) 
       end 
  end 
end 
addCommandHandler("liftup",movingMyliftBack) 
  
  
  
function createTheGate1 () 
   myGate1 = createObject ( 980, -2016.75, 176.81, 29.47, 0, 0, 90 ) 
end 
addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate1 ) 
  
  
function openMyGate1 (player) 
     if (getElementType(player) == "player") then 
          if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup( "Console")) then 
   moveObject ( myGate1, 3000, -2016.75, 165, 29.47, 0, 0, 0 ) 
            end 
      end 
end 
addCommandHandler("opencorp",openMyGate1) 
  
function movingMyGateBack1 (player) 
     if (getElementType(player) == "player") then 
          if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup( "Console")) then 
   moveObject ( myGate1, 3000, -2016.75, 176.81, 29.47, 0, 0, 0 ) 
            end 
    end 
end 
addCommandHandler("closecorp",movingMyGateBack1) 

I'm wondering what for this code?

if (getElementType(player) == "player") then 

Maybe you was think that a ped or vehicle or even object will type the command? :lol:

Link to comment
Because he is beginner no problem to giving him full code .
function createThelift () 
   mylift = createObject ( 3095, -2027.8459, 157.1302, 82.555, 0, 0, 0 ) 
 end 
addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createThelift ) 
  
  
function openMylift (player) 
     if (getElementType(player) == "player") then 
          if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup( "Console")) then 
   moveObject ( mylift, 8000, -2027.8459, 157.1302, 32.1, 0, 0, 0 ) 
        end 
   end 
end 
addCommandHandler("liftdown",openMylift) 
  
function movingMyliftBack (player) 
     if (getElementType(player) == "player") then 
          if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup( "Console")) then 
   moveObject ( mylift, 8000, -2027.8459, 157.1302, 82.555, 0, 0, 0 ) 
       end 
  end 
end 
addCommandHandler("liftup",movingMyliftBack) 
  
  
  
function createTheGate1 () 
   myGate1 = createObject ( 980, -2016.75, 176.81, 29.47, 0, 0, 90 ) 
end 
addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate1 ) 
  
  
function openMyGate1 (player) 
     if (getElementType(player) == "player") then 
          if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup( "Console")) then 
   moveObject ( myGate1, 3000, -2016.75, 165, 29.47, 0, 0, 0 ) 
            end 
      end 
end 
addCommandHandler("opencorp",openMyGate1) 
  
function movingMyGateBack1 (player) 
     if (getElementType(player) == "player") then 
          if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup( "Console")) then 
   moveObject ( myGate1, 3000, -2016.75, 176.81, 29.47, 0, 0, 0 ) 
            end 
    end 
end 
addCommandHandler("closecorp",movingMyGateBack1) 

I'm wondering what for this code?

if (getElementType(player) == "player") then 

Maybe you was think that a ped or vehicle or even object will type the command? :lol:

Lol bit funny but

Because he is beginner.
Link to comment
Because he is beginner no problem to giving him full code .
function createThelift () 
   mylift = createObject ( 3095, -2027.8459, 157.1302, 82.555, 0, 0, 0 ) 
 end 
addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createThelift ) 
  
  
function openMylift (player) 
     if (getElementType(player) == "player") then 
          if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup( "Console")) then 
   moveObject ( mylift, 8000, -2027.8459, 157.1302, 32.1, 0, 0, 0 ) 
        end 
   end 
end 
addCommandHandler("liftdown",openMylift) 
  
function movingMyliftBack (player) 
     if (getElementType(player) == "player") then 
          if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup( "Console")) then 
   moveObject ( mylift, 8000, -2027.8459, 157.1302, 82.555, 0, 0, 0 ) 
       end 
  end 
end 
addCommandHandler("liftup",movingMyliftBack) 
  
  
  
function createTheGate1 () 
   myGate1 = createObject ( 980, -2016.75, 176.81, 29.47, 0, 0, 90 ) 
end 
addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate1 ) 
  
  
function openMyGate1 (player) 
     if (getElementType(player) == "player") then 
          if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup( "Console")) then 
   moveObject ( myGate1, 3000, -2016.75, 165, 29.47, 0, 0, 0 ) 
            end 
      end 
end 
addCommandHandler("opencorp",openMyGate1) 
  
function movingMyGateBack1 (player) 
     if (getElementType(player) == "player") then 
          if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup( "Console")) then 
   moveObject ( myGate1, 3000, -2016.75, 176.81, 29.47, 0, 0, 0 ) 
            end 
    end 
end 
addCommandHandler("closecorp",movingMyGateBack1) 

Apperentley it didn't work :(

Link to comment
Because he is beginner no problem to giving him full code .
function createThelift () 
   mylift = createObject ( 3095, -2027.8459, 157.1302, 82.555, 0, 0, 0 ) 
 end 
addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createThelift ) 
  
  
function openMylift (player) 
     if (getElementType(player) == "player") then 
          if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup( "Console")) then 
   moveObject ( mylift, 8000, -2027.8459, 157.1302, 32.1, 0, 0, 0 ) 
        end 
   end 
end 
addCommandHandler("liftdown",openMylift) 
  
function movingMyliftBack (player) 
     if (getElementType(player) == "player") then 
          if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup( "Console")) then 
   moveObject ( mylift, 8000, -2027.8459, 157.1302, 82.555, 0, 0, 0 ) 
       end 
  end 
end 
addCommandHandler("liftup",movingMyliftBack) 
  
  
  
function createTheGate1 () 
   myGate1 = createObject ( 980, -2016.75, 176.81, 29.47, 0, 0, 90 ) 
end 
addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate1 ) 
  
  
function openMyGate1 (player) 
     if (getElementType(player) == "player") then 
          if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup( "Console")) then 
   moveObject ( myGate1, 3000, -2016.75, 165, 29.47, 0, 0, 0 ) 
            end 
      end 
end 
addCommandHandler("opencorp",openMyGate1) 
  
function movingMyGateBack1 (player) 
     if (getElementType(player) == "player") then 
          if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup( "Console")) then 
   moveObject ( myGate1, 3000, -2016.75, 176.81, 29.47, 0, 0, 0 ) 
            end 
    end 
end 
addCommandHandler("closecorp",movingMyGateBack1) 

Apperentley it didn't work :(

Are You Sure It,s Server Side ?

and if it,s not working try this :

function createThelift () 
   mylift = createObject ( 3095, -2027.8459, 157.1302, 82.555, 0, 0, 0 ) 
 end 
addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createThelift ) 
  
  
function openMylift (player) 
          if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup( "Console")) then 
   moveObject ( mylift, 8000, -2027.8459, 157.1302, 32.1, 0, 0, 0 ) 
   end 
end 
addCommandHandler("liftdown",openMylift) 
  
function movingMyliftBack (player) 
          if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup( "Console")) then 
   moveObject ( mylift, 8000, -2027.8459, 157.1302, 82.555, 0, 0, 0 ) 
  end 
end 
addCommandHandler("liftup",movingMyliftBack) 
  
  
  
function createTheGate1 () 
   myGate1 = createObject ( 980, -2016.75, 176.81, 29.47, 0, 0, 90 ) 
end 
addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate1 ) 
  
  
function openMyGate1 (player) 
          if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup( "Console")) then 
   moveObject ( myGate1, 3000, -2016.75, 165, 29.47, 0, 0, 0 ) 
      end 
end 
addCommandHandler("opencorp",openMyGate1) 
  
function movingMyGateBack1 (player) 
          if isObjectInACLGroup("user."..getAccountName(getPlayerAccount(player)), aclGetGroup( "Console")) then 
   moveObject ( myGate1, 3000, -2016.75, 176.81, 29.47, 0, 0, 0 ) 
    end 
end 
addCommandHandler("closecorp",movingMyGateBack1) 

and if it,s not working then what debugscript say ?

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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