×

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ığı
« ‹ 49 / 388 › »
Lua Kodları Tartışma & Yardımlaşma Başlığı
Iemrevegol
« Citoyen »
1396093560000
    • Iemrevegol#0000
    • Profil
    • Derniers messages
    • Tribu
#961
  0
Birini Mod Yapma Kodunu Atarmısınız.
Leo
« Citoyen »
1396093800000
    • Leo#6000
    • Profil
    • Derniers messages
#962
  0
a dit :

mods = {}
admins = {Iemrevegol=true,Tutekkro=true}

function eventChatCommand(name, cmd)
local args={}
for arg in cmd:gmatch("%S+") do
table.insert(args,arg)
end
if args[1]=="mod" and admins[name] then
table.insert(mods,args[2])
print("<R>"..args[2].."<N> mod oldu!")
end
end

Denemeden yaptım hata olursa söyle ^^
Iemrevegol
« Citoyen »
1396096620000
    • Iemrevegol#0000
    • Profil
    • Derniers messages
    • Tribu
#963
  0
Bana Adminlerin Rengi Kırmızı Olcak Ve Modların Rengi Mavi Olcak Bir Kod Verirmisiniz.
Hotspotower
« Citoyen »
1396096740000
    • Hotspotower#0000
    • Profil
    • Derniers messages
    • Tribu
#964
  0
Iemrevegol a dit :
Bana Adminlerin Rengi Kırmızı Olcak Ve Modların Rengi Mavi Olcak Bir Kod Verirmisiniz.

for n,p in pairs(admins) do
-- Renk kodu
end

for n,p in pairs(mods) do
-- Renk kodu
end
Laycosd
« Citoyen »
1396098120000
    • Laycosd#0000
    • Profil
    • Derniers messages
    • Tribu
#965
  0
Suan Bende Bu Kod var ama renkler Olmuyo

admins={Laycosd=true,Iemrevegol=true}
mods = {}
admins = {Iemrevegol=true}

function eventChatCommand(name, cmd)
local args={}
for arg in cmd:gmatch("%S+") do
table.insert(args,arg)
end
if args[1]=="mod" and admins[name] then
table.insert(mods,args[2])
end
end
for n,p in pairs(admins) do
-- CB546B
end

for n,p in pairs(mods) do
-- 2F7FCC
end
Hotspotower
« Citoyen »
1396098300000
    • Hotspotower#0000
    • Profil
    • Derniers messages
    • Tribu
#966
  0
Düzgünü a dit :


admins={Dakls=true,Iemrevegol=true}
mods = {}
admins = {Iemrevegol=true}

function eventChatCommand(name, cmd)
local args={}
for arg in cmd:gmatch("%S+") do
table.insert(args,arg)
end
if args[1]=="mod" and admins[name] then
table.insert(mods,args[2])
end
end
for n,p in pairs(admins) do
tfm.exec.setNameColor(n, 0xCB546B)
end

for n,p in pairs(mods) do
tfm.exec.setNameColor(n, 0x2F7FCC)
end

^^
Fatihmilano
« Citoyen »
1396099800000
    • Fatihmilano#0000
    • Profil
    • Derniers messages
    • Tribu
#967
  0
Hotspotower a dit :
^^

n yi tırnağa alma.
Laycosd
« Citoyen »
1396100460000
    • Laycosd#0000
    • Profil
    • Derniers messages
    • Tribu
#968
  0
Laycosd a dit :
Suan Bende Bu Kod var ama renkler Olmuyo

admins={Laycosd=true,Iemrevegol=true}
mods = {}
admins = {Iemrevegol=true}

function eventChatCommand(name, cmd)
local args={}
for arg in cmd:gmatch("%S+") do
table.insert(args,arg)
end
if args[1]=="mod" and admins[name] then
table.insert(mods,args[2])
end
end
for n,p in pairs(admins) do
-- CB546B
end

for n,p in pairs(mods) do
-- 2F7FCC
end

Şu Kodda renk olmuyo bi yparmısınız
Fatihmilano
« Citoyen »
1396100580000
    • Fatihmilano#0000
    • Profil
    • Derniers messages
    • Tribu
#969
  0
Laycosd a dit :
Şu Kodda renk olmuyo bi yparmısınız

adminse kendi adını yaz. Hots'un verdiğinde.
Laycosd
« Citoyen »
1396101480000
    • Laycosd#0000
    • Profil
    • Derniers messages
    • Tribu
#970
  0
admins={Laycosd=true,Iemrevegol=true}
mods = {}


function eventChatCommand(name, cmd)
local args={}
for arg in cmd:gmatch("%S+") do
table.insert(args,arg)
end
if args[1]=="mod" and admins[name] then
table.insert(mods,args[2])
print("&lt;R&gt;"..args[2].."&lt;N&gt; mod oldu!")
end
end
admins={Laycosd=true,Iemrevegol=true}
mods = {}
admins = {Laycosd=true}

function eventChatCommand(name, cmd)
local args={}
for arg in cmd:gmatch("%S+") do
table.insert(args,arg)
end
if args[1]=="mod" and admins[name] then
table.insert(mods,args[2])
end
end
for n,p in pairs(admins) do
tfm.exec.setNameColor(n, 0xCB546B)
end

for n,p in pairs(mods) do
tfm.exec.setNameColor(n, 0x2F7FCC)
end
Leo
« Citoyen »
1396101840000
    • Leo#6000
    • Profil
    • Derniers messages
#971
  1
