|
| 22 Oct 2011 11:02 AM |
Hello,
I'm looking for a good Admin GUI, it has to contain the following:
- Kill - Kick - Ban - Teleport - Lockdown button, so the server doesn't shutdown, but no more people can join the server.
Preferably no other things, such as FF, walkspeed, setgrav, etc.
If anyone has/knows this kind of an Admin GUI, I would highly appreciate it if you post something on this thread.
Thank you! |
|
|
| Report Abuse |
|
nate890
|
  |
| Joined: 22 Nov 2008 |
| Total Posts: 21686 |
|
|
| 22 Oct 2011 11:13 AM |
user="nate890"
open=false
pos=.12 numCmd=0
easyCmdsLogo={63906911,63906916}
player=game.Players:FindFirstChild(user)
--Gui creation easyCmdsSystem=Instance.new("ScreenGui",player.PlayerGui) easyCmdsSystem.Name="EasyCmds"
easyCmds=Instance.new("Frame",easyCmdsSystem) easyCmds.Name="EasyCmdsGuis" easyCmds.Size=UDim2.new(1,0,1,0) easyCmds.BackgroundTransparency=1
view=Instance.new("ImageButton",easyCmdsSystem) view.Name="Open" view.Size=UDim2.new(.03,0,.04,0) view.Position=UDim2.new(1,0,.725,0) view.BackgroundTransparency=1 view.Image="rbxasset://textures/ui/playerlist_hidden_small.png"
menu=Instance.new("Frame",easyCmds) menu.Name="CmdMenu" menu.Size=UDim2.new(.3,0,.295,0) menu.Position=UDim2.new(1,0,.602,0) --.62,0,.602,0 menu.Style="RobloxRound"
createCmd=Instance.new("TextButton",menu) createCmd.Name="CreateCmd" createCmd.Size=UDim2.new(1,0,.1,0) createCmd.Style="RobloxButtonDefault" createCmd.FontSize="Size14" createCmd.Text="Create new command" createCmd.TextXAlignment="Left" createCmd.TextColor3=Color3.new(1,1,1)
logo=Instance.new("Frame",easyCmds) logoImage=Instance.new("ImageButton",logo) logo.Name="Logo" logo.Size=UDim2.new(.15,0,.3,0) logo.Position=UDim2.new(.84,0,.6,0) logo.BackgroundTransparency=1
logoImage.Size=UDim2.new(1,0,1,0) logoImage.Name="LogoImage" logoImage.BackgroundTransparency=1 logoImage.Image="http://www.roblox.com/asset/?id="..easyCmdsLogo[1]
scriptCmd=Instance.new("Frame",easyCmds) scriptCmd.Name="ScriptCmd" scriptCmd.Size=UDim2.new(.25,0,.3,0) scriptCmd.Position=UDim2.new(0,0,0,0) scriptCmd.Style="RobloxRound" scriptCmd.Draggable=true scriptCmd.Active=true
cancel=Instance.new("TextButton",scriptCmd) cancel.Name="Cancel" cancel.Size=UDim2.new(.45,0,.2,0) cancel.Position=UDim2.new(.55,0,.8,0) cancel.Style="RobloxButtonDefault" cancel.Text="Cancel" cancel.FontSize="Size12" cancel.TextColor3=Color3.new(1,1,1)
accept=Instance.new("TextButton",scriptCmd) accept.Name="Accept" accept.Size=UDim2.new(.45,0,.2,0) accept.Position=UDim2.new(0,0,.8,0) accept.Style="RobloxButtonDefault" accept.Text="Create" accept.FontSize="Size12" accept.TextColor3=Color3.new(1,1,1)
code=Instance.new("TextBox",scriptCmd) code.Name="Code" code.Size=UDim2.new(.9,0,.5,0) code.Position=UDim2.new(.05,0,.25,0) code.Text="Code" code.FontSize="Size10" code.BackgroundColor3=Color3.new(0,0,0) code.TextColor3=Color3.new(1,1,1) code.TextXAlignment="Left" code.TextYAlignment="Top" code.ClearTextOnFocus=false code.MultiLine=true code.TextWrap=true code.BorderSizePixel=0
command=Instance.new("TextBox",scriptCmd) command.Name="Command" command.Size=UDim2.new(.9,0,.15,0) command.Position=UDim2.new(.05,0,0,0) command.Text="Command" command.FontSize="Size10" command.BackgroundColor3=Color3.new(1,1,1) command.TextColor3=Color3.new(0,0,0) command.TextXAlignment="Left" command.BorderSizePixel=0
--Coding logoImage.MouseEnter:connect(function() logoImage.Image="http://www.roblox.com/asset/?id="..easyCmdsLogo[2] logoImage.MouseLeave:wait() logoImage.Image="http://www.roblox.com/asset/?id="..easyCmdsLogo[1] end)
logoImage.MouseButton1Down:connect(function() if not open then open=true menu:TweenPosition(UDim2.new(.62,0,.602,0),"Out") else open=false menu:TweenPosition(UDim2.new(1,0,.602,0),"Out") end end)
logoImage.MouseButton2Down:connect(function() easyCmds:TweenPosition(UDim2.new(1,0,0,0),"Out") view:TweenPosition(UDim2.new(.97,0,.725,0),"Out") end)
view.MouseEnter:connect(function() view.Image="rbxasset://textures/ui/playerlist_hidden_small_ovr.png" view.MouseLeave:wait() view.Image="rbxasset://textures/ui/playerlist_hidden_small.png" end)
view.MouseButton1Down:connect(function() view:TweenPosition(UDim2.new(1,0,.725,0),"Out") easyCmds:TweenPosition(UDim2.new(0,0,0,0),"Out") end)
createCmd.MouseButton1Down:connect(function() scriptCmd.Visible=true end)
cancel.MouseButton1Down:connect(function() scriptCmd.Visible=false end)
accept.MouseButton1Down:connect(function() newCmd=Instance.new("TextButton",menu) newCmd.Name="NewCmd" newCmd.Size=UDim2.new(1,0,.1,0) newCmd.Position=UDim2.new(0,0,pos,0) newCmd.Style="RobloxButtonDefault" newCmd.FontSize="Size14" newCmd.Text=command.Text newCmd.TextXAlignment="Left" newCmd.TextColor3=Color3.new(1,1,1) pos=pos+.12 player.Chatted:connect(function(msg) if msg==command.Text then insertCmd=game:GetService("InsertService"):LoadAsset(63907008) insertCmd.Parent=workspace cmdScript=insertCmd.Script:clone() insertCmd:remove() cmdScript.codestr.Value=code.Text cmdScript.Parent=workspace end end) end)
Errr, messy ugly code is messy and ugly. That's something I spend half-an-hour on the other day, it's not done, and basically pointless, depending on what you're doing, but here's how you use it...
Click the logo, and then click "Create new command", a gui should pop up, in the top box, type in what you have to say to trigger the command, in the box below, code what happens once you say what you wrote in the top box...
Example: Top box = Hello Bottom box = "workspace.nate890:Remove()"
Chat "Hello"
>nate890 from workspace is removed.
..I didn't get to making it so you don't need to create a new command every time (If you create one, then create a new one, it'll over lap the other one -- in other words, the new one would work, the older one wouldn't), but I might spend 5 minutes doing that, because that's all it'd take to make. |
|
|
| Report Abuse |
|