car define
#5

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)
pawn Код:
new g_Car;
// OnGameModeInit
g_Car = CreateVehicle(...);
// Trigger mission
if(GetPlayerVehicleID(playerid) == g_Car)
{
    // they are in the car
}
To check if they are in a SPECIFIC VEHICLE (Example - Infernus)
pawn Код:
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 411)
{
        // they are in a infernus
}
Reply


Messages In This Thread
car define - by SampzzonE - 01.08.2013, 10:25
Re: car define - by Chrisis - 01.08.2013, 10:28
Re: car define - by Bakr - 01.08.2013, 10:29
Re: car define - by SampzzonE - 01.08.2013, 10:32
Re: car define - by RajatPawar - 01.08.2013, 10:53

Forum Jump:


Users browsing this thread: 1 Guest(s)