Script Requests |
0 | ||
Not to move. Or die after respawn every round. |
Safwanrockz « Censeur » 1404596160000
| 0 | ||
@Dobrijik, Using the script above. bans={} admins={nick=true} function isAdmin(name) return(admins[name] or false) end function eventChatCommand(player, cmd) local arg={} for w in cmd:gmatch("%S+") do table.insert(args, w) end if isAdmin(player) then if arg[1] == "ban" and arg[2] then bans[arg[2]] = true print(arg[2].." banned!) elseif arg[1] == "unban" and arg[2] then bans[arg[2]] = false print(arg[2].." unbanned.") end end end function eventPlayerRespawned(name) if bans[name] then tfm.exec.killPlayer(name) end end --Untested! Dernière modification le 1404596220000 |
Fatihmilano « Citoyen » 1404633720000
| 0 | ||
admins = {Dobrjik = true} bans = {} 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 then |
Jojololly « Citoyen » 1404638040000
| 0 | ||
Can someone make a cannon spawner on this map @281492 and I'll play around with the spawning parameters. ^^ |
Ronnnnnnnnn « Citoyen » 1404651660000
| 0 | ||
Hytzoras a dit : I guess this is what I need, if shaman uses nail the object will be removed. Dernière modification le 1404651900000 |
Safwanrockz « Censeur » 1404651660000
| 0 | ||
Did you mean an automatic cannon spawner? If so, simply use eventLoop(): x = 200 y = 200 function eventLoop() tfm.exec.addShamanObject(19,x,y) end -- Edit the X and Y variables to spawn the cannons in different places. |
Jojololly « Citoyen » 1404658800000
| 0 | ||
Safwanrockz a dit : Thanks but I need it on that map? Edit: or should I just set that as my tribe house? Dernière modification le 1404658920000 |
Safwanrockz « Censeur » 1404668700000
| 0 | ||
Oh, just add tfm.exec.newGame(281492) somewhere on the script. |
Wecwec « Citoyen » 1404680100000
| 0 | ||
Drgenius a dit : I appreciate it! Looking forward to it, if it does get done. glgl |
Firestonnne « Citoyen » 1404699540000
| 0 | ||
Ronnnnnnnnn a dit : Wellllll.... here's the problem with what Hytzoras is claiming. Here's a script that I wrote that will do exactly that, and I want you to observe the major limitations with trying to disable anchors. 1. You cannot disable anchors. Deleting the item immediately after spawning will only get rid of the item, not the anchor. If you were to use a b anchor on another object, the b anchor would remain on it, while the plank despawned. 2. You cannot stop a shaman from summoning an item. The only way to cancel a summon is to have the shaman release their mouse button. Nothing else will stop an item from being spawned once the shaman begins to summon. Seriously, not even death will stop it. 3. When using a cannonball or balloon anchor that is placed on an object, the left behind anchor (see #1) will cause those objects to behave strangely and usually not work right. 4. You cannot easily tell when an anchor is being used. In my script, I used the patterns of the shaman pressing the anchor keys (c,v,b,n,j) to see if the item should be summoned (i.e. if it has an anchor or not). This is the main issue. These sequences cannot tell the difference between when a shaman has an object in hand or just running around. So if you were to mess around and press anchor keys before summoning and object, this would screw up when they actually grab an object and try to put anchors on it. Also, there is no way to tell if they clicked the item again, thereby deleting any anchors already placed. So, if you want to use a script that only works part of the time with some nasty side-effects, then go ahead. Otherwise, I'd just stay clear of the whole "no anchors" idea. |
Renster « Citoyen » 1405387500000
| 0 | ||
Duck to shoot small plank large plank snowball and cupid arrow :) |
Afarthur « Citoyen » 1405393800000
| 0 | ||
x_bateaupirate.png is a 2013-2014 boat What x_?.png is 2012 ? |
Tranna « Citoyen » 1405438740000
| 0 | ||
Could I please have a script for when you click a mouse, they blow a heart? |
Safwanrockz « Censeur » 1405439220000
| 0 | ||
Tranna a dit : It's not possible to force someone to do an emote. |
Tranna « Citoyen » 1405439940000
| 0 | ||
Ohh. What about make them die? :p |
Eliaseeg « Citoyen » 1405443780000
| 0 | ||
Tranna a dit : Try with this: for name,_ in pairs(tfm.get.room.playerList) do system.bindMouse(name, true) end function eventMouse(name, x, y) for name, mouse in pairs(tfm.get.room.playerList) do x_min = mouse.x - 20 x_max = mouse.x + 20 y_min = mouse.y - 20 y_max = mouse.y + 20 if x_min < x and x < x_max and y_min < y and y < y_max then tfm.exec.killPlayer(name) end end end |
Tranna « Citoyen » 1405449000000
| 0 | ||
Eliaseeg a dit : Thanks, that works fine =3 |
Daryan « Citoyen » 1405456980000
| 0 | ||
Hi, i need help with spawning shaman items with command like !spawn 1 if it's not possible by ID please make me this as command: spawn ball with Shift a dit : |
Fuzzyfoe « Citoyen » 1405462200000
| 0 | ||
Hi, can somebody please tell me how to make a command that will spawn an object in the coordinates on the map I wish for it to spawn continuously without stopping? Thank you. Dernière modification le 1405462260000 |
Eliaseeg « Citoyen » 1405480500000
| 0 | ||
Micearecute a dit : Here you go: local spawn = false function eventChatCommand(name, command) if command == "spawn" then spawn = true end end function eventLoop() if spawn then tfm.exec.addShamanObject(19,0,0,0,0,0,false) end end Red = x coordinate Orange = y coordinate |