Advertisement
Guest User

Untitled

a guest
Feb 25th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function (callback: (err, maxplayer, maxspec) => any) {
  2.     var rpc = gbxremote.createClient(5000, '88.99.115.61');
  3.     rpc.on('connect', function() {
  4.         rpc.query('GetServerOptions').then(function (res) {
  5.             // maxplayer = res["CurrentMaxPlayers"];
  6.             // maxspec = res["CurrentMaxSpectators"];
  7.             callback(null, maxplayer, maxspec);
  8.         })
  9.         rpc.terminate();
  10.     });
  11. };
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement