Raised This Month: $ Target: $400
 0% 

[CS:GO] Detecting Coaches


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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 05:01.


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