Server Status

Host your own server and communicate with server operators.
1 post Page 1 of 1 First unread post
TejT
Deuce
Posts: 4
Joined: Sat Feb 07, 2015 10:31 am


Hi!

Status.html file I would add a few statistics.
If the file looks like this:
Spoiler:
<html>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<head></head>
<body style="font-family: fixedsys, consolas, monospace;">
<p>Witaj! Znajdujesz sie na podgladzie statusu serwera {{server.name}}.
Current uptime: {{(reactor.seconds() - server.start_time)|int}} seconds.</p>
<p>The server is currently running {{server.map_info.name}} by {{server.map_info.author}}.</p>
<p>Current players: {{server.connections|count}}/{{server.max_players}}.</p>
<style type="text/css">

table.playerlist {
border-width: 1px;
border-spacing: 2px;
border-style: outset;
border-collapse: separate;
}
table.playerlist th {
border-width: 1px;
padding: 1px;
border-style: inset;
}
table.playerlist td {
border-width: 1px;
padding: 1px;
border-style: inset;
}
</style>

<table class="playerlist">
<tbody>
<tr>
<td>Nick</td>
<td>Ping</td>
<td>Team</td>
<td>Wyniki</td>
</tr>
{% for player in server.players.values() %}
<tr>
<td>{{player.name}}</td>
<td>{{player.latency}}</td>
<td>{{player.team.name}}</td>
<td>{{player.kills}}</td>

</tr>
{% endfor %}
</tbody>
</table>
<p>Enabled scripts: {{ ', '.join(server.config['scripts'])}}.</p>
<p>Current map overview:</p>
<img src="" />
</body>
</html>
How to add "accuracy", the number of deaths, the current weapons, the period of absence (afk)?

And why does not display a preview of the map?

Please help.
1 post Page 1 of 1 First unread post
Return to “Servers”

Who is online

Users browsing this forum: No registered users and 40 guests