Initial commit

This commit is contained in:
2025-04-15 22:27:20 -04:00
parent 5b7b68f81f
commit 771d8fe8e8
597 changed files with 149544 additions and 0 deletions

30
scripting/enttest.sp Normal file
View File

@@ -0,0 +1,30 @@
#include <sourcemod>
#include <sdktools>
#include <sdkhooks>
static char PLUGIN_VERSION[8] = "1.0.0 ";
public Plugin myinfo = {
name = "Fartsy's Entity Data",
author = "Fartsy",
description = "Fuck around and find out",
version = PLUGIN_VERSION,
url = "https://forums.firehostredux.com"
};
public void OnPluginStart(){
HookEntityOutput("trigger_multiple", "OnStartTouch", MyOutput);
}
public Action MyOutput(const String:output[], caller, activator, Float:delay){
PrintToChatAll("Hello, %N triggered me!", IsValidClient(activator) ? activator : "Something else...");
return Plugin_Stop;
}
bool IsValidClient(client, bool nobots = true)
{
if (client <= 0 || client > MaxClients || !IsClientConnected(client) || (nobots && IsFakeClient(client)))
{
return false;
}
return IsClientInGame(client);
}