06.01.2010, 13:21
I'm afraid i don't understand you. You can assign only one vehicle to the vehiclename variable, so if you do it like this:
then the vehiclename will hold the ID of the last assigned vehicle (in this case it will be ID 3).
pawn Код:
public OnGameModeInit()
{
vehiclename = CreateVehicle(veh, xpos, ypos, zpos, angle, -1, -1); // ID 1.
vehiclename = CreateVehicle(veh, xpos, ypos, zpos, angle, -1, -1); // ID 2.
vehiclename = CreateVehicle(veh, xpos, ypos, zpos, angle, -1, -1); // ID 3.
return true;
}