Raised This Month: $ Target: $400
 0% 

Window with buttons


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
CodeStepper
Member
Join Date: Jun 2013
Location: Polska
Old 08-02-2013 , 13:52   Window with buttons
Reply With Quote #1

Hi!
It is possible to create a window, like MOTD, but with buttons? I mean not "NET" buttons, but for ex. when I select option ( button ) from this window, the text will be displayed in user console...
CodeStepper is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 08-02-2013 , 18:51   Re: Window with buttons
Reply With Quote #2

No, there's no way
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
Black Rose
Veteran Member
Join Date: Feb 2011
Location: Stockholm, Sweden
Old 08-02-2013 , 19:08   Re: Window with buttons
Reply With Quote #3

Well, I believe there is.
A button could open a link. This link opens a PHP script on the same server. This PHP script writes a file which is read through AMXx probably by intervals and AMXx uses the information for further action.

It's an extremely shitty way, especially the file read. May be possible using sockets instead but I doubt it. If you know when to search for the php generated file there can be improvements instead of constantly checking for files.

Unless there's a good reason I won't spend much time researching.
And a webserver with PHP on the same machine as the HL server is a requirement.
Basically, it can be used on your server but not for a public release of a plugin.
__________________
Black Rose is offline
akcaliberg
Senior Member
Join Date: Nov 2011
Location: Istanbul
Old 08-02-2013 , 19:52   Re: Window with buttons
Reply With Quote #4

he doesnt want "NET" buttons
akcaliberg is offline
CodeStepper
Member
Join Date: Jun 2013
Location: Polska
Old 08-03-2013 , 03:49   Re: Window with buttons
Reply With Quote #5

Hmm... Black Rose. The way you show to solve the problem is really extremely shitty, but you've inspired me, so I have an idea how to do this without PHP, but this is shitty to - I check it as soon as possible.
The idea is to wrote "res" files, wchich generating this "windows", and renaming it to VGUI name wchich I want to use, for example "MainBuyMenu.res", and of course real "MainBuyMenu.res" rename to "MainBuyMenu.res.backup" or something like this, and then, after "exit window" rename it again.
This integrates in user files, but I think it is a only "non that shitty way" to do it...

Last edited by CodeStepper; 08-03-2013 at 03:53.
CodeStepper is offline
joropito
AlliedModders Donor
Join Date: Mar 2009
Location: pfnAddToFullPack
Old 08-03-2013 , 09:37   Re: Window with buttons
Reply With Quote #6

You can't add new buttons and menues

Also modifying client files is slowhack, not allow to learn/explain here
__________________

Divide et vinces
approved plugins | steam account

I don't accept PM for support. Just ask on forums.
If you're looking for private work, PM me.
joropito is offline
Send a message via MSN to joropito
CodeStepper
Member
Join Date: Jun 2013
Location: Polska
Old 08-03-2013 , 11:17   Re: Window with buttons
Reply With Quote #7

Ok So, thanks for help
CodeStepper 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 15:47.


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