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

[CSGO] Showing Competetive Rank


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Sw33T3R
AlliedModders Donor
Join Date: Mar 2014
Old 04-23-2017 , 08:25   [CSGO] Showing Competetive Rank
Reply With Quote #1

Hello
I'd like 2 show real competetive mm rank for players
I found this plugin code but it's only showing Profile LVL
I found value in AimTux (it's a open source linux cheat)
Code:
int* GetCompetitiveRanking(int index)
	{
		return (int*)((uintptr_t)this + offsets.DT_CSPlayerResource.m_iCompetitiveRanking + index * 4);
	}
But i have no idea how can i add it to plugin

Code:
#include <sourcemod>

#pragma semicolon 1
#pragma newdecls required

#define PLUGIN_VERSION "1.3"

ConVar g_hCvarVersion;

public Plugin myinfo = {
	name = "[CS:GO] Show legit profile rank on scoreboard",
	author = "Laam4",
	description = "Show legit profile rank on scoreboard",
	version = PLUGIN_VERSION,
	url = "https://forums.alliedmods.net/showthread.php?p=2265799"
};

public void OnPluginStart()
{
	g_hCvarVersion = CreateConVar("sm_frank_version", PLUGIN_VERSION, "Fake rank version", FCVAR_PLUGIN|FCVAR_SPONLY|FCVAR_REPLICATED|FCVAR_NOTIFY|FCVAR_DONTRECORD);
	g_hCvarVersion.SetString(PLUGIN_VERSION);

	HookEvent("announce_phase_end", Event_AnnouncePhaseEnd);
}

public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float vel[3], float angles[3], int &weapon)
{
	if (buttons & IN_SCORE && !(GetEntProp(client, Prop_Data, "m_nOldButtons") & IN_SCORE)) {
		Handle hBuffer = StartMessageOne("ServerRankRevealAll", client);
		if (hBuffer != INVALID_HANDLE)
		{
			EndMessage();
		}
	}
	return Plugin_Continue;
}

public Action Event_AnnouncePhaseEnd(Handle event, const char[] name, bool dontBroadcast)
{
	Handle hBuffer = StartMessageAll("ServerRankRevealAll");
	if (hBuffer != INVALID_HANDLE)
	{
		EndMessage();
	}
	return Plugin_Continue;
}
Source: https://www.unknowncheats.me/forum/1621863-post5.html
Any ideas?

Last edited by Sw33T3R; 04-23-2017 at 08:32.
Sw33T3R is offline
DukeBruno123
Member
Join Date: Jan 2016
Location: Germany
Old 04-24-2017 , 03:47   Re: [CSGO] Showing Competetive Rank
Reply With Quote #2

I heard this m_iCompetitiveRanking only exists in actual competitive matches and even in cheats it displays "Unknown" in community matches
DukeBruno123 is offline
Sw33T3R
AlliedModders Donor
Join Date: Mar 2014
Old 04-24-2017 , 05:02   Re: [CSGO] Showing Competetive Rank
Reply With Quote #3

Quote:
Originally Posted by DukeBruno123 View Post
I heard this m_iCompetitiveRanking only exists in actual competitive matches and even in cheats it displays "Unknown" in community matches
"Competetive matches"
Do you mean gamemode competetive or valve servers?
Sw33T3R is offline
lay295
Senior Member
Join Date: Sep 2013
Old 04-24-2017 , 11:51   Re: [CSGO] Showing Competetive Rank
Reply With Quote #4

Plugins like this and knife/ws aren't allowed to be posted here. The plugin has been made before though just do some quick googling.
__________________

lay295 is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 04-24-2017 , 12:15   Re: [CSGO] Showing Competetive Rank
Reply With Quote #5

Quote:
Originally Posted by lay295 View Post
Plugins like this and knife/ws aren't allowed to be posted here. The plugin has been made before though just do some quick googling.
At first I thought the same as well, but that only applies to fake/chosen ranks. OP here is asking about displaying real ranks, which as Duke said, I'm pretty sure isn't possible unfortunately.
__________________
sneaK 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 22:32.


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