Jump to content

Phelipecg

Members
  • Posts

    6
  • Joined

  • Last visited

Details

  • Gang
    DUBSTEP
  • Location
    Brazil
  • Occupation
    Ladrão
  • Interests
    Mulheres

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Phelipecg's Achievements

Vic

Vic (3/54)

0

Reputation

  1. Can you show me at a function, please?
  2. Hello, How do I make only the killer player hear the sound? function wasted (killer, weapon, bodypart) local sound = playSound("sound/sound.wav") setSoundVolume(sound, 0.5) end addEventHandler("onClientPlayerWasted", localPlayer, wasted) Source: https://wiki.multitheftauto.com/wiki/PlaySound
  3. Sorry I did not understand. Could you write the function for me? I'm new to it, or would it be asking a lot of you?
  4. Hello, How do I make only a member of my gang see me? function showTeam() for _, team in ipairs(getElementsByType("player"))do if getElementData(team, "gang") ~= "none" then if team ~= getLocalPlayer() then if getElementData(team, "gang") == getElementData(getLocalPlayer(), "gang") then local x,y,z = getElementPosition(team) local cx,cy,cz = getElementPosition(getLocalPlayer()) if getDistanceBetweenPoints3D(x,y,z, cx,cy,cz) <= 300 then sX, sY, sZ = getScreenFromWorldPosition(x,y,z) if(sX and sY and sZ)then local color = tocolor(50,255,50) size = 1 dxDrawText(string.gsub(getPlayerName(team), '#%x%x%x%x%x%x', '' ), sX+27, sY-38, 25, 20, tocolor(0,0,0), size,"default-bold") dxDrawText(math.floor(getDistanceBetweenPoints3D(x,y,z, cx,cy,cz)).." m", sX+27, sY-18, 25, 20, tocolor(0,0,0), size,"default-bold") -- dxDrawText(string.gsub(getPlayerName(team), '#%x%x%x%x%x%x', '' ), sX+25, sY-40, 25, 20, color, size,"default-bold") dxDrawText(math.floor(getDistanceBetweenPoints3D(x,y,z, cx,cy,cz)).." m", sX+25, sY-20, 25, 20, color, size,"default-bold") end end end end end end end addEventHandler("onClientRender", getRootElement(), showTeam) Source: https://community.multitheftauto.com/index.php?p=resources&s=details&id=12640
×
×
  • Create New...