Hello, I'm using this anti-mc script for my tfs (last commit)
When the player tries to login with the 3rd account (limit i've set is 2) it appears for a frame of second and logout right after the login effect... I'd like to make it send a text ingame on orange words like "Anti-MC"
I tried but i don't really know between which line i have to set it
Here's the code:
When the player tries to login with the 3rd account (limit i've set is 2) it appears for a frame of second and logout right after the login effect... I'd like to make it send a text ingame on orange words like "Anti-MC"
I tried but i don't really know between which line i have to set it
Here's the code:
Code:
local AccPorIp = 2
function onLogin(player)
local mc = 0
for _, verificar in ipairs(Game.getPlayers()) do
if player:getIp() == verificar:getIp() then
mc = mc + 1
if mc > AccPorIp then return false end
end
end
return true
end