PHP Code:
public fw_SetModel( iEntity, szModel[] ) {
if( !pev_valid( iEntity ) )
return FMRES_IGNORED;
if( equali( szModel, "w_hegrenade.mdl" ) ) {
new szClassname[ 32 ];
pev( iEntity, pev_classname, szClassname, 31 );
if( equal( szClassname, "grenade" ) ) {
engfunc( EngFunc_SetModel, iEntity, model_waura_shield );
return FMRES_SUPERCED;
}
}
return FMRES_IGNORED;
}
__________________