Raised This Month: $64 Target: $400
 16% 

Solved [REQ] View Scoreboard in Server Console


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
PC Gamer
Senior Member
Join Date: Mar 2014
Old 11-05-2018 , 20:31   [REQ] View Scoreboard in Server Console
Reply With Quote #1

Looking for a method of viewing player scores from the Dedicated Server console. Game is TF2.

I like the layout presented by the ConsoleStatus plugin (https://forums.alliedmods.net/showthread.php?p=1597868 ) but that plugin doesn't show the score.

Something like this would be great...

Code:
sm_score @humans

Userid	Name		AdminType 	Team	Class	Score
308	Gomer		none		RED	Soldier	23
312	The General	res		BLU	Pyro	16
349	PC Gamer	Root		Spec	
337	Blutarch	none		RED	Heavy	11
341	Wanderer	res, Admin	BLU	Scout	10

Last edited by PC Gamer; 11-10-2018 at 01:18. Reason: Solved
PC Gamer is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 11-08-2018 , 15:13   Re: [REQ] View Scoreboard in Server Console
Reply With Quote #2

I could try if no one else will
Bacardi is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 11-09-2018 , 10:04   Re: [REQ] View Scoreboard in Server Console
Reply With Quote #3

Code:
status
hostname: Team Fortress
version : 4783668/24 4783668 secure
udp/ip  : 192.168.1.3:27015  (public ip: )
steamid : [A:1:2289751049:11366] (90120811435447305)
account : not logged in  (No account specified)
map     : cp_dustbowl at: 0 x, 0 y, 0 z
tags    : bots,cp
players : 1 humans, 22 bots (24 max)
edicts  : 1271 used of 2048 max
# userid name                uniqueid            connected ping loss state  adr
#      2 "HI THERE"          BOT                                     active
#      3 "GLaDOS"            BOT                                     active
#      4 "Headful of Eyeballs" BOT                                   active
#     13 "One-Man Cheeseburger Apocalypse" BOT                       active
#      6 "AimBot"            BOT                                     active
#      7 "GutsAndGlory!"     BOT                                     active
#      9 "Screamin' Eagles"  BOT                                     active
#     10 "Maggot"            BOT                                     active
#     11 "Herr Doktor"       BOT                                     active
#     12 "Companion Cube"    BOT                                     active
#     14 "Delicious Cake"    BOT                                     active
#     15 "I LIVE!"           BOT                                     active
#     16 "trigger_hurt"      BOT                                     active
#     17 "Divide by Zero"    BOT                                     active
#     18 "MoreGun"           BOT                                     active
#     19 "Big Mean Muther Hubbard" BOT                               active
#     20 "Crazed Gunman"     BOT                                     active
#     21 "Poopy Joe"         BOT                                     active
#     22 "Freakin' Unbelievable" BOT                                 active
#     23 "The Administrator" BOT                                     active
#     24 "Archimedes!"       BOT                                     active
#     25 "It's Filthy in There!" BOT                                 active
#     26 "Bacardi"           [U:1:28327177]      01:35       18    0 active 192.168.1.3:27006
sm_who
    Name                     Username           Admin access
 1. HI THERE                                    none
 2. GLaDOS                                      none
 3. Headful of Eyeballs                         none
 4. One-Man Cheeseburger Ap                     none
 5. AimBot                                      none
 6. GutsAndGlory!                               none
 8. Screamin' Eagles                            none
 9. Maggot                                      none
10. Herr Doktor                                 none
11. Companion Cube                              none
12. Delicious Cake                              none
13. I LIVE!                                     none
14. trigger_hurt                                none
15. Divide by Zero                              none
16. MoreGun                                     none
17. Big Mean Muther Hubbard                     none
18. Crazed Gunman                               none
19. Poopy Joe                                   none
20. Freakin' Unbelievable                       none
21. The Administrator                           none
22. Archimedes!                                 none
23. It's Filthy in There!                       none
24. Bacardi                  Baca               root
sm_score



# UserID Name                             Team       Class    Score
 # 2      HI THERE                         Blue       Medic    161
 # 3      GLaDOS                           Red        Medic    142
 # 4      Headful of Eyeballs              Red        Scout    109
 # 13     One-Man Cheeseburger Apocalypse  Blue       Engineer 131
 # 6      AimBot                           Red        Heavy    135
 # 7      GutsAndGlory!                    Red        Engineer 82
 # 9      Screamin' Eagles                 Blue       Heavy    163
 # 10     Maggot                           Red        Soldier  85
 # 11     Herr Doktor                      Red        Medic    118
 # 12     Companion Cube                   Blue       DemoMan  96
 # 14     Delicious Cake                   Blue       Scout    1
 # 15     I LIVE!                          Blue       Pyro     2
 # 16     trigger_hurt                     Red        Sniper   8
 # 17     Divide by Zero                   Blue       Soldier  3
 # 18     MoreGun                          Red        Engineer 8
 # 19     Big Mean Muther Hubbard          Blue       DemoMan  8
 # 20     Crazed Gunman                    Red        Soldier  0
 # 21     Poopy Joe                        Blue       Sniper   11
 # 22     Freakin' Unbelievable            Red        DemoMan  4
 # 23     The Administrator                Blue       Medic    3
 # 24     Archimedes!                      Red        Pyro     8
 # 25     It's Filthy in There!            Blue       Soldier  5
 # 26     Bacardi                          Spectator  Unknown  0

[SM] List of 'all players'
sm_score @humans


# UserID Name                             Team       Class    Score
 # 26     Bacardi                          Spectator  Unknown  0

[SM] List of 'all humans'
sm_score @red


# UserID Name                             Team       Class    Score
 # 3      GLaDOS                           Red        Medic    142
 # 4      Headful of Eyeballs              Red        Scout    109
 # 6      AimBot                           Red        Heavy    135
 # 7      GutsAndGlory!                    Red        Engineer 82
 # 10     Maggot                           Red        Soldier  86
 # 11     Herr Doktor                      Red        Medic    118
 # 16     trigger_hurt                     Red        Sniper   8
 # 18     MoreGun                          Red        Engineer 8
 # 20     Crazed Gunman                    Red        Soldier  0
 # 22     Freakin' Unbelievable            Red        DemoMan  4
 # 24     Archimedes!                      Red        Pyro     8

[SM] List of 'Red Team'
sm_score aimbot


# UserID Name                             Team       Class    Score
 # 6      AimBot                           Red        Heavy    135

[SM] List of 'AimBot'


I didn't add "AdminType", it will break output form.
And I think sm_who command would be better to use.

Server command is: sm_score
sm_score // list all players
sm_score @red // all red team
sm_score @dead // all dead
sm_score @humans // all human players

more https://wiki.alliedmods.net/Admin_Commands_(SourceMod)



Plugin code
__________________

Last edited by Bacardi; 11-09-2018 at 12:31. Reason: code updated, removing flag 'COMMAND_FILTER_CONNECTED'
Bacardi is offline
PC Gamer
Senior Member
Join Date: Mar 2014
Old 11-10-2018 , 01:18   Re: [REQ] View Scoreboard in Server Console
Reply With Quote #4

Bacardi... Tested your solution and it works great. Thanks!
PC Gamer is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:28.


Powered by vBulletin®
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Theme made by Freecode