Raised This Month: $51 Target: $400
 12% 

CSstatsX SQL


Post New Thread Reply   
 
Thread Tools Display Modes
Elit59
Member
Join Date: Feb 2016
Old 12-17-2016 , 01:14   Re: CSstatsX SQL
Reply With Quote #41

nice!
Elit59 is offline
nkSid
New Member
Join Date: Feb 2016
Old 01-28-2017 , 06:02   Re: CSstatsX SQL
Reply With Quote #42

Plugin crashes if I restart the server.

[ 2013 ] Lost connection to MySQL server at 'reading initial communication packet', system error: 111
nkSid is offline
Hectik17
AlliedModders Donor
Join Date: Oct 2005
Old 02-05-2017 , 03:34   Re: CSstatsX SQL
Reply With Quote #43

do you think you could add somthing for PUGS? like when your team wins 1 point is added to a win tally?

like after 15 rounds,

idk i need to think about the way to doing a bit better but the map is restarted for the 2nd half after 15 then players swap teams and trey to beat the other teams score T6 CT8 maps rs and they swap teams so that means the T side have to beat 8 wins on the 2nd half, it would be good to somehow detect a match win and all players on that team get 1 point on the /rank
Hectik17 is offline
FR0NTLINE
AlliedModders Donor
Join Date: Apr 2006
Location: Riverside Cali
Old 02-21-2017 , 10:52   Re: CSstatsX SQL
Reply With Quote #44

Is this hectik from Australia ?
__________________
FR0NTLINE is offline
Send a message via AIM to FR0NTLINE Send a message via MSN to FR0NTLINE Send a message via Yahoo to FR0NTLINE
ralze
New Member
Join Date: Mar 2017
Old 03-20-2017 , 08:53   Re: CSstatsX SQL
Reply With Quote #45

I've been using this plugin on my CS1.6 server and it works perfectly! The only "changes" I made was that I setup a trigger that anytime a record is updated in the csstats table it writes to a new table I setup called csstats_player_names. This way I can keep track of all the alias' a player uses. If you are interested in using, here is the mysql.

Code:
BEGIN
	IF EXISTS (SELECT 1 FROM `csstats_player_names` WHERE `player_id` = NEW.`id` AND `name` = NEW.`name`)
	THEN
		UPDATE `csstats_player_names` SET
			`last_used` = NOW(),
            `times_used` = `times_used` + 1
		WHERE `player_id` = NEW.`id` AND `name` = NEW.`name`;
	ELSE
		INSERT INTO `csstats_player_names` (
			`player_id`,
			`name`,
			`last_used`,
            `times_used`
		) VALUES (
			NEW.`id`,
			NEW.`name`,
            NOW(),
            1
		);
	END IF;
END
Would this work with the Natural Selection 1 module with some tweaks? We have a group of us who still play and I would love to be able to keep stats for that as well (quick googling has no produced any good results).
ralze is offline
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 03-20-2017 , 09:21   Re: CSstatsX SQL
Reply With Quote #46

Quote:
Originally Posted by ralze View Post
I've been using this plugin on my CS1.6 server and it works perfectly!
Hi there!

Quote:
Originally Posted by ralze View Post
This way I can keep track of all the alias' a player uses. If you are interested in using, here is the mysql.
Thank you for sql script. Can you also post create table query for csstats_player_names? This may will be useful for someone.

I was planning total gameME stats replacement with one plugin, but just lost interest in cs 1.6 lyl

Quote:
Originally Posted by ralze View Post
Would this work with the Natural Selection 1 module with some tweaks? We have a group of us who still play and I would love to be able to keep stats for that as well (quick googling has no produced any good results).
This plugin counts stats by itself, you need to rewrite stats hooks for NS.

Some info you need to know:
__________________
The functional way is the right way
GordonFreeman (RU) is offline
ralze
New Member
Join Date: Mar 2017
Old 03-20-2017 , 10:03   Re: CSstatsX SQL
Reply With Quote #47

Quote:
Originally Posted by GordonFreeman (RU) View Post
Thank you for sql script. Can you also post create table query for csstats_player_names? This may will be useful for someone.

I was planning total gameME stats replacement with one plugin, but just lost interest in cs 1.6 lyl
Here you go!
Code:
CREATE TABLE `csstats_player_names` (
 `id` int(11) NOT NULL AUTO_INCREMENT,
 `player_id` int(11) NOT NULL,
 `name` varchar(200) NOT NULL,
 `last_used` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
 `times_used` int(11) NOT NULL DEFAULT '1',
 PRIMARY KEY (`id`),
 KEY `player_id` (`player_id`)
) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=latin1
Quote:
Originally Posted by GordonFreeman (RU) View Post
This plugin counts stats by itself, you need to rewrite stats hooks for NS.

Some info you need to know:
Thanks, so I'll have to figure out the hooks for NS somehow. The fact this counts stats by itself really adds the value of this plugin. If I get more time I might try to port it to other modules as well (if that if alright with you).
ralze is offline
Hack1
New Member
Join Date: Jan 2018
Old 01-08-2018 , 11:55   Re: CSstatsX SQL
Reply With Quote #48

Hello, with the value csstats_sql_update "-1" and csstats_sql_cachetime "-1", when you kill the last person in one of the commands, the server hangs for a few seconds. With the value csstats_sql_update "0" and csstats_sql_cachetime "0", hangs occur only in the first round. What could be the problem?
Installed with the replacement module CSX
The value of csstats_mysql_forwards "1"
Hack1 is offline
GordonFreeman (RU)
Veteran Member
Join Date: Jan 2010
Location: Uzbekistan
Old 01-08-2018 , 23:45   Re: CSstatsX SQL
Reply With Quote #49

Quote:
Originally Posted by Hack1 View Post
Hello, with the value csstats_sql_update "-1" and csstats_sql_cachetime "-1", when you kill the last person in one of the commands, the server hangs for a few seconds. With the value csstats_sql_update "0" and csstats_sql_cachetime "0", hangs occur only in the first round. What could be the problem?
Installed with the replacement module CSX
The value of csstats_mysql_forwards "1"
Its may cause by top15 plugins or any other plugins which using get_stats function.
Like stats marquee or etc.

Which of your plugins is using get_stats function (search in source files) ?
__________________
The functional way is the right way

Last edited by GordonFreeman (RU); 01-08-2018 at 23:49.
GordonFreeman (RU) is offline
jonatat
Senior Member
Join Date: Dec 2017
Old 07-21-2018 , 14:46   Re: CSstatsX SQL
Reply With Quote #50

Can add command to turn off and tur on this plugin? Like example csstats_ enable 1 and csstats_enable 0. Why? Becouse if user use this plugin in pug mod and pug have warmup dont save player stats until live... Thanks!
jonatat is offline
Reply



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 04:35.


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