Object Material
#3

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:

PHP код:
stock SetDynamicObjectMaterial_Ex(STREAMER_TAG_OBJECT objectidmaterialindexmodelid, const txdname[], const texturename[], materialcolor 0)
{
    return 
SetDynamicObjectMaterial(objectidmaterialindexmodelidtxdnametexturename, (materialcolor >>> materialcolor << 24));
}
#if defined _ALS_SetDynamicObjectMaterial
      #undef SetDynamicObjectMaterial
#else
    #define _ALS_SetDynamicObjectMaterial
#endif
#define SetDynamicObjectMaterial SetDynamicObjectMaterial_Ex 
or simply, apply this function:

PHP код:
#define ConvertARGBtoRGBA(%1) (%1 >>> 8 | %1 << 24) 
Reply


Messages In This Thread
Object Material - by TwinkiDaBoss - 21.12.2015, 02:07
Re: Object Material - by Denying - 21.12.2015, 04:10
Respuesta: Object Material - by Zume - 21.12.2015, 04:19
Re: Object Material - by SickAttack - 21.12.2015, 04:57
Re: Object Material - by RoboN1X - 21.12.2015, 05:32
Re: Object Material - by SickAttack - 21.12.2015, 06:35
Re: Object Material - by RoboN1X - 21.12.2015, 09:57
Re: Object Material - by Vince - 21.12.2015, 10:27
Re: Object Material - by TwinkiDaBoss - 21.12.2015, 18:39

Forum Jump:


Users browsing this thread: 1 Guest(s)