This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
############################################################################### | |
# The MIT License | |
# | |
# Copyright 2012-2014 Jakub Jirutka <[email protected]>. | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# create a new chain | |
iptables -N SAMPQUERY | |
# check that incomming packet is a samp query packet and divert to the new chain | |
# this inserts the rule as the first in the chain, but should probably be a bit further down (e.g. after checking lo interface) | |
iptables -I INPUT -p udp \! -f -m udp --dport 7777 -m conntrack --ctstate NEW,ESTABLISHED -m u32 --u32 "0x0>>0x16&0x3c@0x8=0x53414d50" -j SAMPQUERY | |
# only allow connection from ephemeral source ports | |
# connection attempts from ports outside this range are likely rogue clients | |
iptables -A SAMPQUERY -p udp --sport 49152:65535 -m conntrack --ctstate NEW,ESTABLISHED -j ACCEPT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <a_samp> | |
#include <rotations.inc> | |
main() {} | |
// for debug | |
static PlayerText:MessageTextdraw[MAX_PLAYERS]; | |
static bool:AP = false; | |
static TargetAlt = 1000; // 1000ft - low altitude cruise |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import qrcode from "qrcode-generator"; | |
async function generateQRCodeForSamp(context) { | |
let typeNumber = 4; | |
let errorCorrectionLevel = 'L'; | |
let qr = qrcode(typeNumber, errorCorrectionLevel); | |
qr.addData(context); | |
qr.make(); | |
let newQRCode = ""; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define INVALID_DIALOG_ID (cellmin) | |
static stock | |
gPrev[MAX_PLAYERS] = { INVALID_DIALOG_ID, ... }, | |
gCur[MAX_PLAYERS] = { INVALID_DIALOG_ID, ... }, | |
bool:gOPDR = true; | |
hook function ShowPlayerDialog(playerid, dialogid, style, const caption[], const info[], const button1[], const button2[]) | |
{ | |
gCur[playerid] = dialogid; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Benjamin Williams | |
## <[email protected]> | |
## -- | |
## bipltool.py/pyc | |
import os | |
import sys | |
import struct | |
import math |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Mozilla Public License Version 2.0 | |
Copyright (c) 2018 IllidanS4 | |
This Source Code Form is subject to the terms of the Mozilla Public License, | |
v. 2.0. If a copy of the MPL was not distributed with this file, You can | |
obtain one at https://mozilla.org/MPL/2.0/. | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Uncrustify-0.68-59-5813ad32 | |
# | |
# General options | |
# | |
# The type of line endings. | |
# | |
# Default: auto | |
newlines = auto # lf/crlf/cr/auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
build: | |
image: | |
name: southclaws/sampctl:latest | |
entrypoint: [""] | |
tags: [pawn] | |
artifacts: | |
paths: | |
- gamemodes/barp.amx | |
cache: | |
paths: |