[Include] Set(Player)ObjectMaterial for RGBA Colors
#1

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.


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);
}
Get it and inlude it to get started!
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 ****** ENJOY IT!)

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)

Reply


Messages In This Thread
ObjectMaterial stuff for RGBA Colors v3 - by Meta - 06.04.2012, 21:57
Re: Set(Player)ObjectMaterial for RGBA Colors - by iPLEOMAX - 06.04.2012, 22:01
Re: Set(Player)ObjectMaterial for RGBA Colors - by Hiddos - 06.04.2012, 22:03
AW: Set(Player)ObjectMaterial for RGBA Colors - by Meta - 06.04.2012, 22:09
Re: Set(Player)ObjectMaterial for RGBA Colors - by iPLEOMAX - 06.04.2012, 22:17
Re: Set(Player)ObjectMaterial for RGBA Colors - by Niko_boy - 07.04.2012, 02:26
Re: Set(Player)ObjectMaterial for RGBA Colors - by Reklez - 07.04.2012, 02:45
Re: Set(Player)ObjectMaterial for RGBA Colors - by Edvin - 07.04.2012, 06:46
Re: Set(Player)ObjectMaterial for RGBA Colors - by Ballu Miaa - 07.04.2012, 09:48

Forum Jump:


Users browsing this thread: 2 Guest(s)