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

[CS:GO] Detecting Coaches


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Disowned
Member
Join Date: Oct 2015
Old 01-08-2016 , 11:34   [CS:GO] Detecting Coaches
Reply With Quote #1

This will allow you to check if a player is on a coach team, and what coach team they're on.
PHP Code:
int coach_terrorist 0;
int coach_counterterror 0;

//m_iCoachingTeam
//return 0 if not on team
//return 2 for Terrorist team
//return 3 for Counter Terror team.

int coachteam GetEntProp(clientProp_Send"m_iCoachingTeam");
//Terrorist team
if(coachteam == CS_TEAM_T) {
    
coach_terrorist++;
//Counter-terror team
} else if (coachteam == CS_TEAM_CT) {
    
coach_counterterror++;

Disowned is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 01-08-2016 , 14:19   Re: [CS:GO] Detecting Coaches
Reply With Quote #2

Mmmm sorry for my ignorance but I did not know that this existed in CS:GO

Can you explain more about this?
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.


Last edited by Franc1sco; 01-08-2016 at 14:19.
Franc1sco is offline
Send a message via MSN to Franc1sco
Mitchell
~lick~
Join Date: Mar 2010
Old 01-09-2016 , 00:16   Re: [CS:GO] Detecting Coaches
Reply With Quote #3

Quote:
Originally Posted by Franc1sco View Post
Mmmm sorry for my ignorance but I did not know that this existed in CS:GO

Can you explain more about this?
Basically spectators that can only see one team (mp_forcecam 1) or whatever. Reserved for professional team coaches.
Mitchell is offline
Reply



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 00:19.


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