×

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
  • /
  • Seção Editor de Mapas e Modules
  • /
  • Tópico de Dúvidas
« ‹ 9 / 39 › »
Tópico de Dúvidas
Favelada
« Consul »
1405302720000
    • Favelada#6672
    • Profil
    • Derniers messages
    • Tribu
#161
  0
Olá eu queria colocar um sistema de ban num jogo que eu tenho aqui,alguem pode me falar como é o script para banir alguem ?
Mumich
« Citoyen »
1405304220000
    • Mumich#6666
    • Profil
    • Derniers messages
    • Tribu
#162
  0
Gabysoulinda a dit :
o script que teleporta o rato desejado a um lugar desejado:?
brg '-'



admin={"Gabysoulinda"}

function isAdmin(player)
isADM=false
for p in pairs(tfm.get.room.playerList) do
if p==player then
isADM=true
end
end
return isADM
end

function eventChatCommand(player,message)
if isAdmin(player) then
t={}
for w in message:gmatch("%S+") do
table.insert(t,w)
end
if t[1] == "teleport" then
tfm.exec.movePlayer(t[2],t[3],t[4],false,0,0,true)
end
end
end


acho que funciona^

mas nesse vc tem que digitar as coordenadas
Nunadf
« Citoyen »
1405305720000
    • Nunadf#0000
    • Profil
    • Derniers messages
#163
  0
Gnt '-' Uma amg minha se casou no transformice, e esqueceu de add como amg ' Ai a pessoa parou de jogar ' :[] Tem como ela se divorcia ? :c
Kombizinha
« Citoyen »
1405337280000
    • Kombizinha#0000
    • Profil
    • Derniers messages
    • Tribu
#164
  0
Nunadf a dit :
Gnt '-' Uma amg minha se casou no transformice, e esqueceu de add como amg ' Ai a pessoa parou de jogar ' :[] Tem como ela se divorcia ? :c

Tópico Errado ...
Gabysoulinda
« Citoyen »
1405343820000
    • Gabysoulinda#0000
    • Profil
    • Derniers messages
#165
  0
robonaldo com o clique.

tulio n funcionou
Robonado
« Citoyen »
1405350480000
    • Robonado#0000
    • Profil
    • Derniers messages
    • Tribu
#166
  0
Gabysoulinda a dit :
robonaldo com o clique

admin="Gabysoulinda";
jogador="";

system.bindMouse(admin, true)

function eventMouse(p, x, y)
tfm.exec.movePlayer(jogador, x, y, false, 0, 0, false)
jogador="";
end
function eventChatCommand(p, c)
if p == admin then
if c == "tp" then
ui.addPopup(999, 2, "Digite abaixo o player que você quer teleportar:", p, 300, 150, 200, true)
end
end
system.disableChatCommandDisplay(c, true)
end

function eventPopupAnswer(id, p, a)
if id == 999 then
jogador=a;
end
end


Digite !tp para selecionar o player que você quer teleportar, depois de enviar, clique no lugar desejado. Repita o processo para teleportar outros jogadores.

Dernière modification le 1405353840000
Gabysoulinda
« Citoyen »
1405353900000
    • Gabysoulinda#0000
    • Profil
    • Derniers messages
#167
  0
vlw ''-'
Bolodefchoco
« Sénateur »
1405384740000
    • Bolodefchoco#0095
    • Profil
    • Derniers messages
    • Tribu
#168
  0
Número correspondente da Bolha ?
+Kombizinha
« Citoyen »
1405385880000
    • +Kombizinha#0000
    • Profil
    • Derniers messages
#169
  0
Bolodefchoco a dit :
Número correspondente da Bolha ?

59
Robonado
« Citoyen »
1405632420000
    • Robonado#0000
    • Profil
    • Derniers messages
    • Tribu
#170
  0
1. Pode por xingamento riscado?
2. É legal roubar xml de mapas com script?
Tiwdamerenda
« Citoyen »
1405634220000
    • Tiwdamerenda#0000
    • Profil
    • Derniers messages
    • Tribu
#171
  0
Robonado a dit :
1. Pode por xingamento riscado?
2. É legal roubar xml de mapas com script?

1 Nem sentinela nessa seção tem direito pra moderar seu comentario
2 Sim

Dernière modification le 1405634280000
Plinceeeza
« Citoyen »
1405705020000
    • Plinceeeza#0000
    • Profil
    • Derniers messages
#172
  0
Oque ta de errado ? Aperta espaço e da erro

[14:36] [Lua] # [*Ratossauros] Runtime Error : Plinceeeza.lua:20: attempt to compare __lt on nil and number

data={}

function eventNewPlayer(p)
nD={
["time"]=os.time();
};
data

=nD;
end

for i in pairs(tfm.get.room.playerList) do
tfm.exec.bindKeyboard(i,32,false,true)
eventNewPlayer(i)
end

function eventKeyboard(player,key,down,x,y)
for i,v in pairs(tfm.get.room.playerList) do
if x > v.x - 20 and x < v.x + 20 and y > v.y - 20 and y < v.y + 20 and i ~= player and not tfm.get.room.playerList
.isDead and not v.isDead and data

.time < os.time()-1000 then
data

.time=os.time();
tfm.exec.addShamanObject(54,v.x,v.y,0,0,false)
tfm.exec.killPlayer(i)
end
end
end

Stheblindd
« Citoyen »
1405705380000
    • Stheblindd#0000
    • Profil
    • Derniers messages
    • Tribu
#173
  0
