Jump to content

Recommended Posts

Posted

Simple Counter Strike Source Player's Ranking

(How it Work's: TOP10 and RANK is DEATHS/KILLS/PLAY_TIME ASC)

 

Features:

 

- /rank

- /top10

- /headhunters

 

/rank :: Simple showing player Rank, and stats Kills, Deaths, Headshot's, Sucside's

/top10 :: Showing Player's TOP with LIMIT 10 based ON Kills/Deaths DESC

/headhunters :: Showing TOP Player's Headshoter's and Played Time

 

There is an option that you can set stats delete of nonactive Player's (If stats older than X days, they are deleted)

 

How To:

 

Add to your: database.cfg (addons/sourcemod/configs)

 

"cssrank"
{
	"driver"			"default"
	"host"				"127.0.0.1"
	"database"			"database_name"
	"user"				"database_user"
	"pass"				"PASSWORD"
	//"timeout"			"0"
	"port"			"3306"
}

 

In your database you need run a query:

CREATE TABLE `css_rank`(
`rank_id` int(64) NOT NULL auto_increment,
`steamId` varchar(32) NOT NULL default '',
`nick` varchar(128) NOT NULL default '',
`kills` int(12) NOT NULL default '0',
`deaths` int(12) NOT NULL default '0',
`headshots` int(12) NOT NULL default '0',
`sucsides` int(12) NOT NULL default '0',
`last_active` int(12) NOT NULL default '0',
`played_time` int(12) NOT NULL default '0',
PRIMARY KEY  (`rank_id`)) ENGINE=MyISAM  DEFAULT CHARSET=utf8;

 

Download:

 

Get Plugin

Get Source

 

Credits: graczu

Guest
This topic is now closed to further replies.


×
×
  • Create New...