Skip to content

Instantly share code, notes, and snippets.

View Hexer10's full-sized avatar
🏠
Working from home

Mattia Hexer10

🏠
Working from home
View GitHub Profile
#include <sourcemod>
#include <sdktools>
#include <cstrike>
#define PLUGIN_NAME "ConVar Enforcer"
#define PLUGIN_VERSION "1.0"
#pragma semicolon 1
#pragma newdecls required
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="scaffolded-by" content="https://github.com/google/stagehand">
<title>web_test</title>
<link rel="stylesheet" href="styles.css">
void main() {
assert(identical(score(''), 0));
assert(identical(score('A'), 1));
assert(identical(score('AED'), 4));
assert(identical(score('DG'), 4));
assert(identical(score('BCMP'), 12));
assert(identical(score('QA'), 11));
}
int score(String str) {
import 'dart:convert';
void main(){
List list = [{'foo' : 'bar'}, {'foo2' : 'bar2'}];
print(json.encode(list));
}
import 'dart:io';
import 'dart:convert';
import 'dart:typed_data';
Socket socket;
int _id = 1;
const int SERVERDATA_AUTH = 3;
const int SERVERDATA_AUTH_RESPONSE = 2;
const int SERVERDATA_EXECCOMMAND = 2;
@Hexer10
Hexer10 / Colors.txt
Last active October 26, 2023 12:03
Colors list
CSGO/CSS SUPPORTED:
"default"
"teamcolor"
"red"
"lightred"
"darkred"
"bluegrey"
"blue"
#include <sourcemod>
#include <sdktools>
#include <sdkhooks>
#include <cstrike>
#include <mystocks>
#include <warden>
#include <myjbwarden>
#define PLUGIN_AUTHOR "Hexah"
#define PLUGIN_VERSION "1.0"
ArrayList LrArray;
ArrayList LrArray2;
public void OnPluginStart()
{
LrArray = new ArrayList(32);
AddCommandListener(OnSay, "say");
AddCommandListener(OnSay, "say_team");
AddCommandListener(OnCmd);
public void OnPluginStart()
{
AddCommandListener(OnSay, "say");
AddCommandListener(OnSay, "say_team");
AddCommandListener(OnCmd);
}
public Action OnSay(int client, const char[] command, int args)
{
char sCmd[32];
#include <sourcemod>
#include <sdkhooks>
#include <sdktools>
#include <hexstocks>
#pragma semicolon 1
#pragma newdecls required