18.09.2013, 07:43
Quote:
|
Code:
enum Vehicle_Info {
v_Model,
Float:v_Coord[4],
Float:v_Color[2],
};
new Float:vehicle_array[][Vehicle_Info] = {
{400, 0.0, 1.1, 22.2. 270.0, 0, 3},
{401, 133.0, 155.1, 32.2. 90.0, 100, 32},
{402, 50.0, 16.1, 12.2. 45.0, 34, 58}
};
stock Vehicle_CreateAll() {
for (new i = 0; i != sizeof(vehicle_array); i++) {
CreateVehicle(vehicle_array[i][v_Model], vehicle_array[i][v_Coord][0], vehicle_array[i][v_Coord][1], vehicle_array[i][v_Coord][2], vehicle_array[i][v_Coord][3], vehicle_array[i][v_Color][0], vehicle_array[i][v_Color][1], -1);
}
}
|


