10.03.2011, 21:18
i make like this
but the object isn't there and no light
what i do wrong?
all is in "public OnGameModeInit()"
Код:
pdlight = 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(pdlight, buffpd1, 0, -0.0, 0, 2.0, 2.0, 3.0); AttachObjectToVehicle(pdlight, buffpd2, 0, -0.0, 0, 2.0, 2.0, 3.0); AttachObjectToVehicle(pdlight, buffpd3, 0, -0.0, 0, 2.0, 2.0, 3.0); AttachObjectToVehicle(pdlight, buffpd4, 0, -0.0, 0, 2.0, 2.0, 3.0);
what i do wrong?
all is in "public OnGameModeInit()"