Raised This Month: $ Target: $400
 0% 

Any way to make GUI menu plugin with SM?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
cheddar
Member
Join Date: Sep 2015
Old 12-01-2016 , 13:53   Any way to make GUI menu plugin with SM?
Reply With Quote #1

Hey, this may be impossible, but is there a way to have an in game GUI plugin. I want to do some really advanced cool stuff with entities and the simple text based menus would really limit it. I'm talking a full GUI with a cursor and buttons as a SM plugin.

Any way to do it?

Last edited by cheddar; 12-01-2016 at 14:09.
cheddar is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 12-01-2016 , 14:24   Re: Any way to make GUI menu plugin with SM?
Reply With Quote #2

Yes, you can show a popup html window to the user, and have the page connect to the server and send information between the panel that way.
Mitchell is offline
cheddar
Member
Join Date: Sep 2015
Old 12-01-2016 , 16:22   Re: Any way to make GUI menu plugin with SM?
Reply With Quote #3

Quote:
Originally Posted by Mitchell View Post
Yes, you can show a popup html window to the user, and have the page connect to the server and send information between the panel that way.
As Mr. Garrison would say "Oh Jeez"...


Yeah I thought of that option, but was hoping there'd be another way... something more... native... oh whale. Thnx Mitchell.

Last edited by cheddar; 12-01-2016 at 16:24.
cheddar is offline
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 12-01-2016 , 23:34   Re: Any way to make GUI menu plugin with SM?
Reply With Quote #4

If you know how to create models and materials you can have a look at this. Impressive stuff for that weapon choose menu.
https://forums.alliedmods.net/showthread.php?t=275699
__________________
Peace-Maker is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 12-02-2016 , 03:54   Re: Any way to make GUI menu plugin with SM?
Reply With Quote #5

The web page method is perfectly sane, take a look at webcon in my signature.
__________________
asherkin is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 12-02-2016 , 03:58   Re: Any way to make GUI menu plugin with SM?
Reply With Quote #6

Quote:
Originally Posted by asherkin View Post
The web page method is perfectly sane, take a look at webcon in my signature.
Also should add onto this, it will add a slight delay depending on the connection with the server, http server and the client. Also you would want to add some security to users can't access the page unless it's directed from the server itself, saving you the hassle later on if somebody malicious finds your page.
Mitchell is offline
PartialCloning
Senior Member
Join Date: Dec 2015
Old 12-02-2016 , 10:08   Re: Any way to make GUI menu plugin with SM?
Reply With Quote #7

Quote:
Originally Posted by Mitchell View Post
Also you would want to add some security to users can't access the page unless it's directed from the server itself
How would you do that? Preventing a player in the server from accessing the page outside of the server itself?
PartialCloning is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 12-02-2016 , 10:23   Re: Any way to make GUI menu plugin with SM?
Reply With Quote #8

Generate a secure random token, for an off-gameserver webserver you can persist it in a shared database or use cryptographic signatures, for something like webcon you just need an in-memory list.
__________________
asherkin is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:55.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode