slapz0r

Members
  • Content Count

    104
  • Joined

  • Last visited

Community Reputation

2 Neutral

About slapz0r

  • Rank
    Punk-@ss B*tch

Recent Profile Visitors

122 profile views
  1. slapz0r

    help. Nametag

    @HassoN ye it's work Thank you! @HassoN what's about this green target ? I mean when the right mouse button selects the player a green mark appears. Can this be removed?
  2. slapz0r

    help. Nametag

    @HassoN I see no change I mean, the nickname of the player who type command does not disappear.
  3. slapz0r

    help. Nametag

    @HassoN nickname player(who type this command) is not hiding but now he sees the nicknames of other players (before they disappeared)
  4. slapz0r

    help. Nametag

    --server iv = 0 function toggleInvis( source ) if iv == 0 then iv = 1 setElementAlpha(source, 0) triggerClientEvent(source, "invis", source) else iv = 0 setElementAlpha(source, 255) triggerClientEvent(source, "invisoff", source) end end addCommandHandler ( "invisible", toggleInvis ) --client local visiblename = true local drawDistance = 15 g_StreamedInPlayers = {} 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, 8) 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 name = getPlayerName(player) local id = getElementData ( player, "ID", s_id ) local w = dxGetTextWidth(name, 1, "default-bold") local h = dxGetFontHeight(1, "default-bold") local fname = getElementData(player,"fname") local sname = getElementData(player,"sname") local hp = getElementData(player,"lastDamage") if visiblename == false then return end if visiblename == true then dxDrawText("#FFFFFF"..fname.." "..sname.."#1E90FF ["..id.."]", x - 2 - w / 4, y - 0 - h - 12, w, h, tocolor(255, 0, 0), 1, "default-bold","left","top",false,false,false,true) end local health = getElementHealth(player) local armour = getPedArmor(player) if health > 0 then local rate = 500 / getPedStat(player, 24) drawHPBar(x, y - 6, health * rate, dist) if armour > 0 then drawArmourBar(x, y - 12, armour, dist) end end end end end else table.remove(g_StreamedInPlayers, k) end end end addEventHandler("onClientRender", root, onClientRender) function invis() visiblename = false end addEvent( "invis", true ) addEventHandler( "invis", localPlayer, invis ) function invisoff() visiblename = true end addEvent( "invisoff", true ) addEventHandler( "invisoff", localPlayer, invis ) 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 normalhealthbar = false 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) I'm trying to make a command for invisible. For example, a player enters a command and becomes invisible. - Done need to hide the nickname only this player(who type this command). but I can only hide the nicknames of all players Can you help me for fix it? I am the player who entered this command.I do not see the nicknames of players but they see
  5. slapz0r

    Ped voice

    --client addEventHandler("onClientResourceStart", getResourceRootElement(), function() for i,v in pairs (getElementsByType("player")) do setPedVoice(v, "PED_TYPE_DISABLED", "nil") end end ) function refresz() for i,v in pairs (getElementsByType("player")) do setPedVoice(v, "PED_TYPE_DISABLED", "nil") end end addEvent( "refresz", true ) addEventHandler( "refresz", v, refresz ) --server local root = getRootElement() addEventHandler("onPlayerWasted", root, function () for i,v in pairs (getElementsByType("player")) do triggerClientEvent(v, "refresz", v) end end ) addEventHandler("onPlayerLogin", getRootElement(), function (_,account) for i,v in pairs (getElementsByType("player")) do triggerClientEvent(v, "refresz", v) end end ) Voices should not be but other players hear the local player(the one who keeps the server) How to make so that voices do not exist for all players? What needs to be changed in this code?
  6. slapz0r

    voice bind

    And at the level of the code can not change any binds? The same, for example, moving forward "W"
  7. slapz0r

    voice bind

    so ... code level can not change the bind for voice chat?
  8. slapz0r

    voice bind

    Is the person from the top wrong or misunderstood?
  9. Могу ли я на уровне кода изменить бинд? Т.е есть бинд на войс чат, который настраивается в самих настройках МТА, на кнопку Z. Могу ли я на уровне кода изменить этот бинд, например, на кнопку X. Что то типо поставить на событие, когда игрок залогинился и ему поменялась кнопка?
  10. slapz0r

    voice bind

    I just have to write it in meta.xml(voice script ) ?? <settings>set("keyBind", "X")</settings> and a button instead "Z" will become "X" or I again misunderstood?
  11. slapz0r

    voice bind

    Can you tell me more about it? I do not understand how it can be used in my situation .
  12. slapz0r

    voice bind

    How to change the button(voice)? By standard it's "Z" button. How to change this at the code level, and not in the settings of mta ? For example, when a player connect to the server and it automatically changes the button to the selected one(in code)
  13. slapz0r

    Ped voice

    @Investor How to change a voice to a specific skin? function voice1(player) local model = getElementModel(player) if model == 99 then setPedVoice(player, "PED_TYPE_GANG", "VOICE_GNG_MACCER") return end so right?
  14. slapz0r

    Ped voice

    Can I change or delete voice for ped? Each skin has its own voice or group skins have one voice. I dont know about it. I mean when you hit a player or pushed ped. He starts talking. There is a possibility?