| |
| « Citoyen » 1517214420000
| 0 | ||
| Also how do you respawn everyone even the new joiners.. Because i dont know that script.. |
| « Citoyen » 1517214600000
| 0 | ||
| is there a script like this : if i say !mapname Hello world! it will name the tribehouse's code to Hello world! function eventChatCommand(name, cmd) if cmd:sub(0,7) == "mapname" then tfm.exec.newGame(cmd:sub(5)) end end ^ is that it? |
| « Sénateur » 1517237580000
| 0 | ||
Overjoy06 a dit : Code Lua 1 2 3 4 eventNewPlayer = function(n) Overjoy06 a dit : Use [code=Lua] your code [/code] to put a Lua script here. Code Lua 1 2 3 4 5 6 7 8 function eventChatCommand(name, cmd) |
| « Citoyen » 1517470140000
| 0 | ||
| You see the minigame battle made by Jordynl is too interesting to play. Can anyone give me the script of battle. I wanna try it. |
| « Citoyen » 1517481960000
| 0 | ||
| How do you set spawn? |
| « Sénateur » 1517497680000
| 0 | ||
Hemant2002 a dit : You can play that at his room :/ Overjoy06 a dit : What do you mean? Respawn the player and move him? Code Lua 1 2 3 4 eventPlayerDied = function(n) |
| « Citoyen » 1517540040000
| 0 | ||
Bolodefchoco a dit : The games not official and it isnt been run so i cant play so please ask him to give script or run the game. |
| « Citoyen » 1517560260000
| 0 | ||
| Yes, thanks Bolodefchoco How do you make a script doing like this : when you click space on a player it will teleport him somewhere and when you click on a message saying "Get meep" It gives you meep scripts.. I don't know those lua scripts Dernière modification le 1517569380000 |
| 1517561160000
| | ||
| [Modéré par Wangan, raison : Multiple posts.] |
| 1517561580000
| | ||
| [Modéré par Wangan, raison : Multiple posts.] |
| 0 | ||
Overjoy06 a dit : How can you click space on a player? Do you want a player to teleport anywhere on the map randomly or to a specific location? Be more specific please. Overjoy06 a dit : 1 2 3 4 5 6 7 ui.addTextArea(1,"<a href='event:meep'>Give Meep!</a>",nil,10,30,70,20) This will create a button on the top-left corner of the screen, clicking it will give the player Meep ability. |
| « Citoyen » 1517566020000
| 0 | ||
| like when you have meep it will make the player get teleported to the coordinate that is on the lua script if you want more specific then when a player clicked space (number 32) on a player it will make them get teleported on the coordinate based on the lua script i want them to be on a specific location sorry i am not a american.. Also, what script does this : theres a button then when you click it something will be spawned (i need it on a specific location) that object is a small plank Dernière modification le 1517569320000 |
| 1517566140000
| | ||
| [Modéré par Wangan, raison : Multiple posts. Please edit your posts instead of making consecutive posts.] |
| 1517566620000
| | ||
| [Modéré par Wangan, raison : Multiple posts. Please edit your posts instead of making consecutive posts.] |
| 1517568720000
| | ||
| [Modéré par Wangan, raison : Multiple posts. Please edit your posts instead of making consecutive posts.] |
| 1517568720000
| | ||
| [Modéré par Wangan, raison : Multiple posts. Please edit your posts instead of making consecutive posts.] |
| 0 | ||
| Okay, I'm still somewhat confused about teleporting players so maybe someone else can help you with that. As for this, Overjoy06 a dit : 1 2 3 4 5 6 7 8 9 10 11 xPos = 300 You can play around with xPos and yPos values to adjust exactly where you want the small plank to spawn. Dernière modification le 1517572080000 |
| « Consul » 1517572560000
| 0 | ||
| A script that makes certain chat commands (!mapname, !cname) only available to players in the mod = {Marciskris = true} table. |
| 0 | ||
Marciskris a dit : Code Lua 1 2 3 4 5 6 7 8 9 10 mod = {Marciskris = true, Wazt = true} |
| 0 | ||
Marciskris a dit : There's no need to set each Moderator's name to true since anyone placed in the mod array is already considered a Moderator. Simple enclose each Moderator's name in single or double quotes and separate the names with a comma. 1 mod = {'Marciskris', 'Acermice'}Next, you can create a simple helper function to loop through the mod array when needed. 1 2 3 4 5 6 7 8 function isMod (modArr, name) Now before executing any commands intended for Moderators only, simple check If the name is in the mod array. If so, proceed with the command otherwise just ignore it. 1 2 3 4 5 6 7 8 function eventChatCommand(player, cmd) Sniped by Wazt, I like their solution! Dernière modification le 1517576880000 |