Mas Admin System Installation guide
Welcome!
You make a Script, This script you will have to place in ServerScriptService Once that is done, all you have to do is save the game and start playing!
serveruri = 'https://newstargeted.com/mas/Bans.php?Bans='
http = game:GetService('HttpService')
function RemoveFromGame(Player)
Player:Kick("You have been kicked for exploiting") -- you can replace this with your own method of kicking, e.g. a crash script
end
game.Players.PlayerAdded:connect(function(Player)
local result = http:GetAsync(serveruri..Player.userId)
print(result)
local result = http:JSONDecode(result)
if result["error"] then
print(result["error"])
elseif result["banned"] == "True" then
RemoveFromGame(Player)
print('Player "'..Player.Name..'" is banned and therefore removed from the game.')
elseif result["banned"] == "False" then
print('Player "'..Player.Name..'" is not banned.')
else
print('Unkown response')
end
end)
while wait(10) do
for _,Player in pairs (game.Players:GetPlayers()) do
local result = http:GetAsync(serveruri..Player.userId)
print(result)
local result = http:JSONDecode(result)
if result["error"] then
print(result["error"])
elseif result["banned"] == "True" then
RemoveFromGame(Player)
print('Player "'..Player.Name..'" is banned and therefore removed from the game.')
elseif result["banned"] == "False" then
print('Player "'..Player.Name..'" is not banned.')
else
print('Unkown response')
end
end
end