AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2/(Any?)] Customizable Server Information Panel (1.2) [2020/Apr/7th] (https://forums.alliedmods.net/showthread.php?t=321134)

spike1234 01-26-2020 13:34

[L4D2/(Any?)] Customizable Server Information Panel (1.2) [2020/Apr/7th]
 
3 Attachment(s)

I tested this on only L4D2. But may it works on other games.

Info:
This plugin provides a menu panel for display server information to players.
It may useful for custom servers with lots of modifications.

When joined to custom server, it seems that there are some people get confuse for lots of changes.
Then sadly, a few people leave the game because of that.
And also I'm one of them.
On part of servers, they wrote what they customized,
but even I felt hassle to read them all.
Then I thought that it's okay if information are easy to read and
players could get information they wanted.
So I made this to solve these problems.
Features:
A menu that able to customize, translate, and categorize information to 7.
Text color supported.
Helps players understand changes smoothly.

Usage:
All examples and tutorials are written on menu.
Install the plugin, start game, and try say "!helpmenu" in chat.

If you want to reload translation file quickly, use "sm_reload_translations"
Commands:
PHP Code:

//Show sip help menu.
sm_helpmenu

//Reset note count for all players.
//Require "c" or higher flag.
sm_sip_note_resetCount 

Cvars:
PHP Code:

// [1:Enable], [0:Disable]
// Default: "1"
sm_sip_enable "1"

// Whether to force player to open menu when player joined. [0:Don't Open] [1:Open]
// Default: "1"
sm_sip_forceOpen "1"

// How many times show note message.
// Default: "3"
sm_sip_noteMax "3"

// When show note message to player.
//[(Empty):Disable], [1:on joined], [2:on opened menu], [3:on closed menu], [4:on map start]
// Default: "1234"
sm_sip_noteTiming "1234"

// Way of showing note message.Input numbers you want to use.
//[(Empty):Disable], [1:Chat], [2:Hint Message], [3:Instructer Hint]
// Default: "123"
sm_sip_noteType "123"

// Whether to reset note count on map chenged [0:Don't Reset] [1:Reset]
// Default: "1"
sm_sip_note_resetPerRound "1"

// Color of instructer hint that shown by note message.
//[R G B](0-255)
// Default: "255 255 0"
sm_sip_note_instructorColor "255 255 0"

// Whether to draw partition line of message. [(Empty:Disable)] [1:Draw Before] [2:Draw After]
// Default: "12"
sm_sip_partition "12"

// Whether to show top message(Tag + Item Name). [0:Disable] [1:Enable]
// Default: "1"
sm_sip_top "1" 

Changes:
Code:

1.0 (2020/Jan/27th)
- Initial release

1.1 (2020/Jan/28th)
- Editablize following features that forced by plugin.
・Whether to show tag + item name.
・Color of item name.
・Whether to show partition and where to use.

1.2 (2020/Apr/7th)
- Added Cvar to change color of instructor hint.
- Extended category to 7.
- Fixed a bug that shows note message even sm_sip_enable is 0.
- Fixed some errors.

Thanks:
  • Silvers - Referenced usage of env_instructer_hint.

Installation:
Put server_info_panel.smx to:
"addons/sourcemod/plugins"

Unzip translations and put it to:
"addons/sourcemod/translations"
For older version user:
I recommend to delete, regenerate config and check new translations file to apply update.

SkiPlix 01-27-2020 05:48

Re: [L4D2/(Any?)] Customizable Server Information Panel (1.0) [2020/Jan/27th]
 
I was gonna send you a message, to help you correct some words in your espertank plugin, but the page bugged out. :(

Also the web compiler can't compile your plugin, attach an smx file.

spike1234 01-27-2020 07:59

Re: [L4D2/(Any?)] Customizable Server Information Panel (1.0) [2020/Jan/27th]
 
Quote:

Originally Posted by SkiPlix (Post 2681790)
I was gonna send you a message, to help you correct some words in your espertank plugin, but the page bugged out. :(

Also the web compiler can't compile your plugin, attach an smx file.

re-uploaded. thank you for reporting.

SkiPlix 01-27-2020 08:24

Re: [L4D2/(Any?)] Customizable Server Information Panel (1.0) [2020/Jan/27th]
 
ThrowError("could not find file \"translations/ayuda_panel.phrases.txt\"");

That \ was intentional, or should it go in quotes?

I think it's supposed to go like this:

Quote:

ThrowError("could not find file translations/ayuda_panel.phrases.txt");

Marttt 01-27-2020 08:43

Re: [L4D2/(Any?)] Customizable Server Information Panel (1.0) [2020/Jan/27th]
 
the \ was intentional, is not wrong
the backslash is necessary when you want to use some "reserved" letters that have a different meaning
e.g. " means the start/end of a string, and not a quote by default.

You can get more info here, it's a common concept in programming.

spike1234 01-27-2020 08:52

Re: [L4D2/(Any?)] Customizable Server Information Panel (1.0) [2020/Jan/27th]
 
Quote:

Originally Posted by SkiPlix (Post 2681808)
ThrowError("could not find file \"translations/ayuda_panel.phrases.txt\"");

That \ was intentional, or should it go in quotes?

I think it's supposed to go like this:

Changed to following:
PHP Code:

ThrowError("could not find file: translations/server_info_panel.phrases.txt"); 


SkiPlix 01-27-2020 09:39

Re: [L4D2/(Any?)] Customizable Server Information Panel (1.0) [2020/Jan/27th]
 
Could you add a cvar for the time it takes for each message to be displayed?

spike1234 01-27-2020 10:11

Re: [L4D2/(Any?)] Customizable Server Information Panel (1.0) [2020/Jan/27th]
 
Quote:

Originally Posted by SkiPlix (Post 2681819)
Could you add a cvar for the time it takes for each message to be displayed?

I made this plugin to show information by player side inputting.
If you want to show some messages per any interval,
this one is better for you: Advertisements 2.0 :bee:

SkiPlix 01-27-2020 12:10

Re: [L4D2/(Any?)] Customizable Server Information Panel (1.0) [2020/Jan/27th]
 
Could you remove the Orange Color from the "NOTE" message?
As changing it in phrases with {colorhere} doesn't work.

spike1234 01-28-2020 09:57

Re: [L4D2/(Any?)] Customizable Server Information Panel (1.0) [2020/Jan/27th]
 
Quote:

Originally Posted by SkiPlix (Post 2681848)
Could you remove the Orange Color from the "NOTE" message?
As changing it in phrases with {colorhere} doesn't work.

Updated.


All times are GMT -4. The time now is 01:57.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.