PhoenixRP - Police Count

node v10.24.1
version: 4.0.0
endpointsharetweet
const gamedig = require("gamedig") gamedig.query({ type: "arma3", host: "s1.phoenixrp.co.uk" }).then((data) => { NHS = 0 data.players.forEach(player => { if(player.name.includes("[NHS]")) { NHS = NHS + 1 } }); if(NHS >= 10) { console.log("Need more NHS online") console.log("Medics Online: " + NHS) } else { console.log("You can't play as rebel") console.log("Officers Online: " + NHS) } })
Loading…

no comments

    sign in to comment