#I need help
1 messages · Page 1 of 1 (latest)
local bannedPlayers = {}
function banPlayer(playerId)
bannedPlayers[playerId] = true
print("Player con ID " .. playerId .. " è stato bannato.")
-- Qui potresti anche salvare su file o database persistente
end
function isPlayerBanned(playerId)
return bannedPlayers[playerId] == true
end
function onPlayerFinishGame(playerId)
if isPlayerBanned(playerId) then
print("Player " .. playerId .. " è già bannato.")
return
end
print("Player " .. playerId .. " ha finito il gioco. Bannando...")
banPlayer(playerId)
end
local playerID = "player123"
onPlayerFinishGame(playerID)
if isPlayerBanned(playerID) then
print("Accesso negato per " .. playerID .. ": sei bannato.")
else
print("Access succesful " .. playerID)
end
thats for banning the player when he ends the game
local file = io.open("banned_players.txt", "a")
file:write(playerId .. "\n")
file:close()
this to save the banned players in your files
Yeah but it only works per account
** You are now Level 1! **
I already have that for my admin commands but I want it to like ban the client the device or the ip
So you cant just make a new account
you have to make another script that controls if youre alrd banned and it kicks you
** You are now Level 4! **
idk how to do that
Ok
santo chatgpt codice
fr
fr
use BanAsync
Wth is your game abt
you cant hardware ban on roblox
u can use BanAsync, but its not IP and it can be bypassed if u know how.. 
What is that and how will it help me
it bans
a user
and "prevents" alts
How does it prevent alts
"prevents" as-in prevents for those who are dummies and don't know how to bypass it..
it stores a file on your device that has all your logged in accounts..
and if u've logged into a banned account u also get banned on ur alt.
On file manager?
ye
Ok