|
Post by The Realist on Jul 13, 2014 6:34:33 GMT -6
I've coded a custom set of commands that will open a pre-set webpage in a Steam overlay that contains either a message warning to stop switching teams or to join a team. The command is under Notices > njoin / Notices > nswitch under the ULX Admin Panel. Or if you prefer the chat command line: !njoin [part of players name] [anything you want] ... e.g. "!njoin realist join a team" will parse as "You ran notice join a team on The Realist" !nswitch [part of players name] [anything you want] ... e.g. "!nswitch realist stop switching teams" will parse as "You ran notice stop switching teams on The Realist" The code to do so is as follows, and should be put in an addon containing the filepath lua/ulx/modules/sh/commandname.lua github.com/therealist/ULXURLNoticeNow at some point in the future, I may rewrite this to allow any text to be written in the dialog box in ULX Admin Panel and have it show up on the opened Webpage, but that requires PHP parsing and a good bit of coding. That'll be for another day
|
|