21.12.2015, 04:19
The object have a invisible color (ALPHA 00), and the object it's yellow maybe.. Yo can hook the function to convert RGBA to ARGB:
or simply, apply this function:
PHP код:
stock SetDynamicObjectMaterial_Ex(STREAMER_TAG_OBJECT objectid, materialindex, modelid, const txdname[], const texturename[], materialcolor = 0)
{
return SetDynamicObjectMaterial(objectid, materialindex, modelid, txdname, texturename, (materialcolor >>> 8 | materialcolor << 24));
}
#if defined _ALS_SetDynamicObjectMaterial
#undef SetDynamicObjectMaterial
#else
#define _ALS_SetDynamicObjectMaterial
#endif
#define SetDynamicObjectMaterial SetDynamicObjectMaterial_Ex
PHP код:
#define ConvertARGBtoRGBA(%1) (%1 >>> 8 | %1 << 24)