Raised This Month: $ Target: $400
 0% 

Where I wrong with changing on w_ models?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
KiLLeR.
Senior Member
Join Date: Jul 2014
Location: Bulgaria
Old 07-26-2014 , 08:17   Where I wrong with changing on w_ models?
Reply With Quote #1

I want to change world models on grenades and try this, but didn't work. Where I wrong?
PHP Code:
register_forward(FM_SetModel"fw_SetModel");

public 
fw_SetModel(entity, const model[])
{        
    if(!
is_valid_ent(entity))
        return 
FMRES_IGNORED;
    
    if(
equal(model"models/csbg_bm/w_hegrenade.mdl"))
    {
        
entity_set_model(entity"models/csbg_bm/w_hegrenade.mdl");
        return 
FMRES_SUPERCEDE;
    }
    
    if(
equal(model"models/csbg_bm/w_flashbang.mdl"))
    {
        
entity_set_model(entity"models/csbg_bm/w_flashbang.mdl");
        return 
FMRES_SUPERCEDE;
    }
    
    if(
equal(model"models/csbg_bm/w_smokegrenade.mdl"))
    {
        
entity_set_model(entity"models/csbg_bm/w_smokegrenade.mdl");
        return 
FMRES_SUPERCEDE;
    }
    
    return 
FMRES_IGNORED;

KiLLeR. is offline
 


Thread Tools
Display Modes

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 13:13.


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