Raised This Month: $90 Target: $400
 22% 

Solved [CS:GO] Get Team Name


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
manicogmaing
Member
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 manicogmaing; 03-19-2019 at 07:34.
manicogmaing 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
manicogmaing
Member
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.
manicogmaing 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:40.


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