- Initiateur de la discussion
S
Salvadoro2111
Geek
- Messages
- 22
- Score réaction
- 0
- Points
- 75
Bonjour je viens tout juste d'acheter roflox loading 2.0 https://scriptfodder.com/scripts/view/1373
Et tout fonctionne mais quand les joueurs se connectent ils ne voient pas leur image et leur nom quelqu’un pourrait m'aider? (Si quelqu’un réussi a m'aidé je vous passe le script.)
Voici la config
$steamapi = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
$steaminfo = true;
$sname = true;
$servername = '';
$r = '186';
$g = '29';
$b = '29';
$border = true;
$bcurved = false;
$background = 1;
$backimage = '1.jpg';
$overlay = 2;
$music = true;
$mvol = 10;
$content = true;
$left = false; //Uncomment below if you set this value to true.
$right = false; //Uncomment below if you set this value to true.
$plname = 'Unknown Player';
$avatar = 'images/nouser.png';
$mapname = 'Unknown Map';
if (isset($_GET['steamid'])) {
$data = 'http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=' . $steamapi . '&steamids='.$_GET['steamid'];
$f = file_get_contents($data);
$arr = json_decode($f, true);
if (isset($arr['response']['players'][0]['personaname']))
$plname = $arr['response']['players'][0]['personaname'];
if (isset($arr['response']['players'][0]['avatar']))
$avatar = $arr['response']['players'][0]['avatarfull'];
}
?>
---------------------------------------------------------------------------------------------------------------------------------------------
Et voici l'index.php
<?php
define('rgconf',1);
include 'config/config.php';
if ($overlay == 0) {
$overlay = 'dotted';
} elseif ($overlay == 1) {
$overlay = 'left-angle-striped';
} elseif ($overlay == 2) {
$overlay = 'right-angle-striped';
}
?>
<html>
<head>
<title>Loading Screen</title>
<link rel="stylesheet" type="text/css" href="css/main.css"/>
<?php if ($background == 1) {
echo '<link rel="stylesheet" type="text/css" href="css/slider.css"/>';
echo '<script type="text/javascript" src="js/modernizr.custom.86080.js"></script>';
echo "<style>.cb-slideshow:after {content: ''; background: transparent url(images/", $overlay, ".png) repeat top left;}</style>";
} elseif ($background == 0) {
echo '<link rel="stylesheet" type="text/css" href="css/static.css"/>';
echo "<style>#overlay { background-image: url(images/", $overlay, ".png); }</style>";}
if ($border == 1) {
echo "<style>
#song { border: 3px solid rgba(", $r, ",", $g, ",", $b, ",0.60);}
#content {border: 3px solid rgba(", $r - 70, ",", $g - 70, ",", $b - 70, ",0.80);}
#progress {background-color: rgba(", $r, ",", $g, ",", $b, ",0.60);}
#content-text {border: 3px solid rgba(", $r, ",", $g, ",", $b, ",0.60);}
#left-box-custom {border: 3px solid rgba(", $r, ",", $g, ",", $b, ",0.60);}
#steampic {border: 3px solid rgba(", $r, ",", $g, ",", $b, ",0.60);}
#right-box-custom {border: 3px solid rgba(", $r, ",", $g, ",", $b, ",0.60);}
#message {border: 3px solid rgba(", $r, ",", $g, ",", $b, ",0.60);}
#servername {text-shadow: 0 0 18px rgb(", $r, ",", $g, ",", $b, ");}</style>";
} elseif ($border == 0) {
echo "<style>
#progress {background-color: rgba(", $r, ",", $g, ",", $b, ",0.60);}
#servername {text-shadow: 0 0 18px rgb(", $r, ",", $g, ",", $b, ");}</style>";}
if ($bcurved == 1) {
echo "<style>
#song {border-radius: 5px;}
#content {border-radius: 5px;}
#content-text {border-radius: 5px;}
#left-box-custom {border-radius: 5px;}
#right-box-custom {border-radius: 5px;}</style>";}
?>
<script type="text/javascript" charset="utf-8">var music = <?php echo $music?>;</script>
</head>
<?php if ($background == 1) {
echo '<body id="page">';
echo '<div id="player"></div>';
echo '<ul class="cb-slideshow">
<li><span></span></li>
<li><span></span></li>
<li><span></span></li>
<li><span></span></li>
<li><span></span></li>
<li><span></span></li>
</ul>';
} elseif ($background == 0) {
echo '<body id="background" style="background-image: url(images/', $backimage, ');">';
echo '<div id="player"></div>';
echo '<div id="overlay"></div>';
}
if ($sname == 1) {
echo '<div id="servername">', $servername, '</div>';
}
if ($music == 1) {
echo '<div id="song">Current Song<div id="music-name"></div></div>';
}
if ($content == 1) {
echo '<div id="content-text"><div id="status">Retrieving server info...</div></div>';
echo '<div id="content"><div id="progress"></div></div>';
}
if ($left == 1) {
echo '<div id="left-box-custom"><center><font id="header">', $lefthead, '</font></center><br/>', $leftbody, '</div>';
}
if ($right == 1) {
echo '<div id="right-box-custom"><center><font id="header">', $righthead, '</font></center><br/>', $rightbody, '</div>';
}
if ($steaminfo == 1) {
echo '<div id="steampic" style="background: url(', $avatar, ') no-repeat center;"></div>';
echo '<div id="message">Welcome, ', $plname, '</div>';
}?>
<script src="js/jquery-2.1.1.min.js"></script>
<script src="config/config.js"></script>
<script type="text/javascript" charset="utf-8">var musicVolume = <?php echo $mvol?>;</script>
<script src="js/roflox.js"></script>
</body>
</html>
Et tout fonctionne mais quand les joueurs se connectent ils ne voient pas leur image et leur nom quelqu’un pourrait m'aider? (Si quelqu’un réussi a m'aidé je vous passe le script.)
Voici la config
$steamapi = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX';
$steaminfo = true;
$sname = true;
$servername = '';
$r = '186';
$g = '29';
$b = '29';
$border = true;
$bcurved = false;
$background = 1;
$backimage = '1.jpg';
$overlay = 2;
$music = true;
$mvol = 10;
$content = true;
$left = false; //Uncomment below if you set this value to true.
$right = false; //Uncomment below if you set this value to true.
$plname = 'Unknown Player';
$avatar = 'images/nouser.png';
$mapname = 'Unknown Map';
if (isset($_GET['steamid'])) {
$data = 'http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=' . $steamapi . '&steamids='.$_GET['steamid'];
$f = file_get_contents($data);
$arr = json_decode($f, true);
if (isset($arr['response']['players'][0]['personaname']))
$plname = $arr['response']['players'][0]['personaname'];
if (isset($arr['response']['players'][0]['avatar']))
$avatar = $arr['response']['players'][0]['avatarfull'];
}
?>
---------------------------------------------------------------------------------------------------------------------------------------------
Et voici l'index.php
<?php
define('rgconf',1);
include 'config/config.php';
if ($overlay == 0) {
$overlay = 'dotted';
} elseif ($overlay == 1) {
$overlay = 'left-angle-striped';
} elseif ($overlay == 2) {
$overlay = 'right-angle-striped';
}
?>
<html>
<head>
<title>Loading Screen</title>
<link rel="stylesheet" type="text/css" href="css/main.css"/>
<?php if ($background == 1) {
echo '<link rel="stylesheet" type="text/css" href="css/slider.css"/>';
echo '<script type="text/javascript" src="js/modernizr.custom.86080.js"></script>';
echo "<style>.cb-slideshow:after {content: ''; background: transparent url(images/", $overlay, ".png) repeat top left;}</style>";
} elseif ($background == 0) {
echo '<link rel="stylesheet" type="text/css" href="css/static.css"/>';
echo "<style>#overlay { background-image: url(images/", $overlay, ".png); }</style>";}
if ($border == 1) {
echo "<style>
#song { border: 3px solid rgba(", $r, ",", $g, ",", $b, ",0.60);}
#content {border: 3px solid rgba(", $r - 70, ",", $g - 70, ",", $b - 70, ",0.80);}
#progress {background-color: rgba(", $r, ",", $g, ",", $b, ",0.60);}
#content-text {border: 3px solid rgba(", $r, ",", $g, ",", $b, ",0.60);}
#left-box-custom {border: 3px solid rgba(", $r, ",", $g, ",", $b, ",0.60);}
#steampic {border: 3px solid rgba(", $r, ",", $g, ",", $b, ",0.60);}
#right-box-custom {border: 3px solid rgba(", $r, ",", $g, ",", $b, ",0.60);}
#message {border: 3px solid rgba(", $r, ",", $g, ",", $b, ",0.60);}
#servername {text-shadow: 0 0 18px rgb(", $r, ",", $g, ",", $b, ");}</style>";
} elseif ($border == 0) {
echo "<style>
#progress {background-color: rgba(", $r, ",", $g, ",", $b, ",0.60);}
#servername {text-shadow: 0 0 18px rgb(", $r, ",", $g, ",", $b, ");}</style>";}
if ($bcurved == 1) {
echo "<style>
#song {border-radius: 5px;}
#content {border-radius: 5px;}
#content-text {border-radius: 5px;}
#left-box-custom {border-radius: 5px;}
#right-box-custom {border-radius: 5px;}</style>";}
?>
<script type="text/javascript" charset="utf-8">var music = <?php echo $music?>;</script>
</head>
<?php if ($background == 1) {
echo '<body id="page">';
echo '<div id="player"></div>';
echo '<ul class="cb-slideshow">
<li><span></span></li>
<li><span></span></li>
<li><span></span></li>
<li><span></span></li>
<li><span></span></li>
<li><span></span></li>
</ul>';
} elseif ($background == 0) {
echo '<body id="background" style="background-image: url(images/', $backimage, ');">';
echo '<div id="player"></div>';
echo '<div id="overlay"></div>';
}
if ($sname == 1) {
echo '<div id="servername">', $servername, '</div>';
}
if ($music == 1) {
echo '<div id="song">Current Song<div id="music-name"></div></div>';
}
if ($content == 1) {
echo '<div id="content-text"><div id="status">Retrieving server info...</div></div>';
echo '<div id="content"><div id="progress"></div></div>';
}
if ($left == 1) {
echo '<div id="left-box-custom"><center><font id="header">', $lefthead, '</font></center><br/>', $leftbody, '</div>';
}
if ($right == 1) {
echo '<div id="right-box-custom"><center><font id="header">', $righthead, '</font></center><br/>', $rightbody, '</div>';
}
if ($steaminfo == 1) {
echo '<div id="steampic" style="background: url(', $avatar, ') no-repeat center;"></div>';
echo '<div id="message">Welcome, ', $plname, '</div>';
}?>
<script src="js/jquery-2.1.1.min.js"></script>
<script src="config/config.js"></script>
<script type="text/javascript" charset="utf-8">var musicVolume = <?php echo $mvol?>;</script>
<script src="js/roflox.js"></script>
</body>
</html>