[FilterScript] /code3pd [Police Code3 System]
#1

Video



http://www.youtube.com/watch?feature...&v=6MCJ1yjt-IY


Snippet

Add to the top of script
Код:
new SirenObject[MAX_VEHICLES];
new SirenObject1[MAX_VEHICLES];
new SirenObject2[MAX_VEHICLES];
new SirenObject3[MAX_VEHICLES];
new SirenObject4[MAX_VEHICLES];



Turn on the system
Код:
COMMAND:code3pd(playerid, params[])
{
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
			new VID = GetPlayerVehicleID(playerid);
			SirenObject[VID] = CreateObject(18646, 10.0, 10.0, 10.0, 0, 0, 0);
			SirenObject1[VID] = CreateObject(18646, 10.0, 10.0, 10.0, 0, 0, 0);
			SirenObject2[VID] = CreateObject(18646, 10.0, 10.0, 10.0, 0, 0, 0);
			SirenObject3[VID] = CreateObject(18646, 10.0, 10.0, 10.0, 0, 0, 0);
			SirenObject4[VID] = CreateObject(18646, 10.0, 10.0, 10.0, 0, 0, 0);
			AttachObjectToVehicle(SirenObject[VID], VID, -0.53, -0.45, 0.79,   0.00, 0.00, 0.00);
			AttachObjectToVehicle(SirenObject1[VID], VID, 0.46, -0.45, 0.79,   0.00, 0.00, 0.00);
			AttachObjectToVehicle(SirenObject2[VID], VID, -0.02, 2.18, -0.15,   0.00, 0.00, 0.00);
			AttachObjectToVehicle(SirenObject3[VID], VID, -0.60, -1.67, 0.39,   0.00, 0.00, 0.00);
			AttachObjectToVehicle(SirenObject4[VID], VID, 0.50, -1.67, 0.39,   0.00, 0.00, 0.00);
			return 1;
        }
	return 1;
}
Turn the system off.
Код:
COMMAND:code1pd(playerid, params[])
{
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
        {
			new VID = GetPlayerVehicleID(playerid);
			DestroyObject(SirenObject[VID]);
			DestroyObject(SirenObject1[VID]);
			DestroyObject(SirenObject2[VID]);
			DestroyObject(SirenObject3[VID]);
			DestroyObject(SirenObject4[VID]);
			return 1;
	}
	return 1;
}
Reply
#2

Very Easy, But nice
Reply
#3

What is this doing in the filterscripts section?

Kinda useless in my opinion.
Reply
#4

Quote:
Originally Posted by VincentDunn
Посмотреть сообщение
What is this doing in the filterscripts section?

Kinda useless in my opinion.
Indeed this does not belong here, you have not put it into a filterscript so it is in the wrong section.
Reply
#5

Post it here : http://forum.sa-mp.com/showthread.ph...ing#post846212
Reply
#6

Nice Job
Reply
#7

Fail section, but btw. Nice script. Maybe I will use it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)