Raised This Month: $100 Target: $400
 25% 

Rank 3.0


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Statistical        Approver:   Hawk552 (427)
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 02-18-2010 , 10:43   Rank 3.0
Reply With Quote #1

Well, this is rank for all Half-Life-based games that share DeathMsg event.

Commands:
  • say /rank - displays your current rank, rank count, kills and deaths;
  • say /top15 - displays top 15 ranked players in a MOTD.
Notes:
  • rank is based on "kills - deaths" calculation;
  • ranks are saved in data/ranks.ini file. Line numbers mean the actual position;
  • sadly MOTD fails to align kills and deaths well, sorry;
  • non-Steam players are not ranked;
  • team kills are not checked.
Code and Top15 MOTD optimization suggestions are welcome.

Changelog:
Quote:
3.0
-completely rewriten code;
-changed rank data storing and sorting method to Arrays;
-removed rank data size limit.

2.0
-completely rewriten code;
-changed/upgraded sorting method;
-changed the way names are stored.

1.4
-optimized sorting;
-sorting on say /rank and say /top15 changed with sorting each 15 seconds (see #define SORT_INTERVAL 15.0).

1.3
-optimized parts of the code.

1.2
-added top 15 support for games that have HTML in MOTD. Check #define TOP15 HTML; in .sma;
-optimized rank calculation variables' creation.

1.1
-fixed kill not being added when victim is not authorized.
Attached Files
File Type: sma Get Plugin or Get Source (rank.sma - 16991 views - 6.1 KB)
__________________

Last edited by hleV; 05-12-2010 at 10:16. Reason: Small fix for g_Authorized[].
hleV is offline
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 02-18-2010 , 10:45   Re: Rank 1.0
Reply With Quote #2

Finally you made it, good job!
KadiR is offline
crazyeffect
Veteran Member
Join Date: Jul 2008
Location: Belgium
Old 02-18-2010 , 11:49   Re: Rank 1.0
Reply With Quote #3

Quote:
non-Steam players are not ranked.
__________________
crazyeffect is offline
Send a message via MSN to crazyeffect
papyrus_kn
Senior Member
Join Date: Feb 2009
Location: Bulgaria
Old 02-18-2010 , 12:41   Re: Rank 1.0
Reply With Quote #4

LOL!
Thank you.
__________________
papyrus_kn is offline
Send a message via Skype™ to papyrus_kn
hasta
Senior Member
Join Date: Aug 2004
Location: Ukraine, Kiev
Old 02-18-2010 , 14:38   Re: Rank 1.1
Reply With Quote #5


bug? v1.1
__________________
hasta is offline
Send a message via ICQ to hasta
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 02-18-2010 , 15:02   Re: Rank 1.1
Reply With Quote #6

Use AMXX's default rank for CS. This one is meant for games that have non-HTML MOTD.
__________________
hleV is offline
hasta
Senior Member
Join Date: Aug 2004
Location: Ukraine, Kiev
Old 02-18-2010 , 15:21   Re: Rank 1.1
Reply With Quote #7

i dont use it
vozmozhno v tvoem plagine normalnoe oformlenie topa ? tnx
__________________
hasta is offline
Send a message via ICQ to hasta
xbatista
Veteran Member
Join Date: Mar 2008
Location: Lithuania
Old 02-18-2010 , 15:29   Re: Rank 1.1
Reply With Quote #8

Quote:
Originally Posted by hasta View Post
i dont use it
vozmozhno v tvoem plagine normalnoe oformlenie topa ? tnx
tell in english, I think he don't speak in russian language
__________________
xbatista is offline
Send a message via Skype™ to xbatista
hasta
Senior Member
Join Date: Aug 2004
Location: Ukraine, Kiev
Old 02-18-2010 , 16:02   Re: Rank 1.1
Reply With Quote #9

in your plugin possible normal form of top ?
tnx xbatista
__________________
hasta is offline
Send a message via ICQ to hasta
ditmesteam
Senior Member
Join Date: Oct 2009
Old 02-18-2010 , 16:15   Re: Rank 1.1
Reply With Quote #10

I use /rankstats /top15 in AMXX mod!
ditmesteam 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 05:19.


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