(vehicleid)
vehicleid
The ID of the vehicle to get the model of.
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(GetVehicleModel(vehicleid) == 411) // 411 is the Infernus model
{
SendClientMessage(playerid, 0xFFFFFFFF, "Nice Infernus!");
}
return 1;
}
The following functions may be useful, as they are related to this function in one way or another.