force weapon
How do I force a player to change weapon to knife?
|
Re: force weapon
engclient_cmd( index, "weapon_knife" );
|
Re: force weapon
Thank but this doesn't work for what I want.If I select the knife and type /knife I want my model to be changed.If a switch to another weapon and back to knife it works.
|
Re: force weapon
You want to change the skin of your knife?
|
Re: force weapon
Yes.I did it but if the current weapon is the knife I need a "refresh".
|
Re: force weapon
I solve it.
Now another problem :). How can I determine what weapon has player now?(don't need with CurWeapon) Solve it :). |
Re: force weapon
|
Re: force weapon
I thought i solve it with get-user_wepon but it doesn't work
PHP Code:
If I have a pistol it still change the model.Why? |
Re: force weapon
To change the knife model, you should hook FM_PrecacheModel and FM_ModelIndex ; this way the precache count will not increase.
|
Re: force weapon
Actually when I type /knife I want the knife to change to normal or the new model.
|
| All times are GMT -4. The time now is 04:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.