Raised This Month: $ Target: $400
 0% 

How to set P_model Sequences?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
AGoodGuy
Member
Join Date: Sep 2014
Old 11-28-2014 , 06:17   How to set P_model Sequences?
Reply With Quote #1

Hi every one, i am making sub model for my weapons mod, but i have some mistake with p_model when change to sub model, Sequences of this is not change, so please help my the way to change Sequences of p_model, thank so much.

I try with set_pev(id, pev_sequence, 1) but not happen!


This is my code and model:

PHP Code:
register_event("WeapPickup","checkModel","b","1=19")

public 
checkModel(id)
{
    if ( !
g_has_ak47red[id] || !is_user_alive(id) )
    return 
PLUGIN_CONTINUE;
    
    new 
szWeapID read_data(2)
    
    if ( 
szWeapID == CSW_AK47 && g_has_ak47red[id] == true )
    {
        
set_pev(idpev_viewmodel2ak47red_V_MODEL)
        
        
set_pev(idpev_body1//Change to submodel
        
set_pev(idpev_weaponmodel2ak47red_P_MODEL)

        
//So how to set Sequences of p_model?
    
}
    return 
PLUGIN_HANDLED

Attached Files
File Type: zip p_sub.zip (69.4 KB, 117 views)
__________________
Without Passion Life Is Nothing

Quote:
“If you can't fly then run, if you can't run then walk, if you can't walk then crawl, but whatever you do, you have to keep moving forward.”― Martin Luther King Jr.

Last edited by AGoodGuy; 11-28-2014 at 06:18.
AGoodGuy 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 17:33.


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