PutPlayerInVehicle problem
#10

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:

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);
Hope that example explains it for you
Reply


Messages In This Thread
PutPlayerInVehicle problem - by manchestera - 23.10.2011, 15:26
Re: PutPlayerInVehicle problem - by JaTochNietDan - 23.10.2011, 15:55
Re: PutPlayerInVehicle problem - by manchestera - 23.10.2011, 16:00
Re: PutPlayerInVehicle problem - by JaTochNietDan - 23.10.2011, 16:04
Re: PutPlayerInVehicle problem - by manchestera - 23.10.2011, 16:12
Re: PutPlayerInVehicle problem - by JaTochNietDan - 23.10.2011, 16:19
Re: PutPlayerInVehicle problem - by manchestera - 23.10.2011, 16:59
Re: PutPlayerInVehicle problem - by JaTochNietDan - 23.10.2011, 17:04
Re: PutPlayerInVehicle problem - by manchestera - 23.10.2011, 17:26
Re: PutPlayerInVehicle problem - by JaTochNietDan - 23.10.2011, 17:29

Forum Jump:


Users browsing this thread: 1 Guest(s)