×

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 Kodları Tartışma & Yardımlaşma Başlığı
« ‹ 42 / 388 › »
Lua Kodları Tartışma & Yardımlaşma Başlığı
Opsfentek
« Citoyen »
1395855600000
    • Opsfentek#0000
    • Profil
    • Derniers messages
    • Tribu
#821
  0
a dit :
function eventChatCommand(isim,komut)
args={}
for arg in komut:gmatch(%S+") do
table.insert(args, arg)
end
if komut=="p *" then
for isim in pairs(tfm.get.room.playerList) do
tfm.exec.giveCheese(isim)
end
elseif komut=="s *" then
for isim in pairs(tfm.get.room.playerList) do
tfm.exec.setShaman(isim)
end
elseif komut=="k *" then
for isim in pairs(tfm.get.room.playerList) do
tfm.exec.killPlayer(isim)
end
elseif komut=="r *" then
for isim in pairs(tfm.get.room.playerList) do
tfm.exec.respawnPlayer(isim)
end
end
if args[1] == "time" then
tfm.exec.setGameTime(tonumber(args[2]))
end
end

^^^^
Oyga
« Citoyen »
1395855600000
    • Oyga#0000
    • Profil
    • Derniers messages
    • Tribu
#822
  1
Profightxdp a dit :
Hayır !time istediğin yazıyı yazıp süreyi ona göre ayarlaması.

Vermiştim ben, bir zahmetde kodları kaydet.

Profightxdp a dit :
bunu o kodların içine nasıl ekleyeceğim ?

function eventChatCommand(isim,komut)
local args = {}
for arg in komut:gmatch("%S+") do
table.insert(args, arg)
end
if args[1] == "time" then
tfm.exec.setGameTime(tonumber(args[2]))
elseif komut=="p *" then
for isim in pairs(tfm.get.room.playerList) do
tfm.exec.giveCheese(isim)
end
elseif komut=="s *" then
for isim in pairs(tfm.get.room.playerList) do
tfm.exec.setShaman(isim)
end
elseif komut=="k *" then
for isim in pairs(tfm.get.room.playerList) do
tfm.exec.killPlayer(isim)
end
elseif komut=="r *" then
for isim in pairs(tfm.get.room.playerList) do
tfm.exec.respawnPlayer(isim)
end
end
end
Barsems
« Citoyen »
1395855720000
    • Barsems#0000
    • Profil
    • Derniers messages
#823
  1
Oyga a dit :


Vermiştim ben, bir zahmetde kodları kaydet.
function eventChatCommand(isim,komut)
local args = {}
for arg in komut:gmatch("%S+") do
table.insert(args, arg)
end
if args[1] == "time" then
tfm.exec.setGameTime(tonumber(args[2]))
elseif komut=="p *" then
for isim in pairs(tfm.get.room.playerList) do
tfm.exec.giveCheese(isim)
end
elseif komut=="s *" then
for isim in pairs(tfm.get.room.playerList) do
tfm.exec.setShaman(isim)
end
elseif komut=="k *" then
for isim in pairs(tfm.get.room.playerList) do
tfm.exec.killPlayer(isim)
end
elseif komut=="r *" then
for isim in pairs(tfm.get.room.playerList) do
tfm.exec.respawnPlayer(isim)
end
end
end

Biraz geç kaldın galiba
Opsfentek
« Citoyen »
1395855720000
    • Opsfentek#0000
    • Profil
    • Derniers messages
    • Tribu
#824
  1
Barsems a dit :


Biraz geç kaldın galiba

^^^^ :D 5 sn farkla :D
Barsems
« Citoyen »
1395855840000
    • Barsems#0000
    • Profil
    • Derniers messages
#825
  0
Opsfentek a dit :


^^^^ :D 5 sn farkla :D

5 sn. den daha fazla oldu atma.
Opsfentek
« Citoyen »
1395856740000
    • Opsfentek#0000
    • Profil
    • Derniers messages
    • Tribu
#826
  0
Barsems a dit :


5 sn. den daha fazla oldu atma.

1 dk de sende :D
Fatihmilano
« Citoyen »
1395862140000
    • Fatihmilano#0000
    • Profil
    • Derniers messages
    • Tribu
#827
  0
http://prntscr.com/34cwij
Kmlcan
« Citoyen »
1395862380000
    • Kmlcan#0000
    • Profil
    • Derniers messages
    • Tribu
#828
  0
*#doge ?
Fatihmilano
« Citoyen »
1395862380000
    • Fatihmilano#0000
    • Profil
    • Derniers messages
    • Tribu
#829
  0
Kmlcan a dit :
*#doge ?

/module *#control
(SOHBETİ BOZUYOR)
Kmlcan
« Citoyen »
1395862380000
    • Kmlcan#0000
    • Profil
    • Derniers messages
    • Tribu
#830
  0
Maki onu *#doge odasında açıyordu.
Bilmemfarene
« Censeur »
1395862740000
    • Bilmemfarene#0000
    • Profil
    • Derniers messages
    • Tribu
#831
  0
Bir oda bitince Oda adının yerine (örnek: zecamcil - @1234567)Yeni oda 8 saniye sonra başlıcak (10 saniyede olabilir) Böyle bir kod verirmisiniz ??
Opsfentek
« Citoyen »
1395862860000
    • Opsfentek#0000
    • Profil
    • Derniers messages
    • Tribu
#832
  0
Bilmemfarene a dit :
Bir oda bitince Oda adının yerine (örnek: zecamcil - @1234567)Yeni oda 8 saniye sonra başlıcak (10 saniyede olabilir) Böyle bir kod verirmisiniz ??

Oda bitince ?
Galiba yeni oyun başlarken demek istiyorsun.
Neyse yapıyorum :D

a dit :

tfm.exec.setUIMapName("Yeni oyun başlamasına : " ..timersure.. " sn kaldı")
timersure=10
timer = false
function eventPlayerDied(n)
i=0
if not tfm.get.room.playerList[name].isDied then
i = i+1
if i == 1 then
timer = true
end
end
end


function eventLoop(t,rt)
if timer==true then
timersure = timersure -1
elseif timersure==0 then
tfm.exec.newGame()
end
end

function eventNewGame()
timersure = 10
timer=false
end

Denemedim denersin :D
Oyga
« Citoyen »
1395863880000
    • Oyga#0000
    • Profil
    • Derniers messages
    • Tribu
#833
  0
Barsems a dit :


Biraz geç kaldın galiba

Sana göre çaldım kodu değilmi?
Opsfentek
« Citoyen »
1395864180000
    • Opsfentek#0000
    • Profil
    • Derniers messages
    • Tribu
#834
  0
Oyga a dit :


Sana göre çaldım kodu değilmi?

Bence değil ve kodu senden önce paylaştım buna rağmen hayır :D çünkü luada nooblardan değilsin :D
Oyga
« Citoyen »
1395864300000
    • Oyga#0000
    • Profil
    • Derniers messages
    • Tribu
#835
  0
Opsfentek a dit :


Bence değil ve kodu senden önce paylaştım buna rağmen hayır :D çünkü luada nooblardan değilsin :D

Yoo butona basınca popup, popupda butona basınca text çıkmasını çalmışımda. (Neyse tartışmaya girmeyelim.)
Opsfentek
« Citoyen »
1395864300000
    • Opsfentek#0000
    • Profil
    • Derniers messages
    • Tribu
#836
  0
Oyga a dit :


Yoo butona basınca popup, popupda butona basınca text çıkmasını çalmışımda. (Neyse tartışmaya girmeyelim.)

ok ve haberim yok :D
Profightxdp
« Citoyen »
1395865320000
    • Profightxdp#0000
    • Profil
    • Derniers messages
    • Tribu
#837
  0
a dit :
function eventChatCommand(isim,komut)
local args = {}
for arg in komut:gmatch("%S+") do
table.insert(args, arg)
end
if args[1] == "time" then
tfm.exec.setGameTime(tonumber(args[2]))
elseif komut=="p *" then
for isim in pairs(tfm.get.room.playerList) do
tfm.exec.giveCheese(isim)
end
elseif komut=="s *" then
for isim in pairs(tfm.get.room.playerList) do
tfm.exec.setShaman(isim)
end
elseif komut=="k *" then
for isim in pairs(tfm.get.room.playerList) do
tfm.exec.killPlayer(isim)
end
elseif komut=="r *" then
for isim in pairs(tfm.get.room.playerList) do
tfm.exec.respawnPlayer(isim)
end


bu koda bunu nasıl ekleyebilirim ?

patatesler = {Profightxdp = true}

function eventChatCommand(selpak, masa)
local pijama = {}
for lokum in masa:gmatch("%S+") do
table.insert(pijama, lokum)
end
if pijama[1] == "skor" and patatesler[selpak] then
local super, coder = pijama[3] and pijama[2] or selpak, pijama[3] or pijama[2]
tfm.exec.setPlayerScore(super, tonumber(coder) or 0)
end
end

?
Oyga
« Citoyen »
1395865560000
    • Oyga#0000
    • Profil
    • Derniers messages
    • Tribu
#838
  0
Profightxdp a dit :

bu koda bunu nasıl ekleyebilirim ?

patatesler = {Profightxdp = true}

function eventChatCommand(selpak, masa)
local pijama = {}
for lokum in masa:gmatch("%S+") do
table.insert(pijama, lokum)
end
if pijama[1] == "skor" and patatesler[selpak] then
local super, coder = pijama[3] and pijama[2] or selpak, pijama[3] or pijama[2]
tfm.exec.setPlayerScore(super, tonumber(coder) or 0)
end
end

?

Birazda sen uğraş. Hiç kodları incelemiyorsun,en küçük konuda bizden yardım isteme. Kodları incele sende öğren.
Fatihmilano
« Citoyen »
1395865560000
    • Fatihmilano#0000
    • Profil
    • Derniers messages
    • Tribu
#839
  0
Profightxdp a dit :

bu koda bunu nasıl ekleyebilirim ?

patatesler = {Profightxdp = true}

function eventChatCommand(selpak, masa)
local pijama = {}
for lokum in masa:gmatch("%S+") do
table.insert(pijama, lokum)
end
if pijama[1] == "skor" and patatesler[selpak] then
local super, coder = pijama[3] and pijama[2] or selpak, pijama[3] or pijama[2]
tfm.exec.setPlayerScore(super, tonumber(coder) or 0)
end
end

?

Hahahahaha..
Bilmemfarene
« Censeur »
1395866220000
    • Bilmemfarene#0000
    • Profil
    • Derniers messages
    • Tribu
#840
  0
Opsfentek a dit :


Oda bitince ?
Galiba yeni oyun başlarken demek istiyorsun.
Neyse yapıyorum :D
Denemedim denersin :D

## Init Error : Bilmemfarene.lua:1: attempt to concatenate nil and string
böyle bir hata veriyor.
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Lua Kodları Tartışma & Yardımlaşma Başlığı
« ‹ 42 / 388 › »
© Atelier801 2018

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

Version 1.27