Skip to content

Commit

Permalink
Update v1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
NockyCZ committed Apr 27, 2024
1 parent 68708c9 commit 2692bc1
Show file tree
Hide file tree
Showing 22 changed files with 809 additions and 858 deletions.
22 changes: 11 additions & 11 deletions Custom Modes Examples/Only_AK47.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
<h1>IN THIS MODE, PLAYERS CAN USE ONLY AK47 AND CAN SHOOT ONLY HEADSHOT</h1>

- Add this in your `custom_modes.json` file and edit YOUR MODE ID for valid value
- Add this in your config file (`counterstrikesharp/configs/plugins/Deathmatch/Deathmatch.json`) and edit YOUR MODE ID for valid value
```
"YOUR MODE ID": {
"mode_name": "Only AK47 & Headshot",
"mode_interval": 300,
"armor": 1,
"only_hs": true,
"allow_knife_damage": false,
"random_weapons": false,
"allow_center_message": true,
"center_message_text": "<font class='fontSize-l' color='orange'>Only AK47 & Headshot</font>",
"primary_weapons": [
"Name": "Only AK47 & Headshot",
"Interval": 300,
"Armor": 1,
"OnlyHS": true,
"KnifeDamage": false,
"RandomWeapons": false,
"CenterMessageText": "<font class='fontSize-l' color='orange'>Only AK47 & Headshot</font>",
"PrimaryWeapons": [
"weapon_ak47"
],
"secondary_weapons": []
"SecondaryWeapons": [],
"Utilities": []
}
```

26 changes: 14 additions & 12 deletions Custom Modes Examples/Only_awp.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
<h1>IN THIS MODE, PLAYERS CAN USE ONLY AWP</h1>
<h1>IN THIS MODE, PLAYERS CAN USE ONLY AWP AND GET FLASH</h1>

- Add this in your `custom_modes.json` file and edit YOUR MODE ID for valid value
- Add this in your config file (`counterstrikesharp/configs/plugins/Deathmatch/Deathmatch.json`) and edit YOUR MODE ID for valid value
```
"YOUR MODE ID": {
"mode_name": "Only AWP",
"mode_interval": 300,
"armor": 1,
"only_hs": false,
"allow_knife_damage": false,
"random_weapons": false,
"allow_center_message": true,
"center_message_text": "<font class='fontSize-l' color='red'>Only AWP</font>",
"primary_weapons": [
"Name": "Only AWP",
"Interval": 300,
"Armor": 1,
"OnlyHS": false,
"KnifeDamage": false,
"RandomWeapons": false,
"CenterMessageText": "<font class='fontSize-l' color='red'>Only AWP</font>",
"PrimaryWeapons": [
"weapon_awp"
],
"secondary_weapons": []
"SecondaryWeapons": [],
"Utilities": [
"weapon_flashbang"
]
}
```
27 changes: 15 additions & 12 deletions Custom Modes Examples/Only_pistols.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
<h1>IN THIS MODE, PLAYERS CAN USE ALL PISTOLS EXPECT THE DEAGLE</h1>
<h1>IN THIS MODE, PLAYERS CAN USE ALL PISTOLS EXPECT THE DEAGLE AND GET GRENADE+FLASH</h1>

- Add this in your `custom_modes.json` file and edit YOUR MODE ID for valid value
- Add this in your config file (`counterstrikesharp/configs/plugins/Deathmatch/Deathmatch.json`) and edit YOUR MODE ID for valid value
```
"YOUR MODE ID": {
"mode_name": "Only Pistols",
"mode_interval": 300,
"armor": 1,
"only_hs": false,
"allow_knife_damage": true,
"random_weapons": false,
"allow_center_message": true,
"center_message_text": "<font class='fontSize-l' color='green'>Only Pistols</font>",
"primary_weapons": [],
"secondary_weapons": [
"Name": "Only Pistols",
"Interval": 300,
"Armor": 1,
"OnlyHS": false,
"KnifeDamage": true,
"RandomWeapons": false,
"CenterMessageText": "<font class='fontSize-l' color='green'>Only Pistols</font>",
"PrimaryWeapons": [],
"SecondaryWeapons": [
"weapon_usp_silencer",
"weapon_p250",
"weapon_glock",
Expand All @@ -21,6 +20,10 @@
"weapon_fiveseven",
"weapon_hkp2000",
"weapon_tec9"
],
"Utilities": [
"weapon_flashbang",
"weapon_hegrenade
]
}
```
Expand Down
22 changes: 11 additions & 11 deletions Custom Modes Examples/Only_rifles.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
<h1>IN THIS MODE, PLAYERS CAN USE ALL RIFLES EXPECT THE FAMAS AND GALILAR</h1>

