AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   set_pev not changing immediately models (https://forums.alliedmods.net/showthread.php?t=165535)

dreamedward 08-23-2011 16:52

set_pev not changing immediately models
 
So the code of the plugin Knife Mod changes the knife models. But I have a problem. The models don't change immediately. I mean if you already switched to knife and you change to another knife model by using the plugin's menu you have to switch to another weapon and get back to knife so you can see the new model. So I was wondering how can I fix that so I don't have to switch to any other weapons to see the new knife model because I use a Knife only server and don't want to give the players any other weapons. Thanks!

nikhilgupta345 08-23-2011 16:55

Re: set_pev not changing immediately models
 
The plugin probably updates the weapon model on CurWeapon event. To make it immediate, find the place in the code where the player chooses the model, and then set their model in that place. (using set_pev)

dreamedward 08-23-2011 17:07

Re: set_pev not changing immediately models
 
Man, you're awesome! :wink:


All times are GMT -4. The time now is 09:11.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.