06.04.2012, 21:57
(
Последний раз редактировалось Meta; 22.04.2012 в 10:07.
)
ObjectMaterial stuff for RGBA Colors
(Now updated for RC7)
Hey, this is just a simple Include to make the ObjectMaterial Funtcions work with RGBA colors like in client messages and everything else.(Now updated for RC7)
Note: There is one disadvantage: You can't use it in timers anymore but you can fiddle around like this:
pawn Код:
// ...
SetTimerEx("CallSetObjectMaterial", 10000, 0, "dddssd", ...);
// ...
forward CallSetObjectMaterial(objectid, materialindex, modelid, txdname[], texturename[], materialcolor);
public CallSetObjectMaterial(objectid, materialindex, modelid, txdname[], texturename[], materialcolor)
{
return SetObjectMaterial(objectid, materialindex, modelid, txdname, texturename, materialcolor);
}
Pastebin
EDIT (10th April 2012 - 22:02):
There was a huge mistake in the code that made the use of mixed colors (yellow, pink ...) impossible. After some headbreaking hours of thinking and help from from JaTochNietDan and ****** we three got a solution (straight from ******
![Cheesy](images/smilies/biggrin.png)
Now it 100% works and it is awesome!
Credits:
****** (for the final solution)
JaTochNietDan (for some headbreaking hours and codes that were close to the solution)
Hiddos (for a hint for ARGB)
![](http://meta.spitnex.de/images/Meta.png)