×

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] Click
[Script] Click
Kmlcan
« Citoyen »
1403200140000
    • Kmlcan#0000
    • Profil
    • Derniers messages
    • Tribu
#1
  0
Herkese merhaba, bugün sıkıldım ve tıklamalarla oynayayım dedim. Oynadım ve şöyle bir script yazdım. Benim adımın olduğu yere kendi adınızı yazın, functions tablosu içindeki yazıları (kill, cheese, swap, meep, shaman, vampire, color) komut olarak yazın ve bir farenin üstüne tıklayın!

admins = {Kmlcan = true}
players = {}
menu = {}
functions = {--[[
]]
kill = function(n, p)tfm.exec.killPlayer(p)end,--[[
]]
cheese = function(n, p)tfm.exec.giveCheese(p)end,--[[
]]
swap = function(n, p)tfm.exec.swapPlayers(n, p)end,--[[
]]
meep = function(n, p)tfm.exec.giveMeep(p)end,--[[
]]
shaman = function(n, p)tfm.exec.setShaman(p)end,--[[
]]
vampire = function(n, p)tfm.exec.setVampirePlayer(p)end,--[[
]]
color = function(n, p)tfm.exec.setNameColor(p, math.random(1, 9e6))end,
}

function main()--[[
]]
pL = tfm.get.room.playerList--[[
]]
for n in pairs(pL) do--[[
--]]
eventNewPlayer(n)--[[
]]
end
end

function eventNewPlayer(n)--[[
]]
if admins[n] then--[[
--]]
system.bindMouse(n)--[[
--]]
tfm.exec.bindKeyboard(n, 32, true, true)--[[
--]]
players[n] = functions.shaman--[[
]]
end
end

function eventChatCommand(n, c)--[[
]]
if admins[n] and functions[c] then--[[
--]]
players[n] = functions[c]--[[
]]
end
end

function eventKeyboard(n, k)--[[
]]
menu[n] = not menu[n]--[[
]]
if menu[n] then--[[
--]]
local t = "<font size='12' face='Lucida Console'><J><p align='center'>Fonksiyonlar</p><N>"--[[
--]]
for k, v in pairs(functions) do--[[
----]]
t = t.."<a href='event:"..k.."'>"..k:sub(1, 1):upper()..k:sub(2):lower().."</a>\n"--[[
--]]
end--[[
--]]
addTextArea(0, t, n, 15, 35, 160, 135, true, false, "<a href='event:close'>Kapat")--[[
]]
else--[[
--]]
removeTextArea(0, n)--[[
]]
end
end

function eventMouse(n, x, y)--[[
]]
if admins[n] and players[n] then--[[
--]]
for k, v in pairs(pL) do--[[
----]]
if math.abs(v.x - x) <= 30 and math.abs(v.y - y) <= 30 then--[[
------]]
players[n](n, k)--[[
----]]
end--[[
--]]
end--[[
]]
end
end

function eventTextAreaCallback(i, n, c)--[[
]]
if c == "close" then--[[
--]]
eventKeyboard(n, 32)--[[
]]
else--[[
--]]
players[n] = functions[c]--[[
--]]
eventKeyboard(n, 32)--[[
]]
end
end

function addTextArea(i, t, n, x, y, w, h, f, c, b)--[[
]]
if c then--[[
--]]
x = x - w / 2--[[
--]]
y = y - h / 2--[[
]]
end--[[
]]
ui.addTextArea(i + 34e4, t, n, x - 1, y - 1, w, h, 0x648FA4, 0x648FA4, 1, f)--[[
]]
ui.addTextArea(i + 44e4, t, n, x + 1, y + 1, w, h, 0x12171C, 0x12171C, 1, f)--[[
]]
ui.addTextArea(i, t, n, x, y, w, h, 0x324650, 0x324650, 1, f)--[[
]]
if b then--[[
--]]
b = "<p align='center'>"..b--[[
--]]
ui.addTextArea(i + 54e4, b, n, x + 9, y + h - 26, w - 20, 17, 0x648FA4, 0x648FA4, 1, f)--[[
--]]
ui.addTextArea(i + 64e4, b, n, x + 11, y + h - 24, w - 20, 17, 0x12171C, 0x12171C, 1, f)--[[
--]]
ui.addTextArea(i + 74e4, b, n, x + 10, y + h - 25, w - 20, 17, 0x3C5064, 0x3C5064, 1, f)--[[
]]
end
end

function removeTextArea(i, n)--[[
]]
for a = 34e4, 74e4, 1e5 do--[[
--]]
ui.removeTextArea(i + a, n)--[[
]]
end--[[
]]
ui.removeTextArea(i, n)
end

function tfm.exec.swapPlayers(n1, n2)--[[
]]
if n1 and n2 then--[[
--]]
tfm.exec.movePlayer(n1, pL[n2].x, pL[n2].y)--[[
--]]
tfm.exec.movePlayer(n2, pL[n1].x, pL[n1].y)--[[
]]
end
end

main()


İyi eğlenceler!

Dernière modification le 1403218980000
Benbirkralm
« Citoyen »
1403200860000
    • Benbirkralm#0000
    • Profil
    • Derniers messages
    • Tribu
#2
  1
Yine Kemal, yine nubca birşey. Teşekkürler!
Saçma saçma şeyler ekleyip script'i bozacağım.

Dernière modification le 1403200980000
Oyga
« Citoyen »
1403204100000
    • Oyga#0000
    • Profil
    • Derniers messages
    • Tribu
#3
  1
Aslında tam da istediğim şeyin değişiği, bunu değiştirip işe yarayacak bir şey yapacağım. Teşekkürler. ^^

Düzenleme: Yaptım çok güzel. :d

Dernière modification le 1403204820000
Uzaysero
« Citoyen »
1403270040000
    • Uzaysero#0000
    • Profil
    • Derniers messages
    • Tribu
#4
  0
Güzelmiş
Opsfentek
« Citoyen »
1403279400000
    • Opsfentek#0000
    • Profil
    • Derniers messages
    • Tribu
#5
  0
Güzel can sıkıntısı için bire bir :D :D :D
Oguzhandkr
« Citoyen »
1403281260000
    • Oguzhandkr#0000
    • Profil
    • Derniers messages
    • Tribu
#6
  0
Çok pro bir script olmuş. Teşekkürler. *-*
Enomicefare
« Citoyen »
1403449560000
    • Enomicefare#0000
    • Profil
    • Derniers messages
    • Tribu
#7
  0
Oguzhandkr a dit :
Çok pro bir script olmuş. Teşekkürler. *-*

eminmisin :P
Emrevegolxd
« Citoyen »
1404144180000
    • Emrevegolxd#0000
    • Profil
    • Derniers messages
#8
  0

Cok Güzel :d

Ladon181
« Sénateur »
1535145960000
    • Ladon181#3048
    • Profil
    • Derniers messages
    • Tribu
#9
  1
İşsiz xd
  • Forums
  • /
  • Transformice
  • /
  • Modules
  • /
  • [Script] Click
© Atelier801 2018

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

Version 1.27