SA-MP Forums Archive
[FilterScript] /code3pd [Police Code3 System] - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] /code3pd [Police Code3 System] (/showthread.php?tid=346240)



/code3pd [Police Code3 System] - GtasaPoliceModz - 27.05.2012

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;
}



Re: /code3pd [Police Code3 System] - Kathleen - 27.05.2012

Very Easy, But nice


Re: /code3pd [Police Code3 System] - ReneG - 27.05.2012

What is this doing in the filterscripts section?

Kinda useless in my opinion.


Re: /code3pd [Police Code3 System] - sherlock - 27.05.2012

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.


Re: /code3pd [Police Code3 System] - DonWade - 27.05.2012

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


Re: /code3pd [Police Code3 System] - Juninho_Oakley - 27.05.2012

Nice Job


Re: /code3pd [Police Code3 System] - AndreSAMP - 27.05.2012

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