Window with buttons
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... |
Re: Window with buttons
No, there's no way
|
Re: Window with buttons
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. |
Re: Window with buttons
he doesnt want "NET" buttons :D
|
Re: Window with buttons
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 :P - 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... |
Re: Window with buttons
You can't add new buttons and menues
Also modifying client files is slowhack, not allow to learn/explain here |
Re: Window with buttons
Ok :) So, thanks for help
|
| All times are GMT -4. The time now is 15:47. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.