07.09.2013, 08:16
pawn Код:
new RandomVehicleId[][1] =
{
{400},
{401},
{402},
{411},
{415},
{422},
{424},
{434},
{451},
{470},
{489},
{495},
{551},
{556},
{568},
{573},
{565}
};
pawn Код:
forward Spawn();
public Spawn();
{
new rand = random(sizeof(RandomVehicleId));
CreateVehicle(RandomVehicleId[rand][0], 6575.8643, 1275.2919, 20.0773, 270.0000, -1, -1, 100);
CreateVehicle(RandomVehicleId[rand][0], 6575.8643, 1229.8170, 20.0773, 270.0000, -1, -1, 100);
CreateVehicle(RandomVehicleId[rand][0], 6573.4219, 1181.0424, 20.0773, 0.0000, -1, -1, 100);
CreateVehicle(RandomVehicleId[rand][0], 6524.8511, 1175.6935, 20.0773, 270.0000, -1, -1, 100);
CreateVehicle(RandomVehicleId[rand][0], 6522.4009, 1182.7446, 20.0773, 0.0000, -1, -1, 100);
CreateVehicle(RandomVehicleId[rand][0], 6522.4053, 1321.1924, 20.0773, 180.0000, -1, -1, 100);
CreateVehicle(RandomVehicleId[rand][0], 6523.9053, 1328.1761, 20.0773, 270.0000, -1, -1, 100);
CreateVehicle(RandomVehicleId[rand][0], 6572.9219, 1323.7919, 20.0773, 180.0000, -1, -1, 100);
CreateVehicle(RandomVehicleId[rand][0], 6610.4575, 1252.5692, 20.0773, 270.0000, -1, -1, 100);
CreateVehicle(RandomVehicleId[rand][0], 6709.1646, 1252.5692, 20.0773, 90.0000, -1, -1, 100);
CreateVehicle(RandomVehicleId[rand][0], 6746.1880, 1229.7836, 20.0773, 90.0000, -1, -1, 100);
CreateVehicle(RandomVehicleId[rand][0], 6746.1177, 1275.2919, 20.0773, 90.0000, -1, -1, 100);
CreateVehicle(RandomVehicleId[rand][0], 6748.4956, 1323.7919, 20.0773, 180.0000, -1, -1, 100);
CreateVehicle(RandomVehicleId[rand][0], 6745.1680, 1176.7889, 20.0773, 0.0000, -1, -1, 100);
CreateVehicle(RandomVehicleId[rand][0], 6727.2222, 1265.2106, 11.1762, 90.0000, -1, -1, 100);
CreateVehicle(RandomVehicleId[rand][0], 6738.1187, 1262.2106, 11.1762, 270.0000, -1, -1, 100);
CreateVehicle(RandomVehicleId[rand][0], 6738.1187, 1242.9066, 11.1762, 270.0000, -1, -1, 100);
CreateVehicle(RandomVehicleId[rand][0], 6727.2222, 1239.9591, 11.1762, 90.0000, -1, -1, 100);
CreateVehicle(RandomVehicleId[rand][0], 6586.0640, 1242.9176, 11.1762, 90.0000, -1, -1, 100);
CreateVehicle(RandomVehicleId[rand][0], 6586.0640, 1262.2106, 11.1762, 90.0000, -1, -1, 100);
CreateVehicle(RandomVehicleId[rand][0], 6596.8091, 1265.1105, 11.1762, 270.0000, -1, -1, 100);
CreateVehicle(RandomVehicleId[rand][0], 6596.8091, 1239.9432, 11.1762, 270.0000, -1, -1, 100);
CreateVehicle(RandomVehicleId[rand][0], 6793.5283, 1328.1935, 20.0773, 90.0000, -1, -1, 100);
CreateVehicle(RandomVehicleId[rand][0], 6800.0322, 1321.4069, 20.0773, 180.0000, -1, -1, 100);
CreateVehicle(RandomVehicleId[rand][0], 6800.0322, 1183.0076, 20.0773, 0.0000, -1, -1, 100);
CreateVehicle(RandomVehicleId[rand][0], 6795.3564, 1175.6935, 20.0773, 90.0000, -1, -1, 100);
CreateVehicle(RandomVehicleId[rand][0], 6790.6738, 1309.3260, 2.8972, 180.0000, -1, -1, 100);
CreateVehicle(RandomVehicleId[rand][0], 6790.6738, 1198.8260, 3.3972, 0.0000, -1, -1, 100);
CreateVehicle(RandomVehicleId[rand][0], 6777.3657, 1194.4376, 3.3972, 90.0000, -1, -1, 100);
CreateVehicle(RandomVehicleId[rand][0], 6776.6221, 1310.5172, 2.8972, 90.0000, -1, -1, 100);
CreateVehicle(RandomVehicleId[rand][0], 6531.6934, 1307.0502, 2.8972, 180.0000, -1, -1, 100);
CreateVehicle(RandomVehicleId[rand][0], 6544.0459, 1310.5172, 2.8972, 270.0000, -1, -1, 100);
CreateVehicle(RandomVehicleId[rand][0], 6531.6934, 1198.5461, 2.8972, 0.0000, -1, -1, 100);
CreateVehicle(RandomVehicleId[rand][0], 6544.2046, 1194.5643, 2.8972, 270.0000, -1, -1, 100);
}