Jump to content

AncienT

Members
  • Posts

    94
  • Joined

  • Last visited

Everything posted by AncienT

  1. i made this: --FORMULA: cos(0)=a*b/|a||b| local x1,y1,z1 = 4,-3,5 local x2,y2,z2 = 9,7,-10 local r1 = (x1*x2)+(-3*7)+(5*-10) local a1 = x1^2+(-y1)^2+(z1)^2 local a2 = x2^2+(-y2)^2+(z2)^2 local r2 = math.sqrt(a1)-math.sqrt(a2) local angle = r1/r2 print(angle) I just do not know if it's the correct formula
  2. How can I get the angle between 2 positions?
  3. AncienT

    [SOLVED]

    [SOLVED]
  4. what is the function of <enablesd></enablesd>
  5. VIDEO: Discord: Motar#3255 FB: https://www.facebook.com/jesuslopez324 Reason: I don't have time
  6. AncienT

    [Mute Script]

    addCommandHandler("unmuteall", function(thePlayer, _, ...) if(isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("Staff"))) then for ID,player in ipairs(getElementsByType("player")) do if not isPlayerInACL(player, "Staff") then setPlayerMuted (player, false) end end end end) function isPlayerInACL(player, acl) local accountName = getAccountName( getPlayerAccount(player) ) if accountName ~= "guest" and type( aclGetGroup(acl) ) == "userdata" then return isObjectInACLGroup( "user."..accountName, aclGetGroup(acl) ) end return false end
  7. AncienT

    [Mute Script]

    addCommandHandler("muteall", function(thePlayer, _, ...) if(isObjectInACLGroup("user."..getAccountName(getPlayerAccount(thePlayer)), aclGetGroup("Staff"))) then for ID,player in ipairs(getElementsByType("player")) do if not isPlayerInACL(player, "Staff") then setPlayerMuted (player, true) end end end end) function isPlayerInACL(player, acl) local accountName = getAccountName( getPlayerAccount(player) ) if accountName ~= "guest" and type( aclGetGroup(acl) ) == "userdata" then return isObjectInACLGroup( "user."..accountName, aclGetGroup(acl) ) end return false end 
  8. AncienT

    help

    This function is for serverside
  9. AncienT

    Skins Bug

    try this if (getElementData(client,"Clan") >= tonumber(Clan)) and allowed[getElementData(client, "Clan")] then
  10. AncienT

    help

    function onChat ( _, messageType ) if ( messageType == 0 and chat == false ) then cancelEvent ( ) end end addEventHandler ( "onPlayerChat", root, onChat )
  11. https://wiki.multitheftauto.com/wiki/SetElementSpeed
  12. AncienT

    [HD Problem]

    https://community.multitheftauto.com/index.php?p=resources&amp;s=details&amp;id=1600&amp;expanddescr=1
  13. Puedes utilizar esta función de la sección useful de la wiki, https://wiki.multitheftauto.com/wiki/SmoothMoveCamera
  14. Remove this setTimer (giveWeapon, 2000, 1, source, theWeapon, weaponAmmo, true)
  15. Dont post 2 times same post, i reply in the other post
  16. takeAllWeapons (player) Or modify save system
  17. AncienT

    [HD Problem]

    Same as the image?
  18. patterns = {"%p", ","} for i,v in ipairs(patterns) do str = string.gsub(str, v, "") end https://stackoverflow.com/questions/25280374/lua-string-gsub-with-multiple-patterns
  19. AncienT

    [Help Please]

    You can use this function, paste in serverside function setAcc(_,account) setElementData(source,"Account",getAccountName(account)) end addEventHandler("onPlayerLogin",getRootElement(),setAcc) and remplace "Account Name:"..getAccountName(getPlayerAccount()) by "Account Name: "..getElementData("Account",getLocalPlayer())
×
×
  • Create New...