ShowBans
*Under Development
A quicker way to ban that:
Write Status in console, Find the player in the list, Copy/Paste the Steam ID, press the Windows botton, open the browser, go on Sourcebans bookmark click on the bans list and search the Steam ID and then ban.
Commands:
Quote:
sm_showbans <player> Opens a Sourcebans page in the MOTD that list all the bans for a selected player
sm_ban2 <player> Opens a custom Sourcebans page to ban the selected player
|
Cvars:
Quote:
showbans_host The URL to your SourceBans
|
Dependencies:
[ANY] Hidden MOTD URL opener
TODO:
- Add support for multiple servers for the sm_ban2 command
Install the Sourcebans custom page used by sm_ban2:
Copy/Paste the page pages/page.ban2.php from the ZIP in your Sourceban web folder.
And add the following code in includes/page-builder.php, in the switch statement:
PHP Code:
case "ban2":
RewritePageTitle("Ban2");
$page = TEMPLATES_PATH . "/page.ban2.php";
break;
The code should look like this:
PHP Code:
$_GET['p'] = isset($_GET['p']) ? $_GET['p'] : 'default';
$_GET['p'] = trim($_GET['p']);
switch ($_GET['p'])
{
case "ban2":
RewritePageTitle("Ban2");
$page = TEMPLATES_PATH . "/page.ban2.php";
break;