Skip to content

Instantly share code, notes, and snippets.

View ziggi's full-sized avatar
🏠
Working from home

Sergei Marochkin ziggi

🏠
Working from home
View GitHub Profile
@ziggi
ziggi / sq_api_example.pwn
Last active July 3, 2018 15:09 — forked from Westie/gist:234209
SampQueryAPI (for sa-mp 0.3.7) example
<?php
include "SampQueryAPI.php";
$query = new SampQueryAPI('127.0.0.1', '7777');
if ($query->isOnline()) {
$aInformation = $query->getInfo();
$aServerRules = $query->getRules();