Advertisement
RoksasNunes

Event_FFL2

Apr 19th, 2013
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local event_cfg = {
  2.     items = {2148, 2494, 2152},
  3.     pos = {{x = 1000, y = 1000, z = 7}, {x = 995, y = 995, z = 7}, {x = 1005, y = 995, z = 7}},
  4.     timeto_start = 1
  5. }
  6.  
  7. function onSay(cid, words, param)
  8. local t = string.explode(param, ",")
  9.  
  10.     for a = 1, t[1] do
  11.         addEvent(doCreateItem, event_cfg.timeto_start*60*1000, event_cfg.items[math.random(#event_cfg.items)], 1, event_cfg.pos[math.random(#event_cfg.pos)])
  12.     end
  13.    
  14.     doBroadcastMessage("Atenção, em "..event_cfg.timeto_start.." minuto(s) ocorrerá o Event FFL, "..t[1].." items serão espalhados no mapa, corra e garanta o seu!", MESSAGE_STATUS_CONSOLE_RED)
  15.         return true
  16.     end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement