10.03.2011, 21:24
You have to create one police light per vehicle:
And i would use arrays instead of all these variables.
Код:
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);