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

[L4D & L4D2] Custom Player Stats v1.4B121


Post New Thread Reply   
 
Thread Tools Display Modes
foxhound27
Senior Member
Join Date: Sep 2019
Location: Argentina
Old 12-19-2019 , 14:26   Re: [L4D & L4D2] Custom Player Stats v1.4B121
Reply With Quote #1891

and maybe a better way is to set some kind of command like !register <- by using this u agree of terms.. and thats all in the name of law so i dnt see why this could be a problem theres so many ways
foxhound27 is offline
foxhound27
Senior Member
Join Date: Sep 2019
Location: Argentina
Old 12-19-2019 , 20:57   Re: [L4D & L4D2] Custom Player Stats v1.4B121
Reply With Quote #1892

Converted to last syntax.
Attached Files
File Type: sp Get Plugin or Get Source (l4d_stats.sp - 72 views - 350.3 KB)

Last edited by foxhound27; 12-21-2019 at 16:33. Reason: Update: added lil stock to check the game
foxhound27 is offline
foxhound27
Senior Member
Join Date: Sep 2019
Location: Argentina
Old 12-19-2019 , 21:46   Re: [L4D & L4D2] Custom Player Stats v1.4B121
Reply With Quote #1893

Quote:
Originally Posted by Primeas View Post
Yes, that's annoying. i worked on the system for 2 months and it worked from php5.6 to 7.3 i was about to release it. I have been legally informed about the new laws in Europe. Even Steam names and Steam ID are personal data. You now need an approval from each player. no logs may be created without the consent. so i had to remove my stats too i had over 3500 player profiles in my database which were without approval. And that will be the new internet standard. The only possibility is to rewrite the plugin that it stores no data until the player has given the consent. But if he gives his permission you have to anonymize the ip address and Steam Name and you are not allowed to use the data anymore like a steam avatar without the permission of Steam (Steamreader) .... You even have to issue the logging of the gameserver files or write it into your data agreement. very crazy many things are no longer possible

There are still these Player Stats from GameMe I'm curious if they close their company


to make it better i think the accept of terms to use user data can be done with

FakeClientCommand(client, "sm_browse %s", URL); //(URL = terms page with steamid like mysite.com/steamid+randomtoken) so u basically register inside the game... which is great sure can be done, otherwise the user dnt get any points

Last edited by foxhound27; 12-22-2019 at 15:52.
foxhound27 is offline
Primeas
Junior Member
Join Date: Aug 2019
Old 12-28-2019 , 14:27   Re: [L4D & L4D2] Custom Player Stats v1.4B121
Reply With Quote #1894



- Version: 1.4
- Supported PHP Version: 5.6 / 7.0 / 7.1 / 7.2 / 7.3

Demo: Here


Welcome, this is a New Edition of Muukis "Custom Player Stats v1.4B121".
As a thanks to Muukis for his Work, we have Developed a New and Current Version.
Please read the Instructions in Detail before you start with the Installation


The following people were involved in the development:

muukis: Here
Primeas: Here
Foxhound: Here


Sourcemod Plugin

In the new Version (1.4) we have changed the Plugin so that every Player now has Full Control over their Saved Player Statistics.
As soon as a New Player Connects to the Gameserver, the "Left 4 Dead (2) Player Statistics" Menu opens.



If the Player Accepts:

- Player Statistics are Saved.
- Player is displayed on the Home Site under "Who is Online?"
- Player Profile is available in the Ranking
- Reconnecting to the Gameserver the Menu does not appear again

If the Player Refuses:

- Player Statistics not saved and existing Statistics are deleted.
- Player is not displayed on the Home Site under "Who is Online?"
- Player Profile no longer available in the Ranking
- Reconnecting to the Gameserver the Menu appear again

To change the Setting or to Clear your Player Statistics, every Player can open the Menu with the Command "!stats".
You can display your rank by the command "!rank"

Messages from the Plugin:

The Plugin writes a PRIVAT Hint Message to the Player after 30 Seconds on Connected to the Server with the following content:
"Write '!stats' to open the Menu, '!rank' to show your Rank."



