Raised This Month: $ Target: $400
 0% 

Hide healthbar + armor?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ASKER_CZ
BANNED
Join Date: Nov 2016
Old 04-07-2018 , 13:06   Hide healthbar + armor?
Reply With Quote #1

Is there any way how to hide healthbar + armor ? I would like to disable it so no one can see it. And if is it possible - Can someone please make such plugin? thank you
ASKER_CZ is offline
FeelsGoodMan
Member
Join Date: Jul 2015
Old 04-07-2018 , 16:36   Re: Hide healthbar + armor?
Reply With Quote #2

GUI is client sided. You can force clients to have certain client sided values like cl_drawhud set to 0.

Doing this to cl_drawhud however will make clients leave your server instantly. At least i would never play there.

Anyhow, here is a plug-in that kicks clients unless cl_drawhud is set to 0 (requires sv_cheats 1):
Attached Files
File Type: sp Get Plugin or Get Source (ForceDrawHud0.sp - 232 views - 828 Bytes)
__________________
Server and web developer in -=Hell on Earth=- multi gaming community.

PM me or add me on STEAM for assistance with web development (MyBB, wordpress, PhPBB etc.)

Last edited by FeelsGoodMan; 04-07-2018 at 16:41.
FeelsGoodMan is offline
Indarello
Senior Member
Join Date: Nov 2015
Location: Russia
Old 04-07-2018 , 16:48   Re: Hide healthbar + armor?
Reply With Quote #3

https://forums.alliedmods.net/showthread.php?t=84071
Try different values
Could dont work for dead players

Last edited by Indarello; 04-07-2018 at 16:49.
Indarello is offline
ASKER_CZ
BANNED
Join Date: Nov 2016
Old 04-07-2018 , 17:03   Re: Hide healthbar + armor?
Reply With Quote #4

If is it client sided then how is it possible to disable money hud? or countdown hud? Arent these client sided as well? :/
ASKER_CZ is offline
Indarello
Senior Member
Join Date: Nov 2015
Location: Russia
Old 04-08-2018 , 00:43   Re: Hide healthbar + armor?
Reply With Quote #5

In this plugin it show money on scoreboad press
But you can also change it to hudtext
Attached Files
File Type: sp Get Plugin or Get Source (disable_hud_money.sp - 242 views - 866 Bytes)
Indarello is offline
Markiez
Junior Member
Join Date: Mar 2018
Location: somewhere over the rainb
Old 05-06-2018 , 14:43   Re: Hide healthbar + armor?
Reply With Quote #6

You can also create a loop like this:
Code:
#include <sourcemod>

#pragma semicolon 1

bool Something;

public void OnPluginStart()
{
	HookEvent("player_team", EventSomethingxD);
}

public OnMapStart()
{
	Something = true;
}

public Action EventSomethingxD(Event event, const char[] name, bool dbc)
{
	new client = GetClientOfUserId(GetEventInt(event, "userid"));
	
	if (Something)
	{
		Something = false;
		return;
	}
	
	FakeClientCommand(client, "cl_drawhud 0");
}
__________________
bool am_I_retarded = true;
Markiez is offline
ThatKidWhoGames
Veteran Member
Join Date: Jun 2013
Location: IsValidClient()
Old 05-07-2018 , 12:50   Re: Hide healthbar + armor?
Reply With Quote #7

Quote:
Originally Posted by Markiez View Post
You can also create a loop like this:
Code:
#include <sourcemod>

#pragma semicolon 1

bool Something;

public void OnPluginStart()
{
	HookEvent("player_team", EventSomethingxD);
}

public OnMapStart()
{
	Something = true;
}

public Action EventSomethingxD(Event event, const char[] name, bool dbc)
{
	new client = GetClientOfUserId(GetEventInt(event, "userid"));
	
	if (Something)
	{
		Something = false;
		return;
	}
	
	FakeClientCommand(client, "cl_drawhud 0");
}
Why are you combining the old/new syntax? Also, you can set the event's callback to void instead of Action if not returning a value such as Plugin_Handled;.
ThatKidWhoGames 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 20:57.


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