Hello,
I have problem with model knife change.
My code change model when player use button "R" (reload) on knife (model crossbow). In the beginning it changes into crossbows, and then you can change back to a knife, but when i change back to a knife, i have bug - the model of the crossbow is and is with the knife model. To fix it, I have to change my weapon and go back to the knife...
Code:
if(CW==CKNIFE)
{
if(!ma_kusze[id])
{
ma_kusze[id] = true;
FPVMI_AddViewModelToClient(id, "weapon_knife", ICrossbow);
}
else
{
ma_kusze[id] = false;
FPVMI_RemoveViewModelToClient(id, "weapon_knife");
}
}