Subscribe
 Post #1
 10th August 2007
GMod Illuminati
andyvincent's Avatar
January 2005
2,231 Posts
Introduction
A few people who've been in #luahelp have already seen these screen shots, and I believe now is about time to release something to you, the general Lua community.

Over the last 2 or 3 days, I've been getting back in to Lua development (took a bit of a break if you didn't know). My project was to create a simple admin mod - The reason, if you've played on my Dedicated Server (soon to be back again I promise), it needed an admin mod. I'd tried ServerSecure (now re-released as SAT) by Conna, and I think it was too complicated for what was needed. So I switched to ULX - nice and simple, however I believe it's been broken by one of the recent Gmod updates (not sure on that, it's just what I've heard around the forums).

So I though bollocks to them, I'll make my own

I wanted a nice and simple interface, with an easy way to promote/demote players, give temporary admin rights, quick and easy kick/ban mechanism - without all the extra stuff that seem to come with most admin mods.

So here it is...

ASSmod
A Simple Server mod (thanks to Anmizu for the name idea )

Screenshots




Thanks to...
  • Anmizu for the name
  • Garry for Derma
  • GiGabyte for helping test
  • Ortzinator for helping test
  • Anyone who said "cool" when I showed them a screenshot ;)

Progress
(bolded items are essentially done, items with ?? are ideas only)
  • Ban
  • Kick
  • Change Team
  • Admin chat
  • Logging
  • ?? Web Admin
  • Notices
  • Rcon
  • Reward
    • Temp Admin
    • ?? Add Points
    • God/Buddah mode
    • Add Health
    • Weapons
    • Allow Noclip
    • Increased Prop Limits etc
  • Punishment
    • Slap
    • Hurt/Take health
    • Kill
    • ?? Remove Points
    • Freeze
    • Disallow Noclip
    • Restrictions
      • Props etc
      • Weapons
      • ?? Movement
  • Plugins
    • Load and Save of admin list
    • Logging
  • Simple Interface
    • Quick Menu
    • VGUI dialogs

Hopefully, first release will be in a couple of days (I go away on holiday next week, so I'd like to release before then).

Questions? Comments?
 Post #2
 10th August 2007
Gold Member
Elspin's Avatar
December 2006
5,153 Posts
I think it looks great, although I myself am one who prefers all the "extra shit" :)
 Post #3
 10th August 2007
tjl's Avatar
February 2006
1,355 Posts
Looks cool, can't wait. Also, nice name
 Post #4
 10th August 2007
Gold Member
Aska49's Avatar
October 2006
4,340 Posts
Looks good, since I just started learning VGUI I've wanted to start on an admin mod of my own. Yours looks very nice, I love the menus!
 Post #5
 10th August 2007
Gold Member
Xera's Avatar
November 2006
8,003 Posts
Looks nice but you should make the context menus a little less square/bland. :)
 Post #6
 10th August 2007
ShadowWolf's Avatar
November 2005
961 Posts
Xera posted:
Looks nice but you should make the context menus a little less square/bland. :)
Yeah it could do with, for example a shoe icon next to "Kick", cell bars next to "Ban", the friendly icon from the scoreboard next to each player and maybe make the corners rounded and the boxes semi-transparent?
 Post #7
 10th August 2007
gilly_54's Avatar
June 2006
932 Posts
ASSmod, sounded like that "GARY MODE" thing :D
Anyways, I like the right click menu style where you can select what you want to do, but I don't know, maybe if you change the colour of the menus to grey so that it fits in more with the spawn menu...My two cents.
 Post #8
 10th August 2007
GMod Illuminati
andyvincent's Avatar
January 2005
2,231 Posts
The menus use Derma, so you can skin it however you like :)
The icon thing is a good idea however :)
 Post #9
 10th August 2007
GMOD Moderator
UberMensch's Avatar
May 2006
4,749 Posts
Webadmin would be a brilliant idea!
 Post #10
 10th August 2007
GMod Illuminati
andyvincent's Avatar
January 2005
2,231 Posts
Here's a kill plugin I just wrote:
local PLUGIN = {}

