SocialSync

20,00

Description

Allow your players to join your Socials and link their account for in-game rewards !

This system is a website/plugin and will be automated once everything configured.

Configuration plugin

{
   "Refresh Time":1,
   "Settings":{
      "IP Address":"127.0.0.1",
      "Port":3306,
      "UserName":"root",
      "Password":"",
      "Database Name":"rustDB",
      "Table Name":"social"
   }
}

 

Configuration Website

You will have to configure files on website to get it working !

File “/api/login.php”

$OpenID = new LightOpenID(""); //change to your website url

File “/api/steam/apikey.php”

//https://steamcommunity.com/dev/apikey
$api = "";
$steamgroup = ""; //put your steam group name here

File “login.php” line 32

$redirect_uri = "https://www.rust-evolution.net/login.php"; //edit this url

Line 44/45

"client_id" => "", //put here your discord client id
"client_secret" => "", //put here your discord client secret

File “/api/discord/setting.php”

//https://discord.com/developers/applications
//the redirect_uri must match the uri set to the discord website
$dicordOAuth2Link = "";

File “/api/mysql/settings.ini.php”

[SQL]
host = localhost
user = root
password =
dbname = rustDB
table = social

Data file

[
  {
    "Type": "Discord",
    "Command": [
      "o.grant user {steamid} discord",
      "o.usergroup add {username} discord"
    ]
  },
  {
    "Type": "Steam",
    "Command": [
      "o.grant user {steamid} steam",
      "o.usergroup add {username} steam"
    ]
  }
]

 

Mysql Table

CREATE TABLE IF NOT EXISTS social ( id BIGINT(20) NOT NULL auto_increment, steamid BIGINT(11) DEFAULT NULL, discordid BIGINT(11) DEFAULT NULL, insteamgroup TINYINT(4) NOT NULL DEFAULT 0, PRIMARY KEY (id) ) engine=innodb DEFAULT charset=latin1; 

 

CSS

“/css/style.css”

body {
    margin: 0px;
    background-color: #2f2c2e;
}

table {
    width: 400px;
    text-align: center;
}

.discordlink {
    cursor: pointer;
}

#main {
    background-color: #2f2c2e;
    color: white;
    font-size: 40px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding-right: 20px;
}

.status-content {
    background-color: grey;
    border-radius: 20px;
    padding: 10px;
}

.fa-check {
    color: green;
}

.fa-times {
    color: red;
}

.UnderStatusText {
    font-size: 20px;
}

#login {
    background-color: #4d6cd1;
    color: white;
    height: 1021px;
    font-size: 40px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding-right: 20px;
}

.blue {
    color: #4d6cd1;
    text-decoration: none;
}

.discord {
    color: #4d6cd1;
    text-decoration: none;
}

.blue:hover {
    color: white;
}

.button:hover {
    background-color: white;
}

.button {
    background-color: #2e6fe6;
    color: #2f2c2e;
    border-radius: 23px;
    display: flex;
    flex-direction: row;
    text-decoration: none;
    justify-content: center;
    align-items: center;
    width: 450px;
    font-size: 60px;
    padding-top: 10px;
    padding-bottom: 10px;
}

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.