Please help mermaids
#1

I tried to copy from a gm car with the mermaids thing. I modified oleaca thing so I use AttachObjectToVehicle.Am tried to do so:http://i.imgur.com/U01Ao8X.jpg instead it turns out like this:http://imgur.com/tDOvKII
Code:
http://pastebin.com/HUbAjcUx
Reply
#2

Код:
 AttachObjectToVehicle(sirena2, CopCar[55], 0.0, -1.9, 0.3, 270.0, 0.0, 0.0);
You have attached the lightbar to the back of the vehicle, because of the co-ordinates you set.

Код:
 AttachObjectToVehicle(sirena2, CopCar[55], 0.0072, -0.0263, 0.6324, 270.0, 0.0, 0.0);
This code has the correct co-ordinates to sync the lightbar. To create the "police" at the back :

Код:
new sirena1 = CreateObject(19327, 0.0, 0.0, 0.0,   0.00000, 0.00000, 0.00000); // create the object
SetObjectMaterialText(sirena1, "POLICE", 0,OBJECT_MATERIAL_SIZE_512x512,
"Arial", 90, 1, 0xFF000000, 0x0000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER); //re-texture the object(and make it invisible)
AttachObjectToVehicle(sirena1, CopCar[54], 0.0, -1.9, 0.3, 270.0, 0.0, 0.0);// attach and angle to the object
Reply
#3

http://forum.sa-mp.com/showthread.ph...achment+editor

Try using that
Reply
#4

It still doesn't appear on mermaids and why writing was black if I've done the White
http://imgur.com/SJVNbn0
Код:
	//infernus
	CopCar[54] = AddStaticVehicleEx(411, 1759.9391,-1678.6993,13.2977,89.9601, 0, 0, CAR_RESPAWN);
	new sirena1 = CreateObject(19327, 0.0, 0.0, 0.0,   0.00000, 0.00000, 0.00000); // create the object
	SetObjectMaterialText(sirena1, "POLICE", 0,OBJECT_MATERIAL_SIZE_512x512,
	"White", 90, 1, 0xFF000000, 0x0000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER); //re-texture the object(and make it invisible)
	AttachObjectToVehicle(sirena1, CopCar[54], 0.0, -1.9, 0.3, 270.0, 0.0, 0.0);// attach and angle to the object
	CopCar[55] = AddStaticVehicleEx(411, 1759.9198,-1672.6251,13.2935,90.3723, 0, 0, CAR_RESPAWN);
	new sirena2 = CreateObject(19327, 0.0, 0.0, 0.0,   0.00000, 0.00000, 0.00000); // create the object
	SetObjectMaterialText(sirena2, "POLICE", 0,OBJECT_MATERIAL_SIZE_512x512,
	"White", 90, 1, 0xFF000000, 0x0000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER); //re-texture the object(and make it invisible)
	AttachObjectToVehicle(sirena2, CopCar[55], 0.0, -1.9, 0.3, 270.0, 0.0, 0.0);// attach and angle to the object
Reply
#5

Try

0xFFFFFFFF

instead of white
Reply
#6

Good but it still doesn't appear on mermaids
Reply
#7

Код:
CopCar[54] = AddStaticVehicleEx(411, 1759.9391,-1678.6993,13.2977,89.9601, 0, 0, CAR_RESPAWN);
new sirena1 = CreateObject(19419, 0.0, 0.0, 0.7, 0.0, 0.0, 0.0); //
AttachObjectToVehicle(sirena1, CopCar[55], 0.0072, -0.0263, 0.6324, 270.0, 0.0, 0.0);
new sirena2 = CreateObject(19327, 0.0, 0.0, 0.0,   0.00000, 0.00000, 0.00000); // create the object
SetObjectMaterialText(sirena2, "{FFFFFF}POLICE", 0,OBJECT_MATERIAL_SIZE_512x512,
"Arial", 90, 1, 0xFFFFFF, 0x0000, OBJECT_MATERIAL_TEXT_ALIGN_CENTER); //re-texture the object(and make it invisible)
AttachObjectToVehicle(sirena2, CopCar[54], 0.0, -1.9, 0.3, 270.0, 0.0, 0.0);// attach and angle to the object
Make sure you're not spawning the exact same thing twice please, also the text has to be embedded to white if you're using a transparent background.
Reply
#8

Now the police no longer appears on the second vehicle and mermaids are all overthrown.
http://imgur.com/nZESD9z
http://pastebin.com/Ps8Wi9G3
Reply
#9

uppppp
Reply
#10

upppp
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)