Initial: шаблон CS:GO плагина

This commit is contained in:
2026-05-01 06:46:39 +03:00
commit 835af37fd4
3 changed files with 60 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
#include <sourcemod>
#include <sdktools>
#pragma semicolon 1
#pragma newdecls required
#define PLUGIN_VERSION "1.0.0"
public Plugin myinfo =
{
name = "Plugin Template",
author = "deidara",
description = "Шаблон плагина",
version = PLUGIN_VERSION,
url = "https://37.228.88.57/deidara"
};
public void OnPluginStart()
{
RegConsoleCmd("sm_hello", Cmd_Hello, "Тестовая команда");
PrintToServer("[Template] Плагин загружен v%s", PLUGIN_VERSION);
}
public Action Cmd_Hello(int client, int args)
{
if (client == 0)
{
PrintToServer("Привет от сервера!");
return Plugin_Handled;
}
PrintToChat(client, " \x04[Template]\x01 Привет, \x03%N\x01!", client);
return Plugin_Handled;
}