SetObjectMaterialText - 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 (
/showthread.php?tid=523234)
SetObjectMaterialText -
Stereotype - 01.07.2014
Hi, i've made this object and the timers to swith the text on the objects. It works perfectly several times but when i come near the object it just turns black..
pawn Код:
BlinkText = CreateObject(19462, 1593.76367, -2330.70532, 17.42012, 0.00000, 0.00000, 0.00000);
SetObjectMaterialText(BlinkText, "{FFFFFF}\n\nWELCOME TO SERVER", 0, 90, "Arial Black", 24, 1, 0x000000FF, 1, 1);
SetTimer("TextSwitch", 2000, false);
pawn Код:
public TextSwitch()
{
SetObjectMaterialText(BlinkText, "\n\nENJOY IN GAME!!!", 0, 90, "Arial Black", 24, 1, 0x000000FF, 1, 1);
SetTimer("TextBack", 2000, false);
}
public TextBack()
{
SetObjectMaterialText(BlinkText, "{FFFFFF}\n\nWELCOME TO SERVER", 0, 90, "Arial Black", 24, 1, 0x000000FF, 1, 1);
SetTimer("TextSwitch", 2000, false);
}
Any help?
Re: SetObjectMaterialText -
ATomas - 01.07.2014
Use ARGB format
0xFF000000
Re: SetObjectMaterialText -
Stereotype - 01.07.2014
For background color?
Nvm, i changed it on all
pawn Код:
SetObjectMaterialText(BlinkText, "{FFFFFF}\n\nWELCOME TO SERVER", 0, 90, "Arial Black", 24, 1, 0x000000FF, 0xFF000000, 1);
to black ARGB 0xFF000000 .. Now it does not work at all
[/QUOTE]