36 lines
826 B
SourcePawn
36 lines
826 B
SourcePawn
#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;
|
|
}
|