×

Langue

Fermer
Atelier 801
  • Forums
  • Dev Tracker
  • Connexion
    • English Français
      Português do Brasil Español
      Türkçe Polski
      Magyar Română
      العربية Skandinavisk
      Nederlands Deutsch
      Bahasa Indonesia Русский
      中文 Filipino
      Lietuvių kalba 日本語
      Suomi עברית
      Italiano Česky
      Hrvatski Slovensky
      Български Latviešu
      Estonian
  • Langue
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Lua Snippets
« ‹ 16 / 33 › »
Lua Snippets
Sennesandin
« Citoyen »
1380567540000
    • Sennesandin#0000
    • Profil
    • Derniers messages
#301
  0
What is the Firework Cod ?
Rampapapasam
« Citoyen »
1380567780000
    • Rampapapasam#0000
    • Profil
    • Derniers messages
    • Tribu
#302
  0
Is there a command in Fireworks ?
Ethanrockz
« Citoyen »
1380567900000
    • Ethanrockz#0000
    • Profil
    • Derniers messages
    • Tribu
#303
  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
Shamousey
« Consul »
1380568440000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#304
  0
Ethanrockz a dit :
Why wont this work? im trying to make it so only me and certain people can change there name color

Try changing the "Playername" to name. You're specifically looking for a person with the username Playername right now.
Brkeeee
« Censeur »
1380568800000
    • Brkeeee#0000
    • Profil
    • Derniers messages
    • Tribu
#305
  0
What's the firework code?
Iamconz
« Citoyen »
1380569700000
    • Iamconz#0000
    • Profil
    • Derniers messages
    • Tribu
#306
  0
What is the Shaman Object Number for the Valentines Arrow?
Epicshawty
« Citoyen »
1380569820000
    • Epicshawty#0000
    • Profil
    • Derniers messages
    • Tribu
#307
  0
Iamconz a dit :
What is the Shaman Object Number for the Valentines Arrow?

You should probably look in kikoo. Anyways the ID is 35.
Jtojto
« Citoyen »
1380570060000
    • Jtojto#0000
    • Profil
    • Derniers messages
    • Tribu
#308
  0
Shamousey a dit :
Tribe houses were never meant to load specific perms like that (just like /np reloads the tribe house instead of loading a random map). Hopefully Tig will fix it some time soon.

Oh ok thank you, I thought I was just doing something stupid :c
Bengalstar
« Citoyen »
1380572160000
    • Bengalstar#0000
    • Profil
    • Derniers messages
#309
  0
is there a working command for respawning?
--
nvm got it working
Ethanrockz
« Citoyen »
1380572520000
    • Ethanrockz#0000
    • Profil
    • Derniers messages
    • Tribu
#310
  0
The anme color change wont work for me any help?
Bengalstar
« Citoyen »
1380572520000
    • Bengalstar#0000
    • Profil
    • Derniers messages
#311
  0
Ethanrockz a dit :
The anme color change wont work for me any help?

ok what color do you want your name to be and do you want it as a command
Ethanrockz
« Citoyen »
1380572640000
    • Ethanrockz#0000
    • Profil
    • Derniers messages
    • Tribu
#312
  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
Shamousey
« Consul »
1380572880000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#313
  0
Shamousey a dit :
Try changing the "Playername" to name. You're specifically looking for a person with the username Playername right now.

 
Ethanrockz
« Citoyen »
1380573000000
    • Ethanrockz#0000
    • Profil
    • Derniers messages
    • Tribu
#314
  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
Shamousey
« Consul »
1380573780000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#315
  0
a dit :
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
end

Try this.
Ethanrockz
« Citoyen »
1380573900000
    • Ethanrockz#0000
    • Profil
    • Derniers messages
    • Tribu
#316
  0
Shamousey a dit :
Try this.

Thnaks I wish I was as smart as you xD
Lelelololele
« Citoyen »
1380574200000
    • Lelelololele#0000
    • Profil
    • Derniers messages
    • Tribu
#317
  0
Or you could make it case-insensitive and do
a dit :
function eventChatCommand(name,command)
if name=="Ethanrockz" or name=="Roseyissweet" or name=="Misscharleyy" then
if command=="Color" or command=="color" then tfm.exec.setNameColor(name, 0xF500FE) end
end
end

.
Shamousey
« Consul »
1380574920000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#318
  0
Lelelololele a dit :
Or you could make it case-insensitive and do .

If you're going for case insensitivity, it'd be a better idea to use "string":lower() rather than checking for two different things.
Zyx
« Censeur »
1380579540000
    • Zyx#8690
    • Profil
    • Derniers messages
#319
  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.
Epicshawty
« Citoyen »
1380580080000
    • Epicshawty#0000
    • Profil
    • Derniers messages
    • Tribu
#320
  0
Swirlfire a dit :
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.

Look below. Mort only works for Kiokasama and playeronly works for players (and Kiokasama). Other players cant do !mort.

a dit :

function eventChatCommand(name,command)
if name=="Kiokasama" or name=="Epicshawty" then
if command=="mort" then
tfm.exec.killPlayer(name)
end
end

if command=="playeronly" then
tfm.exec.giveCheese(name)
end
end

Enjoy your admin command.
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Lua Snippets
« ‹ 16 / 33 › »
© Atelier801 2018

Equipe Conditions Générales d'Utilisation Politique de Confidentialité Contact

Version 1.27