Jump to content

DonPro

Members
  • Posts

    125
  • Joined

  • Last visited

Everything posted by DonPro

  1. lel, thanks, i found out that i cud not have Customobjects folder and then a files folder. so its working now! ty
  2. Hey MTA community! i get an error on nearly all lines of the replace script i got "Bad argument [Excepted (dff,txd,col) at argument 1, got boolean] i just wrote the error that comes up, but it comes up error on each of those, even the Engine import (Cant load EngineImportTXD,COL, etc) local txd = engineLoadTXD('files/bump.txd',true) engineImportTXD(txd, 2052) local dff = engineLoadDFF('files/bump.dff', 0) engineReplaceModel(dff, 2052) local col = engineLoadCOL('files/bump.col') engineReplaceCOL(col, 2052) engineSetModelLODDistance(2052, 500)
  3. i hope that day would come realy soon! btw, you can add 1 and 1 object into your editor, i have already added some buildings to mine not with Samps object ofc, but it is posible to do, i will recommend that you add one and one object from Samps objects, becouse if not you will destroy a bit of MTA editor, i did that once to test and the "Delete Buttom" got destroyed and many another objects got destroyed that following the orginal San andreas map. so this is a downside by using Samps objects. you can add Samps objects, but its not usefull, you have to replace current objects in MTA. I hope that one day, MTA will let you add your own cars, objects, weapons, peds by not replacing them but really adding new things to the game For sure, that would be pretty dope. But some of the biggest server on MTA use SAMP objects, so i dont think you have to be afraid
  4. i hope that day would come realy soon! btw, you can add 1 and 1 object into your editor, i have already added some buildings to mine not with Samps object ofc, but it is posible to do, i will recommend that you add one and one object from Samps objects, becouse if not you will destroy a bit of MTA editor, i did that once to test and the "Delete Buttom" got destroyed and many another objects got destroyed that following the orginal San andreas map. so this is a downside by using Samps objects. you can add Samps objects, but its not usefull, you have to replace current objects in MTA.
  5. I suppose that wont effect anything seens you say so i delete all those with Red boxes
  6. Hey! i wonder, becouse i wanna clean up my ACL Groups and rights so i wonder if i can delete the ACL group and ACL righst without destroy anything? Everything with a Red box around, is the ones i wanna delete. so would this effect anything?
  7. Thanks! was helpfull, i will try later today!
  8. Hi, i have been looking at the Wiki now but i cant find anything that explain how to open a gui. so i wonder if someone have a link to the wiki site where its write down how to do this function, or if you could show me by script. pickup = createPickup ( 1864.47265625, -1839.024414062, 13.56 , 3, 1275, "respawnTime", 0) function openGUI ( player ) call(getResourceFromName("Bloods"), "window") end addEventHandler ( "onPickupHit", pickup, openGUI ) i just tryed and tested ingame, i have started get a understanding on scripting but its still much for me to learn. The GUI is in a another LUA so i got told i had to call that LUA and make the function in "server.LUA" the name of the LUA the GUI is in i named "gui_client"
  9. Its "Time" not "Speed" It wont go with the same speed unless the space between every 2 points is the same because for example 100km in 10 seconds will go faster than 1000km in 10 seconds Thats makes sence, now i understand thanks! now i have to work a bit on it and adjust it thanks bro
  10. So what you think? you know what the problem can be?
  11. Well im sorry, but it does not. thats what im talking about, even if i put 10000millisecond in every it still go faster and slower when it wants, there is something bugged in the script somewhere that i dont understand. thats my problem, so yesterday i tryed to adjust the millisecond (start with 10000 and second 80000 then it goes the nearly the same speed somehow.)
  12. could you show me what you mean? i was looking at Wiki, but i didnt understand that lol change the timer in your "moveTable". So if i set it like this local moveTable = { --{time, x, y, z, rotX, rotY, rotZ}, {10000, 2896.19, -2397.39, 3.70}, {10000, 2896.19, -2762.60, 3.70}, {10000, 2854, -2874.60, 3.70}, {10000, 1162.09, -2874.60, 3.70}, {10000, 880.70, -2146.5, 3.70}, {10000, 880.70, -1884.09, 3.70}, } you mean it will go same speed all the time?
  13. could you show me what you mean? i was looking at Wiki, but i didnt understand that lol
  14. Hi, this is a timer that have been set, but they object start go faster, and sometimes slower. and i have tryed everything to make it go in the same speed but it does not work at all. could you help me and show me whats wrong with it? local moveTable = { --{time, x, y, z, rotX, rotY, rotZ}, {10000, 2896.19, -2397.39, 3.70}, {80000, 2896.19, -2762.60, 3.70}, {35000, 2854, -2874.60, 3.70}, {125000, 1162.09, -2874.60, 3.70}, {210000, 880.70, -2146.5, 3.70}, {270000, 880.70, -1884.09, 3.70}, } function move() for k,v in ipairs(moveTable) do if k == 1 then moveObject(object1, unpack(v)) else local time = 0 if k ~= 2 then for i=1,k-1 do time = time + moveTable[i][1] end else time = moveTable[1][1] end outputChatBox(time) setTimer(moveObject,time,1,object1, unpack(v)) end end end function moveGate(playerSource, cmd) move() end addCommandHandler("gostart", moveGate)
  15. Check the wiki page before u start asking all what you need is here : SetTimer Thanks! i will check this out, i just started scripting just trying to learn
  16. what do you mean? the minimum is 50 milliseconds. so the ship have to go as fast as 50 millisecound? pleas show me in script what you mean i dont understand what ya'll talking about
  17. Ahh okey, i didnt understand much but this is what i got now, this is just a test speed i made to test it fast on 5000time. local moveTable = { --{time, x, y, z, rotX, rotY, rotZ}, {5000, 2896.19, -2397.39, 3.70, 0, 0, 0}, {5000, 2896.19, -2762.60, 3.70, 0, 0, -90}, {5000, 2854, -2874.60, 3.70, 0, 0, 90}, {-5000, 1162.09, -2874.60, 3.70, 0, 0, -90}, {45000, 880.70, -2146.5, 3.70, 0, 0, 90}, {55000, 880.70, -1884.09, 3.70, 0, 0, 90}, }
  18. Hi, i wonder why the ship speed up for each cordinat/check point it hit, then the object speed up and sometimes speed down i dont understand i tought the speed should go down when i raise the value on the SPEED i hope you can help me with that, its pretty anoying, and i tryed to lower, and raise the speed but nothing helps.
  19. How come the ship wont keep sailing after hitting the first point? Warning: Lua:51: bad usage 'setTimer' [interval is below 50] local moveTable = { --{time, x, y, z, rotX, rotY, rotZ}, {60000, -2040.59, 1598.5, 7, 0, 0, 0}, {60000, -3111.19, 1764.19, 7, 0, 0, 180}, {60000, -3204.80, -2873.5, 7, 0, 0, 270}, } function move() for k,v in ipairs(moveTable) do if k == 1 then moveObject(object1, unpack(v)) else local time = 0 if k ~= 2 then for i=k-1,1 do time = time + moveTable[i][1] end else time = moveTable[1][1] end setTimer(moveObject,time,1, unpack(v)) end end end function moveGate(playerSource, cmd) if cmd == "gostart" then if isAclGroup(playerSource,"Maritime") then move() end end end addCommandHandler("gostart", moveGate)
  20. no worries i cant thank you enough for the help.
  21. now it says its expected '34' " } expexted to close at 31 i dont know man. im realy happy, that you take you're time to help me out local object1 = createObject(9585, -2040.5999755859, 1442, 7, 0, 0, 0) local object2 = createObject(9586, -1516.7998046875, 242, 17, 0, 0, 0) local object3 = createObject(9584, -1471.900390625, 242, 24.89999961853, 0, 0, 0) local object4 = createObject(9698, -1460.4072265625, 240.8203125, 27.780000686646, 0, 0, 0) attachElements(object2,object1,-2.2998046875,0,10.1) -- attach object2 to object1 attachElements(object3,object1,20.400390625,0,17) -- attach object2 to object1 attachElements(object4,object1,31.9,-1.17,19.9) -- attach object2 to object1 --[[ Use Calculator x = x2 - x1 = (-1516.7998046875 - -1514.5) = -2.2998046875 y = y2 - y1 = (242 - 242) = 0 z = z2 - z1 = (17 - 6.90) = 10.1 ]]-- 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 local moveTable = { --{time, x, y, z, rotX, rotY, rotZ} {70000, -1377.90, 193.69, 6.90, 0, 0, 45} {60000, -1150.40, 475.10, 6.90, 0, 0, 60} {60000, -1196.19, 648.5, 6.90, 0, 0, 120} } function move() for k,v in ipairs(moveTable) do if k == 1 then moveObject(object1, unpack(v)) else local time = 0 if k ~= 2 then for i=k-1,1 do time = time + moveTable[i][1] end else time = moveTable[1][1] end setTimer(moveObject,time,1, unpack(v)) end end end function moveGate(playerSource, cmd) if cmd == "gostart" then if isAclGroup(playerSource,"Maritime") then move() end end end addCommandHandler("gostart", moveGate)
  22. this wont work, it get error (expected to end at line 43) function moveGate(playerSource, cmd) if cmd == "gostart" then if isAclGroup(playerSource,"Maritime") then moveObject(object1, 70000, -2040.59, 1598.5, 7, 0, 0, 90) setTimer( function() moveObject(object1, 60000, -3111.19, 1764.19, 7, 0, 0, 180) setTimer( function() moveObject(object1, 60000, -3204.80, -2873.5, 7, 0, 0, 270) setTimer( function() moveObject(object1, 60000, 2393.69, -3023.69, 7, 0, 0, 0) setTimer( function() moveObject(object1, 60000, 2547.10, -2832.30, 7, 0, 0, 270) setTimer( function() moveObject(object1, 60000, 2544.10, -2682.80, 7, 0, 0, 270) end,60000,1) end,70000,1) end end end addCommandHandler("gostart", moveGate)
×
×
  • Create New...