An Additon to /siren command
#1

I have a /siren command for officers in my script.
I've been trying to add another option /siren cop for Cruisers to add two more light objects to both sides of the rear windshield. I'm having trouble trying to get the right coordinates on a vehicle to place the objects in their correct place I want them to be in.

Here is the code and here is the SS of what I want.

Код:
else if(strcmp(siren, "cop", true, strlen(siren)) == 0)
				{
				    if(Siren[VID] == 0)
				    {
						Siren[VID] = 1;
						GetPlayerName(playerid, sendername, sizeof(sendername));
						SirenObject[VID] = CreateObject(18646, 10.0, 10.0, 10.0, 0, 0, 0);
						AttachObjectToVehicle(SirenObject[VID], VID, 0.0, 0.75, 0.275, 0.0, 0.1, 0.0);
						SirenObject[VID] = CreateObject(18646, 10.0, 10.0, 10.0, 0, 0, 0);
						AttachObjectToVehicle(SirenObject[VID], VID, 1.0, 1.50, 0.275, 0.0, 0.1, 0.0);
						SirenObject[VID] = CreateObject(18646, 10.0, 10.0, 10.0, 0, 0, 0);
						AttachObjectToVehicle(SirenObject[VID], VID, 1.0, -1.50, 0.275, 0.0, 0.1, 0.0);
						format(string, sizeof(string), "* %s puts the siren on the roof.", sendername);
						ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
					} else { return SendClientMessage(playerid, COLOR_GREY, "This vehicle already has a siren!"); }
                }
Heres the screenshot of where i want the Last two AttachObjectToVehicle cords to be.

http://i1172.photobucket.com/albums/.../sa-mp-588.png

Rep will be given to whoever helps. Thank you for viewing this topic
Reply


Messages In This Thread
An Additon to /siren command - by Harmon - 07.09.2012, 01:39
Re: An Additon to /siren command - by Harmon - 07.09.2012, 02:26
Re: An Additon to /siren command - by XGh0stz - 07.09.2012, 07:08
Re: An Additon to /siren command - by Harmon - 07.09.2012, 12:07
Re: An Additon to /siren command - by XGh0stz - 07.09.2012, 14:55

Forum Jump:


Users browsing this thread: 1 Guest(s)