Raised This Month: $32 Target: $400
 8% 

[CS:GO] Show Competitive Rank on Scoreboard


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
4bdul
AlliedModders Donor
Join Date: Dec 2011
Location: United Kingdom
Old 12-26-2014 , 13:17   [CS:GO] Show Competitive Rank on Scoreboard
Reply With Quote #1

Anyone got any ideas on how I can have players cs:go competitive rank show up on the scoreboard, exactly the same way in ranked matches.

Thanks in advance.
__________________
4bdul is offline
Michalplyoutube
Veteran Member
Join Date: Jan 2013
Location: Tank Carrier in Mannhatt
Old 12-26-2014 , 14:17   Re: [CS:GO] Show Competitive Rank on Scoreboard
Reply With Quote #2

U can't probably
__________________
The plugin developer of TF2BWR Reborn
And a TF2 Player
Michalplyoutube is offline
splewis
Veteran Member
Join Date: Feb 2014
Location: United States
Old 12-26-2014 , 14:27   Re: [CS:GO] Show Competitive Rank on Scoreboard
Reply With Quote #3

There is no way to fetch a player's matchmaking rank, so it can't be done.
splewis is offline
Scrumilation
Member
Join Date: Oct 2014
Old 12-26-2014 , 15:01   Re: [CS:GO] Show Competitive Rank on Scoreboard
Reply With Quote #4

afaik you can only show fake ranks, like make everyone look global elite, but i don't think that the guy who said it was possible released any kind of snippets for it
Scrumilation is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 12-26-2014 , 15:09   Re: [CS:GO] Show Competitive Rank on Scoreboard
Reply With Quote #5

You must be friends with the player for you to see other player's ranks.
Mitchell is offline
Root_
Veteran Member
Join Date: Jan 2012
Location: ryssland
Old 12-26-2014 , 15:24   Re: [CS:GO] Show Competitive Rank on Scoreboard
Reply With Quote #6

AFAIK even if you set ranks for everyone, players will able to see only their ranks. Opening CS:GO netprops will show you (Unsigned) or (Coord) or (NoScale) type nearby netprop values. If () is set, it means you cant send that to everyone but single player. You can try using this snippet
Code:
#include <sdkhooks> enum {     NotRanked,     SilverI,     SilverII,     SilverIII,     SilverIV,     SilverElite,     SilverEliteMaster,     GoldNovaI,     GoldNovaII,     GoldNovaIII,     GoldNovaMaster,     MasterGuardianI,     MasterGuardianII,     MasterGuardianElite,     DistinguishedMasterGuardian,     LegendaryEagle,     LegendaryEagleMaster,     SupremeMasterFirstClass,     TheGlobalElite } public OnEntityCreated(entity, const String:classname[]) {     if (StrEqual(classname, "player_manager", false)     || StrEqual(classname, "cs_player_manager", false))     {         SDKHookEx(entity, SDKHook_ThinkPost, OnResourceThink)     } } public OnResourceThink(entity) {     static m_iCompetitiveRanking = -1, playerrank[MAXPLAYERS + 1] = {TheGlobalElite, ...}     if (m_iCompetitiveRanking == -1)     {         m_iCompetitiveRanking = FindSendPropInfo("CCSPlayerResource", "m_iCompetitiveRanking")     }     SetEntDataArray(entity, m_iCompetitiveRanking, playerrank, MaxClients+1, _, true) }
__________________


dodsplugins.com - Plugins and Resources for Day of Defeat
http://twitch.tv/zadroot
Root_ is offline
4bdul
AlliedModders Donor
Join Date: Dec 2011
Location: United Kingdom
Old 12-26-2014 , 17:12   Re: [CS:GO] Show Competitive Rank on Scoreboard
Reply With Quote #7

Thanks Root!

As for getting the CS:GO rank, I assume it is possible because twitch were able to do it on their website: http://www.reddit.com/r/Twitch/comme...o_rank_twitch/ & http://www.twitch.tv/directory/game/...al%20Offensive

Just matter of figuring out how....
__________________

Last edited by 4bdul; 12-26-2014 at 17:13.
4bdul is offline
splewis
Veteran Member
Join Date: Feb 2014
Location: United States
Old 12-26-2014 , 20:25   Re: [CS:GO] Show Competitive Rank on Scoreboard
Reply With Quote #8

Quote:
Originally Posted by 4bdul View Post
Thanks Root!

As for getting the CS:GO rank, I assume it is possible because twitch were able to do it on their website: http://www.reddit.com/r/Twitch/comme...o_rank_twitch/ & http://www.twitch.tv/directory/game/...al%20Offensive

Just matter of figuring out how....
Okay, you can, the how is just "get api access from valve", which isn't exactly useful. It's not a public api
__________________
splewis is offline
Laam4
Member
Join Date: Sep 2014
Old 12-26-2014 , 23:26   Re: [CS:GO] Show Competitive Rank on Scoreboard
Reply With Quote #9

I made a fake rank plugin with menu for setting rank and it stores players ranks to hlstatsx mysqldb. I had to make some changes to hlstatsx of course, you can see the hlstatsx part in action here. This could be easily modified to use clientprefs.
Attached Files
File Type: sp Get Plugin or Get Source (elorank_3.sp - 2462 views - 6.2 KB)
Laam4 is offline
Scrumilation
Member
Join Date: Oct 2014
Old 12-28-2014 , 03:14   Re: [CS:GO] Show Competitive Rank on Scoreboard
Reply With Quote #10

Quote:
Originally Posted by Laam4 View Post
I made a fake rank plugin with menu for setting rank and it stores players ranks to hlstatsx mysqldb. I had to make some changes to hlstatsx of course, you can see the hlstatsx part in action here. This could be easily modified to use clientprefs.
Made a small test plugin from your source code and it seems to be working fine, might try to implement it in timer rankings later https://i.imgur.com/ELMmzu7.png
Scrumilation 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 00:23.


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