AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [CS:GO] Detecting Coaches (https://forums.alliedmods.net/showthread.php?t=277398)

Disowned 01-08-2016 11:34

[CS:GO] Detecting Coaches
 
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++;



Franc1sco 01-08-2016 14:19

Re: [CS:GO] Detecting Coaches
 
Mmmm sorry for my ignorance but I did not know that this existed in CS:GO :shock::shock:

Can you explain more about this?

Mitchell 01-09-2016 00:16

Re: [CS:GO] Detecting Coaches
 
Quote:

Originally Posted by Franc1sco (Post 2381297)
Mmmm sorry for my ignorance but I did not know that this existed in CS:GO :shock::shock:

Can you explain more about this?

Basically spectators that can only see one team (mp_forcecam 1) or whatever. Reserved for professional team coaches.


All times are GMT -4. The time now is 18:36.

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