• Kill Menu - First Lua
    44 replies, posted
i made my first lua script thingy button. its a kill menu. please read description on garrysmod.org before raging. [url]http://www.garrysmod.org/downloads/?a=view&id=90044[/url]
Never ever release your first script.
[QUOTE=Dr Magnusson;20007305]Never ever release your first script.[/QUOTE] Unless it is good.
i thought it was pretty good and useful. for me at least...
Well, it's better than a 5 second SWEP since it actually has a use. The only problem with your code is that you need to bind your 'kill' key to kmenu first and it does not prevent 'kill' to be accidentally ran as you're saying.
erm can you explain more please?
[QUOTE=LittleSeanX;20007972]erm can you explain more please?[/QUOTE] This does not prevent you from suicide as it requires a separate console command to be run. So if you had a key bound to kill, you would have to rebind it with the new command. Which would be as easy as unbinding the key; Rendering this useless :(
Good job on overriding Paint functions. Pretty good for a first script.
[url=http://www.facepunch.com/showthread.php?t=744197]This[/url] was actually my first release, which I thought was pretty nice at the time. Here's some general rules to follow on whether to release a script: [list][*]Has it been done before [*]Can it be made in < 10 minutes [/list] You look like you're on your way to becoming a good Derma coder at the very least, so keep with it.
that gad menu is quite good for a first release.
[QUOTE=Entoros;20016146][url=http://www.facepunch.com/showthread.php?t=744197]This[/url] was actually my first release, which I thought was pretty nice at the time. Here's some general rules to follow on whether to release a script: [list][*]Has it been done before [*]Can it be made in < 10 minutes [/list] You look like you're on your way to becoming a good Derma coder at the very least, so keep with it.[/QUOTE] Wow seriously? That was your first? How long had you been coding before you released something?
[QUOTE=Entoros;20016146][url=http://www.facepunch.com/showthread.php?t=744197]This[/url] was actually my first [b]release[/b], [/QUOTE] [QUOTE=yakahughes;20016927]Wow seriously? That was your first? How long had you been coding before you released something?[/QUOTE] You act like it's special, it's not, he could of been coding a week or more before he released it (or months even!)
[QUOTE=Saint Devil;20015273]This does not prevent you from suicide as it requires a separate console command to be run. So if you had a key bound to kill, you would have to rebind it with the new command. Which would be as easy as unbinding the key; Rendering this useless :([/QUOTE] thats kinda the point. its like a failsafe. read description on garrysmod.org D:<
Seriously, don't tell him not to release it, instead tell him what he could do better. Everyone has to start somewhere. If he didn't release this, then his next script would be considered his first, and so on. Just stop with this don't release your first script nonsense, please? I can guarantee you that if you help him make his first better, his next script will be better as well. I'd suggest instead of a menu you make it so you have to do a quick double tap of the key for it to kill you.
[QUOTE=T3h raps13r;20017571]You act like it's special, it's not, he could of been coding a week or more before he released it (or months even!)[/QUOTE] That's why I asked how long he had been coding before he released something.
jesus christ people cant you just say nice work and be done with it god fkin dammit. it works for me. you dont have to use it if you dont want to. gtfo. it doesnt need to be better anyway. it would be overloaded with crap and be hard to use.
[QUOTE=LittleSeanX;20023947]:words:[/QUOTE] If you keep acting like that I doubt people will like your stuff. Other than this, looks nice, if you take this more seriously you may reach a good goal.
People don't like it anyways!
So I made a SENT that changes material of object on collide, should I release it because I'm very happy for it ?
[QUOTE=iRzilla;20027653]I love it![/QUOTE] thanks for the optimism :) glad someone likes it(do u rly? :D?)
well, Its cool and usefull actually instead of accidently pushing the kill button that u binded it brings up the menu =) better than me.. I nvr done lua. I suck =(
[QUOTE=aurum481;20028744]So I made a SENT that changes material of object on collide, should I release it because I'm very happy for it ?[/QUOTE] I guess people will love it :v:.
People, If you don't like it, just shut up and leave that guy alone? This script can be used, it's not very useful, but it's not useless at all, every person needs a certain script. This guy made his own, he's happy, he shares his happiness, and you're whinning because it's not the cool script you've been waiting for? Leave. :)
[QUOTE=Euphytose;20042249]If you don't like it, just shut up and leave that guy alone?[/QUOTE] People here should be more constructive, but not being allowed to say that anything has something wrong with it is quite a bad idea.
[QUOTE=yakahughes;20016927]Wow seriously? That was your first? How long had you been coding before you released something?[/QUOTE] I still haven't made my first release.
[QUOTE=Lambda 77 :D;20043546]People here should be more constructive, but not being allowed to say that anything has something wrong with it is quite a bad idea.[/QUOTE] If I don't like something, I won't go in the thread and say " every single one of you sucks, this thing sucks, what you made sucks! ". That's what they're doing. However yes, saying that something could be improved is a good idea.
[QUOTE=Euphytose;20044724]If I don't like something, I won't go in the thread and say " every single one of you sucks, this thing sucks, what you made sucks! ". That's what they're doing. However yes, saying that something could be improved is a good idea.[/QUOTE] Saying that you don't like it and why is also constructive criticism.
[QUOTE=Dr Magnusson;20007305]Never ever release your first script.[/QUOTE] if you can't release your first script then when is your second script?
hey guys i need help i tryed making it better by making a timer and tryed making so you press k twice and it kills. its all screwed up now. i tryed using buttons to show text but that didnt work nad ai added something to make it center on its own. instead of just my screen. so please fix its a complete mess of code that doesnt work ;( [QUOTE] function testpanel() -- Create the function local width = ScrW() * 0.5 //Half screen size local height = ScrH() * 0.5 //Half screen size local DermaPanel = vgui.Create( "DFrame" ) DermaPanel:SetPos(width,height) DermaPanel:SetSize( 250, 100 ) DermaPanel:SetTitle( "-----------------KILLMENU---------------" ) DermaPanel:SetVisible( true ) DermaPanel:SetDraggable( true ) DermaPanel:ShowCloseButton(false) DermaPanel:SetMouseInputEnabled(false) DermaPanel:MakePopup() local DermaButton = vgui.Create( "DButton" ) DermaButton:SetParent( DermaPanel ) -- Set parent to our "DermaPanel" DermaButton:SetText( "Press K Again To Kill" ) DermaButton:SetPos( 25, 30 ) DermaButton:SetSize( 100, 50 ) DermaButton.DoClick = function () DermaPanel:Close() end end local DermaButton = vgui.Create( "DButton" ) DermaButton:SetParent( DermaPanel ) -- Set parent to our "DermaPanel" DermaButton:SetText( "AutoClose In 5s" ) DermaButton:SetPos( 25, 90 ) DermaButton:SetSize( 100, 50 ) DermaButton.DoClick = function () DermaPanel:Close() end timer.Create( "my_timer", 5, 0, function () DermaPanel:Close() function KeyPressed (K, key) RunConsoleCommand("kill") end hook.Add( "KeyPress", "KeyPressedHook", KeyPressed ) concommand.Add("kmenu", testpanel) [/QUOTE]
[QUOTE=LittleSeanX;20773376]:words:[/QUOTE] [lua] local __key = 0 local function KillKey( player, key ) if key == KEY_K then __key = __key + 1 if __key == 2 then __key == 0 RunConsoleCommand( "kill" ) end end end hook.Add( "KeyPress", "LOLILIKEHCHEESE", KillKey ) [/lua] Untested.
Sorry, you need to Log In to post a reply to this thread.