Advanced ShowMOTDPanel
2 Attachment(s)
I haven't actually tested this in-game, but it should work fine.
This is an enhanced version of ShowMOTDPanel that allows for:
PHP Code:
PHP Code:
|
Re: Advanced ShowMOTDPanel
I. Freakin'. Love. You.
|
Re: Advanced ShowMOTDPanel
Nice :D Thanks.
|
Re: Advanced ShowMOTDPanel
Thanks to this excellent native, I was able to FINALLY create a working "Big MOTD on connect" plugin. It uses some code from MasteroftheXP's Block MOTD plugin which is why there seems to be an issue where using this causes players to not be able to select a class or a team.
Here's the code
Spoiler
|
Re: Advanced ShowMOTDPanel
If the HTML MOTD fails, you should send them a regular ShowMOTDPanel text MOTD.
Also, why are you hooking the "Train" message? |
Re: Advanced ShowMOTDPanel
Quote:
The HTML MOTD displays properly, but (and this may have been because I unloaded the plugin whilst the MOTD panel was up) it disallowed me from choosing a team or even joining the game. The only reason I was trying to make a "big MOTD on connect" plugin was for a friend who wanted it for his server. |
Re: Advanced ShowMOTDPanel
Quote:
psychonic's Dynamic MOTD plugin has an option to use the big MOTD. |
Re: Advanced ShowMOTDPanel
Quote:
|
Re: Advanced ShowMOTDPanel
Quote:
|
Re: Advanced ShowMOTDPanel
Quote:
|
Re: Advanced ShowMOTDPanel
Ciao,
I use this include, and sometimes my MOTDs only flicks/blinks (just open and immediately close). Does anyone know whats wrong and how to fix it? My code: PHP Code:
|
Re: Advanced ShowMOTDPanel
Bit of a warning when compiling a plugin using this in a 1.7 environment:
"Warning 237: coercing functions to and from primitives is unsupported and will be removed in the future" ...wat |
Re: Advanced ShowMOTDPanel
wat is a big motd
|
Re: Advanced ShowMOTDPanel
Quote:
|
Re: Advanced ShowMOTDPanel
What about the popup motd type pannels? Is there any way to create and control one of those?
|
Re: Advanced ShowMOTDPanel
Maybe big motd IS the popup type panel?
|
Re: Advanced ShowMOTDPanel
Quote:
|
Re: Advanced ShowMOTDPanel
You talking about the info text panels that open vgui panels behind the ui, like console style?
You make those similar to the upper left admin say (whatever its called), just change the message type. |
Re: Advanced ShowMOTDPanel
No I am talking about the full on html popup windows that you get if you were to click on a link with target_blank for example.
|
Re: Advanced ShowMOTDPanel
Updated for transitional syntax.
|
Re: Advanced ShowMOTDPanel
Very well done, thanks for keeping the 1.6 code in there :)
|
Re: Advanced ShowMOTDPanel
Quote:
Plugin is loaded (sm plugins ->"example.smx" example.smx). Modt does not show. There is no errormessage! I don't think it is working at the moment. I used this because I've go problems with ShowMOTDPanel. As well nothing was opening with this command. (I have clientsided cl_disablehtmlmotd 0.) Is there actually a problem with opening the motd out of running game? |
Re: Advanced ShowMOTDPanel
I read somewhere else: "The latest steam client update broke the webkit in-game for anything other than initial page hit"
Is this The Problem? |
Re: Advanced ShowMOTDPanel
Quote:
|
Re: Advanced ShowMOTDPanel
It's should work in CS:GO?
Because the default ShowMOTDPanel working, but AdvMOTD_ShowMOTDPanel not working :( No errors or something, validate enabled and stuff. |
Re: Advanced ShowMOTDPanel
1 Attachment(s)
The transitional syntax version of AdvMOTD_OnQueryFinished function isn't completing the callback with Call_Finish(). It always fails silently. The pretransitional one is fine, on the other hand.
Here's a fixed copy that actually completes the call and removes the forward instantiation in favor of just packing in the function. Code:
#if defined _advmotd_enabled |
Re: Advanced ShowMOTDPanel
Is MOTD support callbacks like if I would like to receive an event when flash player finished playing the music?
I am using Disco plugin. And I don't like it looping the track instead of playing tracklist. So, first solution is to modify php such a way it close web-page as soon as track is finished playing. I hope MOTD has ability to track such event and return a callback. So, I can jump to next track via SourceMod plugin. Second solution, of course, add tracklist support to php or swf player, but I'm not very familiar with php or Action Script. Of course, there is always 3-rd variant: make script for auto-calculating each song length and save it into .cfg, so plugin will use it to track end of each song. |
Re: Advanced ShowMOTDPanel
Quote:
For your particular use case, you could write something up with WebSockets for client-server comms, but assuming you had control over your web server stack, your best bet would be to deliver a stream of audio using some HTTP streaming application so it's mostly synced across clients, then use a minimal amount of HTML to source and playback the audio (and you can show playlist info by passing data from your streaming server to your game server). |
All times are GMT -4. The time now is 16:55. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.