[HL2:DM] Webshortcut
- Painkiller
- Senior Member
- Posts: 751
- Joined: Sun Mar 01, 2015 8:09 am
- Location: Germany
- Contact:
[HL2:DM] Webshortcut
Can anybody create a Webshortcutlist?
Re: [HL2:DM] Webshortcut
Do you mean a plugin that opens a website in motd when you type a specific command?
E.g. !google opening www.google.be in motd?
E.g. !google opening www.google.be in motd?
Re: [HL2:DM] Webshortcut
La Muerte wrote:Do you mean a plugin that opens a website in motd when you type a specific command?
E.g. !google opening http://www.google.be in motd?
I'd say Yes.
https://forums.alliedmods.net/showthrea ... 4?t=173334
- Painkiller
- Senior Member
- Posts: 751
- Joined: Sun Mar 01, 2015 8:09 am
- Location: Germany
- Contact:
Re: [HL2:DM] Webshortcut
La Muerte wrote:Do you mean a plugin that opens a website in motd when you type a specific command?
E.g. !google opening http://www.google.be in motd?
Kill wrote:
E.g. !google opening http://www.google.be in motd?
I'd say Yes.
https://forums.alliedmods.net/showthrea ... 4?t=173334
Yes this is what i mean
Re: [HL2:DM] Webshortcut
Syntax: Select all
from messages import VGUIMenu
from commands.say import SayCommand
def motd(index, title, site, show=True):
name = 'info'
subkeys = {'title': title, 'type': '2', 'msg': site}
VGUIMenu(name, subkeys=subkeys, show=show).send(index)
@SayCommand('!google')
def _rules_say_command(command, index, team):
motd(index, 'rules', 'http://www.google.com')
@SayCommand('!facebook')
def _rules_say_command(command, index, team):
motd(index, 'rules', 'http://www.facebook.com')
This is how I used it a while back
- Painkiller
- Senior Member
- Posts: 751
- Joined: Sun Mar 01, 2015 8:09 am
- Location: Germany
- Contact:
Re: [HL2:DM] Webshortcut
Thanks i will test when i come home from work.
- Painkiller
- Senior Member
- Posts: 751
- Joined: Sun Mar 01, 2015 8:09 am
- Location: Germany
- Contact:
Re: [HL2:DM] Webshortcut
La Muerte wrote:Syntax: Select all
from messages import VGUIMenu
from commands.say import SayCommand
def motd(index, title, site, show=True):
name = 'info'
subkeys = {'title': title, 'type': '2', 'msg': site}
VGUIMenu(name, subkeys=subkeys, show=show).send(index)
@SayCommand('!google')
def _rules_say_command(command, index, team):
motd(index, 'rules', 'http://www.google.com')
@SayCommand('!facebook')
def _rules_say_command(command, index, team):
motd(index, 'rules', 'http://www.facebook.com')
This is how I used it a while back
Works good Thank You La Muerte
Who is online
Users browsing this forum: No registered users and 92 guests