First commit

This commit is contained in:
2026-07-07 16:36:30 +02:00
commit b0669c4f4d
9 changed files with 545 additions and 0 deletions

38
plugin.cs Normal file
View File

@@ -0,0 +1,38 @@
using CounterStrikeSharp.API.Core;
namespace Porning;
public class Porning : BasePlugin
{
public override string ModuleName => "p0rning";
public override string ModuleVersion => "0.0.1";
private static readonly ulong SpawnedWeaponId = 16384; // Randomly chosen
private readonly AdminCommands adminCommands;
private readonly PlayerCommands playerCommands;
public Porning()
{
adminCommands = new AdminCommands(this);
playerCommands = new PlayerCommands(this);
}
public override void Load(bool hotReload)
{
new Logger().Info("Loaded!");
registerAdminCommands();
registerPlayerCommands();
}
private void registerAdminCommands()
{
AddCommand("css_amap", "Change map", adminCommands.onMap);
AddCommand("css_abhop", "Toggle bhop", adminCommands.onBhop);
AddCommand("css_ainfo", "Broadcast message", adminCommands.onInfo);
}
private void registerPlayerCommands()
{
AddCommand("css_help", "Help", playerCommands.onHelp);
AddCommand("css_map", "Vote Map", playerCommands.onMapVote);
}
}