Raised This Month: $ Target: $400
 0% 

rank player from variable


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 04-25-2011 , 17:22   Re: rank player from variable
Reply With Quote #7

Thats how stats works, based on kills/deaths which is what I figured you were using since you used get_statsnum() which is based off of the same ranking system.

get_user_stats()
Gets overall stats which are stored in file on server and updated on every respawn or user disconnect. Function returns the position in stats by differece in kills to deaths.

Position = rank.

If you want to make your own ranking system with your own calculations you will need to do the math and then sort the list of players.

I edited my post above with code.
__________________

Last edited by Bugsy; 04-25-2011 at 17:54.
Bugsy is offline
 



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 20:09.


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