Plugin: Top 3 Ranking - Glow Reward

In the new Version (1.4) we have a function with which the Top 3 Players (from All Gamemodes) have an Aura skin Color.
This shows that these are the best players on the Gameserver(s)!



You can set this function on the Gameserver in the file "cfg/sourcemod/l4d_stats.cfg"

Messages from the Plugin:

The Plugin writes a PRIVAT Text Chat Message to the Top 1,2,3 Player on Connected to the Server with the following content:
"[Stats] You are now Rank 1,2,3. You got the Legendary/Epic/Rare Glow Reward."

The Plugin writes a Text Chat Message if a Player Connecte to the Server with the following content:
"[Stats] Player XX joined the Game. Rank: XX (XX Points)"

Code:
"cfg/sourcemod/l4d_stats.cfg""

// Top 3 Ranking - Glow Reward
// -
// Default: "0"
// Disabled: "0"
// Enabled: "1"
l4d_stats_glow "1"


Plugin: Other Settings

In the new version (1.4) we have removed everything except the following functions (the functions for distributing points remain available):

Code:
"cfg/sourcemod/l4d_stats.cfg"

l4d_stats_dbprefix "l4d_" // Prefix for the Mysql DB
l4d_stats_glow "1" // Top 3 Ranking - Glow Reward


Installation Guide

Step 1: Download the Archive "Left_4_Dead_(2)_Player_Statistics_v1_4.zip" and unzip it
Step 2: Download the Archive "Country Flags (231).zip " and unzip it
Step 3: Upload the Folders "l4d_stats" to your Webspace.
Step 4: Go to your "PhpMyAdmin and Import from the Archive "sql_dump.zip" the "sql_dump.sql"
Step 5: Go to "/l4d_stats/awards/" and Set CHMOD 777 to the File "awards_cache.html"
Step 6: Go to "/l4d_stats/_source/js" and Set CHMOD 777 to the Folder "cache"
Step 7: Go to "/l4d_stats/gameserver" and Set CHMOD 777 to the Folder "cache"
Step 8: Go to "/l4d_stats/_source/" and edit the File "_config.php"

Code:
"_source/_config.php"

// MySQL DATA
$mysql_server = "localhost";
$mysql_db = "XXX";
$mysql_user = "XXX";
$mysql_password = "XXX";
$mysql_tableprefix = "l4d_";

// SITE SETTINGS
$site_name = "My Clan-Name"; // Clan Name
$site_url = "https://www.my-clan-url.com/"; // Clan URL
$site_style = "default"; // Site Style
$site_game = "Left 4 Dead 2"; // Site Game
$site_statsurl = "https://www.primeas.de/left4dead2/v1_4/default/"; // Site Stats URL
$site_description = "Do you like to play Left 4 Dead 2? Our servers have no ads, no changes and the statistics are real time."; // Site Description
$site_keywords = "left 4 dead 2, left4dead2, l4d2, survivor, survival horror, apocalypse, online gaming, multiplayer, primeas, primeas.de"; // Site Keywords

// SITE LOGO
$site_logo = "_source/images/logo.png"; // Logo Image URL - Options: Empty for only Clan Name
$site_logo_height = "60"; // Logo Image Height
$site_logo_width = "325"; // Logo Image Width

// COMMUNITY SETTINGS
$site_steamgroup = "https://steamcommunity.com/groups/primeas_de_left4dead2"; // Steamgroup URL
$site_welcome = "Thank you for using the Left 4 Dead (2) Player Statistics System with the associated plugin on your Gameserver(s).</br>You can edit this text completely!<br /><br />We hope you enjoy the Game!"; // Welcome Message
$site_welcome_intro = "https://b4st4rds.clanservers.com/stats/_source/videos/bastards.mp4"; // Welcome Intro Movie URL - Empty for only Welcome Message

// PLUGIN SETTING
$top3_site = "enabled"; // Top3 Ranking - Options: enabled, disabled
$top3_glow = "enabled"; // Top3 Ranking Glow Reward - Options: enabled, disabled

