Nuclear Dawn : How to get player rank?
I am new to sourcepawn, but I think I have most of the basics down.
I am trying to figure out how to retrieve a player's rank in Nuclear Dawn, but I have no clue on how to go about doing so. Would someone Please point me in the correct direction? |
Re: Nuclear awn : How to get player rank?
I don't know if there's any API functions for Nuclear Dawn yet, but I could very well be mistaken. Typing "nuclear" into the API Reference returns nothing.
|
Re: Nuclear awn : How to get player rank?
Comp8nerd4u2 pointed out CNDPlayerResource netclass with a property of m_iPlayerRank , but that holds the general rank, I still cant find what holds the class rank after going through the SM dumps.
I don't see any arrays in the dumps that would be big enough to hold all the class ranks. |
Re: Nuclear Dawn : How to get player rank?
Is there a way to do some kind of revers lookup on a netclass? (look it up by value)
I know the value of my rank, can I use that to look it up to find where it is stored? |
Re: Nuclear Dawn : How to get player rank?
Below is some code that I got from comp8nerd4u2 that I ran though a loop.
The problem That I have with this code is that it will return all 0s until after a player has spawned. Where would be a better place to get the information from? (note that I am new to sourcepawn) Could someone point me in the correct direction? Code:
#include <sourcemod> |
All times are GMT -4. The time now is 11:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.