Raised This Month: $51 Target: $400
 12% 

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 , 11: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 09:25.
Dr.Mohammad is offline
cristian20042
AlliedModders Donor
Join Date: Jun 2016
Location: Romania
Old 04-11-2019 , 11: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
404UserNotFound
BANNED
Join Date: Dec 2011
Old 04-11-2019 , 14: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...

Last edited by 404UserNotFound; 04-11-2019 at 14:11.
404UserNotFound is offline
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
cristian20042
AlliedModders Donor
Join Date: Jun 2016
Location: Romania
Old 04-11-2019 , 16: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
404UserNotFound
BANNED
Join Date: Dec 2011
Old 04-11-2019 , 18: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
404UserNotFound is offline
SHUFEN
Senior Member
Join Date: Jun 2014
Location: Japan, Tokyo
Old 04-11-2019 , 22: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 is offline
Send a message via Skype™ to SHUFEN
Dr.Mohammad
Senior Member
Join Date: Jan 2016
Location: CSGO Servers
Old 04-14-2019 , 09: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



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 14:24.


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