Raised This Month: $ Target: $400
 0% 

set_pev not changing immediately models


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dreamedward
Senior Member
Join Date: Aug 2010
Location: ZombieWorld
Old 08-23-2011 , 16:52   set_pev not changing immediately models
Reply With Quote #1

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!
dreamedward is offline
nikhilgupta345
Veteran Member
Join Date: Aug 2009
Location: Virginia
Old 08-23-2011 , 16:55   Re: set_pev not changing immediately models
Reply With Quote #2

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)
__________________
Quote:
Originally Posted by DarkGod View Post
nikhilgupta generates his plugins using sheer awesome.
If you like my work, please
nikhilgupta345 is offline
Send a message via ICQ to nikhilgupta345 Send a message via Yahoo to nikhilgupta345
dreamedward
Senior Member
Join Date: Aug 2010
Location: ZombieWorld
Old 08-23-2011 , 17:07   Re: set_pev not changing immediately models
Reply With Quote #3

Man, you're awesome!
dreamedward is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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


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