Skip to content

Instantly share code, notes, and snippets.

View spacemud's full-sized avatar
👨‍⚕️

spacemud

👨‍⚕️
View GitHub Profile

Keybase proof

I hereby claim:

  • I am spacemud on github.
  • I am spacemud (https://keybase.io/spacemud) on keybase.
  • I have a public key whose fingerprint is D9DD 5CDD 4879 F5A1 0A9C 276D 93AE FDC4 F739 94FA

To claim this, I am signing this object:

alias xmlogin {
if (!$0 || $0 > 1) {
echo -a Syntax: /xmlogin [password]
halt
}
set %login
set %password $1
whois xM_1
}
local name = "xmlogin.lua"
local version = "1.0"
local desc = "Simplify logging in to the xMovie IRC echo bots with this script"
hexchat.register(name, version, desc)
local function cmd_xmlogin(word, eol)
if not word[2] then
hexchat.print("Syntax: /xmlogin [password]")
return hexchat.EAT_HEXCHAT
@spacemud
spacemud / .gitlab-ci.yml
Created January 12, 2019 21:19 — forked from Southclaws/.gitlab-ci.yml
sampctl+gitlab=ci/cd 🎉
build:
image:
name: southclaws/sampctl:latest
entrypoint: [""]
tags: [pawn]
artifacts:
paths:
- gamemodes/barp.amx
cache:
paths:
@spacemud
spacemud / uncrustify.cfg
Created January 12, 2019 21:42 — forked from Southclaws/uncrustify.cfg
Uncrustify configuration for the Pawn language.
# Uncrustify-0.68-59-5813ad32
#
# General options
#
# The type of line endings.
#
# Default: auto
newlines = auto # lf/crlf/cr/auto
@spacemud
spacemud / sa_grass.pwn
Created January 30, 2019 20:56 — forked from IS4Code/sa_grass.pwn
Foliage and other procedurally generated objects for SA-MP
This file has been truncated, but you can view the full file.
/*
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/.
*/
@spacemud
spacemud / bipltool-batch.py
Created January 30, 2019 21:22 — forked from Vince0789/bipltool-batch.py
An IPL decompiler for binary IPL data files for gta:sa.
## Benjamin Williams
## <eeu222@bangor.ac.uk>
## --
## bipltool.py/pyc
import os
import sys
import struct
import math
#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;
@spacemud
spacemud / qrcodesamp.js
Created October 26, 2020 11:03 — forked from AmyrAhmady/qrcodesamp.js
a simple js code for samp-node
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 = "";
#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