SA-MP Forums Archive
Sign on the buildings - 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: Sign on the buildings (/showthread.php?tid=471104)



Sign on the buildings - xdarren - 21.10.2013

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




Re: Sign on the buildings - Gilbonzo - 21.10.2013

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


Re: Sign on the buildings - xdarren - 21.10.2013

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);




Re: Sign on the buildings - Gilbonzo - 21.10.2013

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


Re: Sign on the buildings - xdarren - 21.10.2013

Yes I do have return 1;


Re: Sign on the buildings - Gilbonzo - 21.10.2013

Could you post the whole function?


Re: Sign on the buildings - xdarren - 21.10.2013

Код:
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;
}



Re: Sign on the buildings - Gilbonzo - 21.10.2013

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


Re: Sign on the buildings - kristo - 21.10.2013

Try different font sizes and material sizes.


Re: Sign on the buildings - xdarren - 22.10.2013

Nothing works ... Everything is same