Plinceeeza a dit :
Oque ta de errado ? Aperta espaço e da erro

[14:36] [Lua] # [*Ratossauros] Runtime Error : Plinceeeza.lua:20: attempt to compare __lt on nil and number

O correto seria data[i].time, você colocou data.time.
Plinceeeza
« Citoyen »
1405705680000
    • Plinceeeza#0000
    • Profil
    • Derniers messages
#174
  0
Stheblindd a dit :
Plinceeeza a dit :
Oque ta de errado ? Aperta espaço e da erro

[14:36] [Lua] # [*Ratossauros] Runtime Error : Plinceeeza.lua:20: attempt to compare __lt on nil and number

O correto seria data[i].time, você colocou data.time.

Na onde está data.time ?
Stheblindd
« Citoyen »
1405705860000
    • Stheblindd#0000
    • Profil
    • Derniers messages
    • Tribu
#175
  0
Plinceeeza a dit :
Na onde está data.time ?

Linhas 20 e 23.
Plinceeeza
« Citoyen »
1405706640000
    • Plinceeeza#0000
    • Profil
    • Derniers messages
#176
  0
Stheblindd a dit :
Plinceeeza a dit :
Na onde está data.time ?

Linhas 20 e 23.

Da error
Robonado
« Citoyen »
1405707600000
    • Robonado#0000
    • Profil
    • Derniers messages
    • Tribu
#177
  0
data={}

function eventNewPlayer(p)
nD={
["time"]=os.time();
};
data

=nD;
end

for i in pairs(tfm.get.room.playerList) do
tfm.exec.bindKeyboard(i,32,false,true)
eventNewPlayer(i)
end

function eventKeyboard(player,key,down,x,y)
for i,v in pairs(tfm.get.room.playerList) do
if x > v.x - 20 and x < v.x + 20 and y > v.y - 20 and y < v.y + 20 and i ~= player and not tfm.get.room.playerList.isDead and not v.isDead and data[v].time < os.time()-1000 then
data[v].time=os.time();
tfm.exec.addShamanObject(54,v.x,v.y,0,0,false)
tfm.exec.killPlayer(v)
end
end
end



Nao sei se consertei
Plinceeeza
« Citoyen »
1405707720000
    • Plinceeeza#0000
    • Profil
    • Derniers messages
#178
  0
Robonado a dit :
data={}

function eventNewPlayer(p)
nD={
["time"]=os.time();
};
data

=nD;
end

for i in pairs(tfm.get.room.playerList) do
tfm.exec.bindKeyboard(i,32,false,true)
eventNewPlayer(i)
end

function eventKeyboard(player,key,down,x,y)
for i,v in pairs(tfm.get.room.playerList) do
if x &gt; v.x - 20 and x &lt; v.x + 20 and y &gt; v.y - 20 and y &lt; v.y + 20 and i ~= player and not tfm.get.room.playerList.isDead and not v.isDead and data[v].time &lt; os.time()-1000 then
data[v].time=os.time();
tfm.exec.addShamanObject(54,v.x,v.y,0,0,false)
tfm.exec.killPlayer(v)
end
end
end



Nao sei se consertei

[15:21] [Lua] # [*Ratossauros] Runtime Error : Plinceeeza.lua:17: attempt to index ? (a nil value) // Quando aperta no rato
Robonado
« Citoyen »
1405708080000
    • Robonado#0000
    • Profil
    • Derniers messages
    • Tribu
#179
  0
data={}

function eventNewPlayer(p)
nD={
["time"]=os.time();
};
data

=nD;
end

for i in pairs(tfm.get.room.playerList) do
tfm.exec.bindKeyboard(i,32,false,true)
eventNewPlayer(i)
end

function eventKeyboard(player,key,down,x,y)
for i,v in pairs(tfm.get.room.playerList) do
if x > v.x - 20 and x < v.x + 20 and y > v.y - 20 and y < v.y + 20 and if v ~= player and not tfm.get.room.playerList.isDead and not v.isDead and data[v].time < os.time()-1000 then
data[v].time=os.time();
tfm.exec.addShamanObject(54,v.x,v.y,0,0,false)
tfm.exec.killPlayer(v)
end
end
end

Plinceeeza
« Citoyen »
1405708500000
    • Plinceeeza#0000
    • Profil
    • Derniers messages
#180
  0
Robonado a dit :
data={}

function eventNewPlayer(p)
nD={
["time"]=os.time();
};
data

=nD;
end

for i in pairs(tfm.get.room.playerList) do
tfm.exec.bindKeyboard(i,32,false,true)
eventNewPlayer(i)
end

function eventKeyboard(player,key,down,x,y)
for i,v in pairs(tfm.get.room.playerList) do
if x > v.x - 20 and x < v.x + 20 and y > v.y - 20 and y < v.y + 20 and if v ~= player and not tfm.get.room.playerList.isDead and not v.isDead and data[v].time < os.time()-1000 then
data[v].time=os.time();
tfm.exec.addShamanObject(54,v.x,v.y,0,0,false)
tfm.exec.killPlayer(v)
end
end
end


Deu erro [15:34] [Lua] # [*Ratossauros] Init Error : Ediz.lua:274: [string "Plinceeeza.lua"]:17: unexpected symbol
  • Forums
  • /
  • Transformice
  • /
  • Archives
  • /
  • Seção Editor de Mapas e Modules
  • /
  • Tópico de Dúvidas
« ‹ 9 / 39 › »
© Atelier801 2018

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

Version 1.27