// Gameserver
$gameserver = "enabled"; // Gameserver Page - Options: enabled, disabled
$server1_ip = "46.38.243.248";$server1_port = "27015"; // Server 1 - IP:PORT
$server2_ip = "46.38.243.248";$server2_port = "27016"; // Server 2 - IP:PORT
$server3_ip = "";$server3_port = ""; // Server 3 - IP:PORT
$server4_ip = "";$server4_port = ""; // Server 4 - IP:PORT
$server5_ip = "";$server5_port = ""; // Server 5 - IP:PORT
$server6_ip = "";$server6_port = ""; // Server 6 - IP:PORT
$server7_ip = "";$server7_port = ""; // Server 7 - IP:PORT
$server8_ip = "";$server8_port = ""; // Server 8 - IP:PORT
$server9_ip = "";$server9_port = ""; // Server 9 - IP:PORT
$server10_ip = "";$server10_port = ""; // Server 10 - IP:PORT
$server11_ip = "";$server11_port = ""; // Server 11 - IP:PORT
$server12_ip = "";$server12_port = ""; // Server 12 - IP:PORT
$server13_ip = "";$server13_port = ""; // Server 13 - IP:PORT
$server14_ip = "";$server14_port = ""; // Server 14 - IP:PORT
$server15_ip = "";$server15_port = ""; // Server 15 - IP:PORT

// YOUTUBE PLAYER
$youtube = "enabled"; // Youtube - Options: enabled, disabled
$youtube_title = "Youtube Player"; // Youtube Title Name
$yt_movie1_embed = "9Z5RuQr7UxU"; // Youtube Movie 1 Embed Code
$yt_movie1_title = "[L4D2] Codename Immortals - Community Fragmovie"; // Youtube Movie 1 Title
$yt_movie2_embed = ""; // Youtube Movie 2 Embed Code
$yt_movie2_title = ""; // Youtube Movie 2 Title
$yt_movie3_embed = ""; // Youtube Movie 3 Embed Code
$yt_movie3_title = ""; // Youtube Movie 3 Title
$yt_movie4_embed = ""; // Youtube Movie 4 Embed Code
$yt_movie4_title = ""; // Youtube Movie 4 Title
$yt_movie5_embed = ""; // Youtube Movie 5 Embed Code
$yt_movie5_title = ""; // Youtube Movie 5 Title
$yt_movie6_embed = ""; // Youtube Movie 6 Embed Code
$yt_movie6_title = ""; // Youtube Movie 6 Title
$yt_movie7_embed = ""; // Youtube Movie 7 Embed Code
$yt_movie7_title = ""; // Youtube Movie 7 Title
$yt_movie8_embed = ""; // Youtube Movie 8 Embed Code
$yt_movie8_title = ""; // Youtube Movie 8 Title
$yt_movie9_embed = ""; // Youtube Movie 9 Embed Code
$yt_movie9_title = ""; // Youtube Movie 9 Title
$yt_movie10_embed = ""; // Youtube Movie 10 Embed Code
$yt_movie10_title = ""; // Youtube Movie 10 Title
$yt_movie11_embed = ""; // Youtube Movie 11 Embed Code
$yt_movie11_title = ""; // Youtube Movie 11 Title
$yt_movie12_embed = ""; // Youtube Movie 12 Embed Code
$yt_movie12_title = ""; // Youtube Movie 12 Title
$yt_movie13_embed = ""; // Youtube Movie 13 Embed Code
$yt_movie13_title = ""; // Youtube Movie 13 Title
$yt_movie14_embed = ""; // Youtube Movie 14 Embed Code
$yt_movie14_title = ""; // Youtube Movie 14 Title
$yt_movie15_embed = ""; // Youtube Movie 15 Embed Code
$yt_movie15_title = ""; // Youtube Movie 15 Title
Step 9: Download the "l4d_stats.smx" and Upload it to your Gameserver "/addons/sourcemod/plugins"
Step 10: Download the "l4d_stats.cfg" and Upload it to your Gameserver "/cfg/sourcemod"
Step 11: Go to "/addons/sourcemod/configs/" and edit the "databases.cfg"

