No point in that.
No point in that.
It builds the jail around the player incase you haven't tested this.
For that you deserve a nice ol' brown box.
What is the table of vectors for then?
Offsets from the player.
:eng99:
I should have read the full file before posting :saddowns:
Exactly.
Edited:
And give me credits in OP post.
Finally, an admin mod that comes MySQL-ready out of the box! And the derma is beautiful too!
I'm going to give this a try when I get my PC in 5 days.
he got grounded for bullying kids at school :(
His parents need to kontrol him a little bit more then.
:drum:
He didn't want to do his homework, silly boy.
:bravo:
Suggest me some plugins ok?
big fucking red thing plugin :smugdog:
Noclip, Prop Protection, Gag (Chat Mute), Ignite, Explode, Bring, Goto
Will do (except from Prop Protection)
Isn't prop protection a more stand-alone thing?
In my opinion prop protection should be handled by the gamemode.
Yeah personally I'd advise against depending on an admin mod for gamemode functions, but I'm really just looking for any kind of plugin I can throw up on the OP.
This is a interesting admin mod, it looks nice too.
Take ASSMod for an example, it has a prop protection plugin built in, but it sucks.
If you want a prop protection addon you should go with standalone stuff, anyway I've finished bring and goto.
It's a bit optimistic but here it goes :)
A strikeout plugin :O
-Simply, whenever a player is banned (Or they are banned for over 24hours), they recieve one strike point which is added to their account
-Once the player reaches the strikeout limit they are permently banned from the server
-The strikeout limit is set via a variable that can be changed in the menu
-Also have commands to set (Add/Remove) points from a players SteamID or however kontrol registers and stores player details
Hope you take this into account, and I feel if included and enabled with MySQL it would be great as server owners could control this system via their website aswell and therefore be able to add points to players without them being ingame :)
Sounds like a really simple yet effective plugin, thanks for the idea!
All I have to do is kill you so that when I start charging a monthly subscription fee to use this plugin, nobody will know you are the original author..
Sounds good :P
I like the slogan a lot, it's pretty catchy. Also the colours of the UI aren't bad at all likePrefan's is (can't remember the name)Exsto.
I'm sick of all the admin mods being created recently but daaaammmn this looks sexy.
Rated artistic.
EDIT:
A suggest as well for people who are too shit with lua to even work this:
I reckon you can have "Default" settings for who gets to use the commands and you can set permissions in the derma menu.Code:if !pl:KAdmin() && !pl:KModerator() then return end
(My opinion to change shit on the fly instead of having to restart the server again and again)
I have a small suggestion, you should override the default IsAdmin and IsSuperAdmin commands, so this can be used with gamemodes and stuff without having to change too much.
return !pl:KAdmin() and !pl:KModerator()
Then the function would always instantly return and never be run.
Edited:
Also, good news! Loures has volunteered to help develop kontrol since I'm too busy to really put all my effort into it. Say hello to your new kontrol developer, Loures :buddy:
-snip-
lua is shit
I will add some plugins and fix some stuff whenever I get SVN access.
return pl:KAdmin() or pl:KModerator()
Again, doing a return in a function returns the value and stops the function.
He was doing "if player isnt an admin and isnt a moderator then stop function"
You can do it in a shorter way with how I did it. Return true if admin or moderator. errr, that should be !pl:KAdmin() and !pl:KModerator(). or IDK. But either way, it was shorter than his if statement.
And doesn't run the rest of the code IN ANY CASE :downsbravo:
Don't blame your stupidity on Lua.
GET OUT OF MY THREAD, SHOO, BE GONE WITH YOU.
Your stupid is leaking all over my freshly waxed floors, get out already!
No.
Listen 'ere, kiddo. Your scripting sucks something awful, and I'll explain why, so hang tight.
http://kontrol-mod.googlecode.com/sv...lugins/ban.lua
[list][*] This does not need to be a shared file, none of your so-called "plugins" do, all you're achieving with this structure is that you're sending all the serverside code to a client that doesn't need it, and forcing the serverside lua instance to parse (though not execute) your clientside code.[*] You're repeating code like this was an essay with a minimum word count that you couldn't figure out how to live up to. Throw the shit from SQL_ACTIVE outside of it, and keep the SQL query itself inside it. This goes for pretty much all(read: all) of your SQL code.[*] Globals, globals everywhere (Thanks CapsAdmin). It's pretty naïve to think that no other addon, gamemode or lua file will ever use the global variable "Ban", "plugins" or "Kick". Use globals for crying out loud! You're not accessing them anywhere else but in this file! Better yet, skip the variable bit and feed the function straight into the call to concommand.Add.
[*] On line 159 through 185, you seem to have caught a bad case of the Nullsquared. Use a table, this will make your life so much easier, and you can even reuse it when filling your menu on line 139![/list]concommand.Add( "I'm a lousy coder", function(pl, cmd, args ) print( "It's true!" ) end )
http://kontrol-mod.googlecode.com/sv...ua/cl_init.lua
[list][*] Throw all your functions, variables, whatnots and haveswhats in a global table, because
[list] [*] Nested lists, whatcha gonna do, bitch?[*] Lua doesn't have to look through a million Ban, BanMenu, kontrolMenu, MAIN_FRAME, etc. variables to find the one it's actually looking for[*] Makes your code neater[*] Safer, safer, safer, safer.[*] They're like locals, only they don't disappear when you turn your back.[/list][*] Create your menu once and then use the fancy-cool function "SetVisible" to make it seemingly fade in and out of existence, it's like magic with less bunnies.[/list]
http://kontrol-mod.googlecode.com/sv...er/kontrol.lua
[list][*] Do you have any idea what string.Explode does to the poor processor, not to what mention file.Read does to your harddrive?[*] And secondly, I- I'm just kidding bro, apart from the complete disinterest in minimizing the impact of your script on Gmod's performance, it's cool bro.[/list]
http://kontrol-mod.googlecode.com/sv...k/lua/init.lua
http://kontrol-mod.googlecode.com/sv...ugins/mute.lua
http://kontrol-mod.googlecode.com/sv...gins/unban.lua
[list][*] Don't[*] Send[*] Lua[*] "But it's just one string, no harm, right?" - Wrong. One string is 'kay, but there's more than one script running on a Gmod server or client at any given time, see. And if each of those wants to SendLua just one tiny string, it all adds up pretty fucking fast. If everyone stopped thinking "Just one string, it won't hurt" and started thinking "YES I CAN SAVE 100 BYTES BY NOT BEING A QUEER" Gmod would run noticeably faster (Won't get rid of Sleep(30000) though).[/list]
http://kontrol-mod.googlecode.com/sv...lua/shared.lua
- If you absolutely must notify everyone of your adminmods existence.hook.Add("Initialize", "InitKontrol", function() print("\n< kontrol initialized " .. (CLIENT && "client" || "server") .. "side >\n") end)
Just because your adminmod was designed with "stupidly simplistic ideals in mind", doesn't mean it has to be simplistically stupid.
I think all that is, in his opinion, "avoiding object-oriented programming, with which everyone else is obsessed".Dr Magnusson posted:
I truly believe you just won.