Author:
OtterNas3
Description:
This Plugin show a Panel with all connected Players.
Very useful if you Host a server with more then 8 Players, because you can see max 9 players in Hud!
It gets Survivor/Infected teams max (D/F) from corresponding cvars survivor_limit/z_max_player_zombies
The Value for Max slots on Server (G) is set automatically.
If you have Downtown or L4DToolz installed for patch max slots, it will get the MaxClients from them.
Because if you installed one of them and take MaxClients the max slots will most shown as 32, dont like'd that...
To explain what the numbers mean (self explaining but...)
[L4D/L4D2] Playerlist Panel
Spectators (
A of
B)
nameslist
Survivors (
C of
D)
nameslist
Infected (
E of
F)
nameslist
Total connected
B of
G
A = Players in Spectator Team
B = Total connected Players
C = Players in Survivor Team
D = Max Slots Survivor (reads survivor_limit cvar)
E = Players in Infected Team
F = Max Slots Infected (reads z_max_player_zombies cvar)
G = Max Slots on Server
Commands:
!teams - Display the Panel
Cvars:
l4d_plp_onconnect - Show Playerlist Panel on Connect? (Default: 1)
l4d_plp_timer - How long, in seconds, the Playerlist Panel stay before it close automatic (Default: 20)
l4d_plp_autorefreshpanel - Should the Panel be static & refresh itself every second? (Default: 1)
l4d_plp_pashowscores - Show Playerlist Panel after Showscores? (Default: 0)
l4d_plp_pastimer - How long, in seconds, the Playerlist Panel stay after Showscores - If l4d_plp_pashowscores is = 1 (Default: 5)
l4d_plp_announce - Show Hint-Message about the command to players on Spectator? (Default: 1)
l4d_plp_hint_static - Should the Hint for closing Playerlist Panel, be static? (Default: 1)
l4d_plp_select_team - Should the user be able to select a team on Playerlist Panel? (Default: 1)
l4d_plp_select_team_spectator - If l4d_plp_select_team = 1 - Should the Spectator selection be functional? (Default: 1)
l4d_plp_select_team_survivor - If l4d_plp_select_team = 1 - Should the Survivor selection be functional? (Default: 1)
l4d_plp_select_team_infected - If l4d_plp_select_team = 1 - Should the Infected selection be functional? (Default: 1)
l4d_plp_show_bots - Should bots be listed in Panel? (Default: 1)
Setup (SourceMod):
Install:
Download the smx file to addons\sourcemod\plugins\
Download translation file "
l4d_teamspanel.phrases.txt" to addons\sourcemod\translations\
Download gamedata file "
l4dteamspanel.txt" to addons\sourcemod\gamedata\
(Re)Load Plugin or change Map.
Edit
cfg\sourcemod\l4d_teamspanel.cfg to fit your needs
Update:
Download the smx file to addons\sourcemod\plugins\
Download translation file "
l4d_teamspanel.phrases.txt" to addons\sourcemod\translations\
Delete config file cfg\sourcemod\l4d_teamspanel.cfg
Reload Plugin or change Map
Edit
cfg\sourcemod\l4d_teamspanel.cfg to fit your needs
Changelog
v 1.0 (2010.03.25)
First release
v1.1 (2010.03.25 6:53pm GMT+1)
BUGFIX - Check for l4dtoolz and/or l4downtown
BUGFIX - Coop display not working at all
v1.2 (2010.03.25 7:49pm GMT+1) Downloads smx:~20 sp:~80
BUGFIX - Found a typo, for command, sorry :/
v1.3 (2010.03.26 85 GMT+1) Downloads smx:27 sp:112
BUGFIX - Made version compatibility for Versus & Coop
v1.4 (2010.04.01 85am GMT+1) Downloads smx:22 sp:92
BUGFIX - Array index out of Bounds !!$$"%.... very annoying ^^
FEATURE - Show Playerlist Panel on Connect
FEATURE - Playerlist Panel can be static and self refreshing
CVAR - l4d_plp_autorefresh
CVAR - l4d_plp_onconnect
CVAR - l4d_plp_timer
EASE - Plugin write/read config file cfg/sourcemod/l4d_teamspanel.cfg now
EASE - Code cleanup (at least i think it is clean now ^^)
AND NO! THIS IS NOT A APRIL JOKE ^^
v1.5 (2010.04.06 1:15am GMT+1) Downloads smx:12 sp:65
FEATURE - Playerlist Panel after Showscores
FEATURE - Playerlist Panel Announce Command
FEATURE - Playerlist Panel translation file
CVAR - l4d_plp_pashowscores
CVAR - l4d_plp_pastimer
CVAR - l4d_plp_announce
CVAR - l4d_plp_hintstatic
v1.5.1 (2010.04.09 45pm GMT+1) Downloads smx: 353 sp:1074
BUGFIX - Plugin Handle Memory Leak
BUGFIX - Plugin cvars resetted to defaults after each plugin load!
v1.6 (2011.01.09 12:15pm GMT+1)
BUGFIX - PrintHintText - Check for Valid Player
BUGFIX - Cut off names sometimes if text reaches more then 1024 chars - max chars 2048 now
FEATURE - Teamselection trough Panel - Can be switched on/off for each Team
FEATURE - Show Bots in Playerlist Panel on/off
CVAR l4d_plp_select_team
CVAR l4d_plp_select_team_spectator
CVAR l4d_plp_select_team_survivor
CVAR l4d_plp_select_team_infected
CVAR l4d_plp_show_bots
EASE - Code cleanup
EASE - Announce of command changed to Spectators only
v1.6.1 (2011.01.13 5:25pm GMT+1)
BUGFIX - Redone counting and BuildPanel
Bugs:
None seen yet, tell me
ToDo:
Tell me what you want and i will see if i can do it ^^ (SourcePawn is gettin more interesting...)
Screenshot:
See attached file
This is my first plugin so:
If i forgot to give credits to someones code
If i wrote it not clean enough
If i did spelling of something not correct
If i missed something for approval
If my English is badass
SORRY!
Moo,
OtterNas3