Script Requests |
Fatihmilano « Citoyen » 1404133380000
| 0 | ||
Nandananda a dit : function get_highest_score() points={} for k,v in pairs(tfm.get.room.playerList) do table.insert(points,{n=k,s=v.score}) end table.sort(points,function(k,v) return k.s>v.s end) return points[1] end function eventNewGame() loop() end function eventPlayerWon(p) loop() end function eventPlayerDied(p) loop() end function loop() for k,v in pairs(get_highest_score()) do print(v) end end Dernière modification le 1404133560000 |
Pinksrainbow « Citoyen » 1404165660000
| 0 | ||
something to celebrate fourth of july, please. |
Safwanrockz « Censeur » 1404168120000
| 0 | ||
Fatihmilano a dit : You can use something else, such as: function get_highest_score() local tbl = {score=0} for k,v in pairs(tfm.get.room.playerList) do if v.score > tbl.score then v.score = tbl.score tbl.name = k end return tbl.name end print(get_highest_score()) |
Fatihmilano « Citoyen » 1404216120000
| 0 | ||
Safwanrockz a dit : Thanks for the suggestion. |
Ronnnnnnnnn « Citoyen » 1404270240000
| 0 | ||
How to disable all nails? |
Shamousey « Consul » 1404308520000
| 0 | ||
If you mean stopping shamans from anchoring objects together, you can't. |
Hytzoras « Citoyen » 1404312480000
| 0 | ||
Shamousey a dit : You can. But it'll remove other objects, too. Nub Tigrou. |
Firestonnne « Citoyen » 1404432960000
| 0 | ||
[Edit] Never mind this won't work. Dernière modification le 1404440880000 |
Wecwec « Citoyen » 1404446880000
| 0 | ||
I would love to see someone make a basketball minigame, much like there is touchdown. @3343432 my old basketball map if anyone's interested |
Nikuola « Citoyen » 1404470400000
| 0 | ||
i need script: when mice can press space to meet, and also i need script when 1 mouse is left(everyone died) and then it shows in chat in black color "(username) Won!" Jordynl a dit : Thanks :3 [Moderator] Please don't double post! Use the Edit button by clicking on your name instead. Dernière modification le 1404522360000 |
Nikuola 1404470760000
| | ||
[Modéré par Katburger, raison : Double post] Dernière modification le 1404470880000 |
Drgenius « Citoyen » 1404518340000
| 0 | ||
Wecwec a dit : I'll give it a go. :) |
Jojololly « Citoyen » 1404553260000
| 0 | ||
Edit: Forget it Dernière modification le 1404637920000 |
0 | ||
Script that spawns clouds |
Firestonnne « Citoyen » 1404576540000
| 0 | ||
Ygtyk a dit : Not sure how much you want, but using the addShamanObject function can allow you place a cloud like this: code a dit : You can fill in the x, y, angle, speeds, and whether or not it is a ghost object for whatever you want. This spawns a cloud at 0, 0 with no initial speed or rotation, and as a solid object (not ghosted). code a dit : Now if you want to have a script that will allow you to manually spawn clouds with a command, then you can use this script: code a dit : This will allow you to spawn a cloud when you type the !c command and then click a spot. You can change the default properties for the rest of the cloud. |
0 | ||
!kill [name] - Kill mouse. Command just for Admins. |
Fatihmilano « Citoyen » 1404577440000
| 0 | ||
Dobrjik a dit : admins = {Dobrjik = true} function eventChatCommand(p, c) local args = {} for arg in c:gmatch("%S+") do table.insert(args, arg) end args[1] = args[1]:lower() if admins then Dernière modification le 1404577500000 |
0 | ||
ban system for admins, please. |
Shamousey « Consul » 1404595020000
| 0 | ||
Modules can't genuinely "ban" users from Transformice, what would you want the ban system to do? |
Enesxfbxpro « Censeur » 1404595080000
| 0 | ||
bans={} admins={nick=true} function isAdmin(name) return(admins[name] or false) end function eventChatCommand(player, cmd) if isAdmin(player) then if cmd:sub(1,3) == "ban" then table.insert(bans,cmd:sub(5)) print(cmd:sub(5).." ban!) elseif cmd == "unban" then bans={} end end end Dernière modification le 1404595140000 |