#I need help

1 messages · Page 1 of 1 (latest)

south gull
#

How can I make so a player is ip/hardware banned from a game because Im making a story game that when you complete an ending you get banned but I dont want people to make alts

fading kernel
#

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()

fading kernel
south gull
sturdy gazelleBOT
#

studio** You are now Level 1! **studio

south gull
#

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

fading kernel
#

you have to make another script that controls if youre alrd banned and it kicks you

sturdy gazelleBOT
#

studio** You are now Level 4! **studio

south gull
#

Ok

fading kernel
#

fr

brisk otter
#

use BanAsync

fiery osprey
#

you cant hardware ban on roblox

jolly umbra
south gull
#

Youll see

south gull
jolly umbra
#

a user

#

and "prevents" alts

south gull
#

How does it prevent alts

jolly umbra
#

"prevents" as-in prevents for those who are dummies and don't know how to bypass it..

jolly umbra
#

and if u've logged into a banned account u also get banned on ur alt.

south gull
#

Ok and how do you bypass it

#

Because im a dummy

jolly umbra
#

by deleting the file..

#

lol

south gull
#

On file manager?

jolly umbra
#

ye

south gull
#

Ok

jolly umbra
#

and then joining on a new alt

#

without going on ur banned acc first