26.07.2009, 12:58
Код:
forward IsAGodCars(carid); new GodCars1(carid); new GodCars2(carid); public IsAGodCars(carid) { if(carid == GodCars1 || carid == GodCars2) { return 1; } return 0; } Ongamemodeinit: GodCars1 = CreateVehicle(411,1507.6937,1174.0288,326.1282,359.4708,116,1, 20,300000); // infe lv GodCars2 = CreateVehicle(411,1504.5143,1174.0742,326.1289,359.1254,112,1, 20,300000); // infe lv 1 public OnVehicleSpawn(vehicleid) { if(IsAGodCars(vehicleid)) { DestroyVehicle(vehicleid); if(vehicleid == GodCars1) {CreateVehicle(411,1507.6937,1174.0288,326.1282,359.4708,116,1, 20,300000); } else if(vehicleid == GodCars2) {CreateVehicle(411,1504.5143,1174.0742,326.1289,359.1254,112,1, 20,300000);} SetVehicleHealth(vehicleid, 2000); // Set Car HP 2000 } return 1; }