PLUGIN.Name = "Kill"
PLUGIN.Author = "Andy Vincent"
PLUGIN.Date = "10th August 2007"
PLUGIN.Filename = PLUGIN_FILENAME
PLUGIN.ClientSide = true
PLUGIN.ServerSide = true

if (SERVER) then

	ASS_NewLogLevel("ASS_ACL_KILL", "Kill")

	function PLUGIN.KillPlayer( PLAYER, CMD, ARGS )

		if (PLAYER:IsTempAdmin()) then

			local TO_KILL = ASS_FindPlayer(args[1])

			if (!TO_KILL) then

				ASS_MessagePlayer(PLAYER, "Player not found!\n")
				return

			end

			if (TO_KILL != PLAYER) then
				if (TO_KILL:IsBetterOrSame(PLAYER)) then

					// disallow!
					ASS_MessagePlayer(PLAYER, "Access denied! \"" .. TO_KILL:Nick() .. "\" has same or better access then you.")
					return
				end
			end

			if (ASS_RunPluginFunction( "AllowPlayerKill", true, PLAYER, TO_KILL )) then

				TO_KILL:Kill()

				ASS_LogAction( PLAYER, ASS_ACL_KILL, "killed " .. ASS_FullNick(TO_KILL) )
					
			end

		end

	end
	concommand.Add("ASS_KillPlayer", PLUGIN.KillPlayer)

end

if (CLIENT) then

	function PLUGIN.KillPlayer(MENUITEM, PLAYER)

		LocalPlayer():ConCommand( "ASS_KillPlayer " .. PLAYER:UniqueID() .. "\n" )
		return true

	end

	function PLUGIN.AddMenu(DMENU)			
	
		DMENU:AddOption( "Kill >", ASS_PlayerMenu, {"IncludeLocalPlayer"}, PLUGIN.KillPlayer  )

	end

end

ASS_RegisterPlugin(PLUGIN)
 Post #11
 10th August 2007
Gold Member
Elspin's Avatar
December 2006
5,153 Posts
What do you mean by webadmin? Administrating your server from a web-based control panel using these functions?
 Post #12
 10th August 2007
GMod Illuminati
andyvincent's Avatar
January 2005
2,231 Posts
Potentially, yeah.
Kick / ban users, promote/demote users etc.
It's not something I'm aiming to include in the first release.
 Post #13
 10th August 2007
