-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathantisquatter.config.example.php
32 lines (27 loc) · 1.6 KB
/
antisquatter.config.example.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
/**
* =============================================================================
* @author Clayton, sneaK
* @version 2.0
* @link https://github.com/supimfuzzy/csgo-multi-1v1 https://github.com/Sneaks-Community/rank-decay-script
* =============================================================================
*/
$mysql_host = 'host';
$mysql_user = 'user';
$mysql_pass = 'pass';
$mysql_db = 'db';
$mysql_table = 'table'; //Default table set by game plugin. Do not change this if you don't know what you are doing.
$anti_squatter_pass = "pass"; //Used to access antisquatter.php
$mysql_column_id = 'id';
$mysql_column_score = 'score';
$mysql_column_lastconnect = 'lastconnect';
$antisquatter_rate_loss = 25; //Rate loss constant. A higher value equals a higher rate loss per day of inactivity.
$start_score = 1800; //Starting score of new players
$decay_start = 5; //Time in days until point decay should occur
$reset_days = 30; //Time in days when a player gets reset back to the default score, required if implementing into an existing DB with very old stale players to prevent anomalies (sanity check)
$reverse_decay = 2; //Divisor at which reverse decay should happen (1 is equal to decay rate, 0.5 would be twice the speed as decay rate, 2 would be half the speed of decay)
$log_antisquatter = false; //Keep IP logs and the number of player stats changes. For debugging and testing purposes only.
$connect = mysqli_connect($mysql_host,$mysql_user,$mysql_pass) or die('Cannot connect to server.');
$connect->set_charset('utf8mb4');
$select_db = mysqli_select_db($connect, $mysql_db) or die('Cannot find database.')
?>