samp.directory
← Scripts e bibliotecas

ufteers/samp-query-info

💾 NodeJS script for obtaining public information about SA-MP server.

Ferramenta★ 9atualizado set. de 2018UnlicenseJavaScriptArquivado
Abrir no GitHub

O autor arquivou este repositório, então ele não é mais mantido.

README.md

💾 NodeJS script for obtaining public information about SA-MP server.

Usage

Get all info about server
getServerInfo("127.0.0.1", 7777, function(error, response)
{
    console.log(response);
});

Instead of IP, you can also use the URL. As example server.sa-mp.com.

Sample response
{
  passworded: false,
  players: 1,
  maxplayers: 10,
  servername: 'SA-MP Unofficial server',
  gamemodename: 'freeroam',
  language: 'English',
  properties:
  { 
     artwork: 'Yes',
     lagcomp: 'On',
     mapname: 'San Andreas',
     version: '0.3.DL-R1',
     weather: '7',
     weburl: 'sa-mp.com',
     worldtime: '00:00' 
  },
  playerlist:
  [
      { id: 0, name: 'ufteers', score: 1, ping: 11 }
  ]
}
Other functions
getServerProperties(...)
getServerOnline(...)
getServerMaxPlayers(...)
getServerName(...)
getServerGamemodeName(...)
getServerLanguage(...)
getServerVersion(...)
getServerWeather(...)
getServerWebSite(...)
getServerWorldTime(...)
getServerPlayers(...)
getServerPlayersDetailed(...)
getServerPing(...)

Soon

  • Add support for cyrillic letters in texts

nodejssa-mpsa-mp-server

Esta página é montada com o que o GitHub publica sobre o repositório. O samp.directory não hospeda o código. Avisar de um problema com esta página

ufteers/samp-query-info: Ferramenta de SA-MP | samp.directory