11.01.2009, 20:40
Quote:
Originally Posted by Schock
wont work i addet it like this:
Код:
new GodCars[6]; Код:
GodCars[0] = AddStaticVehicleEx(411,1507.6937,1174.0288,326.1282,359.4708,116,1, 20); // infe lv GodCars[1] = AddStaticVehicleEx(411,1504.5143,1174.0742,326.1289,359.1254,112,1, 20); // infe lv 1 GodCars[2] = AddStaticVehicleEx(411,1501.4204,1174.0099,326.1299,359.5850,106,1, 20); // infe lv GodCars[3] = AddStaticVehicleEx(411,1495.9490,1173.9745,326.1282,359.8535,80,1, 20); // infe lv GodCars[4] = AddStaticVehicleEx(411,1492.8213,1174.0062,326.1282,359.4546,75,1, 20); // infe lv GodCars[5] = AddStaticVehicleEx(411,1489.5162,1173.9971,326.1259,0.3766,12,1, 20); // infe lv Код:
public OnVehicleSpawn(vehicleid) { if(vehicleid == GodCars[0]) { SetVehicleHealth(GodCars[0], 100000); } if(vehicleid == GodCars[1]) { SetVehicleHealth(GodCars[1], 100000); } if(vehicleid == GodCars[2]) { SetVehicleHealth(GodCars[2], 100000); } if(vehicleid == GodCars[3]) { SetVehicleHealth(GodCars[3], 100000); } if(vehicleid == GodCars[4]) { SetVehicleHealth(GodCars[4], 100000); } if(vehicleid == GodCars[5]) { SetVehicleHealth(GodCars[5], 100000); } } |