Text on walls.
#1

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?
Reply
#2

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)