Raised This Month: $ Target: $400
 0% 

get_players


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-18-2022 , 01:24   Re: get_players
Reply With Quote #6

Based on one of the threads that I found, the strings you use are "TERRORIST" or "CT". I don't normally play Counter-Strike but I believe that the values returned from get_user_team() are either 1 or 2 for the aforementioned team names, respectively.

However, if it's specifically for Counter-Strike, you should probably use cs_get_user_team() and then you can use the CsTeams enum value to check with. It would end up like this:

Code:
cs_get_user_team(id) == CS_TEAM_T ? "CT" : "TERRORIST"
As I said before, this would just replace the "Team" variable in get_players().
__________________
fysiks is offline
 



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 15:40.


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