Raised This Month: $64 Target: $400
 16% 

[CS:GO] Hide specific players


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
norxtem
New Member
Join Date: Nov 2018
Old 11-08-2018 , 15:56   [CS:GO] Hide specific players
Reply With Quote #1

Hi!
Is it possible to create a server plugin that allows to hide specific users for each player on a server?
For example, you'd like to see only your friend on a bhop server and hide other people. The other people in the same time can turn on / off your visibility.

Last edited by norxtem; 11-08-2018 at 15:58.
norxtem is offline
HvG Community
AlliedModders Donor
Join Date: Sep 2012
Old 11-09-2018 , 17:18   Re: [CS:GO] Hide specific players
Reply With Quote #2

Yes it is possible.
HvG Community is offline
norxtem
New Member
Join Date: Nov 2018
Old 11-10-2018 , 12:52   Re: [CS:GO] Hide specific players
Reply With Quote #3

Quote:
Originally Posted by HvG Community View Post
Yes it is possible.
Thanks, can you answer another question too: is it possible to create a plugin that shows only your kills and deaths in the kill feed and hides info about other k/d?
norxtem is offline
HvG Community
AlliedModders Donor
Join Date: Sep 2012
Old 11-10-2018 , 13:38   Re: [CS:GO] Hide specific players
Reply With Quote #4

Edit: Never mind, I have misunderstood what you were asking. Changing kill feed in top right from showing is possible.

I thought you wanted to make scoreboard different for each person.

Last edited by HvG Community; 11-11-2018 at 13:14.
HvG Community is offline
Maxximou5
AlliedModders Donor
Join Date: Feb 2013
Old 11-10-2018 , 20:01   Re: [CS:GO] Hide specific players
Reply With Quote #5

Quote:
Originally Posted by norxtem View Post
Thanks, can you answer another question too: is it possible to create a plugin that shows only your kills and deaths in the kill feed and hides info about other k/d?
Quote:
Originally Posted by HvG Community View Post
No it is not possible from my knowledge.
You can make the score always show at 0 but I don't know how to remove it from the scoreboard.
Very much so possible. So possible in fact that it's already been made.
https://forums.alliedmods.net/showthread.php?p=2490758
__________________
Maxximou5 is offline
HvG Community
AlliedModders Donor
Join Date: Sep 2012
Old 11-10-2018 , 20:48   Re: [CS:GO] Hide specific players
Reply With Quote #6

I misunderstood request. I thought he wants to remove scoreboard kills/deaths of other people. But kill feed is the stuff in top right corner.
HvG Community is offline
ThatOneGuy
Veteran Member
Join Date: Jul 2012
Location: Oregon, USA
Old 11-11-2018 , 13:18   Re: [CS:GO] Hide specific players
Reply With Quote #7

You can also hide player visibility, chat, and remove them from the scoreboard to add to that.

Chat - Chat is removed via removing clients from the recipient clients array in a SayText2 hook. You could also recreate the SayText2 usermessage, but if you are only removing clients, no need. Just push valid clients to a temp array, then add back to the original array the clients you want in the order you want, leaving out those you dont want. Edit the numclients variable that is passed to the function. Fin.

Score board - Score board is removed by manipulating cs_player_manager via SDKHook_ThinkPost and OnGameFrame.

Visibility - Visibility is adjusted using SetEntityRenderMode to RENDER_GLOW, then adjust RGBA using SetEntityRenderColor. Alternately, you can use SDKHook_SetTransmit (dont forget to unhook it).
__________________
ThatOneGuy 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 21:28.


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