Jump to content

DarkLink

Members
  • Posts

    610
  • Joined

  • Last visited

Everything posted by DarkLink

  1. DarkLink

    Pls fix

    Tell us which part doesnt work ? what is the error.. ?
  2. I must say that this is very good actually ! Very good job mate , one more contributing for a better mta When I have time, will sure test it Good work, and thanks !
  3. ofc it answers ! thanks alot mate !
  4. This is the correct behaviour of attachElements function. If you want the object to be attached to a bone you need to set elements position to the bone position and rotation on every frame (onClientRender or I'd advice to use onClientPreRender since this event is triggered before all positions are updated so it doesn't look like a lag). You can try to do it yourself if you're not afraid of challenges or you can download a resource which does that. I don't know its name but I'm pretty sure you will find it on community site (just search for "bone"). Or search forum, I'm sure this question has been asked before. Good luck. Thats nice, thanks for your explation 50p, i did not start this thread, but can I ask u something about it ? How do I know the exactly coords to attach the element ? I mean the exactly position to be on hand... on torso... on leg... just by doing alot of tests ? and trys ? using coords near player position ? Thanks alot in advance
  5. Hey mate you are on mta dot com, I guess u are on the wrong place, go ask for support to SA-MP forum, maybe they support u (i dont think so). But good luck trying !
  6. DarkLink

    [REL] TCT

    Its seems very good, congratulations ! One more guy contributing for a better mta eheh Thanks mate
  7. I just wanted to come by to warn you that I and this project are still alive eheh I must also say that I made some progress in recent days, modified the system to rebuild the shelter of the emigrants in the USA (on my map, Las Venturas) Do not know if you remember how this system would work to rebuild the house. The idea is : there are small pieces of wood to put on the map (Custom Element of Gamemode, maximum possible parts limited by gamemode: 150), and these pieces together should build the shelter of the emigrants, will also be the house that emigrants must hold for a few seconds to win the game, after sell all the weed . Inside this house can/should be some weapons, not many, on my map I will add it. These pieces, being shotted and punched, will obvius be destroyed....then the reconstruction system will rebuild them after a specific amount time, this time can be reduced by increasing the level of the team EMIGRANTS. Note: I also may think in another way to make reconstruction, for example, instead of using a set time, could be eg: a work station itself a migrant would have to spend time .. until all the parts are reconstructed. I do not know, could also be .. give your opinions about this and the rest.. Thanks all the support MTA and Community
  8. Guys nevermind, I already get it working, using another paradigm. I mean I leaved the two tables (server and client side) solution, and implemented setElementData, and I dont need any tables being sent via triggers Thanks alot all of you that helped
  9. No problem mate, have fun scripting
  10. Because this is a table of objects, and I must destroy and create new ones, on server side, to work for all clients . And I also need that table of objects on client side, because there is a function (only client side) that will tell me, if I wanna destroy a object of that table . if yes, i delete from the table on client and then I trigger server event, and destroy that element and delete from table on server side. Do you understand ? is something bad doing this ? if so, please explain me how to do it good , thanks alot in advance.
  11. Sorry my bad, is not subtract is sum. Like this : (x1+x)/2 , (y1+y)/2 , (z1+z)/2 Try it , and say the results, if its ok
  12. Hmm I though it would not be a clone So.. I need to remove on both tables, when I want to keep the same info , right ? Thanks in advance ..
  13. Glad to understand u I guess u need to use getDistanceBetweenPoints3D instead , and divide per 2
  14. Hi there guys, I guess the origin of my problem on another topic is because I am not using the same table, its not a clone .. I guess. SO here it is : 1) I have table A on SERVER side . 2) I send my table A to client side 3) I have a function on client side that receives the table, and I assign my local variable to the table A that is received, like: local tableOnClient = {} function funcThatReceivesTable(tablereceived) tableOnClient = tablereceived end MY QUESTION: Is this a pointer to the table? and when I remove a element from this table on client, it gets removed also on the table on the server? or when I send a table to server side, its a clone ? Thanks in advance!
  15. Anyone over here ? thanks in advance guys ... EDIT: Guys nevermind, I already get it working, using another paradigm. I mean I leaved the two tables (server and client side) solution, and implemented setElementData, and I dont need any tables being sent via triggers Thanks alot all of you that helped
  16. Correct me if I am wrong: you want to create a sphere using Dx, giving 2 coords > (x,y,z) and (x1,y1,z1) . and using this 2 coords you get the middle of the line segment, right ? that will be this point : ( (x1-x)/2 , (y1-y)/2 , (z1-z)/2 ) and using this point, you will create the sphere, with that center : ( (x1-x)/2 , (y1-y)/2 , (z1-z)/2 ) and with a given radius, depending on the distance between those points, using square root. Is that you want ?
  17. The problem continues.. Look, I guess I am doing something wrong, I am trying to do this: I have a table of objects on server and client side, the SAME objects. When I remove on client, I trigger server event, to delete on the table of the server . When I add on server, I trigger client event to add on the table of the client. I idea is both tables have the same content, the same objects... but I think this is not very good syncronized... maybe there are better way to do this... I need to do this because isLineOfSightClear only works on client... Thanks in advance!
  18. How I make that check ? sorry for so many questions.. thanks.
  19. I already debug, and it goes though the table printing things like this : 110 : userdata 000002A9 111 : userdata 000002AA 112 : userdata 000002AB 113 : userdata 000002AC ... so its everything okay ? I dont understand sometimes works, other times dont
  20. No problem mate, thanks anyway, can you say me how I can debug that ? how to do it ? thanks in advance
  21. I dont understand what u mean , using table.insert(woodTable, k, wood) is like insert wood on k index right ? "We can also insert elements at a chosen point in the list. We can use the table library to insert elements into the table array without having to shuffle the other elements around. To do this we supply 3 arguments to the table.insert(table,position,value) function" from lua org
  22. There is no nil values on a table right ? since when I remove using table.remove(woodTable, k) , its removes the element on k index, and the element that says on k index is the element that was on k+1 index... right ? I read that here : http://lua-users.org/wiki/TablesTutorial thanks alot
  23. I am using, table.insert(woodTable, wood) . and sometimes , when I need to add to a specific index, table.insert(woodTable, k, wood)
  24. thanks for ur reply what do u mean mate? its a table of objects of GTA World, model 1418
  25. Okay mate, thanks alot. I will search about it
×
×
  • Create New...