SA-MP Forums Archive
Attached object transparency? - 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: Attached object transparency? (/showthread.php?tid=580209)



Attached object transparency? - zaibaslr2 - 03.07.2015

Hello, I tried to make a round object (sphere) and attach it to player. I need to make the sphere black with ~20% transparency. The problem is, I can't seem to know how to do that. I've tried:
Код:
//1
SetPlayerAttachedObject(playerid, 5, 18845, 1, 0.000000, 0.000000, 0.000000, 321.022155, 276.892761, 0.000000, 1.000000, 1.000000, 1.000000,0xFF000000,0xFF000000);

//2
SetPlayerAttachedObject(playerid, 5, 18845, 1, 0.000000, 0.000000, 0.000000, 321.022155, 276.892761, 0.000000, 1.000000, 1.000000, 1.000000,0x80000000,0x80000000);

//3

SetPlayerAttachedObject(playerid, 5, 18845, 1, 0.000000, 0.000000, 0.000000, 321.022155, 276.892761, 0.000000, 1.000000, 1.000000, 1.000000,0x20000000,0x20000000);
But everytime sphere is black.
How do I make it transparent?