Advertisement
RoksasNunes

ThiagoBJIW

Apr 13th, 2013
424
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.32 KB | None | 0 0
  1. local itemid = 2178 -- Storage Item
  2.  
  3. function onUse(cid, item, frompos, item2, topos)
  4.  
  5.     if getPlayerStorageValue(cid, 1234) ~= -1 then
  6.         doPlayerSendCancel(cid, "Voce ja ganhou esse premio.")
  7.             return true
  8.         end
  9.                    
  10.         doPlayerRemoveItem(cid, itemid, 1)
  11.             setPlayerStorageValue(cid, 1234, 1)
  12.                 return true
  13.             end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement