Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---------------------By Nicknamepll
- -----------------Minigame name Speedracing
- -------------11.10.13
- tfm.exec.setNameColor("Nicknamepll", 0xFF1900)
- tfm.exec.setNameColor("Ouake", 0xFF1900)
- system.disableChatCommandDisplay("off",true)
- system.disableChatCommandDisplay("help",true)
- system.disableChatCommandDisplay("pomoc",true)
- tfm.exec.disableAutoTimeLeft (true)
- tfm.exec.disableAutoShaman(true)
- function eventNewPlayer(playerName)
- tfm.exec.bindKeyboard(playerName,37,true,true)
- tfm.exec.bindKeyboard(playerName,39,true,true)
- tfm.exec.bindKeyboard(playerName,65,true,true)
- tfm.exec.bindKeyboard(playerName,68,true,true)
- end
- for playerName,player in pairs(tfm.get.room.playerList) do
- tfm.exec.bindKeyboard(playerName,37,true,true)
- tfm.exec.bindKeyboard(playerName,39,true,true)
- tfm.exec.bindKeyboard(playerName,65,true,true)
- tfm.exec.bindKeyboard(playerName,68,true,true)
- end
- function eventKeyboard(playerName,key,down,x,y)
- if key==37 or key == 65 then
- tfm.exec.movePlayer(playerName, 0, 0, true, -20, 0, true)
- elseif key==39 or key==68 then
- tfm.exec.movePlayer(playerName, 0, 0, true, 20, 0, true)
- end
- end
- function main()
- tfm.exec.disableAutoNewGame (true);
- tfm.exec.disableAutoShaman(true);
- tfm.exec.disableAutoTimeLeft (true);
- tfm.exec.disableAutoScore (true);
- tfm.exec.disableAfkDeath (true);
- end
- function eventNewGame ()
- tfm.exec.setUIMapName("<b><i>Speedracing</i><b>")
- tfm.exec.setGameTime (90*1);
- tfm.exec.setUIShamanName ("<B><i>Speedracing</i></b>")
- end
- function eventNewPlayer(playerName)
- tfm.exec.chatMessage("Witam w <b><i>#Speedracing!</i></b>",playerName)
- end
- function eventChatCommand(playerName, com)
- if com == 'off' then
- system.exit()
- else if com == 'info' then
- ui.addPopup(1,0,"<b><font size='20'color='#13A8B7'>Witaj w <u><i>#Speedracing!</i></u></font><font size='12'color='#D97922'><b>Szybkość myszki 25% (z 5%)</font></b><br /><font size='10'><i>Wyprodukował: <b>Nicknamepll</b></i></font>",playerName,200,100,400)
- end
- end
- end
- tfm.exec.disableAutoNewGame(true)
- maps={"@3535551","@4194139 ","@4203509","@2968636","@4164079","@4149063","@4137883","@4079526","@4057706 ","@3903445 ","@3975221","@4020151","@1882894","@2788292","@3548416","@3015990","@689939","@3353704","@3374495","@3521518","@3211259","@3072840","@3156472","@3114878","@2232477","@3004030","@2994957","@2748155 ","@2887610"}
- tfm.exec.newGame(maps[math.random(#maps)])
- function eventLoop(time,remaining)
- if remaining<=0 then
- tfm.exec.newGame(maps[math.random(#maps)])
- end
- end
- function eventNewPlayer(name)
- tfm.exec.bindKeyboard(name,32,true,true)
- tfm.exec.respawnPlayer(name);
- tfm.exec.setUIShamanName("Speed")
- end
- function eventPlayerWon(name)
- end
- function eventPlayerDied(name)
- end
- for name,player in pairs(tfm.get.room.playerList) do
- system.bindMouse(name, true)
- end
- function eventNewPlayer(name)
- tfm.exec.bindKeyboard(name,32,true,true)
- tfm.exec.respawnPlayer(name);
- tfm.exec.setUIShamanName("<J>Speed</J>")
- ui.addPopup(1,0,"<b><font size=%%%quo1%%%>Najlepsze plemienie : <b><i><u>Polish Legends</u></i></b> !</font>",playerName,175,200,450)
- end
- print '<b>#Speedracing version 0.0.2</b>'
- print 'By Nicknamepl'
- for playerName in pairs(tfm.get.room.playerList) do
- ui.addTextArea(1,'<J><a href="event:klik1">?</a>',playerName,5,30,0,20,0x1c3c41,0x1c3c41,1)
- end
- function eventTextAreaCallback(id,playerName,klik)
- if klik=="klik1" then
- ui.addPopup(1,0,"<b><font size='20'color='#13A8B7'>Witaj w <u><i>#Speedracing!</i></u></font><br /><font size='12'color='#D97922'><b>Szybkość myszki 25% (z 5%)</font></b><br /><font size='10'><i>Wyprodukował: <b>Nicknamepll</b></i></font>",playerName,200,100,400)
- end
- end
- for playerName in pairs(tfm.get.room.playerList) do
- ui.addTextArea(1,'<J><a href="event:klik1">Welcome!</a>',playerName,10 ,30,0,20,0x1c3c41,0x1c3c41,1)
- end
- function eventTextAreaCallback(id,playerName,klik)
- if klik=="klik1" then
- ui.addPopup(1,0,"<b><font size='20'>Witaj w <ROSE><u><i>#Speedracing!</i></u></ROSE><br /> Informacje - !info </font>",playerName,200,100,400)
- end
- end
- ------------------------------------------------------------------------------- Version 0.0.3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement