Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local event_cfg = {
- items = {2148, 2494, 2152},
- pos = {{x = 1000, y = 1000, z = 7}, {x = 995, y = 995, z = 7}, {x = 1005, y = 995, z = 7}},
- timeto_start = 1
- }
- function onSay(cid, words, param)
- local t = string.explode(param, ",")
- for a = 1, t[1] do
- 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)])
- end
- 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)
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement