01.08.2013, 10:53
No. Do you mean a particular VEHICLE MODEL or vehicle ID? What Bakr gave is used for a specific VEHICLE ID.
For a specific vehicle ID (Example - ID 0 - First created vehicle on the server)
To check if they are in a SPECIFIC VEHICLE (Example - Infernus)
For a specific vehicle ID (Example - ID 0 - First created vehicle on the server)
pawn Код:
new g_Car;
// OnGameModeInit
g_Car = CreateVehicle(...);
// Trigger mission
if(GetPlayerVehicleID(playerid) == g_Car)
{
// they are in the car
}
pawn Код:
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 411)
{
// they are in a infernus
}