SA-MP Forums Archive
Please help mermaids - 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: Please help mermaids (/showthread.php?tid=577029)



Please help mermaids - Jimmi - 08.06.2015

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


Re: Please help mermaids - FrankTimber - 08.06.2015

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



Re: Please help mermaids - JaydenJason - 08.06.2015

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

Try using that


Re: Please help mermaids - Jimmi - 08.06.2015

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



Re: Please help mermaids - JaydenJason - 08.06.2015

Try

0xFFFFFFFF

instead of white


Re: Please help mermaids - Jimmi - 08.06.2015

Good but it still doesn't appear on mermaids


Re: Please help mermaids - FrankTimber - 08.06.2015

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


Re: Please help mermaids - Jimmi - 08.06.2015

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


Re: Please help mermaids - Jimmi - 08.06.2015

uppppp


Re: Please help mermaids - Jimmi - 08.06.2015

upppp