Hello,
I have a weapon model, but when I get the weapon and change to a pistol it keeps the weapon model instead of taking the pistol. When I shoot I do hear the pistol shot, so that means that the weapon model replaces the pistol, but when I change to another item (like a knife) and then change to the pistol I do get it. So I was wondering what I did wrong with this code:
PHP Code:
new wpnid = read_data(2)
if(player_class[id] == Mage && wpnid == CSW_AK47 ) {
entity_set_string(id, EV_SZ_viewmodel, MAGICAK47)
}