May you kindly tell me how to get the steam profile picture in a loading screen ( I assume it can only be made in PHP :X) ?
lol, you just player ForeverDowntown server?
sv_loadingurl can contain %s (steamid64 aka communityid) and %m (map)
sv_loadingurl "example.com/gmod/some.php?steamid=%s&mapname=%m"
(don't forget to escape "%" in your bat file with another %)
[quote]srcds.exe -some -parametrs +sv_loadingurl "sanyazol.dyndns.org/loading/?steamid=%%s&mapname=%%m"[/quote]
[PHP]<?php
// by sanya (d0t) zol at gmail d0t c0m
$name=''; // default name
$ava='noavatar.jpg'; // default image
if(isset($_GET['steamid']) && preg_match('#\A76561[0-9]{12}\z#',$_GET['steamid'])) {
$data=@file_get_contents('http://steamcommunity.com/profiles/'.$_GET['steamid'].'?xml=1');
if($data) {
if(preg_match('#<avatarFull><!\[CDATA\[(.+?)\]\]></avatarFull>#i',$data,$ava)) {$ava=$ava[1];} else {}
if(preg_match('#<steamID><!\[CDATA\[(.+?)\]\]></steamID>#i',$data,$name)) {$name=$name[1];} else {}
}
}
?>
<img src="<?php echo $ava; ?>">
Hello, <?php echo $name; ?>[/PHP]
example (with mysql cache) [URL]http://gmod.aa.am/loading/?steamid=76561198009929939[/URL] - no abuse/hotlink please
[editline]22nd January 2012[/editline]
p.s. should i release my full darkrp loading screen?
Ah dunno if you should ._.
Sorry, you need to Log In to post a reply to this thread.