Raised This Month: $ Target: $400
 0% 

Solved [Help] Change W_Model


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
DarthMan
Veteran Member
Join Date: Aug 2011
Old 04-03-2017 , 14:45   [Help] Change W_Model
Reply With Quote #1

Hello. How can I change the w_ model for all existing crowbars on the map?
My friend did a small change to my code, still it doesn't work.
Here it is :

Code:
public fw_SetModel(entity, model[])
{
        if(!is_valid_ent(entity)) 
            return FMRES_IGNORED

        new xModel[64];
        entity_get_string(entity, EV_SZ_model, xModel, charsmax(xModel))

        if(equal(xModel,CRB_W_MODEL_OLD))
        {
            entity_set_model(entity, UMB_W_MODEL)
            return FMRES_SUPERCEDE
        }
        return FMRES_IGNORED
}
For v_ and p_ it works just fine, any ideas?
Thanks !

Last edited by DarthMan; 04-15-2017 at 15:07. Reason: Solved
DarthMan 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 18:04.


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