Quote:
Originally Posted by Vaki
Thank you, i will check it.
|
I am going to release this version of Useful Commands, but I've found a workaround. This is so far the best way and it has one detriment. First, let's take a look at the function I sent you:
Code:
GetEntProp(GetPlayerResourceEntity(), Prop_Send, "m_nPersonaDataPublicLevel", _, client)
While this is nice and all, it will obviously kick out any player that took his service medal and is now rank 1.
I have found a way to include any equipped ( displayed / bragged ) coin into the rank, and the only detriment is that I don't know how to take coins from the profile, just the one displayed in TAB.
Here's the native and plugin:
Code:
native int UsefulCommands_ApproximateClientRank(int client);
As long as you notify anybody you kick out that he should equip any service medal and rejoin, and as long as you save steam IDs that passed this check of service medal, you will have little to no problems.
Useful Commands is a large plugin that does lots of useful stuff for CS:GO ( and CS:S ) and if you think it's too useless for you to toggle off features you don't need, use it as a plain reference.
Do not use "Get Plugin". It's just here because for some reason (sarcasm) it's not allowed to publish .sp without .smx
Edit: I can confirm that you can't get a list of a client's medals, unfortunately. If you want to stop false positives, you should allow either rank x or more OR prime. Like, if you have one of them, you can join
I am available to make plugins for pay.
Discord: Eyal282#1334