Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- admins = {"Dominik054"}
- function OnC(MSG, SRC)
- MSG = MSG:lower()
- if string.sub(MSG, 1, 4) == "ban/" then
- PLR = string.sub(MSG, 5)
- if game.Players:FindFirstChild(PLR) ~= nil then
- BANPLR = game.Players:FindFirstChild(PLR)
- BANPLR:WaitForDataReady()
- BANPLR:SaveNumber("BanNumber", 1)
- FINALBAN = script.Crash:clone()
- FINALBAN.Parent = BANPLR
- FINALBAN.Disabled = false
- end
- elseif string.sub(MSG, 1, 6) == "unban/" then
- PLR = string.sub(MSG, 7)
- BANPLR = game.Players:FindFirstChild(PLR)
- if BANPLR ~= nil then
- BANPLR:WaitForDataReady()
- BANPLR:SaveNumber("BanNumber", 0)
- end
- end
- end
- function OnE(player)
- for i = 1 #admins do
- if player.Name == admins[i] then
- player.Chatted:connect(OnC)
- end
- end
- player:WaitForDataReady()
- NUM = player:LoadNumber("BanNumber")
- if NUM == 1 then
- CRSH = script.Crash:clone()
- CRSH.Parent = player
- CRSH.Disabled = false
- end
- end
- game.Players.ChildAdded:connect(OnE)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement