![]() |
![]() ![]() « Citoyen » 1413215040000
| 0 | ||
Como eu crio scripts? eu não entendo nada doque vcs falam de criar um loop essas coisas ç.ç |
![]() 1413219060000
| | ||
[Modéré par Ninguem] |
![]() ![]() « Citoyen » 1413243600000
| 0 | ||
como da para eu fazer um minigame,fazer ele funcionar e acontecer oqeu eu quero nele? |
![]() ![]() « Citoyen » 1413244740000
| 0 | ||
Ratinhoreube a dit : Sabendo lua |
![]() ![]() « Citoyen » 1413246180000
| 0 | ||
Eu comprei morangos mais quando eucoloko o cod e vai pra page que fl que eu ganhei os morangos aparene nue error #atelier801 pfv me ajudem quero meus morangos pra pele e promoçao |
![]() ![]() « Citoyen » 1413315660000
| 0 | ||
quero um script de matar um rato, colocando o nome dele no script, preciso bem rapido, até esse sabado, eu sei que vai ser menos de 10 linhas, então não demorem, pf. |
![]() ![]() « Citoyen » 1413316080000
| 0 | ||
Sperer a dit : ratox="Sperer"--Nome de quem você quer matar (a primeira letra tem que ser maiuscula) tfm.exec.killPlayer(ratox) |
![]() ![]() « Citoyen » 1413317340000
| 0 | ||
Mais um de fly, teleport, e speed, que de pra 2 admins ou até de pra por mais. vlw operop vc ta me ajudando mt |
![]() ![]() « Sénateur » 1413318480000
| 0 | ||
Sperer a dit : adm = {"SeuNome","SeuAmigo","SeuAmigo"} -- adicione ou tire quanto quiser --Fly-- function eventNewPlayer(name) for i,key in ipairs({32}) do tfm.exec.bindKeyboard(name,key,true,true) end end function eventKeyboard(name,key,down,x,y) if key==32 then tfm.exec.movePlayer(name,0,0,true,0,-60,true) end end for name,player in pairs(adm) do eventNewPlayer(name) end --Speed-- for target in pairs(adm) do tfm.exec.bindKeyboard(target,32,true,true) end eventNewPlayer=function(target) tfm.exec.bindKeyboard(target,32,false,true) end eventKeyboard=function(target,key) if key==32 then if tfm.get.room.playerList[target].isFacingRight then tfm.exec.movePlayer(target,nil,nil,false,20,0,true) else tfm.exec.movePlayer(target,nil,nil,false,-70,0,true) end end end --Teleport-- for i in pairs(adm) do system.bindMouse(i,true) end end function eventMouse(p,x,y) tfm.exec.movePlayer(p,x,y) end Só os adm tem os poderes (Fly = Espaço, Speed = Espaço, Teleport = Click) Se você quiser por comando !Fly !Speed !Teleport : adm = {"SeuNome","SeuAmigo","SeuAmigo"} -- adicione ou tire quanto quiser canFly = false function Fly() if canFly == false then canFly = true else canFly = false end end canSpeed = false function Speed() if canSpeed == false then canSpeed = true else canSpeed = false end end function Teleport() for i in pairs(adm) do system.bindMouse(i,true) end end function eventMouse(p,x,y) tfm.exec.movePlayer(p,x,y) end function getAdmin(name) local isAdm=false for i,v in pairs(adm) do if name==v then isAdm=true break end end return isAdm end function eventChatCommand(name,command) if command=="speed" and getAdmin(name) then Speed() print("<J>★ "..name.." ★ Ativou/Desativou "..command.."") elseif command=="fly" and getAdmin(name) then Fly() print("<J>★ "..name.." ★ Ativou/Desativou "..command.."") elseif args[1]=="teleport" and getAdmin(name) then Teleport() print("<J>★ "..name.." ★ Ativou "..command.."") end end --Fly-- function eventNewPlayer(name) for i,key in ipairs({32}) do tfm.exec.bindKeyboard(name,key,true,true) end end function eventKeyboard(name,key,down,x,y) if key==32 and canFly == true then tfm.exec.movePlayer(name,0,0,true,0,-60,true) end end for name,player in pairs(tfm.get.room.playerList) do eventNewPlayer(name) end --Speed-- for target in pairs(tfm.get.room.playerList) do tfm.exec.bindKeyboard(target,32,true,true) end eventNewPlayer=function(target) tfm.exec.bindKeyboard(target,32,false,true) end eventKeyboard=function(target,key) if key==32 and canSpeed == true then if tfm.get.room.playerList[target].isFacingRight then tfm.exec.movePlayer(target,nil,nil,false,20,0,true) else tfm.exec.movePlayer(target,nil,nil,false,-70,0,true) end end end Dernière modification le 1413318780000 |
![]() ![]() « Citoyen » 1413319800000
| 0 | ||
rato="gwinex"; tfm.exec.bindKeyboard(rato,32,false,true) tfm.exec.bindKeyboard(rato,17,false,true) system.bindMouse(rato,true) function eventMouse(p,x,y) tfm.exec.movePlayer(p,x,y) end function eventKeyboard(p,key,down,x,y) if key == 17 then if tfm.get.room.playerList .isFacingRight then |
![]() ![]() « Consul » 1413550860000
| 0 | ||
Como faço para adicionar todos nomes dos jogadores em uma tabela? Eu já tentei, só que não deu pl={}; for p in pairs(tfm.get.room.playerList) do table.insert(pl,p) print(pl) end |
![]() ![]() « Censeur » 1413553440000
| 0 | ||
fofinhoppp a dit : Mas isso está certo. |
![]() ![]() « Citoyen » 1413554460000
| 0 | ||
brenower a dit : Ele quer pegar todos os nomes de uma vez fofinhoppp a dit : é só vc usar table.concat(table.concat(table,separador)) pl={}; for p in pairs(tfm.get.room.playerList) do table.insert(pl,p) end print(table.concat(pl," ") |
![]() ![]() « Citoyen » 1413556080000
| 0 | ||
REMOVIDO Dernière modification le 1413558960000 |
![]() ![]() « Citoyen » 1413727920000
| 0 | ||
preciso de um script de sp para todos da sala: quando o rato se abaixa solta sp |
![]() ![]() « Citoyen » 1413733980000
| 0 | ||
hpassospi 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(name,key,down,x,y) if key==32 then tfm.exec.addShamanObject(24,x,y) end end |
![]() ![]() « Citoyen » 1413734280000
| 0 | ||
operop a dit : obr <3, mas eu pedi com a seta para baixo esse e com espaço '-' preciso de um script que troca o nome do mapa por um nome de sua escolha é um script que o mapa n volte pro do cafofo, o mapa tem que continuar rodando e um de que o rato morreu para avisar e outro mapa começar Dernière modification le 1413734760000 |
![]() ![]() « Citoyen » 1413735720000
| 0 | ||
hpassospi a dit : Não vou fazer um script tão grande |
![]() ![]() « Citoyen » 1413736260000
| 0 | ||
operop a dit : só preciso do de seta para baixo sai sp |
![]() ![]() « Citoyen » 1413767700000
| 0 | ||
Alguém tem o script de modificar o cn igual ao deathmatch? |