Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onSay(cid, words, param)
- if (exhaustion.get (cid, 99901)) then
- doPlayerSendCancel (cid, "You must wait "..exhaustion.get (cid, 99901).. " to use this command again!")
- return TRUE
- else
- exhaustion.set(cid, 99901, 10)
- end
- if doPlayerRemoveMoney(cid, 10000) == TRUE then
- doPlayerAddItem(cid, 2173, 1)
- doPlayerSendTextMessage(cid, 19,"You've bought an amulet of loss for 1 crystal coin.")
- doSendMagicEffect(getPlayerPosition(cid), 19)
- else
- doPlayerSendCancel(cid, "Sorry, you don't got 1 crystal coin.")
- doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement