Skip to content

Instantly share code, notes, and snippets.

View ajohnsen's full-sized avatar

Amund Johnsen ajohnsen

View GitHub Profile
// Little code to update every players VAC status on headshotbox
function getData(offset) {
console.log("Fetching new data, offset: " + offset);
$.ajax("http://" + window.location.host + "/api/players?limit=100&offset=" + offset).done(
function(data) {
if (data.player_count > offset) {
var players = data.players.map(
function(p) {
return p.steamid;