• Server Menu?
    26 replies, posted
Hi, i am just wondering how i would go about making a Server menu, that pops up with like a certain key like F10 or something, and it has a Shoutcast radio menu, and you can have ability to link your in-game account with your forum account, if anyone could maybe help me do this that would;d be great.
Deathslayer95.. You mean a in-game menu? Do you know anything about LUA yourself?
Yea, Like a derma menu ingame, And it opens with F1. And yes i know bout Lua. I'm just wondering, Like is it possible to stream shoutcast on your garrysmod server. Like do i need some sort of specific plugin or what?
concommand.Add("login_menu", login_menu) make a derma box for the login menu, and I'm not sure about the rest.
[QUOTE=Zeroi;25544585]Deathslayer95.. You mean a in-game menu? Do you know anything about LUA yourself?[/QUOTE] Do [b]YOU[/b] know anything about lua yourself?
[QUOTE=c-unit;25548751]Do [b]YOU[/b] know anything about lua yourself?[/QUOTE] Well, Do you? Because, This thread is meant for help, Not arguing.
You must use usermessages, like this: cl_init.lua [lua]function derma() local defram = vgui.Create("DFrame") defram:SetSize() defram:SetPos() defram:SetVisible() end usermessage.Hook("F1Menu", derma)[/lua] and init.lua [lua]function GM:ShowHelp(ply) umsg.Start("F1Menu", ply) umsg.End() end[/lua] That should do it [editline]21st October 2010[/editline] Also I planned on automerge >.>
[QUOTE=c-unit;25548824]You must use usermessages, like this: cl_init.lua [lua]function derma() local defram = vgui.Create("DFrame") defram:SetSize() defram:SetPos() defram:SetVisible() end usermessage.Hook("F1Menu", derma)[/lua] and init.lua [/lua]function GM:ShowHelp(ply) umsg.Start("F1Menu", ply) umsg.End() end[/lua] That should do it[/QUOTE] Ok, But the main thing i'm tying to figure out at the moment, is how can i use shoutcast ingame? Like, i have shoutcast radio station, and i have seen this on another server. But, like is there some sort of plugin? Or what.
What do you mean shoutcast? Like you mean get the radio station to work so when you push E on a radio or something it will play music?
Play music, If you click a button in a derma dropdown menu.
WHy not just get a HUGE amount of sounds and then on the derma do a DListView and when you doble click on one of the songs it will play it
[QUOTE=c-unit;25549095]WHy not just get a HUGE amount of sounds and then on the derma do a DListView and when you doble click on one of the songs it will play it[/QUOTE] Because. I already have that, with F4. I want it shoutcast because, I own a shoutcast server. And want it to be used on the server thats why.
Then make F3 your shoutcast, I can't be of much help there tho because I don't know how to use radio stations
[QUOTE=c-unit;25549179]Then make F3 your shoutcast, I can't be of much help there tho because I don't know how to use radio stations[/QUOTE] Ok, well i guess you don't know :\ Ill wait until someone can help me then.
You could use something like [url=http://www.3scriptz.com/software/flash-shoutcast-player.html]an embedded shoutcast player[/url] in a [url=http://wiki.garrysmod.com/?title=P.HTML]HTML panel[/url]?
[QUOTE=_Undefined;25550937]You could use something like [url=http://www.3scriptz.com/software/flash-shoutcast-player.html]an embedded shoutcast player[/url] in a [url=http://wiki.garrysmod.com/?title=P.HTML]HTML panel[/url]?[/QUOTE] Actualy, That gave me an idea. Thanks. You may have solved it. I don't know why i didnt think of that.
[QUOTE=c-unit;25548751]Do [b]YOU[/b] know anything about lua yourself?[/QUOTE] I'm sorry, I'm not really familiar with Derma, anything about it. Also I'm a newb.
[QUOTE=Zeroi;25551437]I'm sorry, I'm not really familiar with Derma, anything about it. Also I'm a newb.[/QUOTE] Obviously..He has asked for a menuthat appears when you push F1, you wrote concommand.Add.
[QUOTE=c-unit;25553671]Obviously..He has asked for a menuthat appears when you push F1, you wrote concommand.Add.[/QUOTE] And then bind a button to the concommand?
You cannot force a player to bind their F1 key, or any key for that matter..
[QUOTE=c-unit;25556028]You cannot force a player to bind their F1 key, or any key for that matter..[/QUOTE] Yes, But you can script it server side to do so.
Yeah, I thought the only way to force a key to be bound to something is in a gamemode.
[QUOTE=c-unit;25562180]Yeah, I thought the only way to force a key to be bound to something is in a gamemode.[/QUOTE] That's what I ment, on a key press. [url]http://wiki.garrysmod.com/?title=Gamemode.KeyPress[/url]
either way you're retarded for not using usermessages it's a lot simpler especially when it comes to F1-F4
C-unit and zeroi, If your not going to help me on this topic, STOP POSTING HERE. I clearly am asking for help. Not calling each other retards and shit. For fuck sake.
I never got why these hooks are serverside and not shared. Well using the KeyPress hook reduces usermessage useage but since nobody is going to spam these keys the usermessage variant would be better.
-snip-
Sorry, you need to Log In to post a reply to this thread.