Jump to content

DjMixCuma

Members
  • Posts

    83
  • Joined

  • Last visited

Details

  • Gang
    ZEXE

Recent Profile Visitors

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

DjMixCuma's Achievements

Transformer

Transformer (11/54)

0

Reputation

  1. My code: local screenX, screenY = guiGetScreenSize() addEventHandler("onClientRender", getRootElement(), function() local cameraX, cameraY, cameraZ = getCameraMatrix() for _, thePlayer in pairs(getElementsByType("player")) do while true do if not isElement(thePlayer) then break end if getElementDimension(thePlayer) ~= getElementDimension(getLocalPlayer()) then break end local playerX, playerY, playerZ = getElementPosition(thePlayer) if processLineOfSight(cameraX, cameraY, cameraZ, playerX, playerY, playerZ, true, false, false, true, false, true) then break end local distance3D = getDistanceBetweenPoints3D(cameraX, cameraY, cameraZ, playerX, playerY, playerZ) if distance3D <= 10 then local worldX, worldY = getScreenFromWorldPosition(playerX, playerY, playerZ + 0.95, 0.06) if not worldX or not worldY then break end dxDrawText(getPlayerName(thePlayer), worldX, worldY - 0.1, worldX, worldY - 0.1, tocolor(0, 0, 0, 255), 1.64, "default", "center", "bottom", false, false, false) dxDrawText(getPlayerName(thePlayer), worldX, worldY - 0.1, worldX, worldY - 0.1, tocolor(255, 224, 128, 215), 1.65, "default", "center", "bottom", false, false, false) end break end end end) Working, but i see my nick on ped head, but i dont wont it, and i want bold my dxDraw, because actually is difficult to see.
  2. What is wrong? /debugscript - 0 errors, console 0 errors, but in game nametags not creating. nameTable = {} local screenX, screenY = guiGetScreenSize() local nameTags = {} function nameTable.Create(player) nameTags[player] = true end function nameTable.Delete(player) nameTags[player] = false end addEventHandler("onClientRender", getRootElement(), function() for i, player in ipairs(getElementsByType("player")) do if isElement(player) then if player ~= getLocalPlayer() then setPlayerNametagShowing(player, false) if not nameTags[player] then nameTable.Create(player) end end end end local cameraX, cameraY, cameraZ = getCameraMatrix() for thePlayer in pairs(nameTags) do while true do if not isElement(player) then break end if getElementDimension(player) ~= getElementDimension(getLocalPlayer()) then break end local playerX, playerY, playerZ = getElementPosition(player) if processLineOfSight(cameraX, cameraY, cameraZ, playerX, playerY, playerZ, true, false, false, true, false, true) then break end local distance3D = getDistanceBetweenPoints3D(cameraX, cameraY, cameraZ, playerX, playerY, playerZ) if distance3D <= 60 then local worldX, worldY = getScreenFromWorldPosition(playerX, playerY, playerZ + 0.95, 0.06) if not worldX or not worldY then break end dxDrawText(getPlayerName(player), worldX, worldY - 0.3, worldX, worldY - 0.3, tocolor(0, 0, 0, 255), 3, "default", "center", "bottom", false, false, false) dxDrawText(getPlayerName(player), worldX, worldY - 0.3, worldX, worldY - 0.3, tocolor(255, 224, 128, 220), 3, "default", "center", "bottom", false, false, false) end break end end end) addEventHandler("onClientResourceStart", getResourceRootElement(getThisResource()), function() for i, player in ipairs(getElementsByType("player")) do if player ~= getLocalPlayer() then nameTable.Create(player) end end end) addEventHandler("onClientPlayerJoin", getRootElement(), function() if source == getLocalPlayer() then return end setPlayerNametagShowing(source, false) nameTable.Create(source) end) addEventHandler("onClientPlayerQuit", getRootElement(), function() nameTable.Delete(source) end)
  3. addEventHandler("onPlayerChat", getRootElement(), function(message, messageType) for index, word in ipairs(bannedWords) do if (message:find(word, 0)) then tostring(message):lower() outputChatBox("Player "..getPlayerName(source).." kicked! Reason: Bad Word!", root, 255, 255, 255, true) end end end)
  4. Hi! I have trouble, because i added this to my code: message:lower() and not working, and after i added: string.lower(""..message.."") How to change letters in message to lower?
  5. Większej ilości już pewnie znane serwery do Multi Theft Auto bazujące na ostatnio popularnej modyfikacji DayZ do ArmA. Chciałbyś pograć na polskim serwerze DayZ do MTA? Poczuć survivalowy klimat ze swoimi kumplami bądź znajomymi? Pograć jako zwyczajny samotnik, a może ustrzelić kilku zombie? Możesz też zostać bandytą, grabiąc wszystkich ocalałych, którzy staną Ci na drodze Nie ma problemu! Odwiedź już dzisiaj naszą stronę internetową aby dowiedzieć się więcej. http://dayz-poland.c0.pl/portal.php IP Serwera : 178.33.196.51:22049
  6. All working thanks for help
  7. I put it in console, but errors are still.
  8. hi i have error in console: how to fix it? script is 100% good written I added in ACL: <group name="Admin"> <acl name="Moderator" /> <acl name="SuperModerator" /> <acl name="Admin" /> <acl name="RPC" /> <object name="resource.admin" /> <object name="resource.webadmin" /> <object name="user.MixCuma" /> <object name="resource.NewServerConfig" /> </group>
  9. DjMixCuma

    MySQL

    okey working thanks
×
×
  • Create New...