×

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
  • /
  • Script Requests
« ‹ 34 / 160 › »
Script Requests
Kbyjkbev
« Censeur »
1387349460000
    • Kbyjkbev#0000
    • Profil
    • Derniers messages
    • Tribu
#661
  0
Do that by pressing SPACE at a specific location on the map the player was given a cheese, pls
Safwanrockz
« Censeur »
1387357440000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#662
  0
Kbyjkbev a dit :
Do that by pressing SPACE at a specific location on the map the player was given a cheese, pls

Please state the specific location's coordinates.
Abdeltif
« Citoyen »
1387367160000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#663
  0
Safwanrockz a dit :
Please state the specific location's coordinates.

I made this , but it still need fixes :c
a dit :
function eventNewPlayer(name)
tfm.exec.bindKeyboard(name,32,true,true)
end

for name,player in pairs(tfm.get.room.playerList) do
eventNewPlayer(name)
end

function eventKeyBoard(playerName, keycode, down, x, y)
down = true
if x<200 and y>0 then
if keycode==32 then
tfm.exec.giveCheese(playerName)
end
end
end

tfm.exec.newGame(0)

.
Safwanrockz
« Censeur »
1387370340000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#664
  0
Abdeltif a dit :
I made this , but it still need fixes :c
.

You spelled "eventKeyboard" as "eventKeyBoard".
Just remember that Lua is case sensitive, therefore the event must be spelled correctly with no uppercase or lowercase letters that aren't default.
Toainsa
« Citoyen »
1387371360000
    • Toainsa#0000
    • Profil
    • Derniers messages
    • Tribu
#665
  0
Safwanrockz a dit :
You spelled "eventKeyboard" as "eventKeyBoard".
Just remember that Lua is case sensitive, therefore the event must be spelled correctly with no uppercase or lowercase letters that aren't default.

Okay , that helps :3
Kbyjkbev
« Censeur »
1387381200000
    • Kbyjkbev#0000
    • Profil
    • Derniers messages
    • Tribu
#666
  0
Abdeltif a dit :
I made this , but it still need fixes :c
.

Thanks
Jordy
« Consul »
1387392840000
    • Jordy#0015
    • Profil
    • Derniers messages
    • Tribu
#667
  0
Abdeltif a dit :
I made this , but it still need fixes :c
.

Was the typo the only fix it needed?
Alishakouri
« Citoyen »
1387450080000
    • Alishakouri#0000
    • Profil
    • Derniers messages
    • Tribu
#668
  0
i want everybody's name in the room become rainbow coloured
Jordy
« Consul »
1387457100000
    • Jordy#0015
    • Profil
    • Derniers messages
    • Tribu
#669
  0
Alishakouri a dit :
i want everybody's name in the room become rainbow coloured

This might do the job.

a dit :

function eventNewGame()
for p in pairs(tfm.get.room.playerList) do
tfm.exec.setNameColor(p, string.format("%X", math.random(0x000000, 0xFFFFFF)))
end
end

I hope it helped you.
Zutto
« Citoyen »
1387474380000
    • Zutto#4451
    • Profil
    • Derniers messages
    • Tribu
#670
  0
I caught a script in this thread, and I have a problem D=
a dit :
Players={}

for name,player in pairs(tfm.get.room.playerList) do
table.insert(Players, name)
end

ui.addTextArea(0, table.concat(Players,", "), nil, 594, 344, 200, 50, 1850433, 0, 1.1)

function eventChatCommand(name, command)
if command=="refresh" then
ui.addTextArea(0, table.concat(Players,", "), nil, 594, 344, 200, 50, 1850433, 0, 1.1)
end
end

Don't refresh, and I try whit ui.removeTextArea(0, nil) next to the command refresh.
Katorbum
1387476060000
    • Katorbum#0000
    • Profil
    • Derniers messages
    • Tribu
