illestiraqi Posted January 25, 2013 Posted January 25, 2013 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)
Castillo Posted January 25, 2013 Posted January 25, 2013 Use: getPlayerAccount getAccountName isObjectInACLGroup
Castillo Posted January 25, 2013 Posted January 25, 2013 If you never try to do it, you'll never learn.
iPrestege Posted January 26, 2013 Posted January 26, 2013 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)
TAPL Posted January 26, 2013 Posted January 26, 2013 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?
Perfect Posted January 26, 2013 Posted January 26, 2013 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 bit funny but Because he is beginner.
illestiraqi Posted January 26, 2013 Author Posted January 26, 2013 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
iPrestege Posted January 26, 2013 Posted January 26, 2013 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 ?
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now