07.10.2018, 02:51
PHP код:
SetDynamicObjectMaterial(pBanco[a], 0, 2774, "matcolours", "yellow", 0);
SetDynamicObjectMaterial(pBanco[a], 1, 2774, "matcolours", "yellow", 0);
SetDynamicObjectMaterial(pBanco[a], 2, 2774, "matcolours", "yellow", 0);
Код:
SetDynamicObjectMaterial(objectid, materialindex, modelid, const txdname[], const texturename[], materialcolor = 0)
PHP код:
stock ShiftRGBAToARGB(&color)
{
new r, g, b, a;
r = (color >>> 24);
g = (color >>> 16 & 0xFF);
b = (color >>> 8 & 0xFF);
a = (color & 0xFF);
color = (a & 0xFF) | ((b & 0xFF) << 8) | ((g & 0xFF) << 16) | (r << 24);
return color;
}