Sign on the buildings
#1

Alright I spotted this on some server andI was wondering how can be this done ? Putting some sign on the buildings ... I mean how ?

Reply
#2

https://sampwiki.blast.hk/wiki/SetObjectMaterialText
Reply
#3

Okay I made this and Idk why it is repeating ...
I see it like this: Sheriff Department Sheriff Department Sheriff Department


Quote:

new myobject = CreateObject(19447, 2362.87476, 246.29884, 31.40303, 0.00000, 0.00000, 0.00000); //create the object
SetObjectMaterialText(myobject, "Sheriff Department", 0, OBJECT_MATERIAL_SIZE_256x128,\
"Times New Roman", 25, 1, 0xFFB0B0DD, 0, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);

Reply
#4

Have you got "return 1;" in the end of your function?
Reply
#5

Yes I do have return 1;
Reply
#6

Could you post the whole function?
Reply
#7

Код:
COMMAND:textfd(playerid, params[])
{
new myobject = CreateObject(19447, 2362.87476, 246.29884, 31.40303,   0.00000, 0.00000, 0.00000); //create the object
SetObjectMaterialText(myobject, "Sheriff Department", 0, OBJECT_MATERIAL_SIZE_256x128,\
"Times New Roman", 25, 1, 0xFFB0B0DD, 0, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
return 1;
}
Reply
#8

Quote:
Originally Posted by xdarren
Посмотреть сообщение
Код:
COMMAND:textfd(playerid, params[])
{
    new myobject = CreateObject(19447, 2362.87476, 246.29884, 31.40303,   0.00000, 0.00000, 0.00000);
    SetObjectMaterialText(myobject, "Sheriff Department", 0, OBJECT_MATERIAL_SIZE_256x128,\
    "Times New Roman", 25, 1, 0xFFB0B0DD, 0, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
    return 1;
}
Not quite sure whats the problem the code seems to be okay, but it might be that you are using an other command include such as ZCMD that might be the problem. It also might write the text multiple times cause of the text size or font. Try changing the parameters and see if that works
Reply
#9

Try different font sizes and material sizes.
Reply
#10

Nothing works ... Everything is same
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)