SHARE
TWEET

Untitled

a guest Jul 17th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top