26.09.2012, 19:00
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 :
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;
}


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.