Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- deSpawn={}
- players={}
- isnt={}
- admin = {Sagazgamer = true}
- version = 0.5
- players = {}
- -- Mapas Vanila
- mapas={[[0]],[[1]],[[2]],[[3]],[[4]],[[5]],[[6]],[[7]],[[8]],[[9]],[[10]],[[11]],[[12]],[[13]],[[14]],[[15]],[[16]],[[17]],[[18]],[[19]],[[20]],[[21]],[[22]],[[23]],[[24]],[[25]],[[26]],[[27]],[[28]],[[29]],[[30]],[[31]],[[32]],[[33]],[[34]],[[35]],[[36]],[[37]],[[38]],[[39]],[[40]],[[41]],[[42]],[[43]],[[44]],[[45]],[[46]],[[47]],[[48]],[[49]],[[50]],[[51]],[[52]],[[53]],[[54]],[[55]],[[56]],[[57]],[[58]],[[59]],[[60]],[[61]],[[62]],[[63]],[[64]],[[65]],[[66]],[[67]],[[68]],[[69]],[[70]],[[71]],[[72]],[[73]],[[74]],[[75]],[[76]],[[77]],[[78]],[[79]],[[80]],[[81]],[[82]],[[83]],[[84]],[[85]],[[86]],[[87]],[[88]],[[89]],[[90]],[[91]],[[92]],[[93]],[[94]],[[95]],[[96]],[[97]],[[98]],[[99]],[[100]],[[101]],[[102]],[[103]],[[104]],[[105]],[[106]],[[107]],[[108]],[[109]],[[110]],[[111]],[[112]],[[113]],[[114]],[[115]],[[116]],[[117]],[[118]],[[119]],[[120]],[[121]],[[122]],[[123]],[[124]],[[125]],[[126]],[[127]],[[128]],[[129]],[[130]],[[131]],[[132]],[[133]],[[134]],[[136]],[[137]],[[138]],[[139]],[[140]],[[141]],[[142]],[[143]],[[200]],[[201]],[[202]],[[203]],[[204]],[[205]],[[206]],[[207]],[[208]],[[209]],[[210]]};
- tfm.exec.disableAutoShaman(true);
- tfm.exec.newGame(mapas[math.random(#mapas)])
- -- rund
- function nextRound()
- tfm.exec.newGame(mapas[math.random(#mapas)]);
- end
- function eventNewGame()
- for name, player in pairs(tfm.get.room.playerList) do
- isnt[name]=true
- end
- vivo=0
- for name,player in pairs(tfm.get.room.playerList) do
- vivo=vivo+1
- end
- tfm.exec.setUIMapName("InvoObject")
- end
- -- Time
- function eventLoop(time,remaining)
- for k,v in ipairs(deSpawn) do
- if os.time()>v[2]+3000 then
- tfm.exec.removeObject(v[1])
- table.remove(deSpawn,k)
- end
- end
- if vivo == 0 or time < 1000 then
- nextRound();
- end
- end
- -- Runda noua
- nextRound();
- --Invocatie
- function eventNewPlayer(name)
- tfm.exec.bindKeyboard(name,49,true,true)
- tfm.exec.bindKeyboard(name,50,true,true)
- tfm.exec.bindKeyboard(name,51,true,true)
- tfm.exec.bindKeyboard(name,52,true,true)
- tfm.exec.bindKeyboard(name,53,true,true)
- tfm.exec.bindKeyboard(name,54,true,true)
- tfm.exec.bindKeyboard(name,55,true,true)
- end
- for name,player in pairs(tfm.get.room.playerList) do
- eventNewPlayer(name)
- end
- function eventKeyboard(name,key,down,x,y)
- if key==49 and players and isnt[name] then
- local id=tfm.exec.addShamanObject(26,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y)
- table.insert(deSpawn,{id,os.time()})
- end
- if key==50 and players and isnt[name] then
- local id=tfm.exec.addShamanObject(27,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y)
- table.insert(deSpawn,{id,os.time()})
- end
- if key==51 and players and isnt[name] then
- local id=tfm.exec.addShamanObject(7,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y)
- table.insert(deSpawn,{id,os.time()})
- end
- if key==52 and players and isnt[name] then
- local id=tfm.exec.addShamanObject(59,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y)
- table.insert(deSpawn,{id,os.time()})
- end
- if key==53 and players and isnt[name] then
- local id=tfm.exec.addShamanObject(57,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+20)
- table.insert(deSpawn,{id,os.time()})
- end
- if key==54 and players and isnt[name] then
- local id=tfm.exec.addShamanObject(39,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y)
- table.insert(deSpawn,{id,os.time()})
- end
- if key==55 and players and isnt[name] then
- local id=tfm.exec.addShamanObject(40,tfm.get.room.playerList[name].x,tfm.get.room.playerList[name].y+20)
- table.insert(deSpawn,{id,os.time()})
- end
- end
- function eventChatCommand(name,command)
- if admin[name] then
- if command=="color" then
- tfm.exec.setNameColor(name, 0xED67EA)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement