[HELP] custom police car
#7

You have to create one police light per vehicle:
Код:
pdlight1 = CreateObject(18646,0,0,0,0,0,0);
pdlight2 = CreateObject(18646,0,0,0,0,0,0);
pdlight3 = CreateObject(18646,0,0,0,0,0,0);
pdlight4 = CreateObject(18646,0,0,0,0,0,0);
buffpd1 = AddStaticVehicleEx(402,1545.5215,-1680.1603,5.7222,89.7425,0,0,30000); // buffalo pd
buffpd2 = AddStaticVehicleEx(402,1544.9746,-1676.1263,5.7223,91.2767,0,0,30000); // buffalo pd
buffpd3 = AddStaticVehicleEx(402,1600.9907,-1695.9442,5.7223,89.9302,0,0,30000); // buffalo pd
buffpd4 = AddStaticVehicleEx(402,1601.1803,-1700.0834,5.7223,90.7667,0,0,30000); // buffalo pd
AttachObjectToVehicle(pdlight1, buffpd1, 0, -0.0, 0, 2.0, 2.0, 3.0);
AttachObjectToVehicle(pdlight2, buffpd2, 0, -0.0, 0, 2.0, 2.0, 3.0);
AttachObjectToVehicle(pdlight3, buffpd3, 0, -0.0, 0, 2.0, 2.0, 3.0);
AttachObjectToVehicle(pdlight4, buffpd4, 0, -0.0, 0, 2.0, 2.0, 3.0);
And i would use arrays instead of all these variables.
Reply


Messages In This Thread
[HELP] custom police car - by dk4ever - 10.03.2011, 20:07
Re: [HELP] custom police car - by xRyder - 10.03.2011, 20:10
Re: [HELP] custom police car - by dk4ever - 10.03.2011, 20:12
Re: [HELP] custom police car - by xRyder - 10.03.2011, 20:18
Re: [HELP] custom police car - by dk4ever - 10.03.2011, 20:20
Re: [HELP] custom police car - by dk4ever - 10.03.2011, 21:18
Re: [HELP] custom police car - by Loppa - 10.03.2011, 21:24
Re: [HELP] custom police car - by dk4ever - 10.03.2011, 21:33
Re: [HELP] custom police car - by dk4ever - 11.03.2011, 08:29
Re: [HELP] custom police car - by dk4ever - 11.03.2011, 10:43

Forum Jump:


Users browsing this thread: 1 Guest(s)