Gold Member
lew06's Avatar
October 2006
3,268 Posts
Andy, I think (If it already isn't included) that you should make it so people with knowledge of lua and create their own plugins, and that you can add remove kick/ban reasons and admin privelages.

But yeah, looks great.
 Post #14
 10th August 2007
ShadowWolf's Avatar
November 2005
961 Posts
If the web admin was made in Javascript and made compatible with the most common Symbian versions you could kick players from your own server using your cellphone while having a nice meal on the other side of this tiny ball we live on.

I just might download this because of that feature (because I want it for my own personal admin mod duh).
 Post #15
 10th August 2007
GMod Illuminati
andyvincent's Avatar
January 2005
2,231 Posts
lew06 posted:
Andy, I think (If it already isn't included) that you should make it so people with knowledge of lua and create their own plugins, and that you can add remove kick/ban reasons and admin privelages.

But yeah, looks great.
Custom reasons are possible (you select "custom" from the menu). Admin privelages are kinda fixed (since I wanted this to be fairly simple).

Owner > Super Admin > Admin > Temp Admin > Respected > Guest.

People with Lua knowledge can write their own plugins (see a couple of posts above), which can be serverside, shared, or just clientside.
 Post #16
 10th August 2007
Dennab
February 2006
2,409 Posts
I'm hoping this will be suitable for gamemode servers - I've always felt a bit detached from ULX, and being able to temporarily put someone in a position to kick/ban players who are damaging the gameplay would be nice. (In some gamemodes, like Parasite, players can still do a variety of hateful actions that are impossible to detect by a script.)
 Post #17
 10th August 2007
Gold Member
Catdaemon's Avatar
February 2005
11,542 Posts
This looks a lot better than the other admin mods. Congratulations, you have failed to fail.
 Post #18
 10th August 2007
The Mathias's Avatar
April 2007
1,883 Posts
I can't believe it. 4 days ago I started working on an addon: "Another Server Script" that was to be used to control servers, exactly like yours.

:(
 Post #19
 10th August 2007
Gold Member
jA_cOp's Avatar
May 2006
4,833 Posts
Looking nice, I've stuck with Robbis1's OLD admin script for it's simplicity, but it looks like I could finally upgrade
 Post #20
 10th August 2007
Gold Member
KrAzY_nikomo's Avatar
October 2006
9,223 Posts
This mod sucks ASS
 Post #21
 10th August 2007
Xion21's Avatar
May 2007
540 Posts
I do actually like this quite alot! Planned release date?
 Post #22
 10th August 2007
GMod Illuminati
andyvincent's Avatar
January 2005
2,231 Posts
Xion21 posted:
I do actually like this quite alot! Planned release date?
If not tonight or tomorrow, then somewhen around/after the 20th.
 Post #23
 10th August 2007
HTF's Avatar
January 2007
655 Posts
Looks good, simple, easy to use etc. I think the web control is a good idea, there could be a stats page and a control page, presuming you would be using mysql. That would certainly give this mod a big edge over others.
 Post #24
 10th August 2007
Gold Member
foszor's Avatar
April 2005
2,029 Posts
Are you really going to use VGUI or make ASSGUI... you know, draw it with rounded boxes?
 Post #25
 10th August 2007
Gold Member
jA_cOp's Avatar
May 2006
4,833 Posts
The name of this mod is repeatingly hilarious
 Post #26
 10th August 2007
Gold Member
Xera's Avatar
November 2006
8,003 Posts
foszor posted:
Are you really going to use VGUI or make ASSGUI... you know, draw it with rounded boxes?
Hinting towards SAT?
 Post #27
 10th August 2007
Gold Member
foszor's Avatar
April 2005
2,029 Posts
Xera posted:
Hinting towards SAT?
Wait what? No, haha I just wanted to say ASSGUI.
 Post #28
 10th August 2007
Gold Member
Elspin's Avatar
December 2006
5,153 Posts
One thing I've always hated about the other admin mods is they all expect the gamemode you're playing in to derive from sandbox. Will this be compatible with non-sandbox gamemodes?
 Post #29
 10th August 2007
GMod Illuminati
andyvincent's Avatar
January 2005
2,231 Posts
I can't see any reason why it won't work with other gamemodes.

Edit:

Obviously it might have things for the sandbox gamemode (such as increasing prop limits etc).
 Post #30
 10th August 2007
Gold Member
TimeBomb's Avatar
May 2006
2,743 Posts
The title mislead me :(
 Post #31
 10th August 2007
Barri167's Avatar
August 2006
553 Posts
Can't wait for this. It will finally be nice to have a good administration mod installed on some servers.
 Post #32
 10th August 2007
MonkeyMan44's Avatar
December 2006
1,743 Posts
I think I'll use this on my server :P
Good Job!

PS : Though the name is still kinda ...weird I guess..
 Post #33
 10th August 2007
Dennab
February 2006
2,409 Posts
andyvincent posted:
Obviously it might have things for the sandbox gamemode (such as increasing prop limits etc).
Make it detect sandbox derivision then, so such otpions only appear when they are relevant.
 Post #34
 10th August 2007
Gold Member
foszor's Avatar
April 2005
2,029 Posts
Make the plugins "require" specific gamemodes... all gamemodes by default unless otherwise specified.
 Post #35
 10th August 2007
Dennab
May 2007
856 Posts
Make this work with any gamemode and it'll automatically win.
 Post #36
 10th August 2007
J!NX's Avatar
February 2006
927 Posts
Hey Look At That ASS
 Post #37
 10th August 2007
Galliko's Avatar
November 2006
1,444 Posts
Seriously, I know the name might be fun and all, but it's not going to make it sound good and serious in the long run... "I use ASSMod, the best and most reliable admin mod ever!" ... "Or not."
 Post #38
 10th August 2007
Gold Member
Megiddo's Avatar
January 2005
1,650 Posts
ULX has not been broken in the update.
 Post #39
 11th August 2007
jakerlb's Avatar
February 2007
566 Posts
ASSmod :excited::4chan:
How incomparably funny!
Anyways, nice mod.
 Post #40
 11th August 2007
Neico's Avatar
October 2005
352 Posts
Megiddo posted:
ULX has not been broken in the update.

but some things like ulx rcon or ulx luarun are broken :S

nice tough i will give it a try :D
 Post #41
 11th August 2007
Superfan's Avatar
May 2005
331 Posts
I admit I clicked this wanting something else

This is better though, looks ace! :D
 Post #42
 11th August 2007
Galliko's Avatar
November 2006
1,444 Posts
Don't worry, I'll post some hairy man-ass soon :)
(That's what you wanted, right?)
 Post #43
 11th August 2007
SectioN 7's Avatar
August 2007
67 Posts
I keep lol'ing at the name! Name It something else!! LOL'ing!


Funny or lua king?


 Post #44
 11th August 2007
Dennab
May 2007
856 Posts
Ugh, too many smileys, pal.

It'd be cool if gamemode makers could create their own little administration module thingies for this.

Menus allowing them to modify certain variables that they specify.

Something like this pseudocode:

ASSMOD.AddModuleThingy(gamemode_name,var_to_add_to_menu,description_of_var)

That way this admin mod could work perfectly with not only sandbox, but any gamemode out there.
 Post #45
 11th August 2007
Dennab
May 2006
4,853 Posts
Hmm - looking good - I like the plugin system.

Was gonna add things like File Name etc to SAT plugins.
 Post #46
 11th August 2007
blackosprey's Avatar
July 2007
186 Posts
That would be cool, making it more flexible would be shweet. :excited:
 Post #47
 11th August 2007
Dennab
May 2006
4,853 Posts
andyvincent posted:
I'd tried ServerSecure (now re-released as SAT) by Conna
Obviously you didn't try SAT, you tried ServerSecure.

I think you're confused.

SAT is not ServerSecure with a changed name.

This is looking great though Andy :D
 Post #48
 11th August 2007
blackosprey's Avatar
July 2007
186 Posts
SAT is nice, too bad it doesn't work with DarkRP.

So I'm guessing that this will be coming out after the 20th, considering you haven't released it yet?
 Post #49
 11th August 2007
Gold Member
Vampired's Avatar
February 2005
2,269 Posts
How does this work? Do you click the items or use the keyboard? It looks like you should use the keyboard.
 Post #50
 11th August 2007
Gold Member
Termy58's Avatar
September 2006
7,398 Posts
Conna posted:
Obviously you didn't try SAT, you tried ServerSecure.

I think you're confused.

SAT is not ServerSecure with a changed name.
Yeah! It is a small update with a new name!
 Post #51
 11th August 2007
Dennab
May 2006
4,853 Posts
If you took one look at SAT Termy, rather than guessing - you'd realise it's completely different.

blackosprey posted:
SAT is nice, too bad it doesn't work with DarkRP.

So I'm guessing that this will be coming out after the 20th, considering you haven't released it yet?
You have to set it to allow DarkRP in the config :)
 Post #52
 11th August 2007
blackosprey's Avatar
July 2007
186 Posts
Ah well I wish someone would have told me that, because whenever I would try to use it, none of the starting sweps would work, and you couldn't do things like pick up weapons you bought. Oh well, too late now. I couldn't really find any good documentation on it either, maybe that was just me.

And that brings up another reason why this kind of admin mod is awesome: No configuration!
 Post #53
 11th August 2007
Gold Member
Termy58's Avatar
September 2006
7,398 Posts
Conna posted:
If you took one look at SAT Termy, rather than guessing - you'd realise it's completely different.



You have to set it to allow DarkRP in the config :)
Yes the ratings are completely new and the thread has a completely new layout.
 Post #54
 11th August 2007
blackosprey's Avatar
July 2007
186 Posts
*Loud Sirens* Warning! Warning! Derailing in progress!

Edit
How do I force downloads while using something like this?


Edit #2
Conna where do I change the config? Is it in the general.ini?
 Post #55
 11th August 2007
Dennab
May 2006
4,853 Posts
blackosprey posted:
Conna where do I change the config? Is it in the general.ini?
Change:

Code:
[General]

General Allowed Gamemodes = Sandbox
To:

Code:
[General]

General Allowed Gamemodes = Sandbox, DarkRP
Please don't derail Andy's thread - this is looking quite nice Andy, good luck.
 Post #56
 17th August 2007
Dennab
December 2006
1,591 Posts
Yay, I'm cool. I got to test this a while ago on AndyV's server.
 Post #57
 17th August 2007
Pteradactyl's Avatar
July 2007
1,929 Posts
Heh. You said ASS!

 Post #58
 17th August 2007
Morphology53's Avatar
December 2006
1,746 Posts
Was this inspired by the forum's quick admin button?
 Post #59
 17th August 2007
imnotlink's Avatar
August 2007
279 Posts
I like how you have put in some default kick/ban reasons (as shown here). Saves a bit of effort, sometimes you just want someone out quickly without fuss :)
 Post #60
 18th August 2007
Gold Member
conman420's Avatar
January 2007
4,645 Posts
Sexy
 Post #61
 18th August 2007
cooldude13's Avatar
March 2007
971 Posts
Whens release :D
 Post #62
 18th August 2007
MonkeyMan44's Avatar
December 2006
1,743 Posts
He says after the 20th.Read the damn thread before asking!
 Post #63
 19th August 2007
GMod Illuminati
andyvincent's Avatar
January 2005
2,231 Posts
Sorry for the delay everyone, I've been on holiday. Release should be within the next week hopefully.

Vampired posted:
How does this work? Do you click the items or use the keyboard? It looks like you should use the keyboard.
You use the mouse, if you've ever played Unreal Tournament, and used the voice menu, it's similar to that.

Edit:

Morphology53 posted:
Was this inspired by the forum's quick admin button?
Kinda, but I've always felt that a menu based system would work best for quickly administating the server.
 Post #64
 28th August 2007
MonkeyMan44's Avatar
December 2006
1,743 Posts
Release ? :(
 Post #65
 28th August 2007
Gold Member
lew06's Avatar
October 2006
3,268 Posts
I agree, I would really like to take a look at this. Sounds pretty cool.
 Post #66
 28th August 2007
Gold Member
CapsAdmin's Avatar
August 2005
5,771 Posts
How about custom commands?

Something like this

"cheats" "sv_cheats"

CapsAdmin: !cheats 1
sv_cheats changed to 1
 Post #67
 28th August 2007
The Mathias's Avatar
April 2007
1,883 Posts
I thought this WIP thread would be different. Let's hope it will :(

Don't join the group of people who promise and promise and never releases D:
 Post #68
 29th August 2007
MrAltaco's Avatar
January 2007
1,519 Posts
Very sexy. Hoping for a release soon!
 Post #69
 29th August 2007
GMod Illuminati
andyvincent's Avatar
January 2005
2,231 Posts
If you want to beta test it, it's running on my dedicated server (the first 2 players in the server get temporary admin for 60 minutes).

Join!

If you find any bugs or problems, drop me a PM, or comment in this thread :)

I believe this is 99% ready for the first release. I need to compile a DLL so that console commands like "sv_cheats" don't get blocked (is there a cvar that changes that behaviour?).

Edit:

CapsAdmin posted:
How about custom commands?

Something like this

"cheats" "sv_cheats"

CapsAdmin: !cheats 1
sv_cheats changed to 1
Could be a good idea, although I'm thinking of adding a "Most Recent" sub menu to the rcon menu item.
 Post #70
 29th August 2007
cooldude13's Avatar
March 2007
971 Posts
:( Shame i don't have steam where i am at the moment i would come but can't :(
 Post #71
 29th August 2007
Morphology53's Avatar
December 2006
1,746 Posts
andyvincent posted:
If you want to beta test it, it's running on my dedicated server (the first 2 players in the server get temporary admin for 60 minutes).

Join!

If you find any bugs or problems, drop me a PM, or comment in this thread :)

I believe this is 99% ready for the first release. I need to compile a DLL so that console commands like "sv_cheats" don't get blocked (is there a cvar that changes that behaviour?).

Edit:



Could be a good idea, although I'm thinking of adding a "Most Recent" sub menu to the rcon menu item.
I fooled around with it for a bit ( I added the "I love bacon" message ), and I like the look, but I have a couple of questions:
1. Does it handle Bot players correctly? My admin menu didn't handle them correctly because I stored player data in a table, then used the STEAMID as the key. Bots always return "BOT" for the STEAMID, which caused them all to be effected by commands, so I had to do some goofy shit to get them to work.
2. Would stuff like GOD and NOTARGET reapply to a player when they respawn?
 Post #72
 29th August 2007
GMod Illuminati
andyvincent's Avatar
January 2005
2,231 Posts
Morphology53 posted:
I fooled around with it for a bit ( I added the "I love bacon" message ), and I like the look, but I have a couple of questions:
1. Does it handle Bot players correctly? My admin menu didn't handle them correctly because I stored player data in a table, then used the STEAMID as the key. Bots always return "BOT" for the STEAMID, which caused them all to be effected by commands, so I had to do some goofy shit to get them to work.
2. Would stuff like GOD and NOTARGET reapply to a player when they respawn?
It should handle bots pretty much the similar way to normal players since this is all based on the players UniqueID until the settings are stored - in which case the steam id or ip address is used (depending on sv_lan).

God only applys whilst the player is in the server (if they disconenct and reconnect it has to be reapplied). Noclip privaliges are stored so if you deny someone noclip and then change level, they will still not be allowed to noclip.

If you're running a listen server (or single player), you automatically get "owner" level. For a dedicated server, a file is needed to be changed (although I'm thinking of adding a training mode or something similar for dedicated servers).
 Post #73
 29th August 2007
MonkeyMan44's Avatar
December 2006
1,743 Posts
Well,The thing we all want to know..
When is the release?
I am in need for an simple but yet effective admin mod..This is perfect ;)
Good job!
 Post #74
 29th August 2007
