[ANY] Player Info Database
2 Attachment(s)
Player Info Database
Saves certain information of each player that joins your server in a SQL database. - Name - Steam ID - IP Address - Country Code - First join - Last seen - Number of connections - Time played Only tested in Counter-Strike: Global Offensive servers with a MySQL server. Installation - Create a MySQL database. - Add the database information in "playerinfo" into your configuration file (addons/sourcemod/configs/databases.cfg). - Upload playerinfo.smx into your server. - Load the plugin or restart the server. Query Examples - Get the number of unique Steam ID's Code:
SELECT COUNT(DISTINCT steamid) FROM data; Code:
SELECT COUNT(DISTINCT address) FROM data; Code:
SELECT * FROM data WHERE last_seen > NOW() - INTERVAL 1 HOUR; Code:
SELECT * FROM data ORDER BY first_join ASC LIMIT 1; Code:
SELECT * FROM data ORDER BY last_seen DESC LIMIT 1; Code:
SELECT * FROM data ORDER BY connections DESC LIMIT 1; Code:
SELECT COUNT(DISTINCT steamid), country FROM data GROUP BY country ORDER BY COUNT(DISTINCT steamid) DESC; Code:
SELECT * FROM data ORDER BY time DESC LIMIT 1; GitHub Steam Discord: akz#1553 |
Re: [ANY] Player Info Database
And no one has done a web to this plugin? If someone can please make web plugins for this.
|
All times are GMT -4. The time now is 21:30. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.