Raised This Month: $ Target: $400
 0% 

CSGO Progressbar


Post New Thread Reply   
 
Thread Tools Display Modes
ESK0
BANNED
Join Date: May 2014
Location: Czech Republic
Old 10-03-2016 , 18:40   Re: CSGO Progressbar
Reply With Quote #11

Iam just confused with porting this to protobuf.. I dont get it Are you talking about coins ? �� If yes i found 2 ways how to do it
ESK0 is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 10-03-2016 , 18:57   Re: CSGO Progressbar
Reply With Quote #12

I've quickly converted it to Protobuf using these resources:

https://wiki.alliedmods.net/Protobuf...essage_example
https://forums.alliedmods.net/showth...light=progress
https://github.com/SteamRE/SteamKit/...ages.proto#L74
Spoiler

Code:
Handle pb = StartMessageOne("VGUIMenu", client);
PbSetString(pb, "name", "nav_progress");
PbSetBool(pb, "show", true);
Handle subkey;
subkey = PbAddMessage(pb, "subkeys");
PbSetString(subkey, "name", "msg");
PbSetString(subkey, "str", "TEST MESSAGE");
 
subkey = PbAddMessage(pb, "subkeys");
PbSetString(subkey, "name", "total");
PbSetString(subkey, "str", "300");
 
subkey = PbAddMessage(pb, "subkeys");
PbSetString(subkey, "name", "current");
PbSetString(subkey, "str", "30");
EndMessage();
Mitchell is offline
Totenfluch
AlliedModders Donor
Join Date: Jan 2012
Location: Germany
Old 10-03-2016 , 19:23   Re: CSGO Progressbar
Reply With Quote #13

I didn't share my code because the bar is useless in CSGO. You can't use it for anything usefull. You are stuck with doing nothing. In CSS you could walk around if done right but with heavy fps drops.

If you want a good progressbar code one in the hintText.

Quote:
Originally Posted by ESK0 View Post
Iam just confused with porting this to protobuf.. I dont get it Are you talking about coins ? ****************** If yes i found 2 ways how to do it
That's nice.
__________________
Notable Projects:
Event Item Spawner | Scissors, Rock, Paper for ZephStore
tVip | Smart Link Remover
PLG & GGC - CS:GO Roleplay

and countless more...

I can make a helicopter shoot missles if you want me to...

Last edited by Totenfluch; 10-03-2016 at 19:25.
Totenfluch is offline
ESK0
BANNED
Join Date: May 2014
Location: Czech Republic
Old 10-04-2016 , 01:12   Re: CSGO Progressbar
Reply With Quote #14

#Mitchell, nice and cool Thanks
#TotenFouch, And thats why i recently share my private wallhang? https://forums.alliedmods.net/showthread.php?t=288025
ESK0 is offline
headline
SourceMod Moderator
Join Date: Mar 2015
Old 10-04-2016 , 14:57   Re: CSGO Progressbar
Reply With Quote #15

Quote:
Originally Posted by ESK0 View Post
#TotenFouch, And thats why i recently share my private wallhang? https://forums.alliedmods.net/showthread.php?t=288025
Doesn't make what you said less douchey.
headline 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 15:34.


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