View Single Post
Dr.Mohammad
Senior Member
Join Date: Jan 2016
Location: CSGO Servers
Old 04-11-2019 , 15:10   Re: IsClientOnCoach?? How i can check player on Coach??
Reply With Quote #4

Quote:
Originally Posted by cristian20042 View Post
Could you explain further, please?
i need to check player ,when he is on the coach t's or ct's!!

Quote:
Originally Posted by 404UNF View Post
I assume he means how to check if a player is currently "Coaching" someone in TF2. There's an entprop for that;
PHP Code:
stock bool IsClientOnCoach(int client)
{
    return 
GetEntProp(clientProp_Send"m_bIsCoaching");

It's as simple as that. It'll return true/false based on if that player is coaching someone.

Although I do see he has CSGO named in his profile Location but I'm unaware of whether or not CSGO has coaching, soooo...
yeah, i need for csgo server.
Dr.Mohammad is offline