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 !