- Add this in your custom_modes.json file and edit YOUR MODE ID for valid value
- Add this in your config file (`counterstrikesharp/configs/plugins/Deathmatch/Deathmatch.json`) and edit YOUR MODE ID for valid value
```
"YOUR MODE ID": {
"mode_name": "Only Rifles",
"mode_interval": 300,
"armor": 1,
"only_hs": false,
"allow_knife_damage": true,
"random_weapons": false,
"allow_center_message": true,
"center_message_text": "<font class='fontSize-l' color='orange'>Only Rifles</font>",
"primary_weapons": [
"Name": "Only Rifles",
"Interval": 300,
"Armor": 1,
"OnlyHS": false,
"KnifeDamage": true,
"RandomWeapons": false,
"CenterMessageText": "<font class='fontSize-l' color='orange'>Only Rifles</font>",
"PrimaryWeapons": [
"weapon_ak47",
"weapon_m4a1",
"weapon_m4a1_silencer",
"weapon_aug",
"weapon_sg556"
],
"secondary_weapons": []
"SecondaryWeapons": [],
"Utilities": []
}
```
22 changes: 11 additions & 11 deletions Custom Modes Examples/Only_shotguns.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
<h1>IN THIS MODE, PLAYERS CAN USE ALL SHOTGUNS AND PLAYERS CANT SELECT THEIR WEAPONS (PLAYER WILL GET RANDOM SHOTGUN EVERY SPAWN)</h1>

- Add this in your custom_modes.json file and edit YOUR MODE ID for valid value
- Add this in your config file (`counterstrikesharp/configs/plugins/Deathmatch/Deathmatch.json`) and edit YOUR MODE ID for valid value
```
"YOUR MODE ID": {
"mode_name": "Only Shotguns",
"mode_interval": 300,
"armor": 2,
"only_hs": false,
"allow_knife_damage": false,
"random_weapons": true,
"allow_center_message": true,
"center_message_text": "<font class='fontSize-l' color='purple'>Only Shotguns</font>",
"primary_weapons": [
"Name": "Only Shotguns",
"Interval": 300,
"Armor": 2,
"OnlyHS": false,
"KnifeDamage": false,
"RandomWeapons": true,
"CenterMessageText": "<font class='fontSize-l' color='purple'>Only Shotguns</font>",
"PrimaryWeapons": [
"weapon_mag7",
"weapon_sawedoff",
"weapon_nova",
"weapon_xm1014"
],
"secondary_weapons": []
"SecondaryWeapons": [],
"Utilities": []
}
```
51 changes: 0 additions & 51 deletions Lang/pl.json

This file was deleted.

50 changes: 0 additions & 50 deletions Lang/ua.json

This file was deleted.

