Hello, i joined some server with this kinda cool server information that pops up when i join....
So...
As you see in image it will show tabs (Hard to see :3)
Rules - Admins - Donate - Events - About
I want this thing made for me :D but different looking and easy to edit... (Like ulx motd...)
Tabs:
Welcome - Rules - Admins - Donate - Addon's Information
With a icon next to each other...
I want this in the middle of the screen.
Then i want a two buttons on the bottom called
Yes, I Agree To Rulez | No, I Disagree The Dam Rulez
When they press "No, I Disagree The Dam Rulez" i want them auto kicked for that reason...
[IMG]http://img547.imageshack.us/img547/9876/asdfzdfasdfsdfzxcxcbxbx.png[/IMG]
I hope this is not hard...
Anyone?
just do RunConsoleCommand("disconnect") and they will get disconnected.
[QUOTE=yuriman;25486796]just do RunConsoleCommand("disconnect") and they will get disconnected.[/QUOTE]
Umm but how about the Server Information Bored? I request the whole thing really not just the command... :D
Copied from the LUA wiki page..
[lua]
Ready = vgui.Create( "DFrame" ) //Define ready as a "DFrame"
Ready:SetPos( ScrW() / 2, ScrH() / 2 ) //Set the position. Half the screen height and half the screen width. This will result in being bottom right of the middle of the screen.
Ready:SetSize( 175, 75 ) //The size, in pixels of the Frame
Ready:SetTitle( "Are you ready to build?" ) //The title; It's at the top.
Ready:SetVisible( true ) // Should it be seen?
Ready:SetDraggable( false ) // Can people drag it around?
Ready:ShowCloseButton( false ) //Show the little X top right? I chose no, because I have no alternative, meaning people would roam around with no weapons
Ready:MakePopup() //Make it popup. Of course.
ready1 = vgui.Create( "DButton", Ready ) // Define ready1 as a "DButton" with its parent the Ready frame we just created above.
ready1:SetPos( 20, 25 ) //Set position, relative to the frame (If you didn't parent it, it would be relative to the screen
ready1:SetSize( 140, 40 ) // How big it should be, again in pixels
ready1:SetText( "Hell yeah!" ) //What should the button say?
ready1.DoClick = function() //ready1.doclick = function, we just defined it as a function
RunConsoleCommand( "sb_team1" ) //When it clicks, which function does it run? sb_team1, which is defined in init.lua
[/lua]
I'm sure you can work something out of that.
Check [url=http://wiki.garrysmod.com/?title=Simple_Gamemode]this[/url] out.
Hmm If you would just make tabs with icon i think i take it from there :)
[QUOTE=xmathewx75;25495983]Hmm If you would just make tabs with icon i think i take it from there :)[/QUOTE]
The code above will create a window. Sort out the rest.
[QUOTE=Zeroi;25503000]The code above will create a window. Sort out the rest.[/QUOTE]
I don't know how to lua. I will give you a xenon server for one month free if want.
So.....?
To everyone in this thread except for OP: This is not the damned help section, this is requests for people who want it done, not doing it themselves
[QUOTE=Tobba;25538545]To everyone in this thread except for OP: This is not the damned help section, this is requests for people who want it done, not doing it themselves[/QUOTE]
Not even if i pay them or give them a free server?
This is what you are looking at in that server: [url]http://www.garrysmod.org/downloads/?a=view&id=106689[/url]
Its simply easy to edit, and i use it on my server too.
-DaM1ND
Wow thanks man! Never new this was on garrysmod.org
No problem ;D
Sorry, you need to Log In to post a reply to this thread.