Skip to content

Instantly share code, notes, and snippets.

@Echo Off
:Start
If [%1==[ Goto :EOF
PushD %~pd1
"C:\Program Files\7-Zip\7z.exe" u -tbzip2 %~nx1.bz2 %1
Shift
PopD
Goto Start
@shanapu
shanapu / pure_server_whitelist.txt
Created April 8, 2017 10:58
pure_server_whitelist.txt
whitelist
{
//
// 2 modifiers are allowed on file specifications:
//
// allow_from_disk - do not check the file signature
// check_crc - server does file signature checks on the client's file to make sure it matches
//
// The default modifier on all files is allow_from_disk.
@shanapu
shanapu / gist:7f437fbc14d5685931fc9a127d93957d
Created April 13, 2017 19:04
spawn protect + teamcolor
#include <sourcemod>
#include <sdktools>
#include <cstrike>
#define VERSION "1.5 + teamcolors"
#pragma semicolon 1
new TeamSpec;
new TeamUna;
new bool:NoTeams = false;
//M4A1
public Action Command_m4a1(int client,int args)
{
//Declaring the client's money
int cmoney = GetClientMoney(client);
//Declaring gunprice that links to cvar
int gunprice = g_M4Price.IntValue;
if (cmoney > gunprice && g_iSpam[client] < GetTime())// && GetConVarInt(g_DropPri)!=1)
{
https://github.com/Bara20/TroubleinTerroristTown/blob/master/addons/sourcemod/scripting/ttt/ttt_grabbermod.sp#L272-L284
int g_bIsClientGrabbing[MAXPLAYERS + 1] = { false , ... };
if (buttons & IN_USE)
{
if (IsPlayerAlive(client) && !ValidGrab(client))
{
Command_Grab(client);
#include <sourcemod>
#include <sdktools>
#pragma semicolon 1
#define PLUGIN_VERSION "3.1*edit"
new Handle:g_FFA;
new Handle:g_HealthAdd;
new Handle:g_HealthLimit;
new Handle:g_HealthAddEnable;
#include <sourcemod>
#include <sdktools>
#define PLUGIN_VERSION "2.0"
public Plugin:myinfo =
{
name = "Mute All",
author = "unknown - edit by shanapu",
description = "Mutes all players",
<?php
// This file is part of MostActive sourcemod plugin.
//
// Copyright (C) 2017 MostActive Dev Team
// https://github.com/Franc1sco/MostActive/graphs/contributors
//
// This program 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.
//
@shanapu
shanapu / VoteRestrictSniper.sp
Last active August 20, 2017 02:09
Vote Restrict Sniper
/*
* Vote Restrict Sniper
* by: shanapu
*
* Copyright (C) 2017 Thomas Schmidt (shanapu)
*
* This program is free software; you can redistribute it and/or modify it under
* the terms of the GNU General Public License, version 3.0, as published by the
* Free Software Foundation.
*
L 09/10/2017 - 00:21:55: [SM] Exception reported: Entity -1 (-1) is invalid
L 09/10/2017 - 00:21:55: [SM] Blaming: MyJailbreak\oitc.smx
L 09/10/2017 - 00:21:55: [SM] Call stack trace:
L 09/10/2017 - 00:21:55: [SM] [0] GetEntProp
L 09/10/2017 - 00:21:55: [SM] [1] Line 1096, addons/sourcemod/scripting/MyJailbreak/oitc.sp::Timer_GiveAmmo
L 09/10/2017 - 00:21:55: [SM] Exception reported: Entity -1 (-1) is invalid
L 09/10/2017 - 00:21:55: [SM] Blaming: MyJailbreak\oitc.smx
L 09/10/2017 - 00:21:55: [SM] Call stack trace:
L 09/10/2017 - 00:21:55: [SM] [0] GetEntProp
L 09/10/2017 - 00:21:55: [SM] [1] Line 1096, addons/sourcemod/scripting/MyJailbreak/oitc.sp::Timer_GiveAmmo