34 changes: 16 additions & 18 deletions Lang/uz.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,20 @@
{
"Prefix": "{darkred}[Deathmatch]{default}",
"Knife_damage_disabled": "Ushbu rejimda pichoq bilan zararlanish oʻchirilgan!",
"New_mode": "{green}{0}{default} yangi rejim ishga tushirilmoqda!",
"PrimaryWeapon_Set": "Sizning asosiy qurolingiz {green}{0}{default} ga oʻzgartirildi",
"PrimaryWeapon_Disabled": "Sizning asosiy qurolingiz {green}{0}{default} ushbu rejimda oʻchirib qoʻyilgan! Boshqasini tanlang.",
"SecondaryWeapon_Set": "Sizning ikkinchi qurolingiz {green}{0}{default} ga oʻzgartirildi",
"SecondaryWeapon_Disabled": "Sizning ikkinchi qurolingiz {green}{0}{default} ushbu rejimda oʻchirib qoʻyilgan! Boshqasini tanlang.",
"Weapon_Disabled": "Ushbu rejimda qurol {green}{0}{default} oʻchirib qoʻyilgan!",
"Weapon_Is_Restricted": "Qurol {green}{0}{default} hozirda {darkred}{1}{default} bilan cheklangan (VIP: {darkred}{2}{default}) va uni sozlash imkonsiz.",
"Multiple_Weapon_Select": "Bu qurol nomi uchun bir nechta moslik topildi.",
"Weapon_Name_Not_Found": "'{green}{0}{default}' nomli qurol topilmadi.",
"Weapon_Select_Is_Disabled": "Ushbu rejimda siz qurollaringizni sozlay olmaysiz.",
"Weapon_Is_Already_Set": "'{green}{0}{default}' quroli allaqachon oʻrnatilgan.",
"Allowed_Primary_Weapons": "RUXSAT BERILGAN ASOSIY QUROLLAR:",
"Allowed_Secondary_Weapons": "RUXSAT BERILGAN IKKINCHI QUROLLAR:",
"Setup_Weapons_By_Command": "Siz qurollarni {green}/gun{default} buyrugʻi orqali olishingiz mumkin",
"New_Mode_Starts_In": "Yangi rejim {0} soniyadan keyin boshlanadi!",
"New_Mode_Started": "Yangi rejim boshlandi!",
"Chat.Prefix": "{darkred}[Deathmatch]{default}",
"Chat.NewModeStarted": "{green}{0}{default} yangi rejim ishga tushirilmoqda!",
"Chat.PrimaryWeaponSet": "Sizning asosiy qurolingiz {green}{0}{default} ga oʻzgartirildi",
"Chat.SecondaryWeaponSet": "Sizning ikkinchi qurolingiz {green}{0}{default} ga oʻzgartirildi",
"Chat.WeaponIsDisabled": "Ushbu rejimda qurol {green}{0}{default} oʻchirib qoʻyilgan!",
"Chat.WeaponIsRestricted": "Qurol {green}{0}{default} hozirda {darkred}{1}{default} bilan cheklangan (VIP: {darkred}{2}{default}) va uni sozlash imkonsiz.",
"Chat.MultipleWeaponsSelected": "Bu qurol nomi uchun bir nechta moslik topildi.",
"Chat.WeaponNotFound": "'{green}{0}{default}' nomli qurol topilmadi.",
"Chat.WeaponsSelectIsDisabled": "Ushbu rejimda siz qurollaringizni sozlay olmaysiz.",
"Chat.WeaponsIsAlreadySet": "'{green}{0}{default}' quroli allaqachon oʻrnatilgan.",
"Chat.ListOfAllowedWeapons": "RUXSAT BERILGAN ASOSIY QUROLLAR:",
"Chat.ListOfAllowedSecondaryWeapons": "RUXSAT BERILGAN IKKINCHI QUROLLAR:",
"Chat.SetupWeaponsCommand": "Siz qurollarni {green}/gun{default} buyrugʻi orqali olishingiz mumkin",
"Hud.KnifeDamageIsDisabled": "Ushbu rejimda pichoq bilan zararlanish oʻchirilgan!",
"Hud.NewModeStarting": "Yangi rejim {0} soniyadan keyin boshlanadi!",
"Hud.NewModeStarted": "Yangi rejim boshlandi!",
"Menu.Title": "Deathmatch menyusi",
"Menu.SoundsTitle": "Deathmatch menyusi • Ovozlar",
"Menu.FunctionsTitle": "Deathmatch menyusi • Funksiyalar",
Expand Down
44 changes: 44 additions & 0 deletions source/Common/Classes.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
using Vector = CounterStrikeSharp.API.Modules.Utils.Vector;

namespace Deathmatch
{
public partial class Deathmatch
{
public class ModeData
{
public required string Name { get; set; }
public required int Interval { get; set; }
public required int Armor { get; set; }
public required bool OnlyHS { get; set; }
public required bool KnifeDamage { get; set; }
public required bool RandomWeapons { get; set; }
public required string CenterMessageText { get; set; }
public List<string>? PrimaryWeapons { get; set; }
public List<string>? SecondaryWeapons { get; set; }
public List<string>? Utilities { get; set; }
}

public class DeathmatchPlayerData
{
public required string PrimaryWeapon { get; set; }
public required string SecondaryWeapon { get; set; }
public required bool SpawnProtection { get; set; }
public required int KillStreak { get; set; }
public required bool KillSound { get; set; }
public required bool HSKillSound { get; set; }
public required bool KnifeKillSound { get; set; }
public required bool HitSound { get; set; }
public required bool OnlyHS { get; set; }
public required bool HudMessages { get; set; }
public required Vector LastSpawn { get; set; }
public required int OpenedMenu { get; set; }
}

public class RestrictData
{
public int CT { get; set; }
public int T { get; set; }
public int Global { get; set; }
}
}
}
Loading

0 comments on commit 2692bc1

Please sign in to comment.