User Tools

Site Tools

Necessary funds for existence (63%)
?
VarnaLab is funded only by donations and membership fees
This meter shows whether the Lab has the necessary financial resources to operate for the next 12 months.
Currently, monthly expenses are approximately 435€ / $450.
As of now, the information is updated manually and there might be a delay, but in the future we plan to automate it.

en:gaming
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


Last revision
en:gaming [2022/06/10 21:59] – created radev
Line 1: Line 1:
 +====== Servers ======
  
 +{{:cs_logo.png?nolink|}}
 +==== Counter-Strike ====
 +
 +  * **Server:** <html><span class='cs_name'>N/A</span></html> <html><span class='cs_status'>loading...</span></html>
 +  * **Game:** [[https://store.steampowered.com/app/10/CounterStrike/|Counter-Strike 1.6]]
 +  * **IP Address:** cs.varnalab.com:27015
 +  * **Players:** <html><span class='cs_players'>N/A</span> / <span class='cs_max'>N/A</span></html>
 +  * **Maps:** <html><span class='cs_map'>N/A</span></html>
 +  * [[https://cs.varnalab.com|Player statistics]]
 +
 +{{:hl-logo.png?nolink|}}
 +==== Half-Life ====
 +
 +  * **Server:** <html><span class='hl_name'>N/A</span></html> <html><span class='hl_status'>loading...</span></html>
 +  * **Game:** [[https://store.steampowered.com/app/70/HalfLife/|Half-Life]]
 +  * **IP Address:** hl.varnalab.com:27016
 +  * **Players:** <html><span class='hl_players'>N/A</span> / <span class='hl_max'>N/A</span></html>
 +  * **Map:** <html><span class='hl_map'>N/A</span></html>
 +  * * [[https://hl.varnalab.com|Player statistics]]
 +
 +{{:mc_logo.png?nolink|}}
 +
 +==== Minecraft ====
 +
 +  * **Server:** VarnaLab Minecraft <html><span class='mc_status'>loading...</span></html>
 +  * **Game:** Minecraft
 +  * **IP Address:** mc.varnalab.com
 +  * **Version:** <html><span class='mc_version'>loading...</span></html>
 +  * **Players:** <html><span class='mc_players'>loading...</span></html>
 +
 +//Invite only. You can ask for invite in our [[https://discord.varnalab.org|Discord]] channel!//
 +
 +<html>
 +<script src="https://mcapi.us/scripts/minecraft.min.js"></script>
 +<script>
 +    MinecraftAPI.getServerStatus('mc.varnalab.com', {
 +        port: 25565 // optional, only if you need a custom port
 +    }, function (err, data) {
 +        if (err) {
 +            return document.querySelector('.mc_status').innerHTML = '(Error loading data)';
 +        }
 +
 +        document.querySelector('.mc_status').innerHTML = data.online ? '&#128994;' : '&#128308;';
 +        document.querySelector('.mc_version').innerHTML = data.server.name;
 +        document.querySelector('.mc_players').innerHTML = data.players.now + '/' + data.players.max;
 +    });
 +</script>
 +<script>
 +  async function gameStatus(){
 +    let gamesApi = 'https://api.ivaka.net/gaming/';
 +    let response = await fetch(gamesApi);
 +    let valve    = await response.json();
 +
 +    if(valve.cs.status > 0){
 +      document.querySelector('.cs_status').innerHTML = valve.cs.status ? '&#128994;' : '&#128308;';
 +      document.querySelector('.cs_name').innerHTML = valve.cs.name;
 +      document.querySelector('.cs_players').innerHTML = valve.cs.players;
 +      document.querySelector('.cs_max').innerHTML = valve.cs.max;
 +      document.querySelector('.cs_map').innerHTML = valve.cs.map;
 +    }
 +    if(valve.hl.status > 0){
 +      document.querySelector('.hl_status').innerHTML = valve.hl.status ? '&#128994;' : '&#128308;';
 +      document.querySelector('.hl_name').innerHTML = valve.hl.name;
 +      document.querySelector('.hl_players').innerHTML = valve.hl.players;
 +      document.querySelector('.hl_max').innerHTML = valve.hl.max;
 +      document.querySelector('.hl_map').innerHTML = valve.hl.map;
 +    }
 +  }
 +  gameStatus();
 +</script>
 +</html>
en/gaming.txt · Last modified: 2022/10/11 06:13 by hellmare

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki