fixed weapon checking

This commit is contained in:
BuildTools
2023-12-10 01:33:59 +03:30
parent a56b5f7b3f
commit 6c075cdafe
3 changed files with 3 additions and 7 deletions

3
.gitignore vendored
View File

@@ -1,4 +1,5 @@
bin/
obj/
.vs/
.git
.git
.vscode/

View File

@@ -1,5 +0,0 @@
{
"discord.removeDetails": false,
"discord.removeLowerDetails": false,
"discord.removeRemoteRepository": true
}

View File

@@ -926,7 +926,7 @@ public partial class CS2_SimpleAdmin : BasePlugin, IPluginConfig<CS2_SimpleAdmin
string weaponName = command.GetArg(2);
//check if weapon is knife
if(weaponName.Contains("knife") || weaponName.Contains("bayonet")){
if(weaponName.Contains("_knife") || weaponName.Contains("bayonet")){
command.ReplyToCommand($"Cannot Give {weaponName} because it's illegal to be given.");
return;
}