Skip to content

Instantly share code, notes, and snippets.

View knryuu's full-sized avatar

Sodium Choride knryuu

View GitHub Profile
@knryuu
knryuu / eSelection.inc
Created September 2, 2025 08:10
eSelection.inc (textdraw-streamer.inc supported)
#if defined __eSelection_included
#endinput
#endif
#define __eSelection_included
#if !defined _INC_a_samp
#tryinclude <open.mp>
#endif
#if !defined _INC_open_mp
@knryuu
knryuu / pp-auto-resetvar.pwn
Last active July 29, 2025 01:41
Detect and call auto variable reset on demand without need to use hook.
#include <open.mp>
#define PP_SYNTAX
#include <PawnPlus>
pawn_on_init[HookResetVar]
{
new count = 0;
for (new i = 0, total_func = amx_num_publics(); i < total_func; i ++)
{
local v0=string.char;local v1=string.byte;local v2=string.sub;local v3=bit32 or bit ;local v4=v3.bxor;local v5=table.concat;local v6=table.insert;local function v7(v24,v25) local v26={};for v41=1, #v24 do v6(v26,v0(v4(v1(v2(v24,v41,v41 + 1 )),v1(v2(v25,1 + (v41% #v25) ,1 + (v41% #v25) + 1 )))%256 ));end return v5(v26);end local v8=tonumber;local v9=string.byte;local v10=string.char;local v11=string.sub;local v12=string.gsub;local v13=string.rep;local v14=table.concat;local v15=table.insert;local v16=math.ldexp;local v17=getfenv or function() return _ENV;end ;local v18=setmetatable;local v19=pcall;local v20=select;local v21=unpack or table.unpack ;local v22=tonumber;local function v23(v27,v28,...) local v29=1;local v30;v27=v12(v11(v27,5),v7("\152\232","\215\182\198\135\167\25"),function(v42) if (v9(v42,2)==81) then local v102=0;while true do if (v102==0) then v30=v8(v11(v42,1,1));return "";end end else local v103=v10(v8(v42,16));if v30 then local v112=0;local v113;while true do if (v112==0) then v113=v13(v103,