Raised This Month: $344 Target: $400
 86%   Almost there!

[CS:GO] CSGO_HUD (Server Hud - Shows count players, time left, custom messages, etc)


Post New Thread Reply   
 
Thread Tools Display Modes
j1gg
Senior Member
Join Date: Dec 2015
Old 04-01-2020 , 17:54   Re: [CS:GO] CSGO_HUD (Server Hud - Shows count players, time left, custom messages, e
Reply With Quote #31

Its possible to add to this for examle how many arenas you won? (splewis 1v1)
__________________
j1gg is offline
xSLOW
Senior Member
Join Date: Apr 2019
Location: Romania
Old 04-01-2020 , 18:35   Re: [CS:GO] CSGO_HUD (Server Hud - Shows count players, time left, custom messages, e
Reply With Quote #32

Quote:
Originally Posted by j1gg View Post
Its possible to add to this for examle how many arenas you won? (splewis 1v1)
does splewis 1v1 save anywhere how many arenas do you won?
do you have ideea if it is any function for this in plugin's INC file?
__________________
My community:
https://elitegamers.ro
https://www.gametracker.com/search/c...elitegamers.ro

Contact me, fastest way, through my discord server:
https://discord.gg/SBHzDGbbgG
xSLOW#0508
xSLOW is offline
XHUNTERX
Senior Member
Join Date: Aug 2019
Location: World
Old 04-01-2020 , 18:52   Re: [CS:GO] HUDv2 (Server Hud - Shows number of players, time left, custom messages,
Reply With Quote #33

Quote:
Originally Posted by xSLOW View Post
Code:
//SourceMod Batch Compiler
// by the SourceMod Dev Team


//// CSGO_HUD.sp
//
// E:\CLN57\SM COMPILE\sourcemod-1.10.0-git6456-windows\addons\sourcemod - v4\scripting\CSGO_HUD.sp(163) : error 017: undefined symbol "Shop_GetClientCredits"
// E:\CLN57\SM COMPILE\sourcemod-1.10.0-git6456-windows\addons\sourcemod - v4\scripting\CSGO_HUD.sp(169) : error 017: undefined symbol "Shop_GetClientCredits"
// E:\CLN57\SM COMPILE\sourcemod-1.10.0-git6456-windows\addons\sourcemod - v4\scripting\CSGO_HUD.sp(183) : error 017: undefined symbol "Shop_GetClientCredits"
// E:\CLN57\SM COMPILE\sourcemod-1.10.0-git6456-windows\addons\sourcemod - v4\scripting\CSGO_HUD.sp(189) : error 017: undefined symbol "Shop_GetClientCredits"
// E:\CLN57\SM COMPILE\sourcemod-1.10.0-git6456-windows\addons\sourcemod - v4\scripting\CSGO_HUD.sp(195) : warning 217: loose indentation
//
// 4 Errors.
XHUNTERX is offline
xSLOW
Senior Member
Join Date: Apr 2019
Location: Romania
Old 04-01-2020 , 19:33   Re: [CS:GO] HUDv2 (Server Hud - Shows number of players, time left, custom messages,
Reply With Quote #34

Quote:
Originally Posted by XHUNTERX View Post
Code:
//SourceMod Batch Compiler
// by the SourceMod Dev Team


//// CSGO_HUD.sp
//
// E:\CLN57\SM COMPILE\sourcemod-1.10.0-git6456-windows\addons\sourcemod - v4\scripting\CSGO_HUD.sp(163) : error 017: undefined symbol "Shop_GetClientCredits"
// E:\CLN57\SM COMPILE\sourcemod-1.10.0-git6456-windows\addons\sourcemod - v4\scripting\CSGO_HUD.sp(169) : error 017: undefined symbol "Shop_GetClientCredits"
// E:\CLN57\SM COMPILE\sourcemod-1.10.0-git6456-windows\addons\sourcemod - v4\scripting\CSGO_HUD.sp(183) : error 017: undefined symbol "Shop_GetClientCredits"
// E:\CLN57\SM COMPILE\sourcemod-1.10.0-git6456-windows\addons\sourcemod - v4\scripting\CSGO_HUD.sp(189) : error 017: undefined symbol "Shop_GetClientCredits"
// E:\CLN57\SM COMPILE\sourcemod-1.10.0-git6456-windows\addons\sourcemod - v4\scripting\CSGO_HUD.sp(195) : warning 217: loose indentation
//
// 4 Errors.
what Shop do you use?
__________________
My community:
https://elitegamers.ro
https://www.gametracker.com/search/c...elitegamers.ro

Contact me, fastest way, through my discord server:
https://discord.gg/SBHzDGbbgG
xSLOW#0508
xSLOW is offline
XHUNTERX
Senior Member
Join Date: Aug 2019
Location: World
Old 04-01-2020 , 22:44   Re: [CS:GO] HUDv2 (Server Hud - Shows number of players, time left, custom messages,
Reply With Quote #35

Quote:
Originally Posted by xSLOW View Post
what Shop do you use?
Zephyrus's Store
XHUNTERX is offline
JayNepal
New Member
Join Date: Mar 2020
Old 04-04-2020 , 11:00   Re: [CS:GO] CSGO_HUD (Server Hud - Shows count players, time left, custom messages, e
Reply With Quote #36

hey!
Thanks for the plugin! And I have a question,

Most hud plugins I used, had an issue where upon death the hud message would disappear. In yours, the hud message defined by "sm_hud_message1", stays/regenerates upon a players death. Is it possible to have 3-4 hud messages like that, seperated by a timer, or can you please direct me towards what you did to accomplish the hud message regenerating? I'm not that good in scripting/coding so having a hard time reading your sp file.
JayNepal is offline
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 04-04-2020 , 14:56   Re: [CS:GO] CSGO_HUD (Server Hud - Shows count players, time left, custom messages, e
Reply With Quote #37

PHP Code:
public void OnPluginStart()
{
    
CreateTimer(UPDATETimer_HUD_TIMER_REPEAT);
}

public 
Action Timer_HUD(Handle timer)
{
    for(
1<= MaxClientsi++) if(IsClientInGame(i) && !IsFakeClient(i)) here_is_sending_HUD_message_to_player_i;

__________________

Last edited by Grey83; 04-04-2020 at 14:56.
Grey83 is offline
XHUNTERX
Senior Member
Join Date: Aug 2019
Location: World
Old 04-04-2020 , 20:05   Re: [CS:GO] CSGO_HUD (Server Hud - Shows count players, time left, custom messages, e
Reply With Quote #38

Quote:
Originally Posted by Grey83 View Post
PHP Code:
public void OnPluginStart()
{
    
CreateTimer(UPDATETimer_HUD_TIMER_REPEAT);
}

public 
Action Timer_HUD(Handle timer)
{
    for(
1<= MaxClientsi++) if(IsClientInGame(i) && !IsFakeClient(i)) here_is_sending_HUD_message_to_player_i;

Can you add the Zephyrus's Store credit showing code and share the .smx file?
XHUNTERX is offline
xSLOW
Senior Member
Join Date: Apr 2019
Location: Romania
Old 04-08-2020 , 22:44   Re: [CS:GO] HUDv2 (Server Hud - Shows number of players, time left, custom messages,
Reply With Quote #39

Quote:
Originally Posted by XHUNTERX View Post
Zephyrus's Store
Replace "Shop_" from the source I gave up witu "Store_"
dont forget about "#include shop" to replace with "#include store"
__________________
My community:
https://elitegamers.ro
https://www.gametracker.com/search/c...elitegamers.ro

Contact me, fastest way, through my discord server:
https://discord.gg/SBHzDGbbgG
xSLOW#0508
xSLOW is offline
xSLOW
Senior Member
Join Date: Apr 2019
Location: Romania
Old 04-08-2020 , 22:48   Re: [CS:GO] CSGO_HUD (Server Hud - Shows count players, time left, custom messages, e
Reply With Quote #40

Quote:
Originally Posted by JayNepal View Post
hey!
Thanks for the plugin! And I have a question,

Most hud plugins I used, had an issue where upon death the hud message would disappear. In yours, the hud message defined by "sm_hud_message1", stays/regenerates upon a players death. Is it possible to have 3-4 hud messages like that, seperated by a timer, or can you please direct me towards what you did to accomplish the hud message regenerating? I'm not that good in scripting/coding so having a hard time reading your sp file.
SetHudTextParams function has a parameter that allows you to set the lifetime of a hud message on the screen. I use a timer that repeats every 3 seconds and my message has 3 seconds of lifetime, so the message will never disappear
__________________
My community:
https://elitegamers.ro
https://www.gametracker.com/search/c...elitegamers.ro

Contact me, fastest way, through my discord server:
https://discord.gg/SBHzDGbbgG
xSLOW#0508
xSLOW 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:18.


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