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

[CSGO] Working with spectators?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KillMan
Member
Join Date: Aug 2017
Location: Belarus
Old 05-05-2018 , 09:26   [CSGO] Working with spectators?
Reply With Quote #1

Is there any way to hide a player for the Observers? Tried to change a "ObserverTarget". It's possible to spectate using a space btn flood. Hope i can remove a players (only one team) for the spectators. I saw that once.
KillMan is offline
pride95
Senior Member
Join Date: Aug 2015
Old 05-05-2018 , 13:26   Re: [CSGO] Working with spectators?
Reply With Quote #2

PHP Code:
m_hObserverTarget 
use a timer and try to send another target if observertarget == x?
pride95 is offline
KillMan
Member
Join Date: Aug 2017
Location: Belarus
Old 05-06-2018 , 08:19   Re: [CSGO] Working with spectators?
Reply With Quote #3

Quote:
Originally Posted by pride95 View Post
PHP Code:
m_hObserverTarget 
use a timer and try to send another target if observertarget == x?
As i said:
Quote:
Originally Posted by KillMan View Post
Tried to change a "ObserverTarget". It's possible to spectate using a space btn flood.
And another problem: you can fly around and found a player.

Last edited by KillMan; 05-06-2018 at 08:20.
KillMan is offline
Dr!fter
The Salt Boss
Join Date: Mar 2007
Old 05-06-2018 , 08:39   Re: [CSGO] Working with spectators?
Reply With Quote #4

Look at

https://forums.alliedmods.net/showthread.php?p=1685318

you can force the camera and in the hook check if its a valid client
Dr!fter is offline
KillMan
Member
Join Date: Aug 2017
Location: Belarus
Old 05-06-2018 , 09:38   Re: [CSGO] Working with spectators?
Reply With Quote #5

Quote:
Originally Posted by Dr!fter View Post
Look at

https://forums.alliedmods.net/showthread.php?p=1685318

you can force the camera and in the hook check if its a valid client
Already did it. Written by myself from tutorials, cuz i dont understand how to use DHooks. It works now, but i need to remove players for the Spectators. But i have another requestion: disable spectator-xray. I dont why, but this is working as default... For all players.
KillMan is offline
Papero
Veteran Member
Join Date: Aug 2016
Location: Italy
Old 05-07-2018 , 17:05   Re: [CSGO] Working with spectators?
Reply With Quote #6

Quote:
Originally Posted by KillMan View Post
Already did it. Written by myself from tutorials, cuz i dont understand how to use DHooks. It works now, but i need to remove players for the Spectators. But i have another requestion: disable spectator-xray. I dont why, but this is working as default... For all players.
Try to set the cvar sv_competitive_official_5v5 to 0
__________________
My Plugins
SPCode


Steam: hexer504
Telegram: Hexah
Discord: Hexah#6903

If you like my work you can donate here!

Last edited by Papero; 05-07-2018 at 17:05.
Papero is offline
KillMan
Member
Join Date: Aug 2017
Location: Belarus
Old 05-08-2018 , 06:54   Re: [CSGO] Working with spectators?
Reply With Quote #7

Quote:
Originally Posted by Papero View Post
Try to set the cvar sv_competitive_official_5v5 to 0
Thanks, but this is my default CVar. mp_teammates_are_enemies doing the same. Just red glow effect.
KillMan 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 08:34.


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