Author Topic: Closing !motd through HTML command  (Read 2045 times)

0 Members and 1 Guest are viewing this topic.

Offline Lolomat

  • Newbie
  • *
  • Posts: 24
  • Karma: 0
Closing !motd through HTML command
« on: February 11, 2017, 10:37:23 AM »
Good evening everyone,

I am advertising shortened links on my Garry's Mod servers using the a modified !motd which adds a close button that has 10 second timer before you can close the window.
Now, I am having some issues with my partners. So I have wondered if there is a way (maybe through HTML?) to only let the window close after pressing the skip add button on the shortened link.

I have found nothing useful on google nor in this forum.

Best regards,
Lolomat

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Closing !motd through HTML command
« Reply #1 on: February 12, 2017, 10:48:30 AM »
There is not. The MOTD is DERMA/VGUI and the motd is HTML. The only way to do it would be to use javascript or something to send commands to the VGUI element to enable the button.

So, I guess it would be possible, but not with just HTML.

Offline MrPresident

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 2728
  • Karma: 430
    • |G4P| Gman4President
Re: Closing !motd through HTML command
« Reply #2 on: February 12, 2017, 10:49:36 AM »

Offline Lolomat

  • Newbie
  • *
  • Posts: 24
  • Karma: 0
Re: Closing !motd through HTML command
« Reply #3 on: February 15, 2017, 05:20:22 AM »
Thanks, I will look into that.