Code:
"addons/sourcemod/configs/databases.cfg"

"Databases"
{
	"driver_default"		"mysql"
	
	"l4dstats"
	{
		"driver"			"mysql"
		"host"				"127.0.0.1"
		"database"			"MYSQL DB"
		"user"				"MYSQL USER"
		"pass"				"MYSQL PASSWORD"
		//"timeout"			"0"
		//"port"			"0"
	}
}


MOTD

The MOTD is adjusted to a minimum of 1024px Width or higher.
We changed a lot and also added the Top3 Ranking function.

Demo: Here

If you are using SSL just omit the HTTPS or it won't work.



Code:
"motd.txt"

http://www.url.tld/l4d_stats/ranking/motd.php // All Stats
http://www.url.tld/l4d_stats/ranking/motd.php?type=coop // Coop Stats
http://www.url.tld/l4d_stats/ranking/motd.php?type=realism // Realism Stats
http://www.url.tld/l4d_stats/ranking/motd.php?type=versus // Versus Stats
http://www.url.tld/l4d_stats/ranking/motd.php?type=scavenge // Scavenge Stats
http://www.url.tld/l4d_stats/ranking/motd.php?type=survival // Survival Stats
http://www.url.tld/l4d_stats/ranking/motd.php?type=realismversus // Realism Versus Stats
http://www.url.tld/l4d_stats/ranking/motd.php?type=mutations // Mutations Stats


Welcome Message with Intro

You can put your own message on the main page with your own intro.

Demo: Here

If you don't have an intro leave the field Empty, don't forget to insert your Steamgroup URL



Code:
"_source/_config.php"

// COMMUNITY SETTINGS
$site_steamgroup = "https://steamcommunity.com/groups/primeas_de_left4dead2"; // Steamgroup URL
$site_welcome = "Thank you for using the Left 4 Dead (2) Player Statistics System with the associated plugin on your Gameserver(s).</br>You can edit this text completely!<br /><br />We hope you enjoy the Game!"; // Welcome Message
$site_welcome_intro = "https://b4st4rds.clanservers.com/stats/_source/videos/bastards.mp4"; // Welcome Intro Movie URL - Empty for only Welcome Message


Youtube Player

We installed a YouTube player because users asked for it.

Demo: Here

The Youtube Player supports a maximum of 15 Movies.



Code:
"_source/_config.php"

// YOUTUBE PLAYER
$youtube = "enabled"; // Youtube - Options: enabled, disabled
$youtube_title = "Youtube Player"; // Youtube Title Name
$yt_movie1_embed = "9Z5RuQr7UxU"; // Youtube Movie 1 Embed Code
$yt_movie1_title = "[L4D2] Codename Immortals - Community Fragmovie"; // Youtube Movie 1 Title
$yt_movie2_embed = ""; // Youtube Movie 2 Embed Code
$yt_movie2_title = ""; // Youtube Movie 2 Title
$yt_movie3_embed = ""; // Youtube Movie 3 Embed Code
$yt_movie3_title = ""; // Youtube Movie 3 Title
$yt_movie4_embed = ""; // Youtube Movie 4 Embed Code
$yt_movie4_title = ""; // Youtube Movie 4 Title
$yt_movie5_embed = ""; // Youtube Movie 5 Embed Code
$yt_movie5_title = ""; // Youtube Movie 5 Title
$yt_movie6_embed = ""; // Youtube Movie 6 Embed Code
$yt_movie6_title = ""; // Youtube Movie 6 Title
$yt_movie7_embed = ""; // Youtube Movie 7 Embed Code
$yt_movie7_title = ""; // Youtube Movie 7 Title
$yt_movie8_embed = ""; // Youtube Movie 8 Embed Code
$yt_movie8_title = ""; // Youtube Movie 8 Title
$yt_movie9_embed = ""; // Youtube Movie 9 Embed Code
$yt_movie9_title = ""; // Youtube Movie 9 Title
$yt_movie10_embed = ""; // Youtube Movie 10 Embed Code
$yt_movie10_title = ""; // Youtube Movie 10 Title
$yt_movie11_embed = ""; // Youtube Movie 11 Embed Code
$yt_movie11_title = ""; // Youtube Movie 11 Title
$yt_movie12_embed = ""; // Youtube Movie 12 Embed Code
$yt_movie12_title = ""; // Youtube Movie 12 Title
$yt_movie13_embed = ""; // Youtube Movie 13 Embed Code
$yt_movie13_title = ""; // Youtube Movie 13 Title
$yt_movie14_embed = ""; // Youtube Movie 14 Embed Code
$yt_movie14_title = ""; // Youtube Movie 14 Title
$yt_movie15_embed = ""; // Youtube Movie 15 Embed Code
$yt_movie15_title = ""; // Youtube Movie 15 Title


