Skip to content

Instantly share code, notes, and snippets.

#include <sourcemod>
#include <sdktools>
#include <tf2>
#include <tf2_stocks>
#include <mystocks>
//Check Next Test
/*
*/
public void At_Player_Death(Handle event, const char[] name, bool dontBroadcast)
{
CreateTimer(0.1, DeleteOverlay, GetEventInt(event, "userid"));
}
@shanapu
shanapu / sws.md
Last active October 3, 2017 16:45

Only pass userid instead of clientid in timer
✅ good:

		CreateTimer(0.1, Timer_Example, GetClientUserId(client));
	}

	public Action Timer_Example(Handle tmr, int userid)
	{
		int client = GetClientOfUserId(userid);
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
?>
<?php
// *************************************************************************
// This file is part of MostActive sourcemod plugin.
//
/*
* Prisoner Rename Plugin.
* by: shanapu
* https://github.com/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.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
@shanapu
shanapu / dookie.sp
Last active November 26, 2017 13:10
dookie.sp with duck/crouch support
#include <sourcemod>
#include <sdktools>
#define COLLISION_GROUP_DEBRIS_TRIGGER 2
public Plugin myinfo =
{
name = "CS:GO Dookie",
author = "Tom Delebo, edit shanapu",
description = "Drop a steaming hot turdburger on scrubs! - fakemodel & teabag support",
@shanapu
shanapu / myjailshop_tacticalshield.sp
Created December 10, 2017 12:49
myjailshop_tacticalshield.sp
/*
* MyJailShop - Shield Item Module.
* by: shanapu
* https://github.com/shanapu/MyJailShop/
* https://github.com/Keplyx/TacticalShield
*
* This file is part of the MyJailShop SourceMod Plugin.
*
* 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
@shanapu
shanapu / bl.inc
Created December 12, 2017 11:53
lol just found that file :D
This file has been truncated, but you can view the full file.
#define block decl String:jio[1][1]; for (new kl = ExplodeString(jio[0], "-", jio, 1, 1), io; io < kl; io++) break;
lolo()
{
olol();
}
olol()
{
lolo();
@shanapu
shanapu / gist:425fb04dd9fa14efb680e46f6441bc57
Last active December 21, 2017 07:19
for pandazz. SeverCommand on last player alive
#include<cstrike>
public void OnPluginStart()
{
HookEvent("player_death", Event_PlayerDeath);
}
public void Event_PlayerDeath(Event event, char[] name, bool dontBroadcast)
{
if (GetAlivePlayersTeamCount(CS_TEAM_T) == 1)
bind "KP_INS" "buy vesthelm;buy vest"
bind "KP_END" "buy tec9; buy cz75a"
bind "KP_DOWNARROW" "buy p90"
bind "KP_PGDN" "buy deagle"
bind "KP_LEFTARROW" "buy famas;buy galilar"
bind "KP_5" "buy ak47;buy m4a1"
bind "KP_RIGHTARROW" "buy aug;buy sg556"
bind "KP_HOME" "buy negev"
bind "KP_UPARROW" "buy scar20;buy g3sg1"
bind "KP_PGUP" "buy awp"