Raised This Month: $49 Target: $400

Solved [L4D2] Hide HUD

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Senior Member
Join Date: Apr 2016
Old 07-19-2018 , 15:52   Re: [L4D2] Hide HUD
Reply With Quote #10

Originally Posted by LenHard View Post
PHP Code:
#include <sourcemod>

#pragma semicolon 1
#pragma newdecls required

#define HIDEFLAG 64

public void OnClientPutInServer(int client)
    if (!
IsFakeClient(client)) CreateTimer(0.7Timer_HudGetClientUserId(client), TIMER_REPEAT);    

Action Timer_Hud(Handle hTimerany iUser)
int client GetClientOfUserId(iUser);

    if (
client <= MaxClients && IsClientInGame(client))
        if (
GetClientMenu(client) != MenuSource_None)
SetEntProp(clientProp_Send"m_iHideHUD"GetEntProp(clientProp_Send"m_iHideHUD") & ~HIDEFLAG); 
    else return 

That's because you killed the timer by returning Plugin_Stop after you checked if the client is viewing a menu. Try this (untested)
can u create plugins with cl_glow_blur_scale 0 ? I can not change client command to other people
Please help me if u can
hoanganh81097 is offline

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 18:44.

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