#671
[Modéré par Takumisyn, raison : Spam]
Abdyllah
« Citoyen »
1387477620000
    • Abdyllah#0000
    • Profil
    • Derniers messages
#672
  0
I need Admin Panel.
Abdeltif
« Citoyen »
1387478760000
    • Abdeltif#0000
    • Profil
    • Derniers messages
    • Tribu
#673
  0
Aritxy a dit :
I caught a script in this thread, and I have a problem D=


Don't refresh, and I try whit ui.removeTextArea(0, nil) next to the command refresh.

Jordynl made this for you
Jordy , not meh
a dit :
Players={}

function table.concat(tbl,delim)
local str=''
if delim==nil then delim='' end
for k,v in pairs(tbl) do
str=str..v..delim
end
return str
end

function updatePlayers()
Players = {}
for k,v in pairs(tfm.get.room.playerList) do
table.insert(Players, k)
end
ui.updateTextArea(0, table.concat(Players,", "), nil)
end

function eventNewPlayer(name)
updatePlayers()
end

function eventPlayerLeft(name)
updatePlayers()
end

function eventChatCommand(name, cmd)
if cmd=="ref" then
print(type(Players))
ui.updateTextArea(0, table.concat(Players,", "), nil)
end
end

for k,v in pairs(tfm.get.room.playerList) do
eventNewPlayer(k)
end

ui.addTextArea(0, table.concat(Players,", "), nil, nil, nil, nil, nil, nil, nil, 0.5, true)


His script is so messy :x
Zutto
« Citoyen »
1387480140000
    • Zutto#4451
    • Profil
    • Derniers messages
    • Tribu
#674
  0
Abdeltif a dit :
Jordynl made this for you
Jordy , not meh

His script is so messy :x

Wow ty
Safwanrockz
« Censeur »
1387485000000
    • Safwanrockz#0095
    • Profil
    • Derniers messages
    • Tribu
#675
  0
Abdyllah a dit :
I need Admin Panel.

What functionalities do you want the admin to have?
Jordy
« Consul »
1387500900000
    • Jordy#0015
    • Profil
    • Derniers messages
    • Tribu
#676
  0
Here is a better version.

a dit :

players = {}

function eventNewPlayer(name)
table.insert(players, name)
ui.addTextArea(0, table.concat(players,", "), name, nil, nil, nil, nil, nil, nil, 0.5, true)
end

function eventPlayerLeft(name)
for k,v in pairs(players) do
if v == name then
table.remove(players, k)
end
end
ui.updateTextArea(0, table.concat(players,", "), nil)
end

for k,v in pairs(tfm.get.room.playerList) do
eventNewPlayer(k)
end


I hope it helped you.
Spycatipp
« Citoyen »
1387530240000
    • Spycatipp#0000
    • Profil
    • Derniers messages
    • Tribu
#677
  0
When I write "!m message" that message to be printed.
Bushmeister
« Consul »
1387531980000
    • Bushmeister#0000
    • Profil
    • Derniers messages
    • Tribu
#678
  0
Spycatipp a dit :
When I write "!m message" that message to be printed.

!m# message
[quote=!m#]function eventChatCommand(playerName, message)
local args={}

for argument in message:gmatch("[^#]+") do
table.insert(args,argument)
end
if args[1]=="m" and args[2] then
print(args[2])
end
end
system.disableChatCommandDisplay("m#")
--!m# Hello world![/quote]
Spycatipp
« Citoyen »
1387535100000
    • Spycatipp#0000
    • Profil
    • Derniers messages
    • Tribu
#679
  0
Bushmeister a dit :
!m# message

thanks
But how i make it ROSE?

EDIT: i finded the solution
Bushmeister
« Consul »
1387536000000
    • Bushmeister#0000
    • Profil
    • Derniers messages
    • Tribu
#680
  0
How to make everyone who is in a table displayed popup?
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Script Requests
« ‹ 34 / 160 › »
© Atelier801 2018

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

Version 1.27