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