SA-MP Forums Archive
SetObjectMaterialText Black background? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SetObjectMaterialText Black background? (/showthread.php?tid=547158)



SetObjectMaterialText Black background? - Metharon - 20.11.2014

Код:
SetObjectMaterialText(avtock0, "Newbie", 0, 50, "Arial", 27, 1, 1, 163, 1);
What is color code for BLACK ? i tried "0" but then the background dispear...


Re: SetObjectMaterialText Black background? - Rdx - 20.11.2014

You have to use color in ARGB format.

Black: 0x00000000


Re: SetObjectMaterialText Black background? - Metharon - 21.11.2014

UP!

@ Dude i used the code you gave and that's the result
[IMG][/IMG]
Код:
	for(new i; i<sizeof(NewbieVehicles); i++)
	{

		if(NewbieVehicles[i])
		{
			new avtock0 = CreateObject(19309,0,0,0,0,0,0,100.0);
  			SetObjectMaterialText(avtock0, "Newbie", 0, 50, "Arial", 27, 1, COLOR_YELLOW2, 0x00000000, 1);
			AttachObjectToVehicle(avtock0, NewbieVehicles[i], 0.0, -0.5, 0.9, 0.0, 0.0, 0.0);
			mFuel[i]= 100;
		}
	}



Re: SetObjectMaterialText Black background? - Pottus - 21.11.2014

Set the alpha to FF of course.


Re: SetObjectMaterialText Black background? - Rdx - 21.11.2014

Yes, my bad. It must be 0xFF000000.