×

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
  • /
  • Archives
  • /
  • Module API FAQ
« ‹ 15 / 38 › »
Module API FAQ
Epicshawty
« Citoyen »
1380394740000
    • Epicshawty#0000
    • Profil
    • Derniers messages
    • Tribu
#281
  0
Tailtong a dit :
thank you very much, epic

I fixed some errors for you ^^
I'll try fixing more errors if I find any!
Shamousey a dit :
Instead of shortening your code like that manually, may I interest you in a Lua Minifier?

Well well well, lua expert showing off :c
Tailtong
« Citoyen »
1380395220000
    • Tailtong#0000
    • Profil
    • Derniers messages
    • Tribu
#282
  0
Epicshawty a dit :
I fixed some errors for you ^^
I'll try fixing more errors if I find any!

may i ask what errors
Epicshawty
« Citoyen »
1380395220000
    • Epicshawty#0000
    • Profil
    • Derniers messages
    • Tribu
#283
  0
Tailtong a dit :
may i ask what errors

Just OCD errors. (gets on my nerves)
Tailtong
« Citoyen »
1380397440000
    • Tailtong#0000
    • Profil
    • Derniers messages
    • Tribu
#284
  0
how to make a !fly command
Evilsantah
« Citoyen »
1380397560000
    • Evilsantah#0000
    • Profil
    • Derniers messages
#285
  0
Epicshawty a dit :
I fixed some errors for you ^^
I'll try fixing more errors if I find any!

Well well well, lua expert showing off :c

SH4M0US3Y suks.
Epicshawty
« Citoyen »
1380397800000
    • Epicshawty#0000
    • Profil
    • Derniers messages
    • Tribu
#286
  0
Evilsantah a dit :
SH4M0US3Y suks.

! 4GR33
Tailtong
« Citoyen »
1380397920000
    • Tailtong#0000
    • Profil
    • Derniers messages
    • Tribu
#287
  0
i added a teleportation thing to tribes, thanks (again) epic
Epicshawty
« Citoyen »
1380398040000
    • Epicshawty#0000
    • Profil
    • Derniers messages
    • Tribu
#288
  0
Tailtong a dit :
i added a teleportation thing to tribes, thanks (again) epic

You're welcome.
What did you add exactly?
Tailtong
« Citoyen »
1380400380000
    • Tailtong#0000
    • Profil
    • Derniers messages
    • Tribu
#289
  0
Epicshawty a dit :
That is correct ^ (it gives everyone the access to transport)

i added this
Epicshawty
« Citoyen »
1380400500000
    • Epicshawty#0000
    • Profil
    • Derniers messages
    • Tribu
#290
  0
Tailtong a dit :
i added this

oh ok :P
i can add it to the shortened one
Tailtong
« Citoyen »
1380400860000
    • Tailtong#0000
    • Profil
    • Derniers messages
    • Tribu
#291
  0
no need to do it
Epicshawty
« Citoyen »
1380400980000
    • Epicshawty#0000
    • Profil
    • Derniers messages
    • Tribu
#292
  0
Tailtong a dit :
no need to do it

alright ^
Zutto
« Citoyen »
1380402300000
    • Zutto#4451
    • Profil
    • Derniers messages
    • Tribu
#293
  0
How i can do a invisible command?

(Aritxy) !chat

How i can do that invisible?


I have this:

function eventChatCommand(name,command)
if command=="ayuda" then
ui.addPopup(0,0,"<b>Conjugation</b> es un mini juego con la rotación de los mapas de vanilla y en los mapas, no hay chamán, pero los ratones, podéis conjugar dando un click en el sitio que queráis conjugar. <b>Comandos:</b> <b>!mort</b> - Es lo mismo que /mort, mueres.",name,270,200,300)
elseif command=="mort" then
tfm.exec.killPlayer(name) --Kills player if !mort
end
end
Shamousey
« Consul »
1380402900000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#294
  0
You can hide commands from showing up in the chat with system.disableChatCommandDisplay.

a dit :
system.disableChatCommandDisplay("ayuda",true)
Zutto
« Citoyen »
1380403440000
    • Zutto#4451
    • Profil
    • Derniers messages
    • Tribu
#295
  0
Shamousey a dit :
You can hide commands from showing up in the chat with system.disableChatCommandDisplay.

a dit :
system.disableChatCommandDisplay("ayuda",true)

Thanks

I can't use my secret command D=

function eventChatCommand(name,command)
if command=="ayuda" then
ui.addPopup(0,0,"<b>Conjugation</b> es un mini juego con la rotación de los mapas de vanilla y en los mapas, no hay chamán, pero los ratones, podéis conjugar dando un click en el sitio que queráis conjugar. <b>Comandos:</b> <b>!mort</b> - Es lo mismo que /mort, mueres.",name,270,200,300)
elseif command=="mort" then
tfm.exec.killPlayer(name) --Kills player if !mort
elseif command=="givevictory" then
tfm.exec.playerVictory(name) --Give victory if !givevictory
end
end


givevictory, i can't use D=
earlier yes i can use D=
Shamousey
« Consul »
1380404040000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#296
  0
Aritxy a dit :
givevictory, i can't use D=
earlier yes i can use D=

Your !givevictory command works fine in this script. The tfm.exec.playerVictory() function only has the same effect as taking someone to the hole - you must have cheese in order for it to work.
Zutto
« Citoyen »
1380404220000
    • Zutto#4451
    • Profil
    • Derniers messages
    • Tribu
#297
  0
Shamousey a dit :
Your !givevictory command works fine in this script. The tfm.exec.playerVictory() function only has the same effect as taking someone to the hole - you must have cheese in order for it to work.

Oh xd ty

Other question xd

Can i make a commands but thats commands only can use the admins?

And can i make someone admin whit !admin username?
Fluffyshine
« Citoyen »
1380404340000
    • Fluffyshine#0000
    • Profil
    • Derniers messages
    • Tribu
#298
  0
Why can’t we use system.newTimer? >:U
Shamousey
« Consul »
1380404580000
    • Shamousey#0095
    • Profil
    • Derniers messages
    • Tribu
#299
  0
You could just simply use another if statement if you really wanted.

a dit :
function eventChatCommand(name,command)
if name=="Aritxy" or name=="Shamousey" or name=="Tigrounette" then
if command=="example" then
print("Here you'd put any command you only want the admins to be able to use.")
end
end
if command=="exampletwo" then
print("Anyone would be able to use this command.")
end
end

There are far better ways to do this - I'll write a small example up to show how later in more depth.

Fluffyshine a dit :
Why can’t we use system.newTimer? &gt;:U

Timers can be a strain on the server.
Dharakoid
« Citoyen »
1380405360000
    • Dharakoid#0000
    • Profil
    • Derniers messages
    • Tribu
#300
  0
Epicshawty a dit :
Wrong.

That is correct ^ (it gives everyone the access to transport)

No Arixty's code works?
  • Forums
  • /
  • Transformice
  • /
  • Archives
  • /
  • Module API FAQ
« ‹ 15 / 38 › »
© Atelier801 2018

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

Version 1.27