mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-02-20 03:07:17 +00:00
fixed weapon checking
This commit is contained in:
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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user