Raised This Month: $ Target: $400
 0% 

pev_button, i dont understand very well...


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
_lol_
Senior Member
Join Date: Apr 2009
Old 04-12-2009 , 22:47   pev_button, i dont understand very well...
Reply With Quote #1

well, i am doing a plugin, but i have a problem...i want to do that when a player is ducking, the viewmodel will be one, but, that when the player is not ducking, the viewmodel will be another...
this is my code.
Code:
            // Get currently pressed buttons
            static buttons
            buttons = pev(id, pev_button)
        
            if(buttons & IN_DUCK)
            {
                set_pev(id, pev_viewmodel, 0)
            }
            else
            {
                set_pev(id, pev_viewmodel, zclass_clawmodel)
            }
it is working, but not at all, because if at the time that this function is called, you are ducking, you wont have any viewmodel, but if you stop ducking, you will still without any viewmodel lol!

so...whats the problem?
_lol_ is offline
 



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 02:20.


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