fixed weapon checking
This commit is contained in:
parent
a56b5f7b3f
commit
6c075cdafe
3 changed files with 3 additions and 7 deletions
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -1,4 +1,5 @@
|
||||||
bin/
|
bin/
|
||||||
obj/
|
obj/
|
||||||
.vs/
|
.vs/
|
||||||
.git
|
.git
|
||||||
|
.vscode/
|
||||||
5
.vscode/settings.json
vendored
5
.vscode/settings.json
vendored
|
|
@ -1,5 +0,0 @@
|
||||||
{
|
|
||||||
"discord.removeDetails": false,
|
|
||||||
"discord.removeLowerDetails": false,
|
|
||||||
"discord.removeRemoteRepository": true
|
|
||||||
}
|
|
||||||
|
|
@ -926,7 +926,7 @@ public partial class CS2_SimpleAdmin : BasePlugin, IPluginConfig<CS2_SimpleAdmin
|
||||||
string weaponName = command.GetArg(2);
|
string weaponName = command.GetArg(2);
|
||||||
|
|
||||||
//check if weapon is knife
|
//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.");
|
command.ReplyToCommand($"Cannot Give {weaponName} because it's illegal to be given.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue