Raised This Month: $12 Target: $400
 3% 

[TF2] sv_loadingurl


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
petomatick
Member
Join Date: Sep 2010
Old 06-21-2012 , 04:45   [TF2] sv_loadingurl
Reply With Quote #1

I saw that garrys mod servers have an command namely sv_loadingurl which seems to be awesome, allthough I cant get it to work on my tf2 server.

Could some1 help me to get it working?
__________________
Your destiny lies within the true power of pancakes.
petomatick is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 06-21-2012 , 04:47   Re: [TF2] sv_loadingurl
Reply With Quote #2

It's a GMod-only feature.
__________________
asherkin is offline
petomatick
Member
Join Date: Sep 2010
Old 06-21-2012 , 04:52   Re: [TF2] sv_loadingurl
Reply With Quote #3

Okay...

Any chance that there's a plugin for it?
__________________
Your destiny lies within the true power of pancakes.
petomatick is offline
petomatick
Member
Join Date: Sep 2010
Old 06-21-2012 , 05:41   Re: [TF2] sv_loadingurl
Reply With Quote #5

__________________
Your destiny lies within the true power of pancakes.
petomatick is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-21-2012 , 11:19   Re: [TF2] sv_loadingurl
Reply With Quote #6

Quote:
Originally Posted by petomatick View Post
Okay...

Any chance that there's a plugin for it?
For those of us who don't know what sv_loadingurl does, would you care to explain it?
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 06-21-2012 , 11:21   Re: [TF2] sv_loadingurl
Reply With Quote #7

Quote:
Originally Posted by Powerlord View Post
For those of us who don't know what sv_loadingurl does, would you care to explain it?
http://maurits.tv/data/garrysmod/wik...indexb59e.html

It specifies the loading screen to use for the server.
__________________
asherkin is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 06-21-2012 , 12:33   Re: [TF2] sv_loadingurl
Reply With Quote #8

This code is painful.

PHP Code:
<?php
//Get the steamid (really the community id)
$communityid $_GET["steamid"];
//Get the map name
$mapname $_GET["mapname"];
//See if the second number in the steamid (the auth server) is 0 or 1. Odd is 1, even is 0
$authserver bcsub($communityid'76561197960265728') & 1;
//Get the third number of the steamid
$authid = (bcsub($communityid'76561197960265728')-$authserver)/2;
//Concatenate the STEAM_ prefix and the first number, which is always 0, as well as colons with the other two numbers
$steamid "STEAM_0:$authserver:$authid";

//Output welcome line
echo "Welcome to my server!<br>";
//Output Steam Community ID
echo "Your Community ID is $communityid<br>";
//Output calculated SteamID
echo "Your SteamID is $steamid<br>";
//Output current map
echo "The current map is $mapname<br>";
//Output friendly greeting
echo "Enjoy your stay!";
?>
__________________
Dr. McKay is offline
petomatick
Member
Join Date: Sep 2010
Old 06-21-2012 , 16:34   Re: [TF2] sv_loadingurl
Reply With Quote #9

Quote:
Originally Posted by asherkin View Post
http://maurits.tv/data/garrysmod/wik...indexb59e.html

It specifies the loading screen to use for the server.
Yah, basicly. I think I've seen it before, although some like to be sneaky with their code
__________________
Your destiny lies within the true power of pancakes.
petomatick is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 06-21-2012 , 16:45   Re: [TF2] sv_loadingurl
Reply With Quote #10

It's literally not possible outside of GMod, the server can't affect the loading screen, You Have Not Seen It.
__________________
asherkin is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:12.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode