Different Loading Screen for each map

Okay so, I own a TTT server and was wondering if there was a way to add a loading screen which is different for each map.
If possible, please tell me how, it would be really appreciated.

Thanks =D

Your server would just have the 1 actual loading screen, and show different things based on which map is loading.
You can tell the loading screen what the map is by appending %m to your loading url. So if your page address was example.com/folder/loadingpage.php you would need to change it to example.com/folder/loadingpage.php?mapname=%m
Then in your php script you would retrieve the ‘mapname’ variable (using $_GET[‘mapname’]) and change what displays based on that.

I only edited cfg/autoexec.cfg
And put:
gamemode “terrortown”
sv_loadingurl “http://www.formaldogsgamers.com/wp-content/uploads/2013/06/Formaldogs1.png
log 1
map ttt_minecraft_b5

If you’d be so kind so as to write for me a php script I would really appreciate it. If not then I understand, not everyone has the time :stuck_out_tongue:


sv_loadingurl "http://www.blah.com/folder/page.php?mapname=%m"


//page.php
<?php

$MapName = !empty($_GET['mapname']) ? $_GET['mapname'] : 'default';

echo <<<HTML
<img src="http://www.blah.com/images/{$MapName}.jpg" />
HTML;

?>

This will take the name of the map, and show an image with that name.
It of course needs some work to make it fill the screen or display however you want.

One more thing, where do I put the “page.php” file?

On your webhost.