All Activity

This stream auto-updates     

  1. Past hour
  2. boa noite , a gamemod esta pronta ? RUST ? Qual o Valor ??
  3. iann

    necesito ayuda

    muchas gracias!
  4. I don't think it's a mods issue, i remember that i had similiar case on tactics gamemode. Tested it without replaced models and seems like it's the same.
  5. You can't use aclGetGroup on client-side, it's a server-sided function.
  6. Today
  7. Also without mods? There are some mods that do have some collision issues.
  8. Either there is no damage, body part is invalid (unknown) or hit counts but damage doesn't. Test code: local vHits = 0 local tMuzzle = {} local vParts = { [3] = "Torso", [4] = "Ass", [5] = "Left arm", [6] = "Right arm", [7] = "Left leg", [8] = "Right leg", [9] = "Head", } function onClientPlayerWeaponFire(pWeapon, pAmmo, pAmmoInClip, pHitX, pHitY, pHitZ, pHitElement, pStartX, pStartY, pStartZ) if not pHitElement then return end local vStartX, vStartY, vStartZ = getPedWeaponMuzzlePosition(source) local vCol = {processLineOfSight(pStartX, pStartY, pStartZ, pHitX, pHitY, pHitZ, true, true, true, true, false, true, true, false, nil, false, false)} local vHitPart = vParts[vCol[11]] or "UNKNOWN" tMuzzle = {pStartX, pStartY, pStartZ, pHitX, pHitY, pHitZ} vHits = vHits + 1 outputChatBox("[HIT #"..vHits.."]: X, Y, Z: "..pHitX..", "..pHitY..", "..pHitZ.." | Hit element: "..tostring(pHitElement).." | Hit bodypart: "..vHitPart) end addEventHandler("onClientPlayerWeaponFire", root, onClientPlayerWeaponFire) -- function onClientPlayerDamage() outputChatBox("Damage confirmed at hit: "..vHits) end addEventHandler("onClientPlayerDamage", root, onClientPlayerDamage) -- function onClientRender() if #tMuzzle == 6 then dxDrawLine3D(tMuzzle[1], tMuzzle[2], tMuzzle[3], tMuzzle[4], tMuzzle[5], tMuzzle[6], tocolor(200, 0, 0, 255), 3) end end addEventHandler("onClientRender", root, onClientRender) On screen below, there was no collision check. But hits #6, #7 confirmed that element got hit, but no damage was given. (don't mind bodypart, there was no collision check on it)
  9. setWorldSoundEnabled (20, false, true) -- Vozes de Peds. setWorldSoundEnabled (21, false, true) setWorldSoundEnabled (22, false, true) setWorldSoundEnabled (23, false, true) setWorldSoundEnabled (24, false, true) setWorldSoundEnabled (25, false, true) -- Voz do CJ.
  10. You mean that there is no damage given? If that is the case: You could maybe use: https://wiki.multitheftauto.com/wiki/OnClientPlayerWeaponFire to save the latest player shot and set that as attacker. (with some tricks)
  11. Error at line 6: ERROR aclGetGroup (a nil value) local drawDistance = 7 g_StreamedInPlayers = {} function isPlayerInACL(player , acl) if isElement(player) and getElementType(player) == "player" and aclGetGroup(acl) and not isGuestAccount(getPlayerAccount(player)) then local account = getPlayerAccount(player) return isObjectInACLGroup ( "user.".. getAccountName(account), aclGetGroup(acl) ) end return false end function onClientRender() local cx, cy, cz, lx, ly, lz = getCameraMatrix() for k, player in pairs(g_StreamedInPlayers) do if isElement(player) and isElementStreamedIn(player) then do local vx, vy, vz = getPedBonePosition(player, 4) local dist = getDistanceBetweenPoints3D(cx, cy, cz, vx, vy, vz) if dist < drawDistance and isLineOfSightClear(cx, cy, cz, vx, vy, vz, true, false, false) then local x, y = getScreenFromWorldPosition(vx, vy, vz + 0.3) if x and y then local ID = getElementData(player, "ID") or "N/A" local w = dxGetTextWidth(ID, 0.1, "default") local h = dxGetFontHeight(1, "default") if isPlayerInACL(player, "Everyone") then dxDrawText("", x - 1 - w / 1, y - 1 - h - 12, w, h, CorTag, 1.20, "default", "left", "top", false, false, false, false, false) elseif isPlayerInACL(player, "Admin") then dxDrawText(""..ID.."", x - 1 - w / 1, y - 1 - h - 12, w, h, CorTag, 1.20, "default", "left", "top", false, false, false, false, false) CorTag = tocolor(255, 255, 255) if getElementData(player, "Cor", true) then CorTag = tocolor(0, 255, 0) end end end end end else table.remove(g_StreamedInPlayers, k) end end end addEventHandler("onClientRender", root, onClientRender) function CorTagid () if getElementData(localPlayer, "Cor", true) then setElementData(localPlayer, "Cor", false) else setElementData(localPlayer, "Cor", true) end end bindKey ( "z", "both", CorTagid ) function onClientElementStreamIn() if getElementType(source) == "player" and source ~= getLocalPlayer() then setPlayerNametagShowing(source, false) table.insert(g_StreamedInPlayers, source) end end addEventHandler("onClientElementStreamIn", root, onClientElementStreamIn) function onClientResourceStart(startedResource) visibleTick = getTickCount() counter = 0 local players = getElementsByType("player") for k, v in pairs(players) do if isElementStreamedIn(v) and v ~= getLocalPlayer() then setPlayerNametagShowing(v, false) table.insert(g_StreamedInPlayers, v) end end end addEventHandler("onClientResourceStart", resourceRoot, onClientResourceStart)
  12. Hi. I've just found out that it's a task. Is there any way to disable it? It cause some hits to not confirm.
  13. Motar2k

    necesito ayuda

    Que tal @iann en la lista de ACL del admin panel estan los permisos de cada grupo en el ACL, ahi puedes modificarlos
  14. hola, busco scripter argentino, quiero hacer un server en mta, ya lo tengo echo, pero necesito ayuda, necesito un scripter, de pago o free, pago con dinero argentino.
  15. iann

    busco scripter!

    hola, busco scripter argentino, quiero hacer un server en mta, ya lo tengo echo, pero necesito ayuda, necesito un scripter, de pago o free, pago con dinero argentino.
  16. Yes, MTA has been played for a long time, until it was as advanced as today's with 1.5.7 version, and I believe that even better things will come in the future, and as for players, the other day it was posted on the FaceBook page that MTA player statistics platform, says it has about 60k.
  17. How do I remove the resource option a smoderador and moderador?
  18. iann

    necesito ayuda

    hola, como saco la opcion de resources, a los que tienen smoderados y mod?? 😥
  19. hola, como saco la opcion de resources, a los que tienen smoderados y mod?? 😥
  20. Tut

    necesito ayuda

    Please use the Spanish forum section if you prefer to write in said language. https://forum.mtasa.com/forum/166-spanish-español/ Utilice la sección del foro en español si prefiere escribir en dicho idioma. https://forum.mtasa.com/forum/166-spanish-español/ @iann
  21. iann

    necesito ayuda

    hola, como saco la opcion de resources, a los que tienen smoderados y mod?? 😥
  22. حطيت صوره dxDrawImage وصار الاف بي اس ينزل 40 درجه اذا الصوره كانت موجوده وش السبب
  23. Here's a screenshot. I cant type or click anything, i could only press ESC even then i cant click anything from the menu. all i could do after than is open the command and disconnect from there. https://imgur.com/a/F0fCfx9
  1. Load more activity