Description:
When someone wins the game, a MOTD window pops up containing information about the winner.
Installation:
- Extract this file to your server
- Restart your server or reload GunGame
- Edit the newly appeared ../cfg/gungame51/custom_addon_configs/gg_winner_display.cfg
- Restart your server, reload GunGame, or run rcon gg_winner_display 0 then rcon gg_winner_display 1
- Customize **NOT REQUIRED** (host on your own web server):
- If you wish to adjust the layout of the page, you can host it on your own website. Save this code as gg5_win.php and adjust it to your likings:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>GunGame Winner</title>
<style type="text/css">
body {
background:#CCCCCC;
font-family:Verdana,Tahoma;
color:#000000;
vertical-align:middle;
}
</style>
</head>
<body>
<table height="100%" topmargin="0" bottommargin="0" align="center" cellpadding="0" cellspacing="0">
<tr align="center" valign="middle">
<td valign="middle">
<table><tr><td>
<img src="http://www.gungame5.com/images/gungame5_logo.png"> </td><td>
<?php if (isset($_GET["winningTeam"])) {?>
The <b><?php print ($_GET["winningTeam"]); ?></b> team won!<br />
<?php } else { ?>
<b><?php print ($_GET["winnerName"]); ?></b> Won!<hr><br />
<b><?php print ($_GET["winnerName"]); ?></b> won the game by killing <b><?php print ($_GET["loserName"]); ?></b><br /><br />
<b>Stats:</b><br />
Wins: <b><?php print ($_GET["wins"]); ?></b><br />
Place: <b><?php print ($_GET["place"]); ?></b> of <b><?php print ($_GET["totalPlaces"]);
?></b><?php } ?>
</td></tr><tr><td colspan="2" align="center"><br><br>Powered by <a
href="http://gungame.net">GunGame.net</a></td></tr></table></td></tr></table>
</body>
</html>
Also, you will need to edit gg_winner_display_page located in cfg/gungame51/custom_addon_configs/gg_winner_display.cfg
Servers running this addon:
http://www.game-monitor.com/search.php? ... e=variable