How to get weapon's ID
I would like to set some specific models of weapons. Not everyone, not all weapons. Like this:
if (id == 6) { give_item (id, "weapon_ak47") // Then I need to set all of this weapon model: v_ak47.mdl, p_ak47.mdl, w_ak47.mdl // What they saw, others see, after the fall of weapons } How to get this weapon's ID (not the 1 ~ 32), this ID is unique in the map, then how do I set the weapon model? v_ak47.mdl and p_ak47.mdl. Is not a replacement weapon each time the player will need to set? When a player drop this weapon , how to set up a model of this weapon. Not all of the ak47 can use this model. Please help me. Thanks! |
Re: How to get weapon's ID
|
Re: How to get weapon's ID
I read that article, but I can not use.
"Public fw_SetModel (entity, model [])" is to replace all of the models, for example, is the AK47, I do not want replace all AK47 models, but rather the system automatically give the AK47. |
Re: How to get weapon's ID
Answering how to get weapon id
Code:
|
Re: How to get weapon's ID
Thank you, exactly what I needed.
Next: How to set the weapon models by weapon_id ? |
Re: How to get weapon's ID
Do it like Cheap_Suit has shown in the thread Drekes posted.
At the top of FM_SetModel and CurWeapon hooks, check for the weapon the way I posted. Code:
|
Re: How to get weapon's ID
But I still failed!
I can not get "your_desired_weapon_id" Code:
register_forward(FM_SetModel,"W_Model_Hook",1)When I drop the weapon, "ent" value is changing... |
| All times are GMT -4. The time now is 12:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.