Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- admin=""
- mapa = '@6930458'
- p = {}
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAutoShaman(true)
- tfm.exec.disableAutoTimeLeft(true)
- tfm.exec.disableAfkDeath(true)
- function eventNewPlayer(name)
- p[name]={
- click = true,
- time_click = 0,
- }
- end
- for all in pairs(tfm.get.room.playerList) do
- eventNewPlayer(all)
- end
- function eventMouse(name,x,y)
- if p[name].click then
- tfm.exec.explosion (x, y, 20, 100, true)
- tfm.exec.displayParticle(12,x,t)
- p[name].click = false
- p[name].time_click = 20
- end
- end
- function eventLoop()
- if not p[admin].click then
- if p[admin].time_click > 0 then
- ui.addTextArea(0,"<b><p align='center'><VP>"..math.floor(p[admin].time_click/2).."</p>",admin,5,370,800,40,nil,nil,80,true)
- p[admin].time_click = p[admin].time_click-1;
- else
- p[admin].click = true
- end
- end
- end
- function eventNewGame()
- tfm.exec.setShaman(admin)
- end
- system.bindMouse(admin,true)
- tfm.exec.setUIMapName("Power of the sprit")
- tfm.exec.newGame(mapa)
Add Comment
Please, Sign In to add comment