Skip to content

Commit 0e8cdab

Browse files
authored
Update VIP.cs
1 parent 95093cb commit 0e8cdab

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

VIP.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -550,10 +550,12 @@ private void Give_Values(CCSPlayerController controller)
550550
}
551551
if (LastUsed[client] != 2 || LastUsed[client] != 3)
552552
{
553-
if (CheckIsHaveWeapon("healthshot", controller) == false)
553+
foreach (var weapon in Config.SpawnItems)
554554
{
555-
controller.GiveNamedItem("weapon_healthshot");
556-
controller.GiveNamedItem("item_assaultsuit");
555+
if (CheckIsHaveWeapon($"{weapon}", controller) == false)
556+
{
557+
controller.GiveNamedItem($"{weapon}");
558+
}
557559
}
558560
}
559561
}

0 commit comments

Comments
 (0)