View Single Post
Author Message
Minfas
Member
Join Date: Dec 2017
Old 06-17-2020 , 11:50   [CSGO/ANY?] Talk Time
Reply With Quote #1

What it does?

When player is speaking to voice chat, plugin will save the time how long he spoke. Players can use command to view their stats.



Times are stored in seconds into database.
Plugin is tested only in CS:GO, it will maybe work in CSS and other games.

Commands
  • sm_talktime [target] - Shows player's stats (if no target specified, sender's menu is displayed)
  • sm_toptalkers - List of players that have spoken the most

ConVars
  • sm_talktime_onlyadmins (def.0) 1 = Non-admins see only their stats / 0 = Anyone can view anyone's stats
  • sm_talktime_warmup (def.1) Save times during warmup?
  • sm_talktime_toplistsize (def.30) How many players should be in sm_toptalkers menu?
  • sm_talktime_database (def."talktime") Which database (from databases.cfg) to connect to
  • sm_talktime_debug (def.0) 1 = Enable debug messages in client's console

How to install?

This plugin requires VoiceannounceEX.
  • Drag sm_talktime.smx to your plugins folder
  • Drag talktime.phrases.txt to your translations folder.
  • Open databases.cfg from configs folder and create connection named "talktime". Or you can change convar sm_talktime_database to something else.
When updating - maybe don't forget localization (talktime.phrases.txt)

Changes
Spoiler


TODO (Yes, I am lazy)
Spoiler


GitHub Repository
___________________
Attached Files
File Type: sp Get Plugin or Get Source (sm_talktime.sp - 127 views - 13.4 KB)
File Type: smx sm_talktime.smx (10.6 KB, 126 views)
File Type: txt talktime.phrases.txt (724 Bytes, 134 views)

Last edited by Minfas; 06-17-2020 at 19:02. Reason: Update
Minfas is offline