Gold Member
Vampired's Avatar
February 2005
2,269 Posts
MonkeyMan44 posted:
Well,The thing we all want to know..
When is the release?
I am in need for an simple but yet effective admin mod..This is perfect ;)
Good job!
MonkeyMan44 posted:
He says after the 20th.Read the damn thread before asking!
Excuse me.
 Post #75
 29th August 2007
thegrb93's Avatar
June 2006
1,616 Posts
Thank you!

Please don't include points or smart points or anything like that though
 Post #76
 31st August 2007
MonkeyMan44's Avatar
December 2006
1,743 Posts
So,It's september..When is the release :( ?
 Post #77
 2nd September 2007
Teh-Jamesy's Avatar
May 2007
1,003 Posts
I agree, it sounds good. release it! :)
 Post #78
 2nd September 2007
StackOfPoo's Avatar
October 2006
79 Posts
Vampired posted:
Excuse me.
If you had the mighty ability to look at dates you would notice that the 20th mentioned was on August.


The mod looks just great. With serversecure(and many other admin mods) gmod had the tendency to loop sounds a while at the beginning and sometimes crash. This mod seems perfect for me because I don't host servers very often but when I do, I want kicking and banning done swiftly.

Personally, I don't have any hurry with this. I just hope that it won't be going to stay as an unreleased WIP.
 Post #79
 2nd September 2007
Gold Member
Vampired's Avatar
February 2005
2,269 Posts
StackOfPoo posted:
If you had the mighty ability to look at dates
I did, and I ignored them. What you goin' to do now?
 Post #80
 2nd September 2007
Gold Member
Xera's Avatar
November 2006
8,003 Posts
Code:
[18:37] <Xera> AndyV
[18:37] <Xera> ASSmod
[18:37] <Xera> :<?
[18:37] <@AndyV> coming
[18:37] <@AndyV> in
[18:37] <@AndyV> about
[18:37] <@AndyV> 15 minutes
[18:37] <@AndyV> hopefully
Reply


All times are GMT. The time now is 05:57PM.

Facepunch Studios 2009 - Server 'Softlayer 2.0'