Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 21/09/20 in all areas

  1. Rendben, megfogadom. Nagyon szépen köszönöm a segítséget!
    1 point
  2. Most hiába beszélnél bárkivel is, majd ha megint megtörténne, akkor. Egyébként Discordon is tudsz akár, vagy itt Fórumon privát üzenetben CCW-vel például. Discord invite: https://discord.com/invite/mtasa Én Discordot ajánlom, a #help-support szobában leírod angolul, hogy szerinted feketelistára kerültél és szeretnél beszélni egy adminnal aki tud neked segíteni. (és véletlen sem privátban írsz rá a staff tagokra!)
    1 point
  3. Igen, feketelistára kerültél, mert más reportolt valamiért. Ma fog lejárni, holnap/ma este már meg fog jelenni a szervered.
    1 point
  4. Okés, megkérdezem hogy feketelistás-e és majd írok.
    1 point
  5. Good job! The last example on that page can also be handy: If you change that a bit, to this: You will be able to create matrices based on position and rotation without the need of elements. function createMatrix(x, y, z, rx, ry, rz) rx, ry, rz = math.rad(rx), math.rad(ry), math.rad(rz) local matrix = {} matrix[1] = {} matrix[1][1] = math.cos(rz)*math.cos(ry) - math.sin(rz)*math.sin(rx)*math.sin(ry) matrix[1][2] = math.cos(ry)*math.sin(rz) + math.cos(rz)*math.sin(rx)*math.sin(ry) matrix[1][3] = -math.cos(rx)*math.sin(ry) matrix[1][4] = 1 matrix[2] = {} matrix[2][1] = -math.cos(rx)*math.sin(rz) matrix[2][2] = math.cos(rz)*math.cos(rx) matrix[2][3] = math.sin(rx) matrix[2][4] = 1 matrix[3] = {} matrix[3][1] = math.cos(rz)*math.sin(ry) + math.cos(ry)*math.sin(rz)*math.sin(rx) matrix[3][2] = math.sin(rz)*math.sin(ry) - math.cos(rz)*math.cos(ry)*math.sin(rx) matrix[3][3] = math.cos(rx)*math.cos(ry) matrix[3][4] = 1 matrix[4] = {} matrix[4][1], matrix[4][2], matrix[4][3] = x, y, z matrix[4][4] = 1 return matrix end function getPositionFromMatrixOffset(m, offX, offY, offZ) local x = offX * m[1][1] + offY * m[2][1] + offZ * m[3][1] + m[4][1] local y = offX * m[1][2] + offY * m[2][2] + offZ * m[3][2] + m[4][2] local z = offX * m[1][3] + offY * m[2][3] + offZ * m[3][3] + m[4][3] return x, y, z end And with that you can make the most crazy stuff, for example: 3D (rotated) dx effects that are not attached to an element. local m = createMatrix(x1, y1, z1, rx, ry, rz) local x2, y2, z2 = getPositionFromMatrixOffset(m, offX, offY, offZ)
    1 point
  6. @IIYAMAthank you so much, it works good ! Here is the code, maybe you want to see. Thank you ! function shootMissiles() thePilot = getLocalPlayer() theVehicle = getPedOccupiedVehicle(thePilot) if theVehicle and getElementType(theVehicle) == 'vehicle' then theVehicleModel = getElementModel(theVehicle) if theVehicleModel == 519 then local x1, y1, z1 = getPositionFromElementOffset(theVehicle, -3, 3.5, 0) local x2, y2, z2 = getPositionFromElementOffset(theVehicle, 3, 3.5, 0) missileLeft = createProjectile(theVehicle, 19, x1, y1, z1) missileRight = createProjectile(theVehicle, 19, x2, y2, z2) end end end bindKey("lctrl", "down", shootMissiles) function getPositionFromElementOffset(element,offX,offY,offZ) local m = getElementMatrix ( element ) local x = offX * m[1][1] + offY * m[2][1] + offZ * m[3][1] + m[4][1] local y = offX * m[1][2] + offY * m[2][2] + offZ * m[3][2] + m[4][2] local z = offX * m[1][3] + offY * m[2][3] + offZ * m[3][3] + m[4][3] return x, y, z end
    1 point
  7. Okay, i will try to do it. If it works, i will notify you, thank you
    1 point
  8. Just copy the getPositionFromElementOffset function and place it above or below your code. No need to merge functions. Use it like this (inside of your function): local x, y, z = getPositionFromElementOffset(theVehicle, -3, 3.5, 0)
    1 point
  9. Hi FiNaL / Str1ker (from the German MTA community www.mta-sa.org), 1. You are constantly engaged in cheat development related activities, and to cut your story short, you've been given various new chances and last chances. But you kept communicating with "Jusonex" (MTA team) who put more trust in you than - looking back on it - he should have, because every time you betrayed it by continuing your activities after unban. We know that you've had periods of not doing bad things, but you always ended up re-offending. Cheat developers, especially persistent ones like you, aren't welcome on MTA. 2. You are wondering why you got re-banned even though at that time you didn't do cheat related stuff. The answer is that if someone is banned and evades the global ban, they are subject to getting re-banned just because they are the same person. Buying a new PC with an intention to "play clean", in your case probably just initially (as you have always re-offended afterwards), means nothing because it's global ban evading nonetheless. If we ban a cheat developer, it means they aren't welcome on MTA anymore as a person. So we will keep you off our platform. Finally i would like to note (for others reading your post) that you described a lot of things that aren't true or incomplete. We know exactly what you did and how it went down, after various chances we decided unanimously that we won't provide you any new chances. Ban appeal denied, this one will remain permanent no matter what. @Str1ker
    1 point
  10. Wrong language, moved to Portuguese section.
    1 point
  11. Use the function: getPositionFromElementOffset Which you can find on this page, under examples: https://wiki.multitheftauto.com/wiki/GetElementMatrix That function allows you to get offset positions, no matter what rotation a vehicle has. -- Get the position of a point 1 unit above the element: x,y,z = getPositionFromElementOffset(element,0,0,1)
    1 point
  12. hello, have you tried using this resource?: https://community.multitheftauto.com/index.php?p=resources&s=details&id=141 (sorry for my english)
    1 point
  13. I don't know about others but I use GUI editor from the community.
    1 point
  14. Thread moved to a better forum. For any further posting in Arabic language, please use this forum. If you want to receive help in the the Scripting section, please keep posts readable to the English community.
    1 point
  15. طلخبت شوي ض يب نسيتها
    1 point
×
×
  • Create New...