Quote:
Originally Posted by Mitchell
im pretty sure that you can set a panel's okay button to send a command client side, with that you coulkd make it do sm_stopyoutube with would send a hidden url that would stop the youtube video
|
That doesn't work in at least CSS, TF2, and ND.
There are a set 6 commands that you can send, identified by a numeric index.
From my plugin,
Code:
enum /* Ep2vMOTDCmd */ {
Cmd_None,
Cmd_JoinGame,
Cmd_ChangeTeam,
Cmd_Impulse101,
Cmd_MapInfo,
Cmd_ClosedHTMLPage,
Cmd_ChooseTeam,
};
Quote:
Originally Posted by Dreamy
great idea, I can even set when the video should stop playin if I embedded it in a html page..
so I just throw the page on the server and do it like this? :
PHP Code:
ShowMOTDPanel(client, "Youtube:", <PathToHtmlPage>, MOTDPANEL_TYPE_FILE);
|
closed_htmlpage won't automatically get send unless you send 5 (Cmd_ClosedHTMLPage) as the "cmd" value. ShowMOTDPanel doesn't send any cmd value by default, but you can copy it (it's a stock) and it that into your own version.