Raised This Month: $ Target: $400
 0% 

fw_setmodel cant detect a model


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
avril-lavigne
Banned
Join Date: Apr 2009
Old 01-13-2014 , 05:06   fw_setmodel cant detect a model
Reply With Quote #1

Code:
public StartKamikadze()
{
    activated = 2
    forw = register_forward(FM_SetModel,"fw_setmodel"); //register it just for gameplay #2
}


public fw_setmodel(ent,model[])
 {
    client_print(0,3,"DEBUG : activated MODE IS %d", activated) //this is called with any weapon drop/buy
  
    if(equali(model,"models/backpack.mdl"))
    {
        client_print(0 , 3 ,"DEBUG : activated MODEL BACKPACK FOUND")  // THIS IS NOT CALLED
        engfunc( EngFunc_SetModel, ent , invis_c4 );
        return FMRES_SUPERCEDE;
    }

     if(equali(model,"models/w_c4.mdl"))
    {
        client_print(0,3,"DEBUG : activated MODEL w_c4 FOUND")   // THIS IS NOT CALLED
        engfunc( EngFunc_SetModel, ent , invis_c4 );
        return FMRES_SUPERCEDE;
    }

    return FMRES_IGNORED;
}
so the function is called
but if (equali ( model = NOT . I need to make backpack.mdl invisible so the others cant see who carries the bomb )
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc

Last edited by avril-lavigne; 01-13-2014 at 05:07.
avril-lavigne 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 10:13.


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