Skip to content

Instantly share code, notes, and snippets.

View TheByKotik's full-sized avatar
😋
Be happy! Don't worry, be happy now!

V TheByKotik

😋
Be happy! Don't worry, be happy now!
View GitHub Profile
// *************************************************************************
// This file is part of SourceBans++.
//
// Copyright (C) 2014-2016 SourceBans++ Dev Team <https://github.com/sbpp>
//
// SourceBans++ is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, per version 3 of the License.
//
// SourceBans++ is distributed in the hope that it will be useful,
// *************************************************************************
// This file is part of SourceBans++.
//
// Copyright (C) 2014-2016 SourceBans++ Dev Team <https://github.com/sbpp>
//
// SourceBans++ is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, per version 3 of the License.
//
// SourceBans++ is distributed in the hope that it will be useful,
CREATE DATABASE IF NOT EXISTS `test`;
USE `test`;
DELIMITER //
CREATE PROCEDURE `StoredProc`(
IN `Param1` INT
)
READS SQL DATA
SQL SECURITY INVOKER
BEGIN
#pragma newdecls required
#pragma semicolon 1
Plugin myinfo = {
name = "Test",
author = "",
description = "",
version = "", };
stock Database g_dbTest;
public void SelectUnbanCallback (Database db, DBResultSet results, const char[] error, DataPack dataPack)
{
int admin;
char arg[30], adminAuth[30], unbanReason[256];
char reason[128];
dataPack.Reset();
admin = dataPack.ReadCell();
dataPack.ReadString(reason, sizeof(reason));
dataPack.ReadString(arg, sizeof(arg));
#
#Console initialized.
Setting breakpad minidump AppID = 740
#Using breakpad minidump system 740/13735.1043.DC
Using breakpad crash handler
Forcing breakpad minidump interfaces to load
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#pragma semicolon 1
#define PLUGIN_AUTHOR "RumbleFrog, SourceBans++ Dev Team"
#define PLUGIN_VERSION "1.1.0 (debug only version)"
#include <sourcemod>
#include <sourcebanspp>
#include <sourcecomms>
#include <SteamWorks>
#include <smjansson>
#pragma newdecls required
#pragma semicolon 1
#include <sourcemod>
#include <regex>
public void OnPluginStart()
{
RegServerCmd( "sm_test", TEST );
}
#pragma newdecls required
#pragma semicolon 1
#include <sourcemod>
public void OnPluginStart()
{
RegServerCmd( "sm_test", TEST );
}
Action TEST (int args)
#pragma newdecls required
#pragma semicolon 1
#define f_value 1
#define f_array { 2, 3, 4 }
#define f_string "567890"
#define s_string "098765"
#define s_array { 4, 3, 2 }
#define s_value 1