Advertisement
Skymagnum

Untitled

Apr 28th, 2013
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.65 KB | None | 0 0
  1. function onSay(cid, words, param, channel)
  2.  
  3. local fromArea = {x = 1, y = 2, z = 3}
  4. local toArea = {x = 3, y = 4, z = 3}
  5. local fireFields = {6081, 6082, 6082, 6022, 5965, 3134, 3133, 3132, 3131, 6560, 6084, 2317, 1508, 1507, 1504, 1503, 1502, 1501, 1500}
  6.  
  7.     for x = fromArea.x, toArea.x do
  8.        for y = fromArea.y, toArea.y do
  9.          local pos = {x = x, y = y, z = fromArea.z}
  10.        end
  11.     end
  12.    
  13.     for _, fields in ipairs(fireFields) do
  14.        if getTileItemById(pos, fields).uid > 0 then
  15.           doRemoveItem(getTileItemById(pos, fields).uid)
  16.        end
  17.     end
  18.    
  19.     cleanArea(fromArea, toArea, true)
  20.  
  21.     return true
  22. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement