04.05.2013, 20:20
Код:
Vehicle_AddStatic(vModel, Float:vX, Float:vY, Float:vZ, Float:vRotation, vC1, vC2, vSpawnDelay) { // Create a new static vehicle during GameModeInit new vid = AddStaticVehicleEx(vModel, vX, vY, vZ, vRotation, vC1, vC2, vSpawnDelay); // Save the vehicle-model AVehicleData[vid][Model] = vModel; // Set the fuel to maximum so the vehicle can be used AVehicleData[vid][Fuel] = MaxFuel; // Save the colors AVehicleData[vid][Color1] = vC1; AVehicleData[vid][Color2] = vC2; // Set this vehicle as a static vehicle AVehicleData[vid][StaticVehicle] = true; return vid; }