Advertisement
Guest User

Untitled

a guest
May 24th, 2015
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. function onSay(cid, words, param)
  2.  
  3. if (exhaustion.get (cid, 99901)) then
  4. doPlayerSendCancel (cid, "You must wait "..exhaustion.get (cid, 99901).. " to use this command again!")
  5. return TRUE
  6. else
  7. exhaustion.set(cid, 99901, 10)
  8. end
  9.  
  10.  
  11. if doPlayerRemoveMoney(cid, 10000) == TRUE then
  12. doPlayerAddItem(cid, 2173, 1)
  13. doPlayerSendTextMessage(cid, 19,"You've bought an amulet of loss for 1 crystal coin.")
  14. doSendMagicEffect(getPlayerPosition(cid), 19)
  15. else
  16. doPlayerSendCancel(cid, "Sorry, you don't got 1 crystal coin.")
  17. doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
  18. end
  19. return true
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement