Advertisement
Guest User

Untitled

a guest
Nov 15th, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. function onSay(cid, words, param, channel)
  2. local damages = {100,500,1000,1500,2000,2500,3000,5000}
  3. local percents = damages[math.random(1, #damages)]
  4. if #getCreatureSummons(cid) >= 1 then
  5. doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Você precisa guardar seu pokémon para soltar uma bomba.")
  6. return
  7. end
  8. doAreaCombatHealth(0, cid, COMBAT_PHYSICALDAMAGE, percents, CONST_ME_EXPLOSIONHIT)
  9. return true
  10. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement