Jump to content

Help Change Script


illestiraqi

Recommended Posts

Posted

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) 

Posted

Use:

getPlayerAccount 
getAccountName 
isObjectInACLGroup 

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

If you never try to do it, you'll never learn.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

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) 

  

Posted
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:

CiTLh.png
Posted
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.

Multi Theft Auto Player since middle of 2011.

Everybody want to act Crazy/Smart/Intelligent/Different/Unique/Innocent and Thats why I am Perfect.

Posted
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 :(

Posted
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 ?

  

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...