Statistics Website

Helping Topics
Post Reply
User avatar
Night Fury
Mod Developer
Mod Developer
Posts: 677
Joined: 7 years ago
Contact:

Statistics Website

#1

Post by Night Fury » 5 years ago

As we have too many plugins running MySQL so we thought that we should provide a script to gather all those information in 1 page.


| You will need:
  1. A server running PHP & MySQL.
  2. Level System (Optional).
  3. Escapes (Optional).
  4. Infects (Optional).

First of all, you will need to edit config.php for those information:
  • Code: Select all

        // Host to connect to
        define("DB_HOST", "localhost");
    
        // Database user
        define("DB_USER", "root");
    
        // User's password
        define("DB_PASSWORD", "");
    
        // Database name
        define("DB_DATABASE_NAME", "test");
    
        // Name of the table where all information stored in such as: escape coins, steamid, etc..
        define("TABLE_NAME", "test");
    
        // Are you using level system and want to view level information?
        define("USING_LEVELS", false);
    
        // Are you using infects counter and want to view infects?
        define("USING_INFECTS", true);
    
        // Are you using escapes counter and want to view infects?
        define("USING_ESCAPES", true);
    
        // How many players you want to view in the home page
        define("MAX_PLAYERS", 3);

Once done, head to: yourwebsitedns/stats/

If everything is being done correctly, you should see something like in this screenshot:
  • screen.png
If you have faced any issues, just comment down below.

| Download:
Want your own mod edition? PM me.
Accepting private projects.
Discord: Fury#7469
Image

User avatar
Night Fury
Mod Developer
Mod Developer
Posts: 677
Joined: 7 years ago
Contact:

#2

Post by Night Fury » 4 years ago

Updated.
Want your own mod edition? PM me.
Accepting private projects.
Discord: Fury#7469
Image

Muhammet20
Veteran Member
Veteran Member
Posts: 408
Joined: 5 years ago
Contact:

#3

Post by Muhammet20 » 4 years ago

Nice Work Bro, Thanks this is will help me too much, i waiting this from a long time

Post Reply

Create an account or sign in to join the discussion

You need to be a member in order to post a reply

Create an account

Not a member? register to join our community
Members can start their own topics & subscribe to topics
It’s free and only takes a minute

Register

Sign in

Who is online

Users browsing this forum: No registered users and 3 guests