Raised This Month: $59 Target: $400
 14% 

Solved IsClientOnCoach?? How i can check player on Coach??


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dr.Mohammad
Senior Member
Join Date: Jan 2016
Location: CSGO Servers
Old 04-11-2019 , 12:25   IsClientOnCoach?? How i can check player on Coach??
Reply With Quote #1

hi guys!!
how i can check player on coach??
PHP Code:
stock bool IsClientOnCoach(int client)
{
// What should I do?


Last edited by Dr.Mohammad; 04-14-2019 at 10:25.
Dr.Mohammad is offline
cristian20042
AlliedModders Donor
Join Date: Jun 2016
Location: Romania
Old 04-11-2019 , 12:42   Re: IsClientOnCoach?? How i can check player on Coach??
Reply With Quote #2

Could you explain further, please?
__________________
Steam - https://steamcommunity.com/id/sniperheroofficialu/
Discord - SniperHero#8545
cristian20042 is offline
404UNF
( ͡ ͜ʖ ͡)
Join Date: Dec 2011
Location: 🍁
Old 04-11-2019 , 15:06   Re: IsClientOnCoach?? How i can check player on Coach??
Reply With Quote #3

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...
__________________
Plugin Developer for cTF2w & Creators.TF


Last edited by 404UNF; 04-11-2019 at 15:11.
404UNF is offline
Dr.Mohammad
Senior Member
Join Date: Jan 2016
Location: CSGO Servers
Old 04-11-2019 , 16: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
cristian20042
AlliedModders Donor
Join Date: Jun 2016
Location: Romania
Old 04-11-2019 , 17:13   Re: IsClientOnCoach?? How i can check player on Coach??
Reply With Quote #5

That should work for CS:GO as well. Try it and tell us if it works.
__________________
Steam - https://steamcommunity.com/id/sniperheroofficialu/
Discord - SniperHero#8545
cristian20042 is offline
404UNF
( ͡ ͜ʖ ͡)
Join Date: Dec 2011
Location: 🍁
Old 04-11-2019 , 19:53   Re: IsClientOnCoach?? How i can check player on Coach??
Reply With Quote #6

Quote:
Originally Posted by cristian20042 View Post
That should work for CS:GO as well. Try it and tell us if it works.
Oh, it's the same eh? Good to know
__________________
Plugin Developer for cTF2w & Creators.TF

404UNF is offline
SHUFEN.jp
Senior Member
Join Date: Jun 2014
Location: Japan, Tokyo
Old 04-11-2019 , 23:46   Re: IsClientOnCoach?? How i can check player on Coach??
Reply With Quote #7

What meaning "coach" in CS:GO?
How different as m_iTeam?
__________________
SHUFEN.jp is offline
Send a message via Skype™ to SHUFEN.jp
Dr.Mohammad
Senior Member
Join Date: Jan 2016
Location: CSGO Servers
Old 04-14-2019 , 10:24   Re: IsClientOnCoach?? How i can check player on Coach??
Reply With Quote #8

solved:
PHP Code:
stock int GetCoachTeam(int client) {
    return 
GetEntProp(clientProp_Send"m_iCoachingTeam");

thank you guys
Dr.Mohammad is offline
Reply


Thread Tools
Display Modes

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 11:36.


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