./re = Kiedy ta Myszka spadnie, możesz respawnić i przejść na mapce.
function eventChatCommand(p, c)
if c == "re" then
tfm.exec.killPlayer(""..p.."")
tfm.exec.respawnPlayer(""..p.."")
end
end
system.disableChatCommandDisplay("re")
admin = "Malla"
isAdmin = function(playerName)
if playerName == admin then
return true
else
return false
end
end
eventChatCommand = function(playerName, command)
if command:sub(0, 3) == "mod" and isAdmin(playerName) == true then
tfm.exec.chatMessage("<ROSE>• [Moderator] "..command:sub(5).."<ROSE>")
end
end
system.disableChatCommandDisplay("mod")
W pierwszej linijce zmieniasz kto moze pisac jak mod
Code:admin = "Malla" isAdmin = function(playerName) if playerName == admin then return true else return false end end eventChatCommand = function(playerName, command) if command:sub(0, 3) == "mod" and isAdmin(playerName) == true then tfm.exec.chatMessage("<ROSE>• [Moderator] "..command:sub(5).."<ROSE>") end end system.disableChatCommandDisplay("mod")
Aha też tak myślałemTrzeba wpisać !re zamiast /recode_language.lua:function eventChatCommand(p, c) if c == "re" then tfm.exec.killPlayer(""..p.."") tfm.exec.respawnPlayer(""..p.."") end end system.disableChatCommandDisplay("re")
Nie dzialałoFajny pomysł z skryptem na moda, spróbuję
Taką funkcje ma tylko fc.!big_mouse = do powiększenia myszki
!big_mouse (nick gracza) = powiększa danego gracza
Nie da sie takiego czegos zrobicŻeby pisać za kogoś że np.:
[Miskotka] tu cafecake1
Ale żeby za kogoś pisać trzeba komendę
!pisz (Jakieś zdanie)
no a tak to się samemu piszę
for k in pairs(tfm.get.room.playerList) do
system.bindMouse(k, true)
end
function eventMouse(p, x, y)
tfm.exec.movePlayer(p, x, y)
end
skrypt na teleport??