Raised This Month: $32 Target: $400
 8% 

Solved [CS:GO] Get Team Name


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
manicogaming
AlliedModders Donor
Join Date: Aug 2014
Old 03-13-2019 , 17:46   [CS:GO] Get Team Name
Reply With Quote #1

So I have a plugin that saves the scoreboard to a database but what it doesn't have is saving the team names, but I can't seem to figure out how to save the team names to the database.

I've tried:
Code:
GetTeamName(CS_TEAM_T, tname, sizeof(tname))
But that returns TERRORIST and not the name that is being set with mp_teamname.

I'm using this plugin that sets the team logos and names automatically.

Any ideas on how I can get the name from mp_teamname?

Last edited by manicogaming; 03-19-2019 at 07:34.
manicogaming is offline
8guawong
AlliedModders Donor
Join Date: Dec 2013
Location: BlackMarke7
Old 03-14-2019 , 03:47   Re: [CS:GO] Get Team Name
Reply With Quote #2

use GetConVarString on mp_teamname_1 and mp_teamname_2
__________________
8guawong is offline
manicogaming
AlliedModders Donor
Join Date: Aug 2014
Old 03-14-2019 , 09:25   Re: [CS:GO] Get Team Name
Reply With Quote #3

Quote:
Originally Posted by 8guawong View Post
use GetConVarString on mp_teamname_1 and mp_teamname_2
That worked, thanks.
manicogaming 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 20:00.


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