Advertisement
Guest User

Untitled

a guest
Jul 17th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. function getDroppedMoney (source, commandName) -- [[ biistamais ]]
  2. if exports.integration:isPlayerSeniorAdmin(source) then
  3. local found
  4. for k, v in ipairs(getElementsByType("object")) do
  5. local itemID = getElementData(v, "itemID")
  6. if itemID == 134 then
  7. local value = getElementData(v, "itemValue")
  8. if value and value > 50000 then
  9. local x, y, z = getElementPosition(v)
  10. local int = getElementInterior(v)
  11. local dim = getElementDimension(v)
  12. outputChatBox("===========================", source, 255, 194, 0)
  13. outputChatBox("Atrasta nauda $" .. value .. " apmērā", source, 255, 194, 0)
  14. outputChatBox("ID: " .. itemID .. ", atrašanās vieta: x: " .. math.floor(x) .. ", y: " .. math.floor(y) .. ", z: " .. math.floor(z), source, 255, 194, 0)
  15. outputChatBox("INT: " .. int .. ", DIM: " .. dim, source, 255, 194, 0)
  16. outputChatBox("===========================", source, 255, 194, 0)
  17.  
  18. found = true
  19. end
  20. end
  21. end
  22. if not found then
  23. outputChatBox("- Nav", source, 255, 0, 0)
  24. end
  25. end
  26. end
  27. addCommandHandler("showmoney", getDroppedMoney)
  28. -- SHO IELIEC IEKS ADMIN-SYSTEM s_player.commands.lua
  29.  
  30.  
  31. exports.logs:logMessage("NOMETA NAUDU " .. itemValue, 1)
  32. -- SHO IEKS item-system\s_world_items.lua KUR DROPOJAS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement