This is the stock I made for it
Code:
stock void RemoveWeapons(int client, bool leavec4 = true)
{
int primary = GetPlayerWeaponSlot(client, 0);
int secondary = GetPlayerWeaponSlot(client, 1);
int knife = GetPlayerWeaponSlot(client, 2);
if (primary > 0)
{
RemovePlayerItem(client, primary);
RemoveEdict(primary);
}
if (secondary > 0)
{
RemovePlayerItem(client, secondary);
RemoveEdict(secondary);
}
if (!leavec4)
{
int c4medi = GetPlayerWeaponSlot(client, 4);
if (c4medi > 0)
{
RemovePlayerItem(client, c4medi);
RemoveEdict(c4medi);
}
}
if (knife == -1)
{
GivePlayerItem(client, "weapon_knife");
}
}
If you want to keep that one, just add
Code:
int knife = GetPlayerWeaponSlot(client, 2);
if (knife == -1)
{
GivePlayerItem(client, "weapon_knife");
}
before the end and it should give the knife back.