Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- mapList = {"@7634875" }
- ui.addPopup(0, 0, "<p align='center'><font color='#FF0500' size='29' face='Soopafresh'>سكربت لعبت الحرب</font> <br><br> <br> فكرة اللاعب<br> <br> <font color='#FF0500' size='20' face='Soopafresh'>Mdm_xd#6278</font> <br><br> برمجة اللاعب<br><br> Mdm_xd#6278 <br><br> المساعدات المابات <br><br> Mdm_xd#6278 ", nil, 181.5, 77, 437, true)
- round = 2;
- alive = 3;
- rank = 1;
- tfm.exec.setGameTime(3);
- function main()
- tfm.exec.disableAutoShaman(true)
- tfm.exec.disableAutoNewGame(true)
- tfm.exec.disableAutoScore(true)
- for name in pairs(tfm.get.room.playerList) do
- tfm.exec.setPlayerScore(name, 0)
- end
- launchGame()
- end
- function launchGame()
- tfm.exec.setGameTime(3)
- tfm.exec.newGame(mapList[math.random(#mapList)])
- end
- function eventChatCommand(name, command)
- if command=='mort' then tfm.exec.killPlayer(name) end
- end
- function eventNewGame()
- tfm.exec.setGameTime(600)
- rank = 1;
- alive = 3;
- for name in pairs(tfm.get.room.playerList) do alive = alive+1 end
- round=round+1
- if round > 10 then
- for name in pairs(tfm.get.room.playerList) do
- tfm.exec.setPlayerScore(name, 0)
- end
- round = 1
- end
- end
- function eventLoop(past, left)
- if left<0 then tfm.exec.newGame(mapList[math.random(#mapList)]) end
- end
- function eventPlayerLeft(name)
- alive = alive-1
- if alive == 0 then tfm.exec.setGameTime(0) end
- end
- function eventPlayerWon(name)
- tfm.exec.setPlayerScore(name, rank==1 and 4 or rank==2 and 3 or rank==3 and 2 or 1, true)
- rank = rank+1
- alive = alive-1
- if alive == 0 then tfm.exec.setGameTime(0) end
- end
- function eventPlayerDied(name)
- alive = alive-1
- if alive == 0 then tfm.exec.setGameTime(0) end
- end
- main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement