Lua Snippets |
![]() ![]() « Citoyen » 1380567540000
| 0 | ||
What is the Firework Cod ? |
![]() ![]() « Citoyen » 1380567780000
| 0 | ||
Is there a command in Fireworks ? |
![]() ![]() « Citoyen » 1380567900000
| 0 | ||
function eventChatCommand(name,command) if name=="Ethanrockz" or name=="Roseyissweet" or name=="Misscharleyy" then if command=="Color" then tfm.exec.setNameColor("Playername", 0xffffff) Why wont this work? im trying to make it so only me and certain people can change there name color |
![]() ![]() « Consul » 1380568440000
| 0 | ||
Ethanrockz a dit : Try changing the "Playername" to name. You're specifically looking for a person with the username Playername right now. |
![]() ![]() « Censeur » 1380568800000
| 0 | ||
What's the firework code? |
![]() ![]() « Citoyen » 1380569700000
| 0 | ||
What is the Shaman Object Number for the Valentines Arrow? |
![]() ![]() « Citoyen » 1380569820000
| 0 | ||
Iamconz a dit : You should probably look in kikoo. Anyways the ID is 35. |
![]() ![]() « Citoyen » 1380570060000
| 0 | ||
Shamousey a dit : Oh ok thank you, I thought I was just doing something stupid :c |
![]() ![]() « Citoyen » 1380572160000
| 0 | ||
is there a working command for respawning? -- nvm got it working |
![]() ![]() « Citoyen » 1380572520000
| 0 | ||
The anme color change wont work for me any help? |
![]() ![]() « Citoyen » 1380572520000
| 0 | ||
Ethanrockz a dit : ok what color do you want your name to be and do you want it as a command |
![]() ![]() « Citoyen » 1380572640000
| 0 | ||
function eventChatCommand(name,command) if name=="Ethanrockz" or name=="Roseyissweet" or name=="Misscharleyy" then if command=="Color" then tfm.exec.setNameColor("Playername", 0xF500FE) end end My friends say It does nothing its supposed to change your name to pink only for me and rosey and charley but it dosnt do anything |
![]() ![]() « Consul » 1380572880000
| 0 | ||
Shamousey a dit : |
![]() ![]() « Citoyen » 1380573000000
| 0 | ||
I did remove player name and put name I just copy and pasted from above xD edit: Current code function eventChatCommand(name,command) if name=="Ethanrockz" or name=="Roseyissweet" or name=="Misscharleyy" then if command=="Color" then tfm.exec.setNameColor("name", 0xF500FE) end end if command=="Help" then ui.addPopup(0,0,"Hello welcome to help this is currently being worked on so please wait!",name,270,200,300) elseif command=="Mort" then tfm.exec.killPlayer(name) --Kills player if !mort end end |
![]() ![]() « Consul » 1380573780000
| 0 | ||
a dit : Try this. |
![]() ![]() « Citoyen » 1380573900000
| 0 | ||
Shamousey a dit : Thnaks I wish I was as smart as you xD |
![]() « Citoyen » 1380574200000
| 0 | ||
Or you could make it case-insensitive and do a dit : . |
![]() ![]() « Consul » 1380574920000
| 0 | ||
Lelelololele a dit : If you're going for case insensitivity, it'd be a better idea to use "string":lower() rather than checking for two different things. |
0 | ||
Is this how you paste it into the lua box, all together? function eventChatCommand("Kiokasama","kill") if command=="mort" thentfm.exec.killPlayer("Kiokasama") I don't quite get Lua snippets yet. |
![]() ![]() « Citoyen » 1380580080000
| 0 | ||
Swirlfire a dit : Look below. Mort only works for Kiokasama and playeronly works for players (and Kiokasama). Other players cant do !mort. a dit : Enjoy your admin command. |