FOR cs2 you need metamod source and cssharp
CounterStrikeSharp allows you to write server plugins in C# for Counter-Strike 2/Source2/CS2 - roflmuffin/CounterStrikeSharp
github.com
this is the plugin :
Release 1.3.0 · CS2Plugins/WeaponRestrict
and this is the config file:
// This configuration was automatically generated by CounterStrikeSharp for plugin 'WeaponRestrict', at 2024/08/07 06:00:10
{
"MessagePrefix": "{Color.Orange}[WeaponRestrict] ",
"RestrictMessage": "{Color.LightPurple}{0}{Color.Default} is currently restricted to {Color.LightRed}{1}{Color.Default} per team.",
"DisabledMessage": "{Color.LightPurple}{0}{Color.Default} is currently {Color.LightRed}disabled{Color.Default}.",
"WeaponQuotas": {},
"WeaponLimits": {
"weapon_awp": 2,
"weapon_g3sg1": 0,
"weapon_xm1014": 0,
"weapon_scar20": 0
},
"DoTeamCheck": true,
"AllowPickup": false,
"VIPFlag": "
@css/vip",
"MapConfigs": {
"awp_lego_2": {
"WeaponQuotas": {
"weapon_awp": 1
},
"WeaponLimits": {
"weapon_deagle": 0
},
"awp.*": {}
},
"awp_snowks2023_gm_cs2": {
"WeaponQuotas": {
"weapon_awp": 1
},
"WeaponLimits": {},
"awp.*": {}
}
},
"ConfigVersion": 2
}