
DonPro
Members-
Posts
125 -
Joined
-
Last visited
Everything posted by DonPro
-
Is it posible to connect this togheter so the ship goes to the first point and then to the second point and then the third point? function moveGate(playerSource, cmd) if cmd == "gostart" then if isAclGroup(playerSource,"Maritime") then moveObject(object1, 70000, -1377.90, 193.69, 6.90, 0, 0, 45) moveObject(object1, 60000, -1150.40, 475.10, 6.90, 0, 0, 60) moveObject(object1, 60000, -1196.19, 648.5, 6.90, 0, 0, 120)-- move object1 and object2 gonna move with him end end end addCommandHandler("gostart", moveGate)
-
NVM, NVM i got it! use a calculator! hah, im so stupid
-
how do i use it? i know i ask much but i just wanna learn pleas.
-
one question, how did you find the cordinats for the Element? im trying to keep building more object and it seems to not be correct
-
Oh!!!! thanks man! im realy happy know, i learned something new today to
-
it wont move Did you add the command handler? and are you sure that you are in "Maritime" ACL group? im in the ACL group yes, and i tryed to put up the AddcommandHandler, but did not work local object1 = createObject(9585, -1514.5, 242, 6.90, 0, 0, 0) local object2 = createObject(9586, -1516.7998046875, 242, 17, 0, 0, 0) attachElements(object2,object1,-2.2998046875,0,10.1) -- attach object2 to object1 function isAclGroup(p,group) if p and getElementType(p) == "player" and type(group) == "string" then local Deadusergroup = getAccountName(getPlayerAccount(p)) if isObjectInACLGroup("user."..Deadusergroup, aclGetGroup(group)) then return true else return false end else return false end end function moveGate(playerSource, cmd) if cmd == "gostart" then if isAclGroup(playerSource,"Maritime") then moveObject(object1, 5000, -1377.90, 193.69, 6.90, 0, 0, 45) -- move object1 and object2 gonna move with him end addCommandHandler("gostart", moveGate) end end
-
it wont move
-
could you put it in and show me where to put it?
-
Hi, im working on a script now that gonna be a boat i can control with commands, but i need them all to be attach'ed so i can build the ship and just add the cordinats once for the ship and yeah i gues you know what i mean so let me show you what i got so far local object1 = createObject(9585, -1514.5, 242, 6.90, 0, 0, 0) local object2 = createObject(9586, -1516.7998046875, 242, 17, 0, 0, 0) function isAclGroup(p,group) if p and getElementType(p) == "player" and type(group) == "string" then local Deadusergroup = getAccountName(getPlayerAccount(p)) if isObjectInACLGroup("user."..Deadusergroup, aclGetGroup(group)) then return true else return false end else return false end end function moveGate(playerSource, cmd) if cmd == "startcruise" then if isAclGroup(playerSource,"Maritime") then moveObject(object1, 5000, -1377.90, 193.69, 6.90, 0, 0, 45) moveObject(object2, 5000, -1377.90, 193.69, 6.90, 0, 0, 45) end
-
Easier over skype Probably it is, but if you post a topic here the guys here would help you. Also the people who has the same problem will know how to solve it, instead of making topic. Thats true alraight ill do it
-
Hi i realy need help with a script so if you wanna help me pleas add me on skype: fredrikdts
-
Hi i need help, i dont find the problems, im pretty new and im realy trying but it all just stop'ed up for me right now i dont know what to do. -- Creating Of The Parts local object1 = createObject (10794, -1514.599609375, 242, 7, 0, 0, 0) -- Main Deck local object2 = createObject(9586, -1516.7998046875, 242, 17, 0, 0, 0) -- Containers On The Deck local object3 = createObject(9584, -1465.400390625, 242, 26.200000762939, 0, 0) -- Containers On The Under Deck local object4 = createObject(9698, -1453.91015625, 240.826171875, 29.079999923706, 0, 0, 0) -- Under Deck -- Attachments Of The Parts attachElements(object1, hull, -2.28, 0, 10.1) attachElements(object2, hull, 6.35, 0, 1.-- s8) --> attachElements(object3, hull, 8, 0, 16.6) attachElements(object4, hull, 5.7, 0, 0.6) function move1( commandName, object ) for e=1, 4 do for _,object in ipairs(getElementsByType("object")) do if (getElementData(object,"name") == a[e]) then local x,y,z = getElementPosition(object) moveObject(object,2000, -1289.1999511719, 293.20001220703, 7, 0, 0, 46) ------------- speed and local xyz axsis end addCommandHandler ( "start", moveObject ) end end end function isAdminAccount(account) local nick = "" local group = aclGetGroup("Admin") if (account and group) then nick = string.lower(getAccountName(account) or "") for _, object in ipairs(aclGroupListObjects(group) or {}) do if (gettok(object, 1, string.byte('.')) == "user") then if (nick == string.lower(gettok(object, 2, string.byte('.')))) then return true end end end end return false end
-
Ahh, but what i realy want here is a object i can trigger by Command, and it go to the position, and i have to trigger another command to let the objects go to the next position. you can use AddCommandHandler for that and if you want the objects to be created with the command then just create the object using createobject function instead creating it in .map file. do you know why its [Error Lua :1: Unexepted symbol near ')' ? there is more errors on it addEventHandler( "onResourceStart", resourceRoot, function(cmd)) if cmd == "Start" then end addCommandHandler("Start", moveGate) local createObject = { [1] = createObject(10794, -1514.599609375, 242, 7, 0, 0, 0) --------- object ID/Position [2] = createObject(9586, -1516.7998046875, 242, 17, 0, 0, 0) [3] = createObject(9584, -1465.400390625, 242, 26.200000762939, 0, 0) [4] = createObject(9698, -1453.91015625, 240.826171875, 29.079999923706, 0, 0, 0) } function move1() for e=1, 4 do for _,object in ipairs(getElementsByType("object")) do if (getElementData(object,"id") == a[e]) then local x,y,z = getElementPosition(object) moveObject(object,60000,-1289.1999511719,293.20001220703,7,0,0,46) ------------- speed and local xyz axsis end end end end
-
Ahh, but what i realy want here is a object i can trigger by Command, and it go to the position, and i have to trigger another command to let the objects go to the next position. you can use AddCommandHandler for that and if you want the objects to be created with the command then just create the object using createobject function instead creating it in .map file. Okey, thanks for the help bro
-
Ahh, but what i realy want here is a object i can trigger by Command, and it go to the position, and i have to trigger another command to let the objects go to the next position.
-
Where do i put the Cordinats for all the object?
-
Hi everyone, im about to start a big Project for a group on a server, and i wanna ask if it's posible to make many objects and make them ALL move in just one line like: Lets say this is the objects: -(971, 1672.09, 737.20, 13.39, 0, 0, 270) -(971, 1672.09, 737.20, 13.39, 0, 0, 270) -(971, 1672.09, 737.20, 13.39, 0, 0, 270) -(971, 1672.09, 737.20, 13.39, 0, 0, 270) -(971, 1672.09, 737.20, 13.39, 0, 0, 270) -(971, 1672.09, 737.20, 13.39, 0, 0, 270) BUT i want maby 100 or more/less objects on the poject and you would think how much work it would be if i have to capy and paste 3 lines to where it should move, and move back. so i wonder is it posible to connect all this objects to ONLY one line like: Lets say all the objects would move here: -moveObject(gate, 10000, 1672.09, 729.20, 13.39) Someone pleas help me, i realy wanna do this project and i realy hope someone could make a form to me that would be like that so i can finish the project!
-
When you mean just some objects, will that mean i can use dimension 0 as my orginal map and place objects in dimension and still can see the objects in Dimension 0?
-
hi, i wondering how i can set a map into deminsion?
-
okey awesome thanks
-
okey ill take the chance of buying it so lets hope it works so i have atleast one game to play when im gone ^^ thanks buddy
-
Hi, i got a laptop that does not have any CD room and all my local stores does not have any digital download on theyr website for GTA san andreas right now, and im going for holiday in a few days, and i wanna have my MTA server with me so i can work on it while im gone, so now i hope someone can pleas tell me if Steam version of GTA SA will support MTA? If you DONT know then pleas dont comment, i need YES or NO and the persone HAVE to know it (pleas dont waste time) PS: i dont know if this is the right place to post this, if not you can move it the right spot.
-
yeah, thanks its worked im so happy now ty