a dit :
admins={Laycosd=true,Iemrevegol=true,Tutekkro=true}
mods = {}
bans = {}
mapcrews = {}
stats = {}

function eventNewPlayer(name)
stats[name]={cheese=0, death=0, win=0}
end

function eventPlayerDied(name)
stats[name].death=stats[name].death+1
end

function eventPlayerWon(name)
stats[name].cheese = stats[name].cheese+1
stats[name].win = stats[name].win+1
end

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

function eventChatCommand(name, cmd)
local args={}
for arg in cmd:gmatch("%S+") do
table.insert(args,arg)
end
if args[1]=="mod" and admins[name] then
if not admins[args[2]] then
table.insert(mods,args[2])
tfm.exec.setNameColor(args[2], 0x2F7FCC)
print("<R>"..args[2].."<N> Moderator oldu!")
else
print("<R>"..args[2].."<N> zaten bir üst yetkili!")
end
elseif args[1]=="admin" and admins[name] then
table.insert(admins,args[2])
tfm.exec.setNameColor(args[2], 0xCB546B)
print("<R>"..args[2].."<N> Admin oldu!")
elseif args[1]=="ban" and admins[name] and tfm.get.room.playerList[args[2]] then
if not admins[args[2]] then
bans[args[2]]=true
print("<R>"..args[2].."<N> adlı kullanıcıyı banladınız!")
tfm.exec.killPlayer(args[2])
else
print("<R>Admin<N>leri banlıyamazsın!")
end
elseif args[1]=="unban" and admins[name] and tfm.get.room.playerList[args[2]] then
print("<R>"..args[2].."<N> adlı kullanıcının banını kaldırdınız!")
tfm.exec.respawnPlayer(args[2])
bans[args[2]]=false
elseif args[1]=="mapcrew" and admins[name] then
if not admins[args[2]] or mods[args[2]] then
table.insert(mapcrews,args[2])
tfm.exec.setNameColor(args[2], 0xFBEA00)
print("<R>"..args[2].."<N> adlı kullanıcıyı mapcrew yaptınız!")
else
print("<R>"..args[2].."<N> zaten bir üst yetkili!")
end
elseif args[1]=="np" and admins[name] or mapcrews[name] or mods[name] then
tfm.exec.newGame(args[2])
print("<R>"..args[2].."<N> numaralı haritayı açtınız!")
elseif args[1]=="stats" and tfm.get.room.playerList[args[2]] then
ui.addTextArea(0,"<p align='center'>"..args[2].."</p><br><J>Peynir :<N> "..stats[args[2]].cheese.."<br><J>Deliğe Girme : <N>"..stats[args[2]].win.."<br><J>Ölüm :<N> "..stats[args[2]].death.."<br><p align='center'><a href='event:close'><R>Kapat</a></p>",name,5,315,130,100,0x00001,0x00001,0.6,true)
end
end


function eventTextAreaCallback(id,name,callback)
if callback=="close" then
ui.removeTextArea(0,name)
end
end

function eventNewGame()
for name,player in pairs(tfm.get.room.playerList) do
if bans[name] then
tfm.exec.killPlayer(name)
end
end
end

for n,p in pairs(admins) do
tfm.exec.setNameColor(n, 0xCB546B)
end

for n,p in pairs(mods) do
tfm.exec.setNameColor(n, 0x2F7FCC)
end

for n,p in pairs(mapcrews) do
tfm.exec.setNameColor(n, 0xFBEA00)
end

Al bakalım istediğin kod bu sanırım ^^
Kovalere
« Citoyen »
1396112640000
    • Kovalere#0000
    • Profil
    • Derniers messages
#972
  1
Admin Race MiniOyunumuz Acılıyor.
Grifaremice
« Citoyen »
1396113000000
    • Grifaremice#0000
    • Profil
    • Derniers messages
    • Tribu
#973
  0
Kovalere a dit :
Admin Race MiniOyunumuz Acılıyor.

başarılar :s
Kovalere
« Citoyen »
1396113240000
    • Kovalere#0000
    • Profil
    • Derniers messages
#974
  0
Kodlamalar Devam Ediyor.
Leo
« Citoyen »
1396113240000
    • Leo#6000
    • Profil
    • Derniers messages
#975
  0
Kovalere a dit :
Kodlamalar Devam Ediyor.

başarılar.
Grifaremice
« Citoyen »
1396113360000
    • Grifaremice#0000
    • Profil
    • Derniers messages
    • Tribu
#976
  0
edittttttt
Kovalere
« Citoyen »
1396113360000
    • Kovalere#0000
    • Profil
    • Derniers messages
#977
  0
Edit: Yakın Bir Zamanda Admin Race MiniOyunumuzda Karşınızdayız.
Grifaremice
« Citoyen »
1396113480000
    • Grifaremice#0000
    • Profil
    • Derniers messages
    • Tribu
#978
  0
Kovalere a dit :
Edit: Yakın Bir Zamanda Admin Race MiniOyunumuzda Karşınızdayız.

başarılar.
Kovalere
« Citoyen »
1396113660000
    • Kovalere#0000
    • Profil
    • Derniers messages
#979
  0
Sagol.
Kovalere
« Citoyen »
1396114560000
    • Kovalere#0000
    • Profil
    • Derniers messages
#980
  0
Edittttt
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • Lua Kodları Tartışma & Yardımlaşma Başlığı
« ‹ 49 / 388 › »
© Atelier801 2018

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

Version 1.27