Advertisement
RoksasNunes

Gears

Apr 12th, 2013
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.61 KB | None | 0 0
  1. local wait = 60
  2.  
  3. function onSay(cid, words, param)
  4.     if exhaustion.check(cid, 9854) then
  5.         doPlayerSendTextMessage(cid, 20, "You need to wait "..wait.." segs to use this command again!")
  6.             return true
  7.         end
  8.        
  9.     if not doPlayerRemoveMoney(cid, 15000) then
  10.         doPlayerSendCancel(cid, "Not enough money, sorry.")
  11.             return true
  12.         end
  13.        
  14.         doSendMagicEffect(getCreaturePosition(cid), 6)
  15.             exhaustion.set(cid, 9854, wait)
  16.                 broadcastMessage("Mensagem do jogador: "..getPlayerName(cid).." ele diz "..param.."")                                                                            
  17.                     return true
  18.                 end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement