SA-MP Forums Archive
Text on walls. - 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: Text on walls. (/showthread.php?tid=425588)



Text on walls. - SilencedPistol - 26.03.2013

On some servers I've seen text on walls and such. What's this function called? OnPlayerMaterialText or something? How do I use it also?


Re: Text on walls. - [..MonTaNa..] - 26.03.2013

pawn Код:
if (strcmp("/text", cmdtext, true) == 0)
{
    new myobject = CreateObject(19353, 0, 0, 10, 0.0, 0.0, 90.0); //create the object
    SetObjectMaterialText(myobject, "SA-MP {FFFFFF}0.3{008500}e {FF8200}RC7", 0, OBJECT_MATERIAL_SIZE_256x128,\
    "Arial", 28, 0, 0xFFFF8200, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
    // write "SA-MP 0.3e RC7" on the object, with orange font color and black background
    return 1;
}

https://sampwiki.blast.hk/wiki/SetObjectMaterialText