Custom messages on Billboards
#1

Hi guys! Basically I have seen a few servers with custom messages on billboards.

I searched for some time, and got to the conclusion that this is what I needed , but somehow it doesnt let me compile "goedit.pwn" because gl_commons cannot be found, even when i have it.

So does anyone know how to do this without any filterscripts? i just really need to make custom billboard messages. If you need me to show you what I had until now (it crashed my server all the time) , its this :
pawn Код:
{
//under all the new stuff and over defines//
new myobject = CreateObject(7910, -2988.1000976563, 467.60000610352, 17.60000038147, 0.0, 0.0, 90.0);
//under ongamemodeinit//
SetObjectMaterialText(7910, "San Fierro Island", 0, OBJECT_MATERIAL_SIZE_256x128,"Arial", 36, 0, 0xFFFFFF00, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
return 1;
}
Reply
#2

You should create the object under OnGameModeInit, somewhere before you set the material text, but not up there with your defines. You were on the right track though Also note what I've changed in your SetObjectMaterialText line - there is a reason we defined the billboard object created (7910) as 'myobject.' That's so we could change the text of just that specific object, and not every other 7910 in the game, if that makes sense? It probably wouldn't work the way you had it anyway, which could have been the source of other errors you were getting.

pawn Код:
new myobject;//top of your script
pawn Код:
//ongamemodeinit
myobject = CreateObject(7910, -2988.1000976563, 467.60000610352, 17.60000038147, 0.0, 0.0, 90.0);
SetObjectMaterialText(myobject, "San Fierro Island", 0, OBJECT_MATERIAL_SIZE_256x128,"Arial", 36, 0, 0xFFFFFF00, 0xFF000000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER);
Reply
#3

Wow thanks man , I didnґt really know exactly where to put the stuff, thanks a lot! +rep
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)