mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-09-27 20:17:04 +02:00
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/
|
||||
obj/
|
||||
.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);
|
||||
|
||||
//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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue