Advertisement
RoksasNunes

Specific Invasion!

Apr 11th, 2013
37
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. local position = {x = 1000, y = 1000, z = 7}
  2.  
  3. function onSay(cid, words, param)
  4.  
  5. local t = string.explode(param, ",")
  6.  
  7. if(param == '') then
  8. doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Command requires a amount to raid.")
  9. return true
  10. end
  11.  
  12. for i = 1, t[2] do
  13. doCreateMonster(t[1], position, true)
  14. end
  15.  
  16. doBroadcastMessage("A new invasion began, run to kill the "..t[2].." "..t[1].."'s!")
  17. return true
  18. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement