AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting (https://forums.alliedmods.net/forumdisplay.php?f=107)
-   -   CSS HUD Statusbar (https://forums.alliedmods.net/showthread.php?t=93721)

Timiditas 06-01-2009 11:11

CSS HUD Statusbar
 
Need to add a statusbar for an added player property (think of it as a health bar) that only needs to be shown when the value drops below the maximum value. Is there any way to do this without client commands?
Or would it be possible to "misuse" the statusbar that is shown when someone defuses a bomb, place it top right and make it smaller?

SAMURAI16 06-01-2009 11:31

Re: CSS HUD Statusbar
 
that how to create a statusbar . 10 means duration in seconds
Code:
SetEntPropFloat(client, Prop_Send, "m_flProgressBarStartTime", GetGameTime()); SetEntProp(client, Prop_Send, "m_iProgressBarDuration", 10);


All times are GMT -4. The time now is 21:47.

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