Felipinho

Untitled

Mar 3rd, 2013
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.41 KB | None | 0 0
  1.  
  2. local msg = {
  3.     msg1 = "Parabens, voce obteve double exp!.",
  4.     msg2 = "Desculpe, voce nao obteve double exp!."
  5.     }
  6. local rates = 2
  7.  
  8. -- End Configs --
  9. function onUse(cid, item, frompos, item2, topos)
  10.     if isPremium(cid) and doPlayerRemoveMoney(cid, 2000) == TRUE then
  11.         doPlayerSetMagicRate(cid, rates*60)
  12.            doPlayerPopupFYI(cid, msg.msg1)
  13.         end
  14.     else
  15.         doPlayerPopupFYI(cid, msg.msg2)
  16.     end
  17. return TRUE
  18. end
Advertisement
Add Comment
Please, Sign In to add comment