Object Material
#6

Quote:
Originally Posted by RoboN1X
Посмотреть сообщение
You meant with 0.0 rotation values, also that's material text, and font name is Arial.
However i'm not sure why need to convert it when it's coded directly... I don't think moving the last two alpha value is a hard job. Except you are lazy or will get confused, then using macros like _Zume said will do it.

Anyway if you want to make the wall with yellow color but texture stay same, then use this:
PHP код:
SetDynamicObjectMaterial(TestColor,0,-1"none""none",0xFFFFFF00); 
Note that since the original texture is gray colored, then it will have a yellow-gray color.

If you want to make the wall texture with plain yellow color, then use this:
PHP код:
SetDynamicObjectMaterial(TestColor,0,18646"MatColours""yellow",0); 
Or "brighter" yellow (with vertex lightning disabled):
PHP код:
SetDynamicObjectMaterial(TestColor,0,18646"MatColours""yellow",0xFFFFFFFF); 
That texture is a plain yellow color, can be found in SAMP IMG, object id 18646 is the police light which is using MatColours texture.

There is also a plain white color texture, so you can color it with any color you like, just change the 0xFFFFFF00 (yellow).
PHP код:
SetDynamicObjectMaterial(TestColor,0,18646"MatColours""white",0xFFFFFF00); 
Hope that helps.
I meant a coordinate close/near-by/near 0.0, 0.0, 0.0. Don't get confused here.

You could use any font name, wouldn't make a difference - even putting "SA-MP Forums" wouldn't make a difference. No. Text. Is. Going. To. Be. Displayed. Anyway.

The macro/conversion is so that he doesn't get confused and it's easier for him to use any color in the world.

He could also use "SetDynamicObjectMaterialText", it pretty much does the same thing, but he would basically just be putting to use the background color option and he wouldn't have to specify any textures. It will use a solid color form.

Meaning he would do (by also removing unnecessary used fields placed above):
pawn Код:
new object_id = CreateDynamicObject(2922, 133.76311, -75.74743, 1.13980, 0.00000, 0.00000, 0.00000);
SetDynamicObjectMaterialText(object_id, 0, " ", OBJECT_MATERIAL_SIZE_256x128, " ", 0, 0, 0, (0xFFF000FF >>> 8 | 0xFFF000FF << 24));
Or:
pawn Код:
new object_id = CreateDynamicObject(2922, 133.76311, -75.74743, 1.13980, 0.00000, 0.00000, 0.00000);
SetDynamicObjectMaterialText(object_id, 0, " ", OBJECT_MATERIAL_SIZE_256x128, " ", 0, 0, 0, 0xFFFFF000);
Output:
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)