Top3 Ranking

Not every Free Webspace supports the Steamprofile Reader and we have expanded the Plugin: Top 3 Ranking - Glow Reward feature.
Now you can choose between 3 options (Glow Reward, Glow Reward Disabled, Disabled)

Demo: Here

The setting of the Top3 ranking can also be seen in the MOTD



Code:
"_source/_config.php"

// PLUGIN SETTING
$top3_site = "enabled"; // Top3 Ranking - Options: enabled, disabled
$top3_glow = "enabled"; // Top3 Ranking Glow Reward - Options: enabled, disabled


Gameserver Status

Many users have problems when using a free Webspace.
Unfortunately, there are some modules deactivated that do not make it possible to query the status of the server.
If she turns off the Gameserver function in the "_source/_config.php" of her Webstats,
"Who is online?" is displayed on the main page under the welcome message and the link "Gameserver" in the navigation disappears.
If you activate the "Gameserver" function, the Gameserver link is displayed in the navigation,
the display for "Who is online?" is removed from the main page and you can see it under the gameserver list.
We have improved the setting, you only need to set the IP: port and the system does everything by itself.
You can connect to the server directly from the game server list or view the setting!

Demo: Here

The Gameserver Status function supports a maximum of 15 Left 4 Dead (2) Gameservers.



Code:
"_source/_config.php"

// Gameserver
$gameserver = "enabled"; // Gameserver Page - Options: enabled, disabled
$server1_ip = "46.38.243.248";$server1_port = "27015"; // Server 1 - IP:PORT
$server2_ip = "46.38.243.248";$server2_port = "27016"; // Server 2 - IP:PORT
$server3_ip = "";$server3_port = ""; // Server 3 - IP:PORT
$server4_ip = "";$server4_port = ""; // Server 4 - IP:PORT
$server5_ip = "";$server5_port = ""; // Server 5 - IP:PORT
$server6_ip = "";$server6_port = ""; // Server 6 - IP:PORT
$server7_ip = "";$server7_port = ""; // Server 7 - IP:PORT
$server8_ip = "";$server8_port = ""; // Server 8 - IP:PORT
$server9_ip = "";$server9_port = ""; // Server 9 - IP:PORT
$server10_ip = "";$server10_port = ""; // Server 10 - IP:PORT
$server11_ip = "";$server11_port = ""; // Server 11 - IP:PORT
$server12_ip = "";$server12_port = ""; // Server 12 - IP:PORT
$server13_ip = "";$server13_port = ""; // Server 13 - IP:PORT
$server14_ip = "";$server14_port = ""; // Server 14 - IP:PORT
$server15_ip = "";$server15_port = ""; // Server 15 - IP:PORT
Problems: Check the Folder "gameserver/cache" has the CHMOD 777. If data is displayed incorrectly, delete the text files from the serverX in the ""gameserver/cache" folder.



Color Style

Do you want to change the color?
Just go to "_source/css/default.css" in the header you will see Main Color and Second Color. The System is set up so that you only have to change these 2 colors.

Alternatively load my "color-styles.zip" and Upload the css files into the folder "_source/css".



Code:
"_source/css/default.css"

Style: Default
 - Main Color: #2b5772
 - Second Color: #68aad5
Code:
"_source/_config.php"

$site_style = "default"; // Site Style - default, dark-blue, dark-green, dark-purple, dark-red


Country Flags Missing?

If it does not happen that all country flags are present, a prefix of the country code is displayed instead of the flag.

You can find the right Country Flags at: Here



Example: "co" is missing - Download the Country Flag and rename it to "co.gif" - Upload it to "/_source/images/flags"



We accept no liability for the legal basis of the new data protection regulation
Left 4 Dead (2) Player Statistics v1.4 2019-2020 primeas.de
Based on the Plugin from muukis modified by Foxhound for Sourcemod
Attached Files
File Type: zip sql_dump.zip (5.7 KB, 66 views)
File Type: zip Country Flags (231).zip (5.29 MB, 36 views)
File Type: smx l4d_stats.smx (115.1 KB, 37 views)
File Type: cfg l4d_stats.cfg (14.7 KB, 37 views)
File Type: zip Left_4_Dead_(2)_Player_Statistics_v1_4.zip (4.87 MB, 59 views)
File Type: zip color-styles.zip (13.3 KB, 27 views)
File Type: zip playerprofil_fix_steam_url.zip (4.1 KB, 34 views)
File Type: zip Fix_View_Full_Statistics_.zip (2.4 KB, 29 views)

Last edited by Primeas; 01-26-2020 at 11:13.
Primeas is offline
Mr. Man
Veteran Member
Join Date: Mar 2011
Location: Huh?
Old 12-28-2019 , 14:33   Re: [L4D & L4D2] Custom Player Stats v1.4B121
Reply With Quote #1895

Do you have the updated web files? all good - didn't see you were in the middle of uploading. thanks!
__________________

Last edited by Mr. Man; 12-28-2019 at 14:36.
Mr. Man is offline
Primeas
Junior Member
Join Date: Aug 2019
Old 12-28-2019 , 14:49   Re: [L4D & L4D2] Custom Player Stats v1.4B121
Reply With Quote #1896

Quote:
Originally Posted by Mr. Man View Post
Do you have the updated web files? all good - didn't see you were in the middle of uploading. thanks!
All good - I Add Demo Sites

Last edited by Primeas; 01-01-2020 at 13:55.
Primeas is offline
muukis
Veteran Member
Join Date: Apr 2009
Old 12-29-2019 , 14:55   Re: [L4D & L4D2] Custom Player Stats v1.4B121
Reply With Quote #1897

Quote:
Originally Posted by Primeas View Post
...
I just want to say... superb work! Thank you! I've added a link to your post in the plugin thread first post.
__________________
Monster Hunter

Though certainly not superhuman, the man's prowess inspires an excess of whispered rumors. But those rumors remain in the realm of speculation.
muukis is offline
Mr. Man
Veteran Member
Join Date: Mar 2011
Location: Huh?
Old 12-30-2019 , 01:18   Re: [L4D & L4D2] Custom Player Stats v1.4B121
Reply With Quote #1898

Quote:
Originally Posted by Primeas View Post
All good - Demo now Online: https://www.primeas.de/left4dead2_demo
Just gave your new version a try, ended up getting display errors when I dragged/dropped the files:

__________________
Mr. Man is offline
Primeas
Junior Member
Join Date: Aug 2019
Old 12-30-2019 , 11:06   Re: [L4D & L4D2] Custom Player Stats v1.4B121
Reply With Quote #1899

Quote:
Originally Posted by Mr. Man View Post
Just gave your new version a try, ended up getting display errors when I dragged/dropped the files:

Wrong Stats Url inside the _config.php ( $site_statsurl = ""; )

Here thats from Foxhound: https://www.nationzombie.org/stats/

Last edited by Primeas; 12-31-2019 at 17:45.
Primeas is offline
Primeas
Junior Member
Join Date: Aug 2019
Old 12-30-2019 , 18:47   Re: [L4D & L4D2] Custom Player Stats v1.4B121
Reply With Quote #1900

Updated: v1.1
Primeas 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 09:51.


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