23.10.2011, 17:29
When you create a vehicle the function returns the ID of the vehicle, so you can store that ID in a variable for later usage, for example:
Hope that example explains it for you
pawn Код:
new somecar; // Global variable
public OnGameModeInit()
{
somecar = CreateVehicle(.....); // Create your vehicle, store the ID in the variable.
return 1;
}
// Then put the player in that vehicle:
PutPlayerInVehicle